Hi,

I am a new Camel user and I have been experimenting with Camel's routing and
transformation capabilities.

I have a use case where a JMS client sends an ObjectMessage to a WebLogic
JMS queue.  Using Camel, I retrieve the message off the queue and route it
to a JmsToEjbMethod Processor implementation.  The Processor obtains the
parameters needed to invoke an EJB method from the JMS message, populates an
Object array and instantiates a BeanInvocation that specifies the
appropriate EJB method and contains the Object array of the method's
parameters.

The EJB method is then invoked and returns fine.

Then I need to re-transform the response for the JMSReplyTo temporary queue
that the original JMS client is listening on.  I am able to accomplish this
with another Processor implementation - EjbMethodToJms.

In order to send the JMS response message back to the JMSReplyTo queue, I
had to re-obtain a QueueConnectionFactory, get a QueueConnection, and create
a QueueSession in order to send the response message back.  I could not
figure out a way to get access to the original JMS request's QueueSession in
the first JmsToEjbMethod Processor to save in a Header for using when the
second EjbMethodToJms Processor wants to send the awaited response.

Is there a means by which I can maintain the session to the JMS queue across
the EJB method call to send the expected response?

Does this sound like a reasonable approach for accomplishing this
integration, or is there a better way?

Thanks,

Russ Evans


-- 
View this message in context: 
http://www.nabble.com/WebLogic-JMS-request-to-EJB-method-to-JMS-response-tp16688628s22882p16688628.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to