0 Replies Latest reply: May 21, 2013 5:23 AM by Upasana Maurya RSS

    OSB JMS Bridge between Weblogic and JBoss 7 App Server

    Upasana Maurya
      Configured a JMS Bridge to exchange JMS messages between WebLogic and JBoss Application Server 7,Trying to push messages to JBoss
      AS with the help of a WebLogic JMS Bridge.I am getting below exception after setting up the bridge:
      eis/jms/WLSConnectionFactoryJNDIXA > ResourceAllocationException thrown by resource adapter on call to
      ManagedConnectionFactory.createManagedConnection(): "javax.resource.ResourceException: ConnectionFactory: failed to get initial context (InitialContextFactory =org.jboss
      .naming.remote.client.InitialContextFactory, url = remote://localhost:4447, user name = testuser) ">
      <May 21, 2013 9:40:40 AM UTC> <Info> <MessagingBridge> <BEA-200043> <Bridge "Bridge_OSBToJBoss" failed to connect to the target destination and will try again in 25 secon
      ds. This could be a temporary condition unless the messages repeat several times. (java.lang.Exception: javax.resource.ResourceException: ConnectionFactory: failed to get
      initial context (InitialContextFactory =org.jboss.naming.remote.client.InitialContextFactory, url = remote://localhost:4447, user name = testuser)
      at weblogic.jms.adapter.JMSBaseConnection.throwResourceException(JMSBaseConnection.java:1703)
      at weblogic.jms.adapter.JMSBaseConnection.throwResourceException(JMSBaseConnection.java:1683)
      at weblogic.jms.adapter.JMSBaseConnection.startInternal(JMSBaseConnection.java:498)
      at weblogic.jms.adapter.JMSBaseConnection.start(JMSBaseConnection.java:248)
      at weblogic.jms.adapter.JMSManagedConnectionFactory.createManagedConnection(JMSManagedConnectionFactory.java:190)
      at weblogic.connector.security.layer.AdapterLayer.createManagedConnection(AdapterLayer.java:803)
      at weblogic.connector.outbound.ConnectionFactory.createResource(ConnectionFactory.java:91)
      at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1193)
      at weblogic.common.resourcepool.ResourcePoolImpl.reserveResourceInternal(ResourcePoolImpl.java:395)
      at weblogic.common.resourcepool.ResourcePoolImpl.reserveResource(ResourcePoolImpl.java:332)
      at weblogic.common.resourcepool.ResourcePoolImpl.reserveResource(ResourcePoolImpl.java:315)
      at weblogic.connector.outbound.ConnectionPool.reserveResource(ConnectionPool.java:620)
      at weblogic.common.resourcepool.ResourcePoolImpl.reserveResource(ResourcePoolImpl.java:309)
      at weblogic.connector.outbound.ConnectionManagerImpl.getConnectionInfo(ConnectionManagerImpl.java:365)
      at weblogic.connector.outbound.ConnectionManagerImpl.getConnection(ConnectionManagerImpl.java:320)
      at weblogic.connector.outbound.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:129)
      at weblogic.jms.adapter.JMSBaseConnectionFactory.getTargetConnection(JMSBaseConnectionFactory.java:123)
      at weblogic.jms.bridge.internal.MessagingBridge.getConnections(MessagingBridge.java:864)
      at weblogic.jms.bridge.internal.MessagingBridge.run(MessagingBridge.java:1055)
      at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
      -------------- Linked Exception ------------
      javax.naming.NamingException: Failed to create remoting connection


      The configuration I have used for TragetBridge Destination (JBoss Server) is:
      Adapter JNDI Name:eis/jms/WLSConnectionFactoryJNDIXA
      Connection URL: remote://localhost:4447
      Initial Context Factory: org.jboss.naming.remote.client.InitialContextFactory
      Connection Factory JNDI Name: jms/RemoteConnectionFactory
      Destination JNDI Name:jms/queue/testQ
      Destination Type:Queue
      UserName:testUser
      Password : password

      JBoss 7 and OSB is running on same machine.

      Any Ideas about the above exception?