Posted: Mon Jul 05, 2004 8:49 pm Post subject: Problem connecting to JMS using SenderBean
Centurion
Joined: 23 Jun 2003 Posts: 139
hi ,
below is a problem that one of our teams is facing in connecting thropugh JMS on a WAS 5.0 on Linux box. If you happen to know the resolution, pls let me know.
Code:
Project is using SenderBean to send and receive messages.
Receiving the following exception:
[6/30/04 8:20:00:172 MST] 74f00825 PrivExAction W J2CA0114W: No container-managed authentication alias found for connection factory or datasource JMS$ACMUQCF.
[6/30/04 8:20:00:790 MST] 74f00825 SystemOut O Exception is :Failed to send message
Code:
][code]
Here is the print stack trace what we are getting :
[6/30/04 10:10:24:741 MST] 19c04341 SystemErr R com.ibm.websphere.ems.TransportException: Failed to send message
linked exception = javax.jms.InvalidDestinationException: MQJMS0003: Destination not understood or no longer valid
[6/30/04 10:10:24:741 MST] 19c04341 SystemErr R at com.ibm.ws.ems.transport.jms.JMSMessageSenderImpl.send(JMSMessageSenderImpl.java:699)
[6/30/04 10:10:24:742 MST] 19c04341 SystemErr R at com.ibm.ws.ems.transport.jms.JMSMessageSenderImpl.sendRequestReceiveResponse(JMSMessageSenderImpl.java:298)
[6/30/04 10:10:24:742 MST] 19c04341 SystemErr R at com.americanexpress.acmu.ejb.CAMDSenderBean.sendWithResponse(Unknown Source)
[6/30/04 10:10:24:742 MST] 19c04341 SystemErr R at com.americanexpress.acmu.ejb.EJSRemoteStatelessCAMDSender_07762c6b.sendWithResponse(Unknown Source)
[6/30/04 10:10:24:742 MST] 19c04341 SystemErr R at com.americanexpress.acmu.ejb._CAMDSender_Stub.sendWithResponse(_CAMDSender_Stub.java:260)
[6/30/04 10:10:24:742 MST] 19c04341 SystemErr R at com.amex.acmu.web.handler.WorkingRequestor.executeSend(WorkingRequestor.java:29)
[6/30/04 10:10:24:742 MST] 19c04341 SystemErr R at com.amex.acmu.web.handler.LoginRH.processRequest(LoginRH.java:61)
[6/30/04 10:10:24:742 MST] 19c04341 SystemErr R at com.americanexpress.util.frontservlet.FrontServlet.processRequest(FrontServlet.java:593)
[6/30/04 10:10:24:742 MST] 19c04341 SystemErr R at com.americanexpress.util.frontservlet.FrontServlet.doPost(FrontServlet.java:351)
[/code]
Source Snippet of our SenderBean code:
While using the SenderBean code, we see an exception either while sending the message or when we createSender method is invoked.
When we use the JNDI lookup in a sample program and deploy into our instance, the queue object being returned from lookup doesn't seem to allow the createSender method to create a sender object, whereas we have to create a queue object by Queue samQueue = qSession.createQueue(lookupQueue.getQueueName()). It would then successfully allow us to send messages.
Used the same program as stand alone, but unable to lookup to our Naming server as the port is specific to the instance/node.
The application does not have any DB. We have used JSession to manage sessions.
Another application residing as an instance does use Sender Beans with DB and have no issues sending messages to their local queues.[/code
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum