tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arto Pastinen <arto.pasti...@ofw.fi>
Subject Re: JNDI InitialContext problem
Date Wed, 12 Jan 2005 10:47:22 GMT
Define jndi provider url.

Artsi

On Wed, 2005-01-12 at 12:42, Jyrki Saarinen wrote:
> 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
> 


---------------------------------------------------------------------
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