-
1. Re: Tomcat JNDI Datasource now in JBOSS
genman Oct 8, 2004 1:41 AM (in response to juan110470)
1. Use the "Quote" feature around your configuration
2. Take a look at the example datasource conf. in the docs directory
3. Post appropriate parts of a stack trace; just saying you get "a huge stacktrace of errors" doesn't really convey much. -
2. Re: Tomcat JNDI Datasource now in JBOSS
kirannuthati Oct 13, 2004 4:35 AM (in response to juan110470)Hi
'java:comp/env/jdbc/securanceDatasource'
If use like this it won't work according to jboss docs u need to use like 'java:/securanceDatasource'
If u r not intrested to change class files of ur application, u need to modify the method 'public Name parse(String name)' of 'org.jnp.interfaces.NamingParser.class' located in 'jnpserver.jar'
Modify the method just like this
public Name parse(String name)
throws NamingException
{
if (name.equals("java:comp/env/jdbc/securanceDatasource")) name="java:/securanceDatasource";
return new CompoundName(name, syntax);
}
It may work for ur application, but to generalize play around it.