JMS to MQ configuration

Hi ,
i have configured foreign server between weblogic jms and MQ
I am noticing the following exceptions:
<Feb 23, 2010 2:44:40 PM EST> <Warning> <JMSPool> <BEA-169808> <There was an error while making the initial connection to the JMS resource named jms/WLReplyQCF from the EJB "MsgBean" inside application "MDBEAR". The server will attempt the connection again later. The error was javax.jms.JMSException: [JMSPool:169803]JNDI lookup of the JMS connection factory jms/WLReplyQCF failed: javax.naming.NameNotFoundException: Unable to resolve 'MQReceiverQCF'. Resolved ''; remaining name 'MQReceiverQCF'>
<Feb 23, 2010 2:48:40 PM EST> <Warning> <JMSPool> <BEA-169808> <There was an error while making the initial connection to the JMS resource named jms/WLReplyQCF from the EJB "MsgBean" inside application "MDBEAR". The server will attempt the connection again later. The error was javax.jms.JMSException: [JMSPool:169803]JNDI lookup of the JMS connection factory jms/WLReplyQCF failed: javax.naming.NameNotFoundException: Unable to resolve 'MQReceiverQCF'. Resolved ''; remaining name 'MQReceiverQCF'>
The MsgBean is not looking up for 'MQReceiverQCF' , it looks up for ‘jms/WLReplyQCF’.
The error is misleading, it says JNDI lookup of the JMS connection factory jms/WLReplyQCF failed:
But on the next line it says Unable to resolve 'MQReceiverQCF'
It is confusing since we have got two configurations on that instance, the ‘MQReceiverQCF’ and ‘jms/WLReplyQCF’
Can we get rid of the other configuration, MQReceiverQCF, for now ? or can we work on a separate new 10.3 instance and just have this example application deployed on to that instance ?
Thanks in Advance :)

Hi atheek,
I have found a link which states that we specify from console
Connection
The information required to configure a connection depends on whether the selected queue connection factory was created using a Client Channel Definition Table (CCDT).
If the selected connection factory was created using a CCDT, only the following properties are displayed:
* Client channel definition table URL
* Queue manager
* SSL configuration
If the selected connection factory was not created using a CCDT, the following properties are displayed:
* Queue manager
* Transport
* Host name
* Port
* Server connection channel
http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/umj_ClientTransportProps.html
Can we manually add those properties in the bindings file which we have
Thanks,
user1122

