Just add the location of jndi.properties (jboss/conf/default) to your
classpath and everything is good.
You can also use System.setProperty(), but then you have it hardcoded
in your source.
--
/// Dirk.
XJ: Mattias Kardell writes:
> Hi Elouan!
>
> I'm not totally sure this will help you - I'm new to jboss-tomcat...
> ...but anyway It's a response.
>
> Have you included something like this in your servlet?:
>
> System.setProperty("java.naming.factory.initial",
> "org.jnp.interfaces.NamingContextFactory");
> System.setProperty("java.naming.provider.url",
> "localhost:1099");
>
> localhost is the name of the computer and 1099 is the port
> where jboss is listening.
>
> but as I mentioned. I'm not that good on this...
>
> regards,
>
> /Mattias
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]