Hi All,

My environment: wsad 5.1.1 J2EE 1.3

I'm trying to run this scenario for test purpose:

Servlet -> Messaging Bean -> EJB Session bean

The servlet starts the the Messaging Bean using a Connection factory
and queue.
In the web-deployment descriptor I have declared them as refererences.
This works fine.

I get the messaging bean to start, but then I get an exception in
messaging bean
doing lockup for the Session Bean.

In the EJB deployment the 2 EJB beans are declared.

I'm confused over how I should do a lockup to the session bean from
the messaging bean

1. Should I create a new InitialContext ?
Context ctx = new InitialContext();

2. I have tested with this:

Context ctx = new InitialContext();
String name = "ejb/jmstest/ValidationBeanLocalHome";
Object objref = ctx.lookup(name);

and this:
Context ctx = new InitialContext();
String name = "java:comp/env/ejb/jmstest/ValidationBeanLocalHome";
Object objref = ctx.lookup(name);


Help regarding this deeply appreciated.

...Per

======================= EJB Deployment
========================================

JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">

JMSTestEJB


TestFacade
jmstest.TestFacadeHome
jmstest.TestFacade
jmstest.TestFacadeLocalHome
jmstest.TestFacadeLocal
jmstest.TestFacadeBean
Stateless
Container


jms/myQueueConnectionFactory
javax.jms.QueueConnectionFactory
Container
Shareable



jms/myQueue
javax.jms.Queue



TestMDB
jmstest.TestMDBBean
Container

javax.jms.Queue



ValidationBean
jmstest.ValidationBeanLocalHome
jmstest.ValidationBeanLocal
jmstest.ValidationBeanBean
Stateless
Container






Web deployment descriptor
================================================== ====

Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">

JMSTestWeb

index.html
index.htm
index.jsp
default.html
default.htm
default.jsp


jms/MyConnectionFactoryRef
javax.jms.QueueConnectionFactory
Application
Shareable


jms/MyQueueRef
javax.jms.Queue
Application
Shareable


ejb/myFacade
Session
jmstest.TestFacadeLocalHome
jmstest.TestFacadeLocal
JMSTestEJB.jar#TestFacade


ejb/myValidation
Session
jmstest.ValidationBeanLocalHome
jmstest.ValidationBeanLocal
JMSTestEJB.jar#ValidationBean