This content has been marked as final.
Show 3 replies
-
1. Re: Sending messages from JBoss to Joram
genman Sep 22, 2004 4:18 PM (in response to pjrichter)
I think for<attribute name="Properties">joram.properties</attribute>
You put in the actual properties that you have in the file, not the filename. -
2. Re: Sending messages from JBoss to Joram
pjrichter Sep 22, 2004 4:33 PM (in response to pjrichter)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();
-
3. Re: Sending messages from JBoss to Joram
genman Sep 23, 2004 7:57 PM (in response to pjrichter)
I think the docs are wrong, at these ones are...
http://www.huihoo.com/jboss/online_manual/3.0/ch13s126.html
"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 =
new InitialContext().lookup("external/joram/fileMaint/cf");