All,

According to the EJB 1.1 specification I am supposed to be able to retrieve
a URL connection for my EJB from the container provided resource manager
connection factory. In particular the following XML should be used to let
the deployer know that I, as a bean provider, need a URL called test that I
can look up in JNDI at java:comp/env/url/test. The deployer should bind this
resource to the URL connection factory provided by the container in the
target operational environment, in our case, JOnAS.

<resource-ref>
        <description>Test</description>
        <res-ref-name>url/test</res-ref-name>
        <res-type>java.net.URL</res-type>
        <res-auth>container</res-auth>
</resource-ref>

In essence this should be the same as getting a JDBC connection, though with
a different factory method since it is a different resource type (URL versus
a JDBC connection). While I see in the JOnAS documentation instructions for
binding a bean provider's JDBC resource request to a concrete provider I do
not see an example or discussion of doing the same thing for a URL resource.

The deployer should be able to bind this resource request to an actual
resource connection factory supplied by the container using a mechanism such
as a JNDI link reference.

The question is what is the URL connection factory for JOnAS? Is there one?
I did not see this documented anywhere in the JOnAS documentation though I
may have just missed. Can anyone provide pointers or an example for binding
a URL resource in JOnAS?

Thanks in advance for any help you can provide.

Sean Johnson
Venetica
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to