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
for the in-VM factory. Some resources:
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?
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?
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..