JMS with WL9.2

Hello,
          I have two java programs. One publishes the JMS message & other receives JMS message.
          I'm executing these with Weblogic 9.2
          My program to publish the message is some thing like this
          tconFactory = (TopicConnectionFactory)(ctx.lookup(JMS_FACTORY));
          tcon = tconFactory.createTopicConnection("weblogic","weblogic");
          tsession = tcon.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
          // topic = (Topic) ctx.lookup(topicName);
          topic = topicSession.createTopic(TOPIC);
          tpublisher = tsession.createPublisher(topic);
          msg = tsession.createTextMessage();
          tcon.start();
          And WLS 9.2 configuration is
          AdminServer (admin)
          JMS FileStore
               FILEStore
          JMS Server
               JMSServer with persistence as FILEStore.
          JMS Module
               Destinations
          JMS Module Sub-deployments
               subadminServer with target on AdminServer
               subjmsServer with target on JMSServer
          JMS Module Resources -
               1 Topic with target on subjmsServer
               TOPIC NAME - RequestTopic
               JNDI- ReqTopic
          ISSUE
          If i use JNDI to look up the topic it works
          Ex: topic = (Topic)ctx.lookup(ReqTopic)
          If I use 'createTopic()' api, I get the exception
          Ex: topic = topicSession.createTopic(JMSServer/RequestTopic);
          I mean, If application gets the topic name through JNDI look up, it works correctly.
          Where as, if it tries to create using 'createTopic()' api
          through topic session, It gets following exception.
          weblogic.jms.common.JMSException: Destination RequestTopic not found
          at weblogic.jms.dispatcher.DispatcherAdapter.convertToJMSExceptionAndThrow(DispatcherAdapter.java:110)
          at weblogic.jms.dispatcher.DispatcherAdapter.dispatchSyncNoTran(DispatcherAdapter.java:61)
          at weblogic.jms.client.JMSSession.createDestination(JMSSession.java:2851)
          at weblogic.jms.client.JMSSession.createTopic(JMSSession.java:2154)
          at weblogic.jms.client.WLSessionImpl.createTopic(WLSessionImpl.java:1043)
          at TopicReceive.init(TopicReceive.java:129)
          at TopicReceive.main(TopicReceive.java:174)
          Caused by: weblogic.jms.common.JMSException: Destination RequestTopic not found
          at weblogic.jms.dispatcher.Request.handleThrowable(Request.java:63)
          at weblogic.jms.dispatcher.Request.getResult(Request.java:51)
          at weblogic.messaging.dispatcher.Request.wrappedFiniteStateMachine(Request.java:895)
          at weblogic.messaging.dispatcher.DispatcherImpl.dispatchAsyncInternal(DispatcherImpl.java:129)
          at weblogic.messaging.dispatcher.DispatcherImpl.dispatchAsync(DispatcherImpl.java:112)
          at weblogic.messaging.dispatcher.Request.dispatchAsync(Request.java:1046)
          at weblogic.jms.dispatcher.Request.dispatchAsync(Request.java:72)
          at weblogic.jms.frontend.FEManager.destinationCreate(FEManager.java:312)
          at weblogic.jms.frontend.FEManager.invoke(FEManager.java:534)
          at weblogic.messaging.dispatcher.Request.wrappedFiniteStateMachine(Request.java:759)
          at weblogic.messaging.dispatcher.DispatcherServerRef.invoke(DispatcherServerRef.java:276)
          at weblogic.messaging.dispatcher.DispatcherServerRef.handleRequest(DispatcherServerRef.java:141)
          at weblogic.messaging.dispatcher.DispatcherServerRef.access$000(DispatcherServerRef.java:36)
          at weblogic.messaging.dispatcher.DispatcherServerRef$2.run(DispatcherServerRef.java:112)
          at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
          at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
          Caused by: weblogic.jms.common.JMSException: Destination RequestTopic not found
          at weblogic.jms.backend.BackEnd.findDestination(BackEnd.java:1491)
          at weblogic.jms.backend.BackEnd.invoke(BackEnd.java:2062)
          at weblogic.messaging.dispatcher.Request.wrappedFiniteStateMachine(Request.java:759)
          However 'createTopic()' api works with weblogic 8.1 versions.
          Please advice me if i'm missing any configuration with 9.2 version here.
          Thanks
          Shiv

The following describes the expected destination name for a createQueue/createTopic method.
          "If the destination name does not contain a "/" character then it must be the name of a distributed destination that is available in the cluster to which the client is attached. If it does contain a "/" character then the string before the "/" must be the name of a JMSServer or a ".". The string after the "/" is the name of a the desired destination. If the "./" version of the string is used then any destination with the given name on the local WLS server will be returned.
          So the name passed into createTopic() method for your case should be "JMSServer/RequestTopic", or "./RequestTopic".

Similar Messages

  • How to use SOAP over JMS with Glassfish

    Hi
    Is it possible to use JMS with JAX-WS2.0 ?
    Any answer welcome
    Andre

    I want to secure the message between my web service and a Automated activity in SAP Netweaver BPM (Process
    development). I think in this case the usage of of SOAP adapter may not be useful.
    Security parameters (settings) can be defined for Sender SOAP Adapter (as in your case it is)......to know more check this help section: http://help.sap.com/saphelp_nwpi71/helpdata/EN/fc/5ad93f130f9215e10000000a155106/content.htm
    Check the section: Define Security Parameters.
    Regards,
    Abhishek.

  • Do i have to use JMS with EJBS?

    Hi
    I want to use JMS as a messaging system (a queue) between my system and someone elses. I would like to have some java classes on Tomcat to do the job. But...whenever i hear about JMS i always hear it in relation to EJBs. Can i only use JMS with EJBS?
    If i can use JMS is there anything important i need to know about.
    Thanks in advance!
    San H.

    As far as I understand you are use JNDI and JMS is not bound with EJB's. These are java API's which are independent. Like JDBC you can use with Servlets, Applets, standalone applications, EJB, JMS etc etc.......
    In the same way you can use JNDI and JMS with diferent API. And the important feature of Java is that all java API interact with each other when these are independent. I would appricate comments of everyone......................Thanks

  • How to Create web service using JMS with PUB/SUB pattern.

    Hi All,
    I need to expose web service using JMS with PUB/SUB pattern.
    if you have any source for this.
    I tried to use @WLJmsTransport annotation but unable to get it done.
    I have configured all JMS server, topic, and connection factory.
    Thanks.

    Hi, I am having web sample web service program which is simple one.
    But I need to Modify this to JMS enable.
    Can any one help me?
    Thanks.

  • How to do jms with netweaverdeveloperstudio

    hi,
    can u pls tell how to do jms with nwds ?
    which things i need to configure in webas?
    how to write client for jms?
    regards
    Guru

    Please try the J2EE  engine (JMS) example first to have a better understanding of JMS given in portal/index.html
    I hope the following references may also help you
    http://help.sap.com/saphelp_nw04/helpdata/en/a3/63af1bbf09469fa1615c05f0daff6f/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/90/57849e5e3e45d784afc4e3bfa8136f/frameset.htm
    Regards

  • Integrating Messaging system like MQ Series or JMS with SIM

    Hi,
    I am working with Integrating Messaging system Integration with SIM.
    Can anyone tell me in detail how we can integrate Messaging system like MQ Series/JMS with Sun Identity Manager?
    Thanks & Regards
    Chitarm

    Hi,
    I am working with Integrating Messaging system Integration with SIM.
    Can anyone tell me in detail how we can integrate Messaging system like MQ Series/JMS with Sun Identity Manager?
    Thanks & Regards
    Chitarm

  • Siebel JMS with IBM Webshere MQ(7.5.0.1)

    Hi Guys,
    I try to configure MQ 7.5.0.1(with JMS) with Siebel so that I can send/receive messages using EAI JMS Transport. when I try to send a message, i get following error in jms log file:
    [SIEBEL ERROR] Thread[main,5,main] [11:56:37.171 AM Fri Feb 28: ] Error invoking Send --
    SiebelJMSException errorSubtype=JMS_EXCEPTION
      at com.siebel.eai.jms.JMSBusinessService.doInvokeMethodWithExceptions(JMSBusinessService.java:582)
      at com.siebel.eai.jms.JMSBusinessService.doInvokeMethod(JMSBusinessService.java:249)
      at com.siebel.eai.SiebelBusinessService.invokeMethod(SiebelBusinessService.java:9)
    [SIEBEL ERROR] Thread[main,5,main] [11:56:37.171 AM Fri Feb 28: ] Threw SiebelBusinessServiceException with
    ErrorCode = JMS_EXCEPTION
    ErrorMessage = An unexpected error occurred (see StackTrace): com.ibm.mq.jms.MQConnectionFactory cannot be cast to javax.jms.QueueConnectionFactory
    StackTrace = SiebelJMSException errorSubtype=JMS_EXCEPTION
      at com.siebel.eai.jms.JMSBusinessService.doInvokeMethodWithExceptions(JMSBusinessService.java:582)
      at com.siebel.eai.jms.JMSBusinessService.doInvokeMethod(JMSBusinessService.java:249)
      at com.siebel.eai.SiebelBusinessService.invokeMethod(SiebelBusinessService.java:9)
    [SIEBEL DETAIL] Thread[main,5,main] [11:56:37.171 AM Fri Feb 28: ] Cumulative time = 2107
    JAVA profile:
    JVM Classpath C:\JAR;C:\JAR\SIEBEL.JAR;C:\JAR\SIEBELJI_ENU.JAR;C:\JAR\JNDI.JAR;C:\JAR\CONNECTOR.JAR;C:\JAR\JMS.JAR;C:\JAR\PROVIDERUTIL.JAR;C:JAR\FSCONTEXT.JAR;C:\JAR\COM.IBM.MQ.JAR;C:\JAR\COM.IBM.MQJMS.JAR;C:\JAR\COM.IBM.MQ.JMQI.JAR;C:\JAR\DHBCORE.JAR;
    JVM DLL Name C:\Program Files (x86)\Java\jre7\bin\client\jvm.dll
    JVM Options -Djms.log=C:\JMS\log\jms.log
    binding file is located in folder c:\JAR
    file jndi.properties:
    java.naming.factory.initial=com.sun.jndi.fscontext.RefFSContextFactory
    java.naming.provider.url=file:/c:/JMS
    Can anybody help me?
    Thanks,
    SN

    >
    > I am trying to connect to Websphere MQ series via PI, Websphere MQ series is running on Linux environment and PI system running on AIX operating system, i got the drivers from linux environment where queue is running, can i deploy those drivers into my PI system?? because it is running on AIX.
    >
    It will work.
    > Or else is there any different jar files for different operating systems???
    as per my knowledge no.
    Regards,
    Raj

  • JMS with mysql

    Hi All,
    Can you anyone help me to setup on my linux machine JMS with mysql. I have installed JMS and mysql.I don't know after that what i need to do. I would like to setup on linux machine JMS with mysql database. Your help will be really appreciated
    Regards,
    Tech456

    MySQL will be supported with MQ 4.1 which is currently in beta. You can download the community preview of Open Message Queue 4.1 at http://mq.dev.java.net/downloads.html.
    To use MySQL as the JDBC-based persistent store you need to set the following properties in your config.properties file:
    imq.brokerid=<brokerID>
    imq.persist.store=jdbc
    imq.persist.jdbc.dbVendor=mysql
    imq.persist.jdbc.mysql.user=<user>
    imq.persist.jdbc.mysql.password=<password>
    imq.persist.jdbc.mysql.property.url=<url>
    Hope this help!

  • Need file to JMS with complete screen shots....!!!!

    hi all plzzzz post me file to JMS with complete screen shots...i have tried for the same in the forums but i didnt got with exact screen shots...!!!
    thnx in advance to all

    I guess no buddy can provide you exact indepth steps with screen shots. You need to start working with whatever you have it and then ask your question into some particular area which you face during your disign. Best option is to satrt with sap help.
    Regards,
    Sarvesh

  • INTEGRATING JMS with SIM 7.0

    Hi all,
    I have to integerate JMS with SIM 7.0....but i am new to JMS..so any help as to how sould i intergrate it will be very usefull.
    Thanks.
    Edited by: adi123 on Jan 16, 2008 5:25 AM

    adi123 wrote:
    SIm 7.0 s sun identity manager version 7.0 and i am trying to configure JMS with SIM so that it can be used for provisioning..and as of now i am trying to use mesaage que 3....Well this isn't the forum for either product. This forum is for Sun's email server product.
    Identity manager help is available at:
    => http://forum.java.sun.com/forum.jspa?forumID=764
    Message Queue help is available at:
    http://forum.java.sun.com/forum.jspa?forumID=711
    Regards,
    Shane.

  • INTEGRATING JMS with SIM

    Hi all,
    I have to integerate JMS with SIM ....but i am new to JMS..so any help as to how sould i intergrate it will be very usefull.
    Thanks.

    You can certainly reduce the latency of web requests by making things asynchronous. e.g. if you have a slow piece of functionality such as registration & sending of emails back, you could make that completely asynchronous and just send a message to a JMS Queue then consume it in another process/thread. Then the user of your web application doesn't have to wait for the slow processing to complete before their browser refreshes.
    To make it easy to integrate JMS into your application, you might want to stick to a POJO model and then use Spring Remoting over JMS via Lingo
    http://lingo.codehaus.org/
    James
    http://logicblaze.com/

  • Sync/Async bridge via JMS with FAULT messages

    Hello all,<br><br>
    I set up a sync/async bridge scenario with using of JMS communication channel (SAP - JMSReceiverCC - JMSServer and application - JMSSenderCC - SAP). The normal communication works fine.<br>
    But what we can not solve is the Fault Message handling. If there is a application error behind the JMS, a fault message is generated instead of proper application response and sent back to XI. Without any additional setup of JMS Sender CC the processing of the message ends with "MAPPING - EXCEPTION_DURING_EXECUTE", because normal "response mapping" is executed instead of "fault message mapping". This is correct behavior without any discussion.<br><br>
    [SAPhelp|http://help.sap.com/saphelp_nw70/helpdata/en/45/202845de34072ce10000000a155369/frameset.htm] says that there are 2 module parameters to be set : fault, faultNamespace. The description is rather vague, so let's see, what the "NotifyResponseBean" does, when parameters fault/faultNamespace are filled:<br><br>
    <pre>if(fault != null && faultNamespace != null)
      if(faultNamespace.equals("http://sap.com/xi/XI/System"))
        ((XIMessage)message1).setMessageClass(MessageClass.SYSTEM_ERROR);
        ((XIMessage)message1).setError(fault, "no additional information");
      } else
        ((XIMessage)message1).setMessageClass(MessageClass.APPLICATION_ERROR);
        ErrorInfo errorinfo = message1.createErrorInfo();
        errorinfo.setAttribute("ApplicationFaultInterface", fault);
        errorinfo.setAttribute("ApplicationFaultInterfaceNamespace", faultNamespace);
        errorinfo.setAttribute("ErrorCode", fault);
        errorinfo.setAttribute("AdditionalErrorText", "no additional information");
        message1.setErrorInfo(errorinfo);
    } else
      ((XIMessage)message1).setMessageClass(MessageClass.APPLICATION_RESPONSE);
    }</pre><br>
    The code is pretty straight forward so one could assume, that it's the name and namespace of inbound synchronnous message interface what is supposed to be filled in the values of each parameter. And from that kind of information SAP XI can evolve how to handle the response, actually the fault.<br>
    Unfortunatelly the real situation is different - every time the fault message is generated and sent back to XI, the response is correctly corelated with the request message, "WaitResponseBean" and "NotifyResponseBean" are finished correctly and the processing crashes in messaging class on following exception:<br><br>
    java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:592) at
    com.sap.aii.messaging.mo.MessageContext.setAttribute(MessageContext.java:140) at
    com.sap.aii.adapter.xi.ms.XIMessage.updateHeaders(XIMessage.java:4244) at
    com.sap.aii.adapter.xi.ms.XIMessage.getTransportHeaders(XIMessage.java:570) at
    com.sap.aii.af.ra.ms.impl.ServerConnectionImpl.request(ServerConnectionImpl.java:212) at
    com.sap.aii.af.ra.ms.impl.core.transport.http.MessagingServlet.doPost(MessagingServlet.java:337) at ...
    <br><br>
    Is there anyone, who can put more light on JMS sync/async bridge fault handling ???
    <br><br>
    Thank you ...<br>
    Regards
    Tomas

    Hello again,
    I proceed in investigation little more, but the main problem has not been solved. I found that the problem is not even in WaitResponseBean (placed in JMCReceiverCC). This bean is woken up properly on base of proper CorrelationID. See the log:
    2009-10-15 11:00:33 Success WRB: entering WaitResponseBean
    2009-10-15 11:00:33 Success WRB: retrieving the message for f1ea1fc0-b96d-11de-9b68-00144f4acd86 ...
    2009-10-15 11:00:46 Success WRB: retrieved the message: ApplicationError
    2009-10-15 11:00:46 Success WRB: leaving WaitResponseBean
    I think, that the problem is somewhere within main messaging functionality. I suppose that on base of exception message:
    com.sap.aii.messaging.mo.MessageContext.setAttribute(MessageContext.java:140) at
    which is generated.
    Any ideas or comments ?
    Thank you in advance.
    Regards
    Tomas

  • URGENT -- Problem in using JMS with JBOSS

    Hi,
    My jar file which includes my Java/JMS classes can easily be executed when I use Sun Application server, but I don't know how I can change execute the same jar file in when I switch to JBOSS. Do I need to use ants? or I can use the original jar files?
    thanks,

    It can depends on your application, but basically in order to run JMS JBoss client application you need:
    1) Set proper jndi settings, e.g. by placing jndi.properties to the root of your classpath.
    2) Add some jars to your classpath from client folder of your jboss AS distribution. My latest application works well with concurrent.jar, jnp-client.jar and jbossall-client.jar on the classpath.
    You can read more at http://docs.jboss.org/jbossas/guides/j2eeguide/r2/en/html/ch6.chapt.html It is valid for all the 4.x jboss versions. Check jboss samples also.
    Best Regards,
    Roman

  • Error in Access JMS with MQSeries5.2

    Hi,
    I'm trying to integrate Xi (SP12) with MQSeries (5.2) using the JMS Adapter (receiver) with WebSphereMQ as Transport protocol. So flatfile>XI>MQSeries (JMS Adapter)
    My Parameter configs:
    QueueConnectionFactory Java Class: com.ibm.mq.jms.MQQueueConnectionFactory
    Queue Java Class: com.ibm.mq.jms.MQQueue
    Server Name:
    Server Port: 1414
    Queue Manager Name: QM1
    Channel Name: CHANNEL1
    Queue Name: QUEUE1
    Transport/Network Protocol: TCP/IP
    JMS-Compliant: WebSphereMQ (non-JMS)
    In RWB..Adaptor monitoring it shows the following:
    Receiver Channel. Details: null
    Running scenario errors in RWB with Audit logs below:
    Exception caught by adapter framework: The JMS channel with channel ID 86aa3972fbc332528aa2e51b3217b8f1 is errornous. Details:null
    Delivery of the message to the application using connection AFW failed, due to: The JMS channel with channel ID 86aa3972fbc332528aa2e51b3217b8f1 is errornous. Details:null.
    Any advice or help would be great.
    Regards,
    Felix

    I assume the server name is not empty, is it? In that case the solution is easy
    You are sure, that the drivers are deployed correctly? The server can be reached by the XI?
    The character set should be entered as well.
    Regards
    Stefan

  • Error in Access JMS with JNDI

    Hi all,
    I am trying DB>XI>TIBCO (EMS).
    I have included tibjms.jar library in aii_af_jmsproviderlib.sda and deployed using SDM.
    In JMS receiver adapter I am using the following:-
    Transport protocol: Access JMS Provider with JNDI.
    JNDI Lookup Name of Queue connection factory: com.tibco.tibjms.TibjmsQueueConnectionFactory
    JNDI Lookup Name of JMS Queue: com.tibco.tibjms.TibjmsQueue
    Name of JNDI Initial Context Factory:
    com.tibco.tibjms.naming.TibjmsInitialContextFactory
    In RWB i am getting the following for this scenario:
    2005-04-17 19:55:05 Success Using connection AFW. Trying to put the message into the receive queue.
    2005-04-17 19:55:05 Success The message was successfully retrieved from the receive queue.
    2005-04-17 19:55:05 Success The message status set to DLNG.
    2005-04-17 19:55:05 Success Deliver to channel: TIB_Receiver_JNDI
    2005-04-17 19:55:05 <b>Error Exception caught by adapter framework: Object not found in lookup of XIJMSService.</b>
    2005-04-17 19:55:05 Success XI message converted to binary format successfully
    2005-04-17 19:55:05 <b>Error Delivery of the message to the application using connection AFW failed, due to: Object not found in lookup of XIJMSService..</b>
    2005-04-17 19:55:05 Success The asynchronous message was successfully scheduled to be delivered at Sun Apr 17 20:00:05 GMT+05:30 2005.
    2005-04-17 19:55:05 Success The message status set to WAIT.
    Kindly help what other configurations are required.
    Regards,
    Arpit Seth

    Hi all,
    Me too have the same problem.
    I am trying to integrate XI with OpenJms (server) using JMS adapter.
    But the error that i am getting is similar to yours:
    Error Exception caught by adapter framework: Object not found in lookup of XIJMSService.
    I am very interested to the solution.
    Thanks in advence.
    Best regards.
    Lemin
    Message was edited by: lemine ould-cheikh