Similar Messages

  • How can a JMS adapter be configured in BPEL to consume messages from multiple queues ?

    How can a JMS adapter be configured in BPEL to consume messages from multiple queues ?

    If you want to use JMS with AQ as datastore then there is some configuration you need to do to enable this. This is outside SOA Suite per sa, e.g. no adapter required.
    If you want to connect to the AQ direct then use the AQ adapter.
    this blog may be of some help understand the configuration
    http://biemond.blogspot.com/2008/01/oracle-jms-with-esb-and-bpel.html
    cheers
    James

  • JMS - How to configure incremental redelivery intervals for an MDB

    Hi all,
    I noticed that when message delivery in an MDB fails, the time to the next delivery attempt for the message increases with every failed delivery. The intervals are 5, 10, 20, 40 and 60 seconds. After this the interval stays at 60 seconds.
    Now I was trying to find out how to change this behavior, but did not find the appropriate configuration elements in the console or the documentation. What I found are the options to configure "Default Redelivery Delay" in the ConnectionFactory which is set to 0 and in the Queue "Redelivery Delay Override" which is set to -1.
    Both of these settings do not explain the incremental delay. Can anyone tell me how to configure this? Is that part of the MDB deployment descriptors?
    Thanks,
    Chris

    Hi Tom,
    thanks again for your answer :-) I am sorry, i forgot to mention in my initial post, that i had a look at those parameters. But according to the documentation the default values for both are 60 seconds. In my MDB i did not set any of those, so it should not start at 5 seconds like it does but at 60 seconds. Additionally this suspension, I if understood correctly, should only kick in if the JMS resource (I figure this is the queue in this case) is unavailable, which is not the case in my scenario. And as a third the suspension described there is not growing exponentially as I experienced.
    Sorry if I am just thick here, but the documentation just does not look like what I am looking for. Are there any misunderstandings on my side?
    Thanks, Chris

  • IDOC to JMS with Dynamic Configuration.

    Dear Experts,
    IDOC -> SAP PI -> JMS.
    We will receive a value in the IDOC-message, based on which the target queue is to be defined.
    1) So which property in Dynamic Configuration will help me?
    2) Will it be the normal procedure (UDF in Message Mapping and then select the ASMA attribute in receiver channel)?
    I went through: http://wiki.sdn.sap.com/wiki/display/XI/FAQ+J2EEJMS+Adapter (question 2.9 and 2.8)
    But in one thread it was mentioned that such configuration (of queue) is not possible.
    Any idea on how to proceed?
    ~Thanks.

    Hello Stefan,
    Thank you for the response.
                        -----> Company1
    IDOC -> SAP PI   -----> Company2
                        -----> Company3
    We have the above integration in place. Now without ASMA, we will have to create three different JMS Channels; one in each of the Business Service. This would mean that in future if the receivers increase, the corresponding channels have to be increased
    But now I am confused as to what the Q 2.9 in this wiki link means: http://wiki.sdn.sap.com/wiki/display/XI/FAQ+J2EEJMS+Adapter
    ~Thanks

  • JMS queue dynamic configuration

    I am trying to make a scenario, where we need to send a message to 4 different mq queues depending on a field value in the message.
    I am using the adapter specific parameter DCJMSReplyTo - the value of this parameter is set in a user defined function during message mapping.
    The receiver adaptor has following configuration:
    Use adapter specific message attributes X
    Additional parameters: JMS.Message.DynamicDestination = true
    JMS compliant: WebSphereMQ (non-JMS)
    I am using WebSphere MQ
    The routing of messages is working well - only problem is, that a MQRFH2 header is created and printed as a part of the message delivered to MQ.
    Is there any way to avoid this?

    I thought your MQ JMS CC must be JMS compliant, which means the MQRFH2 header must be present in the message. Please check
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/faq%252b%252bj2ee%252bjms%252badapter

  • JMS receiver adapter configuration error

    Hi All,
    I am facing an issue with JMS receiver adapter. My Configuration parameters for receiver adapter are as follows.
    1.Transport protocol:WebspherMQ (MQSeries) JMS provied
    2.Message porotocol:JMS 1.x
    3.Adapter Enigen: Integration Server
    4.QueueConnecation Factory Java Class:com.ibm.mq.jms.MQQueueConnectionFactory
    5.Queue Java Class:com.ibm.mq.jms.MQQueue
    6.IP Address or server name:<Host Name>
    7.Server port:1414
    8.Queue Mannager Name:TestQM
    9.channal name:Recv_Channel
    10.JMS queue:SAP_PI
    11.Transport/netwrok protocol:TCP/IP
    12.JMS compliant:WebSpherMQ(non jms)
    13.Delivery mode of message Producer:Persist JMS Messages in the JMS provider
    14.Mapping of message:Message Payload=JMS Payload
    In adapter monitor, the adapter status shows below error.
    <b>Receiver channel. Details: (No detail information set.)</b>
    I have already installed the external drivers for JMS adapter. Can someone help me if I am missing some parameter in the above configuration.
    Thanks in advance
    Regards,
    Ashish

    Hi,
    I am getting the below error in Audit Log.
    Error - Exception caught by adapter framework: The JMSSender returned no JMSTextMessage to use. Must abort send process.
    Error - Delivery of the message to the application using connection AFW failed, due to: The JMSSender returned no JMSTextMessage to use. Must abort send process..
    Can someone please help me in resolving this issue...
    Thanks in advance.
    Regards,
    Ashish

  • JMS Receiver Adapter configuration help

    Hi Experts,
    In our scenario, we need to integrate MQ series with SAP PI, where in we are using JMS Sender and Receiver adapters to put and get the mssg from correponding IBM MQ queues.
    Using Sender JMS Adapter we are consuming a txt mssg by specifying corresponding module configuration parameters, which is for converting into a XML mssg.
    The issue is with JMS Receiver adapter, Inorder to get an XML mssg apart from standard/default entries ... do we need to maintain any module configuration parameters?
    thnx

    Hi RajSekhar,
    We have maintained the below modules in the respective comm channels:
    Sender JMS channel:
    ConvertJMSMessageToBinary
    ConvertBinaryToXMBMessage
    MessageTransformBean
    CallSapAdapter
    Note: Maintained the necessary message transform bean module key parameters in the module configuration
    Receiver JMS Channel:
    ConvertMessageToBinary
    SendBinarytoXIJMSService
    Did not alter the by default modules in the Receiver JMS comm channel.
    Am i missing any other configuration.
    Thnx

  • JMS Sender adapter configuration

    Hi,
    I have a problem in configuring my JMS sender adapter. My source structure is in the form of a FIXED lenght file.
    Its structure is as follows:
    Rec ID                       Required                 Loop repeat 
    SHC                               R                              1
    SCO                               R                              1
    SAM                               O                              n
    SCD                               R                              1
    SCP                               O                              n
    LTX                                 O                              n
    SCC                                O                             n
    SUM                               R                              1
    where R indicates Required record type
              O indicates Optional record type
    1 indicates the record type occurs only ONCE in a record
    n indicates the record may occur 0 to unbounded times in the record.
    This is how I have defined my record set structure in the Module tab of the JMS adapter configuration.
    SHC,1,SCO,1,SAM,,SCD,,SCP,,LTX,,SCC,*,SUM,1
    The problem with this configuration is that the adapter expects the input file in this format
    SHC
    SCO
    SAM
    SAM.
    SAM
    SAM
    SCD
    SCD
    SCD
    SCD
    SCP
    SCP
    SCP
    SCP
    LTX
    LTX
    LTX
    LTX
    SCC
    SCC
    SCC
    SCC
    SUM
    Whereas my input file format has the following structure
    SHC
    SCO
    SAM
    <u>SAM</u>
    SCD
    SCP
    SCC
    SCD
    SCP
    <u>SCP</u>SCC
    SCC
    SCD
    SCP
    SCC
    <u>SCC</u>
    Could please tell me how I can handle this in my adapter config. I have gone through the following How To guide "How to ...Use the Content Conversion Module within the XI 3.0 J2EE JMS Adapter" but dont find how I can do this.
    Cheers.

    HI,
    Please see the below content conversion parameters
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f02d12a7-0201-0010-5780-8bfc7d12f891
    Regards
    Chilla

  • JMS Listner: Test Configuration Successful but not listening the messages

    Hi,
    I have configured the JMS Listner adapter in IDM 7.0 with Sun MQ 3.5.
    My test configuration is susscessful. I have some messages on Sun MQ. I have one wotkflow associated with this adapter. I have mapped it via process rule of Edit Sync Policy. Now I want to read the messages from MQ and want to retrive in my workflow. But when I starts the scynchronization nothing comes to my workflow. The log is showing as
    2007-08-16T19:05:38.354+0530: SARunner: initialized adapter
    2007-08-16T19:05:38.404+0530: Initializing JMS Listener adapter.
    2007-08-16T19:05:38.414+0530: Setting up JMS: local_transaction:true ackMode:1
    2007-08-16T19:05:38.414+0530: Setting up JMS: user:admin password:<secret length=5/>
    2007-08-16T19:05:38.414+0530: Setting up JMS: destinationType=QUEUE connFactoryName=MyQueueConnectionFactory destinationName=MyQueue messageSelector=null
    2007-08-16T19:05:38.424+0530: Connection factory JNDI lookup returned an object of type com.sun.messaging.QueueConnectionFactory
    2007-08-16T19:05:38.504+0530: JMS connection and consumer successfully created.
    2007-08-16T19:05:38.514+0530: Connection JMS Info
    PROVIDER NAME = Sun Java(tm) System Message Queue
    PROVIDER VERSION = 3.5
    PROVIDER MAJOR = 3
    PROVIDER MINOR = 6
    JMS VERSION = 1.1
    JMS MAJOR = 1
    JMS MINOR = 1
    CLIENT_ID = null
    2007-08-16T19:05:38.524+0530: Done initializing JMS Listener adapter.
    2007-08-16T19:05:38.534+0530: SARunner: loop 0
    2007-08-16T19:05:38.955+0530: Started, paused until Thu Aug 16 19:05:38 GMT+05:30 2007
    2007-08-16T19:05:44.123+0530: Pause completed
    2007-08-16T19:05:44.333+0530: Polling
    2007-08-16T19:05:45.334+0530: Poll processed 0 messages.
    2007-08-16T19:05:45.334+0530: Poll complete.
    I am new with this adapter. Please anybody tell me what should I have to configure so that I would be able to read the messages from my JMS Listner Active Sync adapter?
    Thanks in Advance

    So, in order to get the message you have to map it. That is done be specifying the "Message Mapping", one of the Resource Parameters for JMS Listener. This can be done by specifying a rule that returns a <map> with the attribute. This would be, in my opinion, the preferred approach for text messages. For Map massages, the rule approach can't be used unless you use the jms java libraries, getString etc.
    You can also implement the com.waveset.adapter.jms.JmsMessageMapper if java is your cup of tea, and put that in the message mapping text box. Password synch uses a java class to do the mapping.
    To map the attribute called accId on the right side, you would use something like this:
    <Rule name='JMS Message Mapper Rule'>
        <block>
            <map>
                <s>accId</s>
                <ref>message</ref>
            </map>
        </block>The Message Mapping text box would in this case look like this:
    "rule:JMS Message Mapper Rule"
    The <ref>message</ref> part contains the JMS text message. In this case the message consist of only one word. In a real-life situation, you would send a bunch of information, perhaps using split to separate the data.

  • JMS in OSB configuration

    Hello,
    My question is how to configure JMS as a Business Service in OSB?
    Here is scenario I've made:
    1) Created JMS Server
    Name: MyJMSServer
    Persistent Store: None
    Target: xbusServer because I'm using WLS provided with OSB
    2) Created JMS Module
    Name: MyJMSModule
    Targets: xbusServer
    3) In MyJMSModule added ConnectionFactory:
    Name: MyConnectionFactory
    JNDI Name: MyConnectionFactory
    Target: xbusServer
    4) In MyJMSModule also added Queue
    Name: MyQueueIn
    JNDI Name: MyQueueIn
    Subdeployments: Created new named MyQueueIn
    Targets: MyJMSServer
    So... in Business Service configuration I choose:
    Protocol: jms
    Endpoint URI: jms://localhost:7001/MyConnectionFactory/MyQueueIn
    Message Type is text
    Here is configuration screen: http://img684.imageshack.us/f/jms.png/
    When I try to test it typing plain Hello I receive error:
    *The invocation resulted in an error: [JMSPool:169803]JNDI lookup of the JMS connection factory MyConnectionFactory failed: javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://localhost:7001: Destination unreachable; nested exception is:*
    *java.net.ConnectException: Connection refused: connect; No available router to destination].*
    What's going on?
    Best regards,
    MK

    Hi,
    I have configured JMS module for connection facotyr and destination with
    LocalJNDI :'MyConnectionFactory'
    JNDI : Target jndi name (JNDI name)
    Destination details
    LocalJNDI :'MyQueueIn'
    JNDI : Target jndi name (queue location where the queue is hosted),
    When i configured the Endpoint URI in business service as :
    jms://10.12.153.186:8011/MyConnectionFactory/MyQueueIn
    ####<09/07/2010 11:21:30 AM EST> <Info> <Monitoring> <whkxsosb01.espdev.aurdev.national.com.au> <osb_server1> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <2a44f01b7e246a2f:-128e53a7:129b07a7d4f:-7ff4-0000000000001071> <1278638490088> <BEA-000000> <New Metadata version is 6879604590431809862>
    ####<09/07/2010 11:21:38 AM EST> <Warning> <WliSbTransports> <whkxsosb01.espdev.aurdev.national.com.au> <osb_server1> <[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <2a44f01b7e246a2f:-2cbcf7e0:129b0769a91:-7fff-0000000000000a35> <1278638498347> <BEA-381508> <Failed to check whether connection factory MyConnectionFactory supports XA. Will assume it does not: javax.naming.NameNotFoundException: Unable to resolve 'MyConnectionFactory'. Resolved ''; remaining name 'MyConnectionFactory'
    javax.naming.NameNotFoundException: Unable to resolve 'MyConnectionFactory'. Resolved ''; remaining name 'MyConnectionFactory'
         at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)
         at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:252)
         at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:182)
         at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:206)
         at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:254)
         at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:393)
         at javax.naming.InitialContext.lookup(InitialContext.java:392)
         at com.bea.wli.sb.transports.TransportsUtil$1.run(TransportsUtil.java:73)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at weblogic.security.Security.runAs(Security.java:61)
         at com.bea.wli.sb.transports.TransportsUtil.jndiLookup(TransportsUtil.java:89)
         at com.bea.wli.sb.transports.jms.JmsUtil.jndiLookup(JmsUtil.java:846)
         at com.bea.wli.sb.transports.jms.JmsUtil.getConnectionFactory(JmsUtil.java:540)
         at com.bea.wli.sb.transports.jms.JmsUtil.isXA(JmsUtil.java:513)
         at com.bea.wli.sb.transports.jms.JmsEndPoint.isTransactional(JmsEndPoint.java:345)
         at com.bea.wli.sb.transports.LoadBalanceFailoverListener.sendMessageAsync(LoadBalanceFailoverListener.java:141)
         at com.bea.wli.sb.transports.LoadBalanceFailoverListener.sendMessageToServiceAsync(LoadBalanceFailoverListener.java:603)
         at com.bea.wli.sb.transports.LoadBalanceFailoverListener.sendMessageToService(LoadBalanceFailoverListener.java:538)
         at com.bea.wli.sb.transports.TransportManagerImpl.sendMessageToService(TransportManagerImpl.java:558)
         at com.bea.wli.sb.transports.TransportManagerImpl.sendMessageAsync(TransportManagerImpl.java:426)
         at com.bea.wli.sb.test.service.ServiceMessageSender.send0(ServiceMessageSender.java:377)
         at com.bea.wli.sb.test.service.ServiceMessageSender.access$000(ServiceMessageSender.java:76)
         at com.bea.wli.sb.test.service.ServiceMessageSender$1.run(ServiceMessageSender.java:134)
         at com.bea.wli.sb.test.service.ServiceMessageSender$1.run(ServiceMessageSender.java:132)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at com.bea.wli.sb.security.WLSSecurityContextService.runAs(WLSSecurityContextService.java:55)
         at com.bea.wli.sb.test.service.ServiceMessageSender.send(ServiceMessageSender.java:137)
         at com.bea.wli.sb.test.service.ServiceProcessor.invoke(ServiceProcessor.java:454)
         at com.bea.wli.sb.test.TestServiceImpl.invoke(TestServiceImpl.java:172)
         at com.bea.wli.sb.test.client.ejb.TestServiceEJBBean.invoke(TestServiceEJBBean.java:167)
         at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl.invoke(TestService_sqr59p_EOImpl.java:353)
         at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
    Can some one help me on how to resolve the issue?
    Thanks in advance

  • JMS Foregin server configuration with two Weblogic 8.1 AS

    Hi,
    I have two Weblogic8.1 AS. Box 1 is configured with JMS connection factory and Topic. MDB is deployed on Box 2, which is configured to listen to Box1 JMS Topic. I am running session bean which is publishing JMS message to the Topic on Box1. Also, I have configured JMS foreign Server on Box2 pointing to Box1 connection factory and Topic.
    MDB throws error "Destination not found", while deploying. I read somewhere in the net, that We need Weblogic with Clustering licence for configuring Foreign JMS Server.
    Pls. help me.
    Regards
    Anand Bobade

    hi... can you please send me the java code for messaging part ...... i want to know how you are sending
    message from server and it is listened at different server?
    I am also in same condition....I have configured JMS foreign server on box 1 .....on box2 my MDB is listening....
    My problem is how do i send a message to a foreign queue which is inside JMS Foreign Server..... I am not able to give any JNDI name to this server... so please send me the code from which you are sending the Message.
    Thanks in advance

  • Doubts in JMS Sender adapter configuration (SonicMQ JMS Provider)

    Hi All,
    I am doing a TIBCO--> XI integration using JMS sender adapter. Adapter status is as follows..
    <b>"Sender channel. Details: (No detail information set.)"</b>.
    XML Msg in TIBCO-ems queue which JMS adapter access is as follows.....
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_Studdetails xmlns:ns0="http://abc.com/xi101/XSLTmap">
       <Records>
          <student_ID>
             <fname>abc</fname>
             <lname>efg</lname>
             <DOB>11/09/1980</DOB>
             <marks>
                <science>90</science>
                <maths>78</maths>
                <lang>80</lang>
             </marks>
          </student_ID>
       </Records>
    </ns0:MT_Studdetails>
    <u>My Queries...</u>
    what will be the Msg selector entry for my JMS sender Adapter? Is it MT_Studdetails???
    My sender adapter is green in RWB Adapter Monitor, but I am not able see my msg in SXMB_MONI. why it is so??
    regards,
    Raks

    Hi,
    Did you follow the how-to guide available at SAP Marketplace to deploy the JMS Adapter. If so, i believe the information given in that guide is incomplete.
    Once you have installed the JMS Driver, you must deploy the Java libraries on the J2EE server so that the JMS adapter can access the required Java classes at runtime.
    If you use MQSeries 53x.xxx, you must enter the following JAR files in aii_af_jmsproviderlib.sda.
    com.ibm.mq.jar
    com.ibm.mqbind.jar
    com.ibm.mqjms.jar
    connector.jar (use the JAR file from the J2EE client directory)
    and if ur question is, "Where do I get the Java Library from "
    The required Java libraries are product-specific and can be obtained from either the product vendor or other providers.
    And i guess the 4 jar files should be enough. Just remember to add these 4 jar files to 'provider.xml' file inbetween the <jars>..</jars> tag.
    Follow the instructions as per the guide,
    https://websmp205.sap-ag.de/~sapdownload/011000358700003994312004E/HowTo_ConfigExtAdapters.pdf
    But just remember to have all the 4 jar files in aii_af_jmsproviderlib.sda
    Regards,
    Abhy

  • JMS Web Service Configuration

    Hi folks,
    I'm trying to set up a JMS web service on a WebLogic 7.0 server.
    I want this web service to listen for messages on a queue on
    another server running WebLogic 6.1 sp2. Here's what I've done:
    Created web service using WebLogic Workshop modeled after the
    workshop sample SimpleJMS.jws. A file Email.jws contains the
    following code snippet:
    package datatel.jms.email;
    import weblogic.jws.control.JwsContext;
    import EmailControl;
    import javax.jms.Message;
    public class Email
    // Public variables...
    public String m_Message = "default email response";
    public EmailJMS emailJMS = null;
    // Protected variables...
    protected String jmsURL = "http://predict.datatel-info.com:7250";
    // Private variables...
    private String name;
    * @jws:control
    private EmailControl Email_Ctrl;
    /** @jws:context */
    JwsContext context;
    * Initialize the JMS connection to the predict server...
    public Email()
    System.out.println("\nEntering Email.jws constructor...");
    // Initialize JMS on the Predict server...
    emailJMS = new EmailJMS(jmsURL);
    System.out.println("Exiting Email.jws constructor...");
    Notice that the Email() constructor code above references my object EmailJMS(jmsURL).
    This object intializes the JMS connection to the other WebLogic 6.1 server. Here's
    the JMS initialization code in my web service:
    public EmailJMS(String jmsURL) {
    System.out.println("\nEntering EmailJMS constructor with URL..."
    + jmsURL);
    Environment environ = new Environment();
    environ.setProviderUrl(jmsURL);
    try {
    ctx = environ.getInitialContext();
    System.out.println("Got new InitialContext..." + ctx.PROVIDER_URL
    + "\nTime is: " + new Date().toString());
    qconFactory = (QueueConnectionFactory) ctx.lookup(JMS_FACTORY);
    qcon = qconFactory.createQueueConnection();
    qsession = (WLQueueSession) qcon.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
    /** USER receive queue and listener
    queue = (Queue) ctx.lookup("USER_TX_Q");
    user_recvr = qsession.createReceiver(queue);
    user_recvr.setMessageListener(this);
    textMsg = qsession.createTextMessage();
    objMsg = qsession.createObjectMessage();
    isConnected = true;
    qcon.start();
    // --- more code follows ...
    The JMS connection is successfully made. When another JMS program sends a message
    to the USER_TX_Q, the web service receives the message via the onMessage handler
    in the EmailJMS class.
    The problem arises when I try to invoke my web service from the WebLogic Workshop
    browser Test Form. On invocation on my web service, the following exception occurs:
    start
    = 0.45-->
    name = Harmon .CONVPHASE = .START .CONVERSATIONID = 1023816206621
    Exception
    Submitted at Tue Jun 11 10:23:28 MST 2002
    start
    = 0.45-->
    javax.ejb.CreateException: Exception on Create: java.io.NotSerializableException:
    weblogic.jndi.internal.ServerNamingNode_WLStub at weblogic.knex.bean.WebProcessBean.ejbCreate(WebProcessBean.java:876)
    at weblogic.knex.bean.WebProcessBean_dp0iqg_Impl.ejbCreate(WebProcessBean_dp0iqg_Impl.java:172)
    at java.lang.reflect.Method.invoke(Native Method) at weblogic.ejb20.manager.ExclusiveEntityManager.create(ExclusiveEntityManager.java:731)
    at weblogic.ejb20.manager.ExclusiveEntityManager.remoteCreate(ExclusiveEntityManager.java:702)
    at weblogic.ejb20.internal.EntityEJBHome.create(EntityEJBHome.java:250) at
    weblogic.knex.bean.WebProcessBean_dp0iqg_HomeImpl.create(WebProcessBean_dp0iqg_HomeImpl.java:74)
    at weblogic.knex.bean.WebDispatcherBean.invoke(WebDispatcherBean.java:61)
    at weblogic.knex.bean.RemoteDispatcherBean.invoke(RemoteDispatcherBean.java:105)
    at weblogic.knex.bean.RemoteDispatcherBean_1a3xc3_EOImpl.invoke(RemoteDispatcherBean_1a3xc3_EOImpl.java:46)
    at weblogic.knex.bean.RemoteDispatcherBean_1a3xc3_EOImpl_WLSkel.invoke(Unknown
    Source) at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:159)
    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:262)
    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:229)
    at weblogic.knex.bean.RemoteDispatcherBean_1a3xc3_EOImpl_WLStub.invoke(Unknown
    Source) at weblogic.knex.dispatcher.Dispatcher.remoteDispatch(Dispatcher.java:96)
    at weblogic.knex.dispatcher.Dispatcher.dispatch(Dispatcher.java:73) at weblogic.knex.dispatcher.HttpServer.exploreExec(HttpServer.java:464)
    at weblogic.knex.dispatcher.HttpServer.doGet(HttpServer.java:370) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:945)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:332)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5352)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:718)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3032)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2466)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
    Service Response
    When I comment out the instantiation of my EmailJMS(jmsURL) object, the web service
    initializes just fine. However, I don't have the JMS connection to my other server.
    What is this stack trace telling me? How do I receive unsolicited JMS messages in
    a web service?
    Thanks,
    Bob Gontarz

    Hi Bob,
    I have tested the same functionality as mentioned by you, and could not see
    any errors, while testing using the Test Form. The JMS queue where I was
    sending messages is on a 6.1 sp2 server.
    Please find attached the two JWS files, which I used to simulate the
    condition, one used for dispatching the messages and the other for receiving
    the messages.
    Please do let me know if your case is any different from the one I have
    tested.
    I look forward to your response.
    Regards,
    Anurag
    Workshop Support
    "Bob Gontarz" <[email protected]> wrote in message
    news:[email protected]...
    >
    Hi folks,
    I'm trying to set up a JMS web service on a WebLogic 7.0 server.
    I want this web service to listen for messages on a queue on
    another server running WebLogic 6.1 sp2. Here's what I've done:
    Created web service using WebLogic Workshop modeled after the
    workshop sample SimpleJMS.jws. A file Email.jws contains the
    following code snippet:
    package datatel.jms.email;
    import weblogic.jws.control.JwsContext;
    import EmailControl;
    import javax.jms.Message;
    public class Email
    // Public variables...
    public String m_Message = "default email response";
    public EmailJMS emailJMS = null;
    // Protected variables...
    protected String jmsURL = "http://predict.datatel-info.com:7250";
    // Private variables...
    private String name;
    * @jws:control
    private EmailControl Email_Ctrl;
    /** @jws:context */
    JwsContext context;
    * Initialize the JMS connection to the predict server...
    public Email()
    System.out.println("\nEntering Email.jws constructor...");
    // Initialize JMS on the Predict server...
    emailJMS = new EmailJMS(jmsURL);
    System.out.println("Exiting Email.jws constructor...");
    Notice that the Email() constructor code above references my objectEmailJMS(jmsURL).
    This object intializes the JMS connection to the other WebLogic 6.1server. Here's
    the JMS initialization code in my web service:
    public EmailJMS(String jmsURL) {
    System.out.println("\nEntering EmailJMS constructor with URL..."
    + jmsURL);
    Environment environ = new Environment();
    environ.setProviderUrl(jmsURL);
    try {
    ctx = environ.getInitialContext();
    System.out.println("Got new InitialContext..." + ctx.PROVIDER_URL
    + "\nTime is: " + new Date().toString());
    qconFactory = (QueueConnectionFactory) ctx.lookup(JMS_FACTORY);
    qcon = qconFactory.createQueueConnection();
    qsession = (WLQueueSession) qcon.createQueueSession(false,Session.AUTO_ACKNOWLEDGE);
    >
    /** USER receive queue and listener
    queue = (Queue) ctx.lookup("USER_TX_Q");
    user_recvr = qsession.createReceiver(queue);
    user_recvr.setMessageListener(this);
    textMsg = qsession.createTextMessage();
    objMsg = qsession.createObjectMessage();
    isConnected = true;
    qcon.start();
    // --- more code follows ...
    The JMS connection is successfully made. When another JMS program sends amessage
    to the USER_TX_Q, the web service receives the message via the onMessagehandler
    in the EmailJMS class.
    The problem arises when I try to invoke my web service from the WebLogicWorkshop
    browser Test Form. On invocation on my web service, the followingexception occurs:
    >
    start
    = 0.45-->
    name = Harmon .CONVPHASE = .START .CONVERSATIONID = 1023816206621
    Exception
    Submitted at Tue Jun 11 10:23:28 MST 2002
    start
    = 0.45-->
    javax.ejb.CreateException: Exception on Create:java.io.NotSerializableException:
    weblogic.jndi.internal.ServerNamingNode_WLStub atweblogic.knex.bean.WebProcessBean.ejbCreate(WebProcessBean.java:876)
    atweblogic.knex.bean.WebProcessBean_dp0iqg_Impl.ejbCreate(WebProcessBean_dp0iq
    g_Impl.java:172)
    at java.lang.reflect.Method.invoke(Native Method) atweblogic.ejb20.manager.ExclusiveEntityManager.create(ExclusiveEntityManager.
    java:731)
    atweblogic.ejb20.manager.ExclusiveEntityManager.remoteCreate(ExclusiveEntityMa
    nager.java:702)
    atweblogic.ejb20.internal.EntityEJBHome.create(EntityEJBHome.java:250) at
    >
    weblogic.knex.bean.WebProcessBean_dp0iqg_HomeImpl.create(WebProcessBean_dp0i
    qg_HomeImpl.java:74)
    atweblogic.knex.bean.WebDispatcherBean.invoke(WebDispatcherBean.java:61)
    atweblogic.knex.bean.RemoteDispatcherBean.invoke(RemoteDispatcherBean.java:105
    atweblogic.knex.bean.RemoteDispatcherBean_1a3xc3_EOImpl.invoke(RemoteDispatche
    rBean_1a3xc3_EOImpl.java:46)
    atweblogic.knex.bean.RemoteDispatcherBean_1a3xc3_EOImpl_WLSkel.invoke(Unknown
    Source) atweblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:159)
    atweblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
    :262)
    atweblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
    :229)
    atweblogic.knex.bean.RemoteDispatcherBean_1a3xc3_EOImpl_WLStub.invoke(Unknown
    Source) atweblogic.knex.dispatcher.Dispatcher.remoteDispatch(Dispatcher.java:96)
    at weblogic.knex.dispatcher.Dispatcher.dispatch(Dispatcher.java:73)at weblogic.knex.dispatcher.HttpServer.exploreExec(HttpServer.java:464)
    at weblogic.knex.dispatcher.HttpServer.doGet(HttpServer.java:370)at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) atweblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
    tStubImpl.java:945)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :332)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :242)
    atweblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
    ebAppServletContext.java:5352)
    atweblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
    r.java:718)
    atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:3032)
    atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2466)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
    Service Response
    When I comment out the instantiation of my EmailJMS(jmsURL) object, theweb service
    initializes just fine. However, I don't have the JMS connection to myother server.
    What is this stack trace telling me? How do I receive unsolicited JMSmessages in
    a web service?
    Thanks,
    Bob Gontarz
    [SendMessages.jws]
    [HelloWorld.jws]

  • JMS error while configuring SLD

    HI folks,
    I'm, encountering a tricky problem while connecting the SLD to the SolMan - running on the same host.
    During making all neccessary steps it was no longer possible to log on to the
    J2ee-Engine by /nwa or whatever application.
    It just shows User locked or ONKNOWN ERRR
    We unlocked the J2ee_admin again (strage, because the cause in Configtool was "locked after 0 unsuccessfull logins" weired! )
    Then unset again the Superadmin, restartet the server... and again:
    Application cannot be started.
      Details:   com.sap.engine.services.deploy.container.ExceptionInfo: JMS error.
    Back to Superadmin Mode, Unlocking J2ee_admin, starting application manually in this mode, it comes up - I can see a loginscreen again but of course cannot login while superadmin mode is active...
    After restarting cluster... same effect.
    It seems, that the JMS cannot start due to locked User J2ee_admin and afterwards no other application is able to run.
    Does anybody know, why this User J2ee_admin might be locked just before the JMS Service is started ?
    Many many thanks in advance for any hint. Struggling since 2 days with this issue.
    Nicolas

    Problem is solved... Logging in to Abap Part in UME-Linked CLient 001 and unlocking j2ee_admin did what VA was not able to...

  • JMS Receiver Module configuration

    my xml is like this
       <row>
          --<Header>
    <key>Header</key>
    <name>1111111</name>
          --</Header>
          --<Body>
    <key>Body</key>
    <name>2222222</name>
          --</Body>
          --<Body>
    <key>Body</key>
    <name>3333333</name>
          --</Body>
          --<Foot>
    <key>Foot</key>
    <name>444444</name>
          </Foot>
       </row>
    and i want to change it into :
    Header+1111111
    Body-222222
    Body-333333
    Foot*444444
    and my module config is like this:<b>
    Transform.Class = sap.aii.messaging.adapter.Conversion
    Transform.ContentType = text/plain;charset=utf-8
    xml.conversionType = SimpleXML2Plain
    xml.addHeaderLine = 0
    xml.recordsetStructure = Header,Body,Foot
    xml.fieldSeparator    = 'nl'
    xml.Body.fieldSeparator = -
    xml.Foot.fieldSeparator = *
    xml.Header.fieldSeparator = +
    </b>
    But the result i get just:
    <b>
    Header
    Body
    Body
    Foot
    </b>
    Somebody help me please
    Thanks in advance

    Hi,
    Go thro this guide:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f02d12a7-0201-0010-5780-8bfc7d12f891
    And i think that there should be a element as a root to all these. Just try with this xml structure.
    <resultset>
    -<row>
    --<Header>
    <key>Header</key>
    <name>1111111</name>
    --</Header>
    -</row>
    -<row>
    --<Body>
    <key>Body</key>
    <name>2222222</name>
    --</Body>
    -</row>
    -<row>
    --<Body>
    <key>Body</key>
    <name>3333333</name>
    --</Body>
    -</row>
    -<row>
    --<Foot>
    <key>Foot</key>
    <name>444444</name>
    --</Foot>
    -</row>
    <resultset>
    Regards,
    P.Venkat
    Message was edited by:
            Venkataramanan

Maybe you are looking for

  • Error while testing proxy

    hi experts ,                    i have a problem when testing the proxy which i have created. when iam giving the payload manually and testing, the data from only one node under a parent node is updating in to the tables. the data from the other node

  • SCHEDULE MANAGER FOR PERIOD END CLOSING

    Hi experts I need to configure Schedule manager for period end process. can any one have configuration and some theory part documentation. please send : [email protected] great help Thanks in advance

  • Cannot Create a New Account in Sync

    I had a failed attempt to set up sync a couple of months ago, probably in FF 3.xx. I don't know if it actually created an account or not. I somehow got a sync key (I think) but Mozilla won't recognize my user name. I decided to start over, but Sync w

  • How do I execute a returned sql string from a function on the command line?

    Hi, I have written a pl/sql function that will dynamically create a sql select statement. I need to be able to execute this statement from the command line. e.g from sqlplus Say my function is called "sql_create" and it returns "select * from custome

  • How too save multi page reports as .tif?

    It seems like I had this one figured out at one time but now I don't see it. How do I save a multi page report, (the plots) as a .tif file?