ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Problem connecting to JMS using SenderBean

Post new topic  Reply to topic
 Problem connecting to JMS using SenderBean « View previous topic :: View next topic » 
Author Message
j1
PostPosted: Mon Jul 05, 2004 8:49 pm    Post subject: Problem connecting to JMS using SenderBean Reply with quote

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
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Jul 06, 2004 4:03 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Are you connecting via BINDINGS (MQ) and have specified a user id that is not the one running the WAS ? in QCF / JMSDestination ?

Looks to me like you may have an authentication problem there.
Otherwise everything in the setup seems fine.

Hope it helps some
F.J.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Problem connecting to JMS using SenderBean
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.