Tom Help needed in JMS Clustering!!!!!!!!!

Hi Tom,
          I have a typical problem with JMS Clustering,i amtrying to implement an automatic failover by registering the connection and the session with the exception listener and then inside onexception method i have reconnect logic.
          My application has an applet and the downloading page directly loads the MyApplet jar and weblogic thin client jars and then when i switch of the server using in CTRl-C in windows environment with a single server onException gets fired.Now for clustering we have moved to enterprise archive setup(.ear) and my applet jar and thinclient jars are bundled with in the war(web archive) and the war is inside the ear.In this scenario when i shut down one of the managed servers the onexception does not get invoked and then i shut down both the servers then also its not getting invoked, plz help me i dont understand what is wrong with this,when the servers are on onMessage works fine and my real time blotters also get updated.
          My clustering set up has 2 managed servers,2 JMS servers targeted to each managed server and a distributed topic.
          In a noraml scenario when the servers are running my onMessage gets called, but when i shutdown the servers the onException does not get called from the EAR.
          Pls help me on how to proceed.i cant put the thick weblogic.jar as down loading from my applet cannot handle it.
          Regards,
          Suresh

Sorry Suresh -
          I don't know what is going wrong - my suspicion is that you've found a bug in WebLogic thin-client IIOP.
          Since the problem started when you moved to SP5, you can try continuing to use the SP4 jar on the client.
          And sometimes this type of problem is with with Sun JDK libraries (which supplies most of the thin client IIOP stack), so there's a small chance switching to a 1.5JVM for the client would work (I don't know if BEA supports this).
          You might also try posting to the rmi-iiop newsgroup. (Andy just loves it when I push problems off to him! Well maybe not.)
          Tom

