You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Jyrki Saarinen <jy...@valimo.com> on 2005/01/12 11:42:31 UTC
JNDI InitialContext problem
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
Re: JNDI InitialContext problem
Posted by Arto Pastinen <ar...@ofw.fi>.
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