Re: JCA in a non-managed environment

David Jencks <[email protected]> Mon, 13 Jan 2003 22:01:30 -0500
Newsgroups gmane.comp.java.sun.connector
Message-ID <[email protected]>
Whatever that piece of the spec is trying to communicate (perhaps
rather unsucessfully), I'm sure it is not suggesting that a connector
needs to include a jndi implementation nor a jca deployment mechanism,
which is the way the ConnectionFactory would get into jndi in the first
place.

david jencks


On Monday, January 13, 2003, at 01:42 PM, Jason wrote:

> --- Jon Dart <[email protected]> wrote:
>> At 02:42 PM 1/12/03 +0100, Johan Eltes wrote:
>>>> The specification states
>>>> unambiguously that a connection factory should
>> be
>>>> obtained via a JNDI lookup in both a managed and
>> a
>>>> non-manged scenario.  This is fine; the goal is
>>>> obviously to maintain a consistent client
>> programming
>>>> model.
>>
>> I don't think it's required that this be the only
>> way to access your
>> factory class. You could also allow users to
>> directly instantiate the
>> factory class instead of getting it indirectly from
>> JNDI. This would allow
>> you to run in an environment in which you don't have
>> a suitable JNDI provider.
>>
>> --Jon
>
> This is from section 10.5 of the 1.0 final release of
> the specification.
>
> <BEGIN QUOTED MATERIAL>
> In both managed and non-managed application scenarios,
> an application component (or application
> client) is required to look up a connection factory
> instance in the component?s environment
> using the JNDI interface. The application component
> then uses the connection factory
> instance to get a connection to the underlying EIS.
> Section 5.4 specifies the application programming
> model in more detail.
> </END QUOTED MATERIAL>
>
> I agree it would be convenient if the requirement
> didn't exist but as I read the spec it does.
>
> -Jason
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
> =======================================================================
> ====
> 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".