Similar Messages

  • Need Help on Weblogic JMS Clustering

    Hi All
    Our code is moving to a clustered environment (2 OSB managed servers), in order to support JMS clustering i have already done the below, I just need your advice whether i have done it correctly or not. Please advise
    1) Created 2 JMS Servers, targeted one JMS Server on OSB MS 1 and second JMS Server on OSB MS 2.
    2) Created distributed destinations (Queues and Topics) subdeployment on both JMS Servers.
    3) Targeted all connection factories to OSB Clsuter. Load Balancing and Server Affinity is enabled by default. Should server affinity be disabled for proper load balancing to occur? Please advise on this
    3) JMS Proxy and business services use cluster URL's now (jms://serverA:7001,serverB:7001/CF/QueueOrTopic). I Hope its correct? Please advise
    Is there any other setting that i need to do or i have missed out? Please let us know.
    Also, one more thing we are calling SOA Composites via SOA-Direct protocol in OSB. The SOA Servers owned by some other team will also be load balanced. Since this is a t3 call, HTTP load balancer would not come into picture here, right? How do i load balance this outgoing call from business service (2 options bellow)
    1) t3://server1:8001,server2:8001/default/ABCProduct!1.0/ABCService_DirectBinding
    2) Specifying two individual endpoints and selecting load balancing algorithm as Round Robin
    t3://server1:8001/default/ABCProduct!1.0/ABCService_DirectBinding
    t3://server2:8001/default/ABCProduct!1.0/ABCService_DirectBinding
    what is the diff between the above 2 options? Also, if one of the SOA nodes go down, than which option would automatically redirect to other node. We have to ensure this as the HTTP load balancer ensures this thing. Thanks
    Edited by: Amit Sachdev on Jun 13, 2012 12:16 AM

    Hi Amit,
    The first part looks correct.
    Create two jms servers (jmsosb1, jmsobs2)
    Create data source and jndi location
    create foreign connection factory under JmsModule, create destination and connection factory.
    the cluster business service end point will be
    jms:///<<ForeignConnectionFactory Name>>/<<destination local jndi name>>
    The second part SOA endpoint will be in cluster environment as follows:
    http://<< cluster name>>/soa-infra/services/default/<<composite name>>/<<servicename>>
    example:
    http://test.ch/soa-infra/services/default/cm.conn.bp.test/test_client_ep
    or if you want to invoke two nodes directly you use below url as well.
    http://<<SOAservername1>>:<<port>>,<<SOAservername2>>:<<port>>//soa-infra/services/default/<<composite name>>/<<servicename>>
    Regards,
    Padmanabham

  • Tom !!! Help needed in JMS Topic Lookup Cluster DOMAIN

    Hi Tom,
              We have a clustered domain with 2 managed servers and our application is an Applet-Servlet based application.We user JMS Topic for some of online blotters.
              And on looking up we get the following error,
              weblogic.jms.common.JMSException: <055053> <java.rmi.RemoteException: CORBA INTERNAL 1398079712 Maybe; nested exception is: org.omg.CORBA.INTERNAL: vmcid: SUN minor code: 224 completed: Maybe >      
              weblogic.jms.client.JMSConnectionFactory.setupJMSConnection(JMSConnectionFactory.java:272)at weblogic.jms.client.JMSConnectionFactory.createConnectionInternal(JMSConnectionFactory.java:299)at weblogic.jms.client.JMSConnectionFactory.createTopicConnection(JMSConnectionFactory.java:198)at
              Pls note while looking up for the Initial context since it is a cluster environment, we look up using comma separated Ipaddresses.
              Pls note, we use JRE 1.4.2_13 for the applet to launch,.
              Earlier also for JMS failover i sought your help and your suggestions have really invaluable.
              Request you to provide me some more suggestions on this issue as well.
              Regards
              Suresh

    The exception is thrown by the JVM's built in Sun IIOP (CORBA) libraries. I don't know the cause, but a google search for "SUN minor code: 224 completed: Maybe" yields a single hit that might help. See the July 23/24 posts for "Re: iiop: error with bidirectional connections" in the weblogic rmi-iiop newsgroup:
              http://forums.bea.com/thread.jspa?threadID=300001651
              Tom

  • Tom Help needed again!!!!!!!!JMS Failure Applet

    Hi Tom,
              In my application applet is basically the client and it basically does the following
              1)Creates an initial context with the provider url
              2)Looks up for the Topic connection factory
              3)Then using the TopicConnection Factory creates the Topic
              Now the problem is in some of the PC's it gives the following error. at the first step while creating the initial context,pls note that the provider url is correct and we use http protocol with http tunneling enabled.
              javax.naming.NamingException: Couldn't connect to any host [Root exception is org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 201  completed: No]
              at weblogic.corba.j2ee.naming.Utils.wrapNamingException(Utils.java:81)
              When i placed a .java.policy file with grant {
              permission java.security.AllPermission;
              }; in the c:\documents.settings\<username> folder.After doing this it seems to work in some of machines where the above mentioned error is
              occurring.Pls note that my applet is a signed one, and the network does not have any firewall
              My query is do we have to place this .java.policy file in every client machine and why is that it is not working in all the machine where the above mentioned error is coming.
              Pls help me in solving this problem.
              Pls also note that we have admin rights also on all these machines.

    I don't know the answer. The best I can think of is to read the JMS applet white-paper if you haven't already:
              http://dev2dev.bea.com/pub/a/2004/05/WLS_81_jms_applets.html
              Tom

  • Help needed on JMS queues

    I am using Soa Suite 10.1.35 and trying to make a ESB integration work.
    The requirement is I have to de-queue some data from a JMS queue and invoke a Oracle Pl/SQL Api(DB adapter) using the data in an ESB project.
    I want it part of a single transaction, i.e. if the call to oracle API(db adapter ) fails( say db is down or api is invalid), i want the queue de-queue transaction to be rolled back as well.
    I have made the routing service as synchronous. I have marked istransacted ="true" connection factory in oc4j-ra.xml file and auto_commit =>false for the Queue table, queue creation.
    Still if the DB transaction fails the queue is not rolled back.
    Any help or pointers will be greatly appreciated.
    Please let me know if you require any information.
    Regards,
    Punit

    I tried compling servlet, but it is raising error
    that coul not find package javax.servletWhat I did not mention... you need to add those JARs in the Classpath explicitly. You will find them in %TOMCAT_HOME%\common\lib. You atleast need to add servlet-api.jar to your Classpath. :)

  • Help Needed in JMS Provider

    Hi,
       In a document for JMS Connector it is given as we need to register the JMSConnectionFactory using Non-JNDI Provider, if our JMS Provider does not provide a naming system.
    Does WebSphere MQ(non JMS) provides a naming system? If not should i register it using Non-JNDI procedure? When i register, its asking me to fill the Object Factory class and JMS Factory class? I am not able to find out the class implementing the javax.jms.QueueConnectionFactory and javax.naming.spi.objectFactory  interface.
    Please help me out.
    Regards
    Rahul

    Thanks Amol. Right now we are on SP9 and we are facing the error
          Error: javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for '<my_jms_host>:<my_jms_qm>'
    at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironment.java:434)
    at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:998)
    at com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnection.java:707)
    at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:206)
    at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:76)
    at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(MQQueueConnectionFactory.java:143)
    at com.sap.aii.messaging.adapter.ModuleTransport2JMS.init(ModuleTransport2JMS.java:343)
    at com.sap.aii.messaging.adapter.ModuleHandlerImpl.run(ModuleHandlerImpl.java:555)
    at java.lang.Thread.run(Thread.java:479)
    There is a OSS Note(749743) for this error. Its been specified as error occurs in SP5 and solution is we need to upgrade it. But we are facing it with SP9. Thats why i was trying to look into these parameters. If i upgrade it to SP15, will it be solved?

  • Help needed in JMS

    i m new to java,,, running one simple code in JMS Topic... using weblogic.... server.. please help me as it is givng me the error.. that i have pasted below. thanx in advance
    Deepali
    my publisher code i m giving below :
    ***************************************88
    import javax.naming.*;
    import javax.naming.InitialContext;
    import javax.jms.JMSException;
    import javax.jms.Topic;
    import javax.jms.Session;
    import javax.jms.TextMessage;
    import javax.jms.TopicPublisher;
    import javax.jms.DeliveryMode;
    import javax.jms.TopicSession;
    import javax.jms.TopicConnection;
    import javax.jms.TopicConnectionFactory;
    import java.io.StringReader;
    import java.util.ArrayList;
    import java.util.*;
    public class Publisher
    public static void main(String[] args) throws Exception
              Hashtable env = new Hashtable();
              env.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
              env.put(Context.PROVIDER_URL, "t3://localhost:7001");
    // get the initial context
    InitialContext ctx = new InitialContext(env);
         //InitialContext ctx = getInitialContext("t3://localhost:7001");
    // lookup the topic object
    Topic topic = (Topic) ctx.lookup("topic0");
    // lookup the topic connection factory
    TopicConnectionFactory connFactory = (TopicConnectionFactory) ctx.
    lookup("topic/connectionFactory");
    // create a topic connection
    TopicConnection topicConn = connFactory.createTopicConnection();
    // create a topic session
    TopicSession topicSession = topicConn.createTopicSession(false,
    Session.AUTO_ACKNOWLEDGE);
    // create a topic publisher
    TopicPublisher topicPublisher = topicSession.createPublisher(topic);
    topicPublisher.setDeliveryMode(DeliveryMode.NON_PERSISTENT);
    // create the "Hello World" message
    TextMessage message = topicSession.createTextMessage();
    message.setText("Hello World");
    // publish the messages
    topicPublisher.publish(message);
    // print what we did
    System.out.println("published: " + message.getText());
    // close the topic connection
    topicConn.close();
    it is givng following error?.. can some one explaine me y?...
    Exception in thread "main" javax.naming.NameNotFoundException: Unable to resolve 'topic0' Resolved: '' Unresol
    ved:'topic0' ; remaining name 'topic0'
    at weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:109)
    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:263)
    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:230)
    at weblogic.jndi.internal.ServerNamingNode_WLStub.lookup(Unknown Source)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:337)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:332)
    at javax.naming.InitialContext.lookup(InitialContext.java:350)
    at Publisher.main(Publisher.java:33)

    Could you tell me how the error was resolved, I am getting same error>
    Thanks
    i m new to java,,, running one simple code in JMS Topic... using weblogic.... server.. please help me as it is givng me the error.. that i have pasted below. thanx in advance
    Deepali
    my publisher code i m giving below :
    ***************************************88
    import javax.naming.*;
    import javax.naming.InitialContext;
    import javax.jms.JMSException;
    import javax.jms.Topic;
    import javax.jms.Session;
    import javax.jms.TextMessage;
    import javax.jms.TopicPublisher;
    import javax.jms.DeliveryMode;
    import javax.jms.TopicSession;
    import javax.jms.TopicConnection;
    import javax.jms.TopicConnectionFactory;
    import java.io.StringReader;
    import java.util.ArrayList;
    import java.util.*;
    public class Publisher
    public static void main(String[] args) throws Exception
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    env.put(Context.PROVIDER_URL, "t3://localhost:7001");
    // get the initial context
    InitialContext ctx = new InitialContext(env);
    //InitialContext ctx = getInitialContext("t3://localhost:7001");
    // lookup the topic object
    Topic topic = (Topic) ctx.lookup("topic0");
    // lookup the topic connection factory
    TopicConnectionFactory connFactory = (TopicConnectionFactory) ctx.
    lookup("topic/connectionFactory");
    // create a topic connection
    TopicConnection topicConn = connFactory.createTopicConnection();
    // create a topic session
    TopicSession topicSession = topicConn.createTopicSession(false,
    Session.AUTO_ACKNOWLEDGE);
    // create a topic publisher
    TopicPublisher topicPublisher = topicSession.createPublisher(topic);
    topicPublisher.setDeliveryMode(DeliveryMode.NON_PERSISTENT);
    // create the "Hello World" message
    TextMessage message = topicSession.createTextMessage();
    message.setText("Hello World");
    // publish the messages
    topicPublisher.publish(message);
    // print what we did
    System.out.println("published: " + message.getText());
    // close the topic connection
    topicConn.close();
    it is givng following error?.. can some one explaine me y?...
    Exception in thread "main" javax.naming.NameNotFoundException: Unable to resolve 'topic0' Resolved: '' Unresol
    ved:'topic0' ; remaining name 'topic0'
    at weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:109)
    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:263)
    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:230)
    at weblogic.jndi.internal.ServerNamingNode_WLStub.lookup(Unknown Source)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:337)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:332)
    at javax.naming.InitialContext.lookup(InitialContext.java:350)
    at Publisher.main(Publisher.java:33)

  • Help needed reinitializing jms

    Hi,
    I have an application using a JMSTopic and a few JMS temporary queues (weblogic). If the weblogic server goes offline I get a JMSException and I then try to close my connections (topic and queue) and then reinitialize all the JMS objects. After doing that I am able to receive mesages from the Topic but when I try to send to a temporary queue (created after weblogic was restarted) I get:
    weblogic.jms.common.JMSException: using closed dispatcher
         at weblogic.jms.client.JMSProducer.sendInternal(JMSProducer.java:366)
         at weblogic.jms.client.JMSProducer.send(JMSProducer.java:186)
    I am sure I close the old connection and I start a new one and create new Session end Sender so I cannot understand what the problem could be, any help?
    Thanks,
    A.

    Try to use delete() to release associated resources.
    see http://edocs.bea.com/wls/docs81/jms/implement.html#1135666
    here is an extract.
    Deleting a Temporary Destination
    When you finish using a temporary destination, you can delete it (to release associated resources) using the following TemporaryQueue or TemporaryTopic method:
    public void delete() throws JMSException

  • Weblogic JMS clustering

    Hi All,
    I need help understanding weblogic JMS clustering. I read few documents regarding this but not very clear about it.
    Hope to get help/suggestion here.
    I have following setup
    box1 - adminserver, osbserver1
    box2- osbserver2
    osbserver1 and osbserver2 are clustered together
    I have a JMS server created each one for each managed server (OSB server) in the cluster. These JMS servers are non-persistent. persistent store is "None".
    I have one JMS module created with connection factory, distributed Qs and are associated with a subdeployment that is targeting to the cluster
    I have all the servers(admin server and both OSB servers) are in running state
    To monitor JMS server I go to services->JMS Servers
    I see jmsserver1 which is targeted to osbserver1 has "Health" is marked as "OK"
    jmserver2 which is targeted to osbserver2 has no "health" check
    If I go to environment->servers , I see all the 3 servers are marked as "RUNNING" with "Health" OK
    As a note I created managed server in the second box before creating the JMS server and resources.
    And I do not have any nodemanager setup at this point.
    How would I know the JMSserver in both servers are active and have no issues ?
    Do I need to do anything to start JMSServer in OSBServer2 ?
    Edited by: 818591 on Feb 11, 2011 8:27 AM
    Edited by: 818591 on Feb 11, 2011 9:31 AM

    Should the JMS Server/JMS modules already be created so that the remote managed server will get configuration of these setup?No. This is not how resorces are created. Pack/unpack is used for creating the domains, ONCE. Later on you may very well use Weblogic admin console to create the resources and target/untarget those.
    As a note I do not have node managed setup yet. It is recommended that you use node manager in environments where servers may be installed on different machines -
    http://download.oracle.com/docs/cd/E14571_01/web.1111/e13740/toc.htm
    To me, it seems a network/cluster communication issue. If you have Oracle Support, better raise a SR with them to find out the exact issue as they would be in better position to understand your architecture and analyzing logs. You may also raise a thread in Oracle Weblogic forum to get a suggestion from a Weblogic expert -
    WebLogic Server - Clustering
    Regards,
    Anuj

  • JMS Configuration Help Needed for Publish Subscribe Messaging

    Hi,
    I am new to JMS and need help to configure JMS from the sun admin console. As of now i have configured the topic and the connection factory from the JMS Resources under the Resources tab(here too i just specified the topic name and guest and password and jndi and similarly the connection factory name but have not specified any port or anything else), but i guess something is missing as i can publish but cannot subscribe nor can i view the messages on the topic..I think some sort of configuration is also need on the Java Message Service header under the Configuration tab.I have searched for this on the net but have not been able to find any sort of detailed help.If someone could give a detailed picture as too how to go about this configuration with an example it would be of great help.
    Vaishali Shah

    Sai,
    Seen this:
    http://tinyurl.com/pbshe
    Good Luck,
    Avi.

  • Help needed

    Help needed
    1. When we use USING clause in execute immediate does it hard parse ?
    2. Is it better to use values stored in SYS_CONTEXT or to use USING clause in Execute Immediate ?
    3. In Dynamic SQL, if i use SYS_CONTEXT does it Hard Parse or Soft Parse ?
    Edited by: Prathamesh on Jun 22, 2010 5:19 AM

    Prathamesh wrote:
    1. When we use USING clause in execute immediate does it hard parse ?Only the first time.
    2. Is it better to use values stored in SYS_CONTEXT or to use USING clause in Execute Immediate ?I think it depends, Tom would say the latter
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1669972300346534908
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1288401763279

  • Reg : JMS Clustering

              Hai,
              I am facing one problem in JMS Clustering. can any one throws a light on that?
              it will be very helpful to
              me.
              i configured WebLogic Cluster with node1 and node 1 as Managed Servers.
              i created jmsserver1 and jmsserver2.
              i created queue1 and queue2 in jmsserver1 and jmsserver2 respectively.
              i created one distributed destination by adding queue1 and queue2 as members.
              i targetted jmsserver1 to node1 and jmsserver2 to node2.
              i wrote one program that send the messages to distributed destination using it's
              jndi name.
              i have send some messages to distributed queue.
              after i shutdown the any one of the managed server ex: node1. after that while
              i am trying to send the message to
              distributed destination, it is throwing the exception that no such a jndi name.
              i have checked with JNDI tree.
              jndi name of distributed destination is not there?
              is there any configuration missing or some thing else?
              can any one help me to solve this problem?
              regards
              cg
              

    Sounds like you've set things up correctly. Post your config.xml
              and I'll take a quick look. Please also include the JNDI
              name of the distributed dest your client is looking up.
              cg wrote:
              > Hai,
              > I am facing one problem in JMS Clustering. can any one throws a light on that?
              > it will be very helpful to
              > me.
              >
              > i configured WebLogic Cluster with node1 and node 1 as Managed Servers.
              > i created jmsserver1 and jmsserver2.
              > i created queue1 and queue2 in jmsserver1 and jmsserver2 respectively.
              > i created one distributed destination by adding queue1 and queue2 as members.
              >
              >
              > i targetted jmsserver1 to node1 and jmsserver2 to node2.
              >
              > i wrote one program that send the messages to distributed destination using it's
              > jndi name.
              >
              > i have send some messages to distributed queue.
              > after i shutdown the any one of the managed server ex: node1. after that while
              > i am trying to send the message to
              > distributed destination, it is throwing the exception that no such a jndi name.
              > i have checked with JNDI tree.
              >
              > jndi name of distributed destination is not there?
              >
              > is there any configuration missing or some thing else?
              >
              >
              > can any one help me to solve this problem?
              >
              >
              > regards
              > cg
              >
              >
              

  • Jms clustering with spring

    Hi
    i have created the jms clustering configuration in weblogic 10.3.3 that i am facing issues in the connection queue like this
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'queueConnectionFactory' defined in ServletContext resource [WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Unable to resolve 'QueueConnectionFactory'. Resolved ''; remaining name 'QueueConnectionFactory'
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1401)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:512)
    and i have configured servers below
    clustered the managed servers MS-1 and MS-2
    Servers Targets
    JMS Server Admin server
    JMS Module cluster
    connection queue cluster
    queue JMSServer
    i have tried with the 2 different JMS servers for managed servers
    Servers Targets
    JMS Server - 1 MS-1
    JMS Server - 2 MS-2
    JMS Module cluster
    connection queue cluster
    queue JMSServer - 1 and JMSServer - 2
    so, please help us to configure the JMS clustering with spring.
    Note : please find the spring - applicationContext.xml below thats is used to configure the connection factory and jms queue.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
    "http://www.springframework.org/dtd/spring-beans.dtd">
    <beans>
         <bean id="invoiceListener" class="com.spring.jms.InvoiceMDB" />
         <bean id="jndiTemplate" class="org.springframework.jndi.JndiTemplate">
              <property name="environment">
                   <props>
                        <prop key="java.naming.factory.initial">weblogic.jndi.WLInitialContextFactory</prop>
                        <prop key="java.naming.provider.url">t3://localhost:6001,localhost:6003,localhost:6005</prop>
                   </props>
              </property>
         </bean>
         <bean id="queueConnectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean">
              <property name="jndiTemplate"><ref bean="jndiTemplate" /></property>
              <property name="jndiName"><value>QueueConnectionFact</value></property>
         </bean>
         <bean id="invoiceQueueTemplate" class="org.springframework.jms.core.JmsTemplate">
              <property name="connectionFactory"><ref bean="queueConnectionFactory" /></property>
              <property name="destinationResolver"><ref bean="jmsDestinationResolver" /></property>
         </bean>
         <bean id="jmsDestinationResolver" class="org.springframework.jms.support.destination.JndiDestinationResolver">
              <property name="jndiTemplate"><ref bean="jndiTemplate" /></property>
              <property name="cache"><value>true</value></property>
         </bean>
         <bean id="jmsInvoiceSender" class="com.spring.jms.InvoiceQueueSender">
              <property name="jmsTemplate"><ref bean="invoiceQueueTemplate" /></property>
         </bean>
         <bean id="invoiceQueue" class="org.springframework.jndi.JndiObjectFactoryBean">
              <property name="jndiTemplate"><ref bean="jndiTemplate"/></property>
              <property name="jndiName"><value>MyQueue</value></property>
         </bean>
         <bean id="Invoicelistener" class="org.springframework.jms.listener.DefaultMessageListenerContainer">
         <property name="concurrentConsumers" value="5" />
         <property name="connectionFactory" ref="queueConnectionFactory" />
         <property name="destination" ref="invoiceQueue" />
         <property name="messageListener" ref="invoiceListener" />
         <property name="sessionAcknowledgeModeName" value="AUTO_ACKNOWLEDGE" />
    <property name="sessionTransacted" value="true" />
         </bean>
    </beans>

    Are you sure you have defined the correct JNDI-name in the Spring config file?
    An example set-up of a domain can be found here - http://middlewaremagic.com/weblogic/?p=7795 (the script presented in the create domain section)
    This is basically the same set-up you have, except that a distributed queue is being used that is targeted to JMS Servers through a subdeployment.
    The Spring configuration looks as follows:
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
        <bean id="jndiTemplate" class="org.springframework.jndi.JndiTemplate">
            <property name="environment">
                <props>
                    <prop key="java.naming.factory.initial">weblogic.jndi.WLInitialContextFactory</prop>
                    <prop key="java.naming.provider.url">t3://192.168.1.50:9001,192.168.1.50:9002</prop>
                </props>
            </property>
        </bean>
        <bean id="connectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean">
            <property name="jndiTemplate" ref="jndiTemplate"/>
            <property name="jndiName" value="jms/ConnectionFactory"/>
        </bean>
        <bean id="destination" class="org.springframework.jndi.JndiObjectFactoryBean">
            <property name="jndiTemplate" ref="jndiTemplate"/>
            <property name="jndiName" value="jms/CompanyQueue"/>
        </bean>
        <bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate">
            <property name="connectionFactory" ref="connectionFactory"/>
            <property name="defaultDestination" ref="destination"/>
        </bean>
        <bean id="taskExecutor" class="org.springframework.scheduling.commonj.WorkManagerTaskExecutor">
            <property name="workManagerName" value="java:comp/env/default"/>
            <property name="resourceRef" value="true"/>
        </bean>
        <bean class="org.springframework.jms.listener.SimpleMessageListenerContainer">
            <property name="connectionFactory" ref="connectionFactory"/>
            <property name="destination" ref="destination"/>
            <property name="messageListener" ref="receiver"/>
            <property name="taskExecutor" ref="taskExecutor"/>
        </bean>
        <bean id="sender" class="model.logic.JMSSender">
            <property name="jmsTemplate" ref="jmsTemplate"/>
        </bean>
        <bean id="receiver" class="model.logic.JMSReceiver"/>
    </beans>To test create a servlet, for example,
    public class TestServlet extends HttpServlet {
        protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
            JMSSender jmsSender = SpringUtilities.getJMSSender();
            jmsSender.sendMessage();
            System.out.println("message send by the testservlet");
    }and web.xml as
    <web-app ...>
        <context-param>
            <param-name>contextConfigLocation</param-name>
            <param-value>classpath:spring-config.xml</param-value>
        </context-param>
        <listener>
            <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
        </listener>
        <!-- default weblogic work manager -->
        <resource-ref>
            <res-ref-name>default</res-ref-name>
            <res-type>commonj.work.WorkManager</res-type>
            <res-auth>Container</res-auth>
            <res-sharing-scope>Shareable</res-sharing-scope>
        </resource-ref>
        <!-- default weblogic timer manager -->
        <resource-ref>
            <res-ref-name>tm/default</res-ref-name>
            <res-type>commonj.timers.TimerManager</res-type>
            <res-auth>Container</res-auth>
            <res-sharing-scope>Shareable</res-sharing-scope>
        </resource-ref>
        <servlet>
            <servlet-name>TestServlet</servlet-name>
            <servlet-class>test.TestServlet</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>TestServlet</servlet-name>
            <url-pattern>/testservlet</url-pattern>
        </servlet-mapping>
    </web-app>with this set-up the JMS clustered and Spring is able to use it on both servers.

  • Jms clustered license

    hi,
              Do you I need to obtain a separate license for testing jms clustering (distributed queues DQ)?
              I've downloaded weblogic9.2 from the Internet and in documentation there is information that I should have such a license.
              Do you think that it applies to so evaluating the product?
              I'm encountering strange problems with DQ hence my question.

    Grzegorz (Greg) Stasica <> wrote:
              > hi,
              >
              > Do you I need to obtain a separate license for testing jms clustering
              > (distributed queues DQ)? I've downloaded weblogic9.2 from the Internet and
              > in documentation there is information that I should have such a license.
              > Do you think that it applies to so evaluating the product? I'm
              > encountering strange problems with DQ hence my question.
              As far as I know you can use it with your 'evaluation' version or developer
              version.
              B
              Schelstraete Bart
              [email protected]
              http://www.schelstraete.org
              http://www.linkedin.com/in/bschelst

  • Troubleshoting help needed:  My iMac keeps crashing and restarting with a report detail: "spinlock application timed out"  What can I do to fix this?timed out"

    Troubleshooting help needed:  My iMac keeps crashing and restarting with a notice: "Spinlock application timed out"  What can I do?

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the page that opens.
    Select the most recent panic log under System Diagnostic Reports. Post the contents — the text, please, not a screenshot. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header and body of the report, if it’s present (it may not be.) Please don't post shutdownStall, spin, or hang reports.

Maybe you are looking for