>       But you should instead declare a resource reference in you
> ejb-jar.xml file, and then use *that* name.  So for example, if your
> ejb-jar.xml declares a DB resource named "jdbc/Foo" you should be able to
> look it up as "java:comp/env/jdbc/Foo" in *either* server!  That whole
> point of that is to conceal the server's internal representation (which is
> "Foo" in WL and "java:Foo" in jBoss, according to your description).
>       Then you would of course need to hook up the "jdbc/Foo" resource
> in ejb-jar.xml to "java:Whatever" in the jBoss JNDI space using a resource
> ref in the bean and a resource manager in jboss.xml.
>       So you should not under any circumstances be looking things up
> using the java:Foo JNDI name.
>
> Aaron


Little question about this.
Suppose I have db connection named "oracle", configured in jboss.jcml and
jboss.conf.
Then I use jdbc connection in my bean and reference it as
"java:comp/env/jdbc/Foo"
then, where and what should I write , so "java:comp/env/jdbc/Foo" uses my
"oracle" connection.
It's obvious I need to put resource reference, but what should it point to?
"java:oracle" ????



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to