I currently have a problem getting a handle to a
data source from outside the container.  I am using
junit with each of my beans (BMP), and one of the
tests involves cleaning out the database for each
test run.  I don't have a problem seeing the data source
in the beans ("java:/xxx") but cannot find out how
to register the data source in the JNDI intitial context namespace.
It seems to me that the place to do this is in the jboss.xml
file where you use the resource manager tags.

Can anybody tell me the correct way to use the resource managers
and if they are used to register a data source in the JNDI tree
in the initial context namespace?

I also read alot about the ../ejb.., ../jdbc.. and ..comp/env..
namespaces.  Can anybody tell me in which namespace the
initial context exists?

Thanks in advance
Manie Coetzee




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

Reply via email to