users@glassfish.java.net

Generic JMSRA outbound JNDI lookup fails

From: <forums_at_java.net>
Date: Tue, 6 Dec 2011 14:44:10 -0600 (CST)

i'm setting up a WebLogic > GlassFish 3.1 "round trip" environment according
to the documentation/tutorial/video: 
http://genericjmsra.java.net/docs/weblogicjms/wljms.html

i'm using the sample code exactly as provided (and also a custom MDB that
i've written in JDev), and i can get the incoming messages just fine,
bridging from WebLogic to GlassFish in the MDB via the genericra adapter.
however, i'm running into problems with the return trip. although i have the
entries in Connector Connection Pool and Admin Object Resources, i'm getting
a naming exception on the JNDI lookup (see stack trace below). it's worth
nothing that i have created a standard JMSRA pool (jms/GlassFishCF) and admin
object (jms/GlassFishQueue), the JNDI lookup succeeds using the exact same
code. however, as soon as i try to use the GENERICRA adapter objects linking
to WebLogic, the JNDI lookup fails.

any thoughts on why i can get a handle on the JMSRA resources but not
GENERICRA resources in the same resources list...?

... ... ...

javax.naming.NamingException: Lookup failed for
'jms/GlassFishOutboundConnectionFactory' in
SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory,
java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl,
java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is
javax.naming.NameNotFoundException: GlassFishOutboundConnectionFactory not
found]
    at
com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:518)
    at
com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:455)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    at test.MessageForwarderMDB.onMessage(MessageForwarderMDB.java:106)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1052)
    at
org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1124)
    at
com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:4155)
    at
com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5347)
    at
com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5327)
    at
com.sun.ejb.containers.MessageBeanContainer.deliverMessage(MessageBeanContainer.java:1093)
    at
com.sun.ejb.containers.MessageBeanListenerImpl.deliverMessage(MessageBeanListenerImpl.java:81)
    at
com.sun.enterprise.connectors.inbound.MessageEndpointInvocationHandler.invoke(MessageEndpointInvocationHandler.java:171)
    at $Proxy294.onMessage(Unknown Source)
    at
com.sun.genericra.inbound.sync.SyncDeliveryHelper.deliverMessage(SyncDeliveryHelper.java:235)
    at
com.sun.genericra.inbound.sync.SyncDeliveryHelper.runOnceStdNoXA(SyncDeliveryHelper.java:441)
    at
com.sun.genericra.inbound.sync.SyncDeliveryHelper.deliver(SyncDeliveryHelper.java:211)
    at
com.sun.genericra.inbound.sync.SyncDeliveryHelper.deliver(SyncDeliveryHelper.java:194)
    at com.sun.genericra.inbound.sync.SyncWorker.run(SyncWorker.java:125)
    at com.sun.enterprise.connectors.work.OneWork.doWork(OneWork.java:114)
    at
com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.performWork(ThreadPoolImpl.java:497)
    at
com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:540)
Caused by: javax.naming.NameNotFoundException:
GlassFishOutboundConnectionFactory not found
    at
com.sun.enterprise.naming.impl.TransientContext.doLookup(TransientContext.java:248)
    at
com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:215)
    at
com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:219)
    at
com.sun.enterprise.naming.impl.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:77)
    at
com.sun.enterprise.naming.impl.LocalSerialContextProviderImpl.lookup(LocalSerialContextProviderImpl.java:119)
    at
com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:505)
    ... 25 more
|#]


--
[Message sent by forum member 'richHoward']
View Post: http://forums.java.net/node/871525