I think for
You put in the actual properties that you have in the file, not the filename.
The documentation (JBoss Admin pg 230) just has a file name. Do you know what the format might be to list the properties?
I also tried this technique, but keep getting a NoInitialContexException.
Properties prop = new Properties(); prop.setProperty("INITIAL_CONTEXT_FACTORY","fr.dyade.aaa.jndi2.client.NamingContextFactory"); prop.setProperty("PROVIDER_URL","joram://localhost:16400"); prop.setProperty("OBJECT_FACTORIES","javax.jms.QueueConnectionFactory"); ictx = new InitialContext(prop); ConnectionFactory cnxF = (TcpConnectionFactory)TcpConnectionFactory.create("localhost", 16010); Connection cnx = cnxF.createConnection(); Session session = cnx.createSession(true, 0); org.objectweb.joram.client.jms.Queue dest = (org.objectweb.joram.client.jms.Queue) ictx.lookup("MyQueue"); ictx.close();
I think the docs are wrong, at these ones are...
"Properties" should be "PropertiesUrl"
If you have everything done correctly, the JndiView tool in the JMX console should show everything on this remote server. You can also play around with the actual MBean you're creating below, there's a bunch of stuff to use. It'll also show you what attributes are available.
When it works, I guess you just do
ConnectionFactory cf =