tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jyrki Saarinen <jyrki.saari...@valimo.com>
Subject JNDI InitialContext problem
Date Wed, 12 Jan 2005 10:42:31 GMT
Hello,

I'm using Java Message Service (JMS) in a webapp. My
standalone JMS test programs works as it should, but
the same code fails when run under Tomcat. The
problem is what "new InitialContext()" returns.

In standalone JMS test program,
Context context = new InitialContext(); returns

defaultInitCtx: javax.naming.Context = 
{com.sun.enterprise.naming.SerialContext@1043}

Howevern, when running inside Tomcat,
Context context = new InitialContext(); returns

defaultInitCtx: javax.naming.Context = 
{org.apache.naming.SelectorContext@3042}

this later Context has of course no knowledge of
JMS Administrated Objects (Topic and ConnectionFactory).

Is there a way

Jyrki



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message