-
1. Re: help! datasource jndi lookup!
vickyk May 23, 2002 7:11 AM (in response to microwin)Hi,
Did you got the solution ?I am facing the same problem..
regards vickyk -
2. Re: help! datasource jndi lookup!
davidjencks May 23, 2002 9:06 AM (in response to microwin)You can't access a datasource from outside the jboss vm. You can even fool jndi into thinking you are in another vm when you aren't by getting an initial context using a properties object with "localhost:1099".
So;
invm use
new InitialContext()
Out of vm don't even try. -
3. Re: help! datasource jndi lookup!
bjs_pd May 23, 2002 12:55 PM (in response to microwin)Hi!
i had the same problem and found after long searching a very simple solution. Try instead of: lookup(java:/DefaultDS) only lookup(java:DefaultDS). I'll send you my ServiceLocator-Class where it was descript. It works fine!
CU
Bj -
4. Re: help! datasource jndi lookup!
bjs_pd May 23, 2002 12:57 PM (in response to microwin)Ops, I don't want to create a Smily. I mean: lookup(java : DefaultDS). Ignore the spaces!
CU
BJ -
5. Re: help! datasource jndi lookup!
vickyk May 24, 2002 12:55 AM (in response to microwin)Hi,
I have gone through the ServiceLocator.java and found that you are trying to get the DataSource from different
JVM but through the EJB,which I dont want to do.I have
worked on weblogic,Orion,BorlandAS,Pramati etc where I
am able to get the Object reference from the jndi directly,I dont include the ejb layer in between there.Any
way the EJB in between will cause more delay...
Isn't this the limitation of the Jboss....
Even David has specified the same,that you can't access
the jndi directly from the different jvm...
Thanks for the reply...
regards vickyk