Thanks jaikiran,
I found the problem, there was a jar by the name jboss-archive-browsing.jar in
my WAR lib.
There are a few conflicts in the net package so I will need to investigate why
we have this jar and where are the conflicts.
That will explain the differences between the EAR and WAR, in
anonymous wrote : Properties props= new Properties();
|
|
props.put(InitialContext.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
| props.put(InitialContext.PROVIDER_URL, "jnp://127.0.0.1:1099");
|
| Context ctx = new InitialContext(props);
| ctx.lookup("java:/Te
Thanks jaikiran
The spring related code is:
| org.springframework.jndi.JndiTemplate context = new
org.springframework.jndi.JndiTemplate();
| context.lookup("java:TestDB");
|
I already tried the InitialContext but it didn't work, I got a null.
BTW - it is working just fine in an EAR depl
thanks for you help,
I tried to lookup while deploying (while loading the spring context files) and
also after deployment in a servlet.
I'm creating the initialContext with the default jboss conf, I also tried to
use my own jndi.properties and to create the initalContext using a local
propertie
Hi All,
I'm running my app on jboss 4.2.0, using a MSSql as a database ans spring.
My Data source:TestDB-ds.xml
TestDB
jdbc:sqlserver://muzicall01;database=muzicall_dev
com.microsoft.sqlserver.jdbc.SQLServerDriver
xxx
xxx
The JNDI lookup in spring: