-
1. Re: jms communications in the same jvm in the client side
gaohoward Mar 6, 2009 8:30 AM (in response to slimamar)Hi, can you give more details about what kind of communications that the two clients make?
-
2. Re: jms communications in the same jvm in the client side
slimamar Mar 6, 2009 10:05 AM (in response to slimamar)All types that is publish, send, read .. a message.
In fact, my question is : inside a JVM, is it possible to make JMS communications without starting the JBoss server. -
3. Re: jms communications in the same jvm in the client side
gaohoward Mar 6, 2009 10:19 AM (in response to slimamar)So can i have it this way: you want start a JBM server without starting jboss AS, right?
Then you can try JBM 2.0. 1.4 doesn't support it. -
4. Re: jms communications in the same jvm in the client side
slimamar Mar 6, 2009 10:29 AM (in response to slimamar)> So can i have it this way: you want start a JBM server without starting jboss AS, right?
Yes
> Then you can try JBM 2.0. 1.4 doesn't support it.
How can i use JBM 2.0 whithout jboss AS ? -
5. Re: jms communications in the same jvm in the client side
clebert.suconic Mar 6, 2009 3:54 PM (in response to slimamar)JBM 2 will be provided as a standalone, and as part of JBAS.
You will be able to run JBM2 embedded in your clientVM also. You just need to instantiate a couple of POJOs. There are examples for both scenarios already on trunk, and that will be part of the documentation. -
6. Re: jms communications in the same jvm in the client side
slimamar Mar 9, 2009 5:35 AM (in response to slimamar)> You will be able to run JBM2 embedded in your clientVM also. You just need to instantiate a couple of POJOs. There are examples for both scenarios already on trunk, and that will be part of the documentation
Can you give me more informations to do this (i haven't found the examples on trunk)
Thank. -
7. Re: jms communications in the same jvm in the client side
ataylor Mar 9, 2009 6:33 AM (in response to slimamar)take a look at SimpleExample but change the transport configuration to use
org.jboss.messaging.core.remoting.impl.invm.InVMAcceptor
andorg.jboss.messaging.core.remoting.impl.invm.InVMConnectorFactory
-
8. Re: jms communications in the same jvm in the client side
slimamar Mar 12, 2009 9:23 AM (in response to slimamar)I've got the file SimpleExample.java and the jboss-messaging-2.0.0.alpha1 jars
but apparently these jars are not enough.
How can i get the jars corresponding to the trunk ? -
9. Re: jms communications in the same jvm in the client side
jmesnil Mar 12, 2009 9:54 AM (in response to slimamar)1. check out the trunk: svn co http://anonsvn.jboss.org/repos/messaging/trunk
2. build the jars: ant jar
3. all the jars will be in build/jars/ directory -
10. Re: jms communications in the same jvm in the client side
slimamar Mar 12, 2009 9:59 AM (in response to slimamar)Thank you !
-
11. Re: jms communications in the same jvm in the client side
slimamar Mar 12, 2009 12:21 PM (in response to slimamar)Ok, it works fine !
Just a little error in the previous post :
It's notorg.jboss.messaging.core.remoting.impl.invm.InVMAcceptor
butorg.jboss.messaging.core.remoting.impl.invm.InVMAcceptorFactory
Thank you ! -
12. Re: jms communications in the same jvm in the client side
slimamar Mar 13, 2009 8:48 AM (in response to slimamar)Can I manipulate JMS objects with the connector 'InVM' like :
javax.jms.Topic, javax.jms.TopicPublisher, javax.jms.TopicSession -
13. Re: jms communications in the same jvm in the client side
ataylor Mar 13, 2009 10:11 AM (in response to slimamar)what do you mean by manipulate?
-
14. Re: jms communications in the same jvm in the client side
slimamar Mar 13, 2009 11:02 AM (in response to slimamar)I want, for example, create a 'javax.jms.TopicPublisher' instead 'org.jboss.messaging.core.client.ClientProducer' and use it to send (publish) messages in the VM.