-
1. Re: where to define jndi-name for mbean in SAR?
dimitris Mar 30, 2005 4:18 PM (in response to mikek753)You can't use jboss.xml with mbeans. You need to treat this case as if you were writing a stand alone JMS client. You should probably lookup
"java:/ConnectionFactory"
for the in-VM factory. Some resources:
http://www.jboss.org/wiki/Wiki.jsp?page=JBossMQ
http://docs.jboss.org/admin-devel/Chap6.html#0_pgfId-913324 -
2. Re: where to define jndi-name for mbean in SAR?
mikek753 Mar 30, 2005 5:01 PM (in response to mikek753)thank you for reply.
However, I can't make it work for a while.
I re-read those resources and didn't find (or missed) info about how to tell JVM about jndi "ConnectionFactory" and where to define it for export.
There is Global JNDI Namespace :
ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
I can see by JNDIView.
Is that right one "ConnectionFactory" I'm looking for?
I've tried
context.lookup("java:/ConnectionFactory")
but got the same "javax.naming.NameNotFoundException: ConnectionFactory not bound"
Do I need to do any special to
Context context = new InitialContext();
to be able get that resource?
Any specific setting to conf/jndi.properties ?
I'm missing some small settings, but which one?
Thanks. -
3. Re: where to define jndi-name for mbean in SAR?
raja05 Apr 4, 2005 5:40 AM (in response to mikek753)If you have something in the Global NameSpace, you should be looking up context.lookup("ConnectionFactory"). The JNDIView tells u where and how the ConnectionFactory is bound. IF its bound under the "java:" namespace, you need to lookup java:/ConnectionFactory. In all, it depends on what kind of a connectionfactory you are looking at..