Re: Question on Connection Sharing

Andreas Moesching <[email protected]> Fri, 15 Nov 2002 11:09:46 +0000
Newsgroups gmane.comp.java.sun.connector
Organization IONA
Message-ID <[email protected]>
Gurdev
You have to have a <resource-ref> tag.

Check Enterprise JavaBeansTM Specification, Version 2.0
20.4.1.2 Declaration of resource manager connection factory references
in deployment descriptor

The Bean Provider must declare all the resource manager connection
factory references in the deployment descriptor using the resource-ref
elements. This allows the ejb-jar consumer to discover all the resource
manager connection factory references used by an enterprise bean.

Gurudev Parmar wrote:
> Hi,
> I specifically wanted to know if the connection is considered to
> be shareable even if <resource-ref> tag is not specified in the
> ejb-jar.xml.
>
> Thanks,
> Gurdev
>
> On Fri, 15 Nov 2002, Andreas Moesching wrote:
>
>
>>Gurdev
>>
>>Connections to resource managers are considered to be shareable. If the
>><res-sharing-scope> element is not specified, connections are assumed to
>>be shareable.
>>There is no harm to specify the <res-sharing-scope> as Shareable in that
>>way you document your ejb-jar.xml ant it's clear for anybody what
>>behaviour you expect.
>>(e.g. <res-sharing-scope>Shareable</res-sharing-scope>)
>>
>>Cheers
>>Andreas
>>
>>
>>Gurudev Parmar wrote:
>>
>>>Hi,
>>>I want to know the correct behavior of a container w.r.t.
>>>connection sharing if I do not include <resource-ref>
>>>tag for a bean described in the ejb-jar.xml.
>>>This means that the container does not get a hint about
>>>the <res-sharing-scope> from the ejb-jar.xml.
>>>My understanding according to JCA 1.0 Spec 6.9 is that
>>>since the container does not have a hint for res-sharing-scope
>>>it must assume that the connection request by the bean
>>>is shareable.
>>>
>>>Is this right?
>>>
>>>Thanks,
>>>Gurdev
>>>
>>>===========================================================================
>>>To unsubscribe, send email to [email protected] and include in the body
>>>of the message "signoff CONNECTOR-INTEREST".  For general help, send email to
>>>[email protected] and include in the body of the message "help".
>>>
>>
>>
>>--
>>Andreas Moesching
>>IONA
>>END 2 ANYWHERE
>>Shelbourne Road, Ballsbridge
>>Dublin 4, Ireland
>>
>>http://www.iona.com
>>mailto:[email protected]
>>
>>===========================================================================
>>To unsubscribe, send email to [email protected] and include in the body
>>of the message "signoff CONNECTOR-INTEREST".  For general help, send email to
>>[email protected] and include in the body of the message "help".
>>
>
>
> ===========================================================================
> To unsubscribe, send email to [email protected] and include in the body
> of the message "signoff CONNECTOR-INTEREST".  For general help, send email to
> [email protected] and include in the body of the message "help".
>

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff CONNECTOR-INTEREST".  For general help, send email to
[email protected] and include in the body of the message "help".