When I make the following calls in my classes that the EJB call on.
I only get one name mentioned...
env
Context context = new InitialContext();
NamingEnumeration ne = context.list("java:comp");
if ( ne == null ) {
System.out.println("ERROR: cannot get the naming enumeration");
}
while ( ne.hasMore() ) {
NameClassPair np = (NameClassPair)ne.next();
System.out.println("context Name: " + np.getName() + " className: " +
np.getClassName());
}
Am I looking in the wrong name space?
When I make the following call...
DataSource ds = (DataSource)context.lookup("stuDB");
I do get the following exception...
javax.naming.NameNotFoundException: stuDB not bound
This has been puzzling me for a while now.
Thanks for the help in trying to track it down.
Rickard �berg wrote:
>
> Hi!
>
> Stuart Barlow wrote:
> > I have a simple jar containing 3 Stateless Session Beans called Test,
> > Deposit and Retrieve.
> > I also have a JDBC resource named in my jboss.xml called stuDB.
> > This links my minerva xa.PoolNameStu JNDI name to the name stuDB.
> > I then in my ejb-jar.xml in the Test bean I reference the stuDB
> > name.
> >
> > BUT no where in the deployment of my bean do I see the name stuDB
> > getting bound (and therefor available in the JNDI namespace).
> >
> > What is stopping the stuDB name becoming bound and available?
>
> I think it is. Have you tried to access it from the code?
>
> /Rickard
>
> --
> Rickard �berg
>
> Email: [EMAIL PROTECTED]
> http://www.telkel.com
> http://www.jboss.org
> http://www.dreambean.com
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]