Maybe you are looking for

  • How to use lab view to do slew rate experiment

    gud afternoon I have an op am p circuit built on the NI ELVIS board and I input a square wave from function generator to the circuit. I have to determine the slew rate of the op amp.In the labs, one would run the square wave over a range of frequenci

  • Using Oracle SP to get data

    Hello, We have a simple need to load all data from a master table into an object in Java. We have written a simple query in Oracle and created a SP with a Ref_Cursor to return the data like below. The underlying table has 500,000+ records. If I run t

  • IPod asks to be restored in iTunes, but isn't recognized in iTunes...

    My iPod classic 160GB isn't recognized by iTunes anymore. I started it in disk mode and reset it, but now the message appears that I need to restore my iPod in iTunes. But iTunes doesn't recognize it when I connect it to my laptop and on the display

  • Lumia 620 music volume not changing..

    I've lumia 620,sometimes the music volume is set on constant level but it is only for audio songs(downloaded from Nokia music or pc ). But if i play music from nokia music/or play videos,games,metrotube... The volume does changes except for music fro

  • Performance of DB Link VS Public Synonyms

    1) In a single database(Oracle 9.2) , I have multiple schema say a, b ,c d ,e etc.Currently we are using public synonyms to access tables of other schema.There is a plan to split the database into two or three DB and to use db links instead of public