[JBoss-user] [Messaging, JMS JBossMQ] - Re: Multicast JMS
Use the fc-fast protocol; I tested this on my home system, and got about 1600 msgs/sec. fc-fast uses flow control, so it is very good when having *sustained* load over an extended period of time. But I'm sure you could optimize even more if you know the type of app (which you do). Bela a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827409#3827409;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827409Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Multicast JMS
I tried the bare-bones.xml file for jgroups - it doesn't work for sljms. I get the following: [java] WARN 10:18:16,964 [main] (Trace.java:387) - fetching state will fail as state transfer is not supported. Add one of the STATE_TRANSFER protocols to your protocol specification a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827410#3827410;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827410Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Multicast JMS
anonymous wrote : | Use the fc-fast protocol; I tested this on my home system, and got about 1600 msgs/sec. | fc-fast uses flow control, so it is very good when having *sustained* load over an extended period of time. But I'm sure you could optimize even more if you know the type of app (which you do). That's excellent - I'd be happy to have even half of that. I used the fc-fast.xml protocol stack and while I had good results for sending text messages, sending object messages didn't yield encouraging results. I maxed out at 100 messages/sec and it seemed the performance was like TCP - whenever I added another subscriber the messages/sec started decreasing. Maybe there's something else I'm doing wrong? a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827412#3827412;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827412Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Multicast JMS
I just tried a quick test with just text messages with the fc-fast.xml. Messages/second decrease with each subscriber. This seems counter-intuitive to using multicast. It's behaving like TCP. Am I the only one seeing this? a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827420#3827420;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827420Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Multicast JMS
It is counter-intuitive, indeed. I'll try to do some more extensive tesing myself with both text and byte messages today or maybe tomorrow and I'll get back to you. a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827424#3827424;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827424Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Multicast JMS
ggimler wrote : I tried the bare-bones.xml file for jgroups - it doesn't work for sljms. I get the following: | | [java] WARN 10:18:16,964 [main] (Trace.java:387) - fetching state will fail as state transfer is not supported. Add one of the STATE_TRANSFER protocols to your protocol specification Hmm, it takes a bit of experimenting with this. Ovidiu, do you want to do it ? Regarding state transfer: just add STATE_TRANSFER on top of your bare bones stack (copy the tag from, say, fc-fast.xml). Bela a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827434#3827434;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827434Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Multicast JMS
ggimler wrote : anonymous wrote : | | Use the fc-fast protocol; I tested this on my home system, and got about 1600 msgs/sec. | | fc-fast uses flow control, so it is very good when having *sustained* load over an extended period of time. But I'm sure you could optimize even more if you know the type of app (which you do). | | That's excellent - I'd be happy to have even half of that. I used the fc-fast.xml protocol stack and while I had good results for sending text messages, sending object messages didn't yield encouraging results. I maxed out at 100 messages/sec and it seemed the performance was like TCP - whenever I added another subscriber the messages/sec started decreasing. Maybe there's something else I'm doing wrong? I wasn't aware Ovidiu has added ObjectMsg support yet. Are you using serialization or externalization ? You mentioned you have ca 1-2K worth of data/msg ? Bela a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827436#3827436;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827436Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Multicast JMS
Yes, I'll do that (experimenting). I'll get back with conclusions. a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827439#3827439;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827439Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Multicast JMS
ggimler wrote : I just tried a quick test with just text messages with the fc-fast.xml. Messages/second decrease with each subscriber. This seems counter-intuitive to using multicast. It's behaving like TCP. Am I the only one seeing this? You should see almost no degradation. Maybe we're acking (postitive acks) messages, so we're not really seeing async behavior ? Bela a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827443#3827443;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827443Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Multicast JMS
The protorype doesn't do any message acknowledgement at application level. The stack is configured with pbcast.NAKACK. Interesting. a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827450#3827450;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827450Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Multicast JMS
bela wrote : [ | I wasn't aware Ovidiu has added ObjectMsg support yet. Are you using serialization or externalization ? You mentioned you have ca 1-2K worth of data/msg ? | Bela I implemented it myself just to get things running locally with my copy. There may be a more optimal way of implementing this but all I did was add a hook with the SessionImpl and wrote the ObjectMessageImpl ad hoc so I could send messages of a realistic size. package sljms; import org.apache.log4j.Logger; import javax.jms.ObjectMessage; import javax.jms.JMSException; import javax.jms.Message; import java.io.Serializable; class ObjectMessageImpl extends MessageImpl implements ObjectMessage, Serializable { private static final Logger log = Logger.getLogger(ObjectMessageImpl.class); private Serializable _object; public Serializable getObject() throws JMSException { return _object; } public void setObject(Serializable object) throws JMSException { _object = object; } } a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827456#3827456;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827456Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Multicast JMS
bela wrote : [ | | Hmm, it takes a bit of experimenting with this. Ovidiu, do you want to do it ? | | Regarding state transfer: just add STATE_TRANSFER on top of your bare bones stack (copy the tag from, say, fc-fast.xml). | | If I add that then it complains of another dependency: ChannelException: JChannel(): java.lang.Exception: Configurator.sanityCheck(): event GET_DIGEST_STATE is required by STATE_TRANSFER, but not provided by any of the layers below I have gone through the tedious exercise of removing as many of the protocol layers as I could and going through several permutations from the fc-fast.xml. The problem is, sometimes when I remove a protocol layer, things run even slower. Since I don't fully understand the functionality (dependencies) of all these various layers I haven't a clue how to make them more optimal. a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827459#3827459;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827459Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Multicast JMS
anonymous wrote : | class ObjectMessageImpl extends MessageImpl implements ObjectMessage, Serializable { Use of Serializable will probably be removed from MessageImpl (replaced by Externalizable, if possible). Serialization will exert some penalty, but what numbers did you get anyway for the pubsub test ? I'm also curious about HW/SW/JDK/NW. For smaller messages (e.g. 1-2K), you should get at least 1000 msgs/sec. Bela a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827465#3827465;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827465Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Multicast JMS
anonymous wrote : If I add that then it complains of another dependency: | ChannelException: JChannel(): java.lang.Exception: Configurator.sanityCheck(): event GET_DIGEST_STATE is required by STATE_TRANSFER, but not provided by any of the layers below I see. Maybe hold off a bit more, until Ovidiu has experimented with it some more; he does have JGroups knowledge. So how important is the bare-bones stack to you right now ? Can you live with fc-fast.xml for now (of course, after you get 1000 msgs/sec) ? anonymous wrote : I have gone through the tedious exercise of removing as many of the protocol layers as I could and going through several permutations from the fc-fast.xml. The problem is, sometimes when I remove a protocol layer, things run even slower. Since I don't fully understand the functionality (dependencies) of all these various layers I haven't a clue how to make them more optimal. Don't start removing/adding protocols unless you know what you do. a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827466#3827466;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827466Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Multicast JMS
bela wrote : | Use of Serializable will probably be removed from MessageImpl (replaced by Externalizable, if possible). Serialization will exert some penalty, but what numbers did you get anyway for the pubsub test ? I'm also curious about HW/SW/JDK/NW. | Here are my numbers: HW - Dell Precision 1.7 ghz Single Xeon CPU with 1GB Ram SW - Redhat Linux 9.0 JDK - 1.4.2 NW - 10 mbit but the tests are just on my local machine - will have gigabit within the next few weeks with dual 3.0ghz xeon machines if that will make a big impact? bela wrote : | For smaller messages (e.g. 1-2K), you should get at least 1000 msgs/sec. | If I got 1000 messages/second I would be extremely happy. Here are my numbers: For Text messages using Ovidiu's text message implementation (all of these use the fc-fast.xml stack) 1 pub - 1 sub 678 messages/second at 10,000 text messages sent 1 pub - 2 sub 460 messages/second at 10,000 text messages sent 1 pub - 3 sub 345 messages/second at 10,000 text messages sent For Object messages using my implementation of the ObjectMessage (all of which use the fc-fast.xml stack) These messages are a series of state vectors packed in a java.util.Arraylist (written to a file as an ObjectOutputStream each fille Arraylist produced 1.8kb of data) 1 pub - 1 sub 93 messages/second at 10,000 object messages sent 1 pub - 2 sub 87 messages/second at 10,000 object messages sent 1 pub - 3 sub 73 messages/second at 10,000 object messages sent One thing to note - I wrote my own ant runtimes and I'm not sure if that impacts performance? I'm nowhere near your numbers so maybe there's something obvious I'm doing wrong here. I could send you my code and ant runtimes if that would help? a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827489#3827489;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827489Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Multicast JMS
bela wrote : | I see. Maybe hold off a bit more, until Ovidiu has experimented with it some more; he does have JGroups knowledge. So how important is the bare-bones stack to you right now ? Can you live with fc-fast.xml for now (of course, after you get 1000 msgs/sec) ? | If I got 1000 msgs/sec that didn't degrade very much, it would more than meet my project requirements. a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827491#3827491;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827491Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Multicast JMS
anonymous wrote : NW - 10 mbit but the tests are just on my local machine | 10Mpbs ? You're going to get 1MB/sec throughput max. If you run only on the local box, set UDP.bind_addr to 127.0.0.1, to circumvent the NIC entirely. Also add a multicast route that actually points to your loopback device. I suggest you take the NIC down for the duration of the tests to make sure you don't send anything via the 10Mbps link. Also, I suggest to set UDP.loopback=true. anonymous wrote : | - will have gigabit within the next few weeks with dual 3.0ghz xeon machines if that will make a big impact? A huge difference ! JGroups is CPU-bound with 1 CPU, with 2 CPUs I saw a huge diff in my tests. I was actually able to almost saturate the network (9MB/sec on a 100Mbps switched ethernet), with 10K msgs. I haven't tested GB ethernet yet, but the numbers there should actually be even better. Here's another one: you may want to adjust the compression level in COMPRESS (9 = best). anonymous wrote : 1 pub - 1 sub | 678 messages/second at 10,000 text messages sent | | 1 pub - 2 sub | 460 messages/second at 10,000 text messages sent | | 1 pub - 3 sub | 345 messages/second at 10,000 text messages sent I would expect about the same msg rate. What happens though, is that you could have a lot of retransmissions (which are unicast). Can you run tcpdump/snoop/ntop to see what your traffic is ? I'd expect mostly multicast; if you have a large number of unicast UDP traffic, then you have too many xmits. anonymous wrote : For Object messages using my implementation of the ObjectMessage (all of which use the fc-fast.xml stack) | These messages are a series of state vectors packed in a java.util.Arraylist (written to a file as an ObjectOutputStream each fille Arraylist produced 1.8kb of data) Same test, with ObjectMessages ? I have to conclude it is serialization then. Can you do some intelligent marshalling of the vectors, and then use BytesMessage ? Bela a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827500#3827500;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827500Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Multicast JMS
Hi Bela, Thanks for your quick reply I started with SLJMS. Could run the examples. InteractiveJMSClient with Producder/Subscriber. But, I am not clear how to use it for my needs. 1. If I have 3 Java Progs running on 3 Different machines what they shud do to use SLJMS and communicate with each other. 2. What configuration + property file settings do i need on these 3 machines. 3. I dont have any app server. I assume that is okay with SLJMS. Please guide me. Sorry for such dumb questions. Regards Aditya Bela Ban wrote:-- There is a prototype of JMS running on top of JGroups at jboss.org. Checkout the project called ServerlessJMS, maybe this is what you need. Aditya Dutta wrote: Hi, I am very new to JGroups. I wanted to use JGroups for group coordination between a set of independant java programs running on different machines. But, I would wish to use the JMS Protocol. I would be very grateful if any one can please guide me as to how it can be done, where to start and how to write configs for JMS Protocol. I have downloaded JGroups and the demos work i.e. Draw program. I am very impressed and the functionality fits my needs perfectly. But, please help as how I can use it with JMS. Thanks in advance Aditya Dutta EAI Consultant Michelin Tire Co Ltd Tokyo, Japan a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827543#3827543;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827543Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Multicast JMS
I implemented the ObjectMessage (simple enough) just so I could run some tests. Is it possible to change the protocol stack for optimization and do the minimal configuration to increase performance? Every time I take out a protol on the stack it seems to complain. The JGroups documentation wasn't detailed enough for me to understand how to change around the protocol stack. Also, can you explain the difference between the sljms.xml and the fc-fast.xml protocol stack files? How are each of these used? Does the consumer or producer create the channel or whoever is started first? Thanks. a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827286#3827286;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827286Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Multicast JMS
sljms.xml is identical to default.xml from JGroup's conf directory. It is the standard multicast stack JGroups comes with. fc-fast.xml is a variation of the above, in that it enables bundling (UDP protocol waits until it has a buffer full of data or a timer expires, and then sends data on the wire), and compression, so it achieves a better performance for small messages. I guess Bela is the right person to ask for more details on protocols. This is how you install your own protocol: - write your protocol stack, say myprotocol.xml and place it in etc of the project - append to etc/jndi.properties: sljms.jndi.connectionFactory.MyConnectionFactory=myprotocol.xml After restarting your client, you can lookup MyConnectionFactory in JNDI and use it. Please note that all clients connecting to the same server must have the same stack configuration. anonymous wrote : Does the consumer or producer create the channel or whoever is started first? Whoever starts first. a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827300#3827300;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827300Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Multicast JMS
I guess another way of posing my question would be. If I didn't care about reliability and only about performance, how would I configure these protocol stacks with the optimal configuration? What is the bare bones required? a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827303#3827303;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827303Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Multicast JMS
If describing my data may help with optimizing the protocol stack... I'm primarily sending radar state information. Just for a rough estimate, I serialized the objects to a file (I know this isn't the most accurate way of getting the true size of the objects) but they range from 1.3kb - 2.0kb serialized. I was pretty happy with the rates I was sending out the text messages (I was able to get ~800 messages/second). Sending these objects I've been getting significantly less performance at ~100 messages/second and if I add more subscribers performance seems to degrade. Perhaps if Bela could elucicate how I may optimize my protocol configuration for this type of data distribution? Thanks. a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827308#3827308;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827308Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Multicast JMS
I have not bridged between protocol stacks yet. I was planning on doing so for firewall traversal but haven't reached that point yet. I'd like to get some good numbers with the closest thing to pure multicast right now and then move from there. a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827314#3827314;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827314Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Multicast JMS
Are you experimenting just with hardware multicast or you bridge messages over to a TCP-based group? a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827313#3827313;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827313Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Multicast JMS
ggimler wrote : If describing my data may help with optimizing the protocol stack... | | I'm primarily sending radar state information. Just for a rough estimate, I serialized the objects to a file (I know this isn't the most accurate way of getting the true size of the objects) but they range from 1.3kb - 2.0kb serialized. | | I was pretty happy with the rates I was sending out the text messages (I was able to get ~800 messages/second). Sending these objects I've been getting significantly less performance at ~100 messages/second and if I add more subscribers performance seems to degrade. | | Perhaps if Bela could elucicate how I may optimize my protocol configuration for this type of data distribution? | | Thanks. Use the fc-fast protocol; I tested this on my home system, and got about 1600 msgs/sec. fc-fast uses flow control, so it is very good when having *sustained* load over an extended period of time. But I'm sure you could optimize even more if you know the type of app (which you do). Bela a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827316#3827316;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827316Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Multicast JMS
ggimler wrote : I guess another way of posing my question would be. If I didn't care about reliability and only about performance, how would I configure these protocol stacks with the optimal configuration? What is the bare bones required? There is a bare-bone.xml file in the JGroups distro, but I haven't tested it with SLJMS. Bela a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827317#3827317;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827317Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Multicast JMS
It appears one can't send objects over the sljms implementation. Are there plans to add this soon? I only see text messages right now. Is this something trivial to implement? a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827154#3827154;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827154Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Multicast JMS
It is trivial. Support for all JMS Message types will be added in the next release. a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827155#3827155;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827155Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Multicast JMS
Ovidiuf, Thank you for the good documentation and the new version of the serverless JMS. I am anxious to work with this new code base this week. If I may inquire, I'd like to know if you would be willing to receive code contributions? We can talk about this offline if that's appropriate? It seems that you and Bela are the only ones working on this and my development team may be interested in helping out and expediting some features. We already developed our own pluggable protocol (Unicast, Multicast, etc...) with a free CORBA implementation. However, J2EE seems to have many features we'd like to exploit and it seems like a superior option if we can get some of the JMS features implemented that are show stoppers for our project. So some of the things we'd like to have is the JNDI linked into JBoss NS (we'd like to have the ability to federate name services), getting the persistence and fault tolerance, message selectors (a must have for us), and possibly others I'm not thinking of right now - I may come across others as I prototype some things this week. We'd like to get this up to a stable 1.0 release in the near future if that's possible and I'd like to talk more about it if you're interested? You can reach me via email at: [EMAIL PROTECTED] -Greg a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3826962#3826962;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3826962Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Multicast JMS
Will the new version 0.2 be released today or some time next week? Perhaps it's already been released and I don't know where to look to get it? a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3826527#3826527;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3826527Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Multicast JMS
A version that contains everything you need to experiment with your relaying solution is ready to be released. I don't want to call it 0.2. Not that the name matters, anyway, but 0.2 was supposed to include persistent delivery, and I am still working on that. I will post the URL on the forum later today. Or early tomorrow. This is how you configure it: Let's assume you use the machine A and B on the same LAN and they can see each other by multicast, and a machine C that is on a remote site. If your LAN is protected by a firewall, you must be able to open a port in the firewall, in this case 12003. If you use NAT, forward the port to A. 1. On A, start the JGroups' GossipRouter (you can find a jgroups.jar in the bundle, or you can compile it independently http://www.jgroups.org): java -cp lib/jgroups-core-2.2.1.jar:lib/log4j.jar org.jgroups.stack.GossipRouter -port 12003 2. On A, have your bridging client look up the RouterConnectionFactory. You configure it by modifying etc/router.xml. The only thing to change there is router_host, which is is the public IP address of A. The same client has to look up ConnectionFactory, which provides multicast connections. Take a look at etc/jndi.properties, you'll find it self explanatory. 3. On C, look up RouterConnectionFactory. It has to be similarily configured. Now A and C clients can exchange messages. 4. On B, look up ConnectionFactory. Now A and B clients can exchange messages. 5 If your bridging client on A switches back and forth messages from a connection to the other, B and C can exchange messages. This is just a proof of concept. There is no reason to have an application-level bridging client. The bridging between multicast and unicast will be transparently handled by JGroups. In a future version, of course. And by the way, there's no need to write even a line of code to test what I've just explained above. Take a look at the interactive client provided with the bundle. There is a short description of how it works in the documentation. It can create JMS objects (connections, sessions, producers and consumers) at command line so you can mix and match and build your prototype. a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3826545#3826545;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3826545Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Multicast JMS
Release 0.1.2 is available at: http://www.feodorov.com/tmp/sljms-0.1.2.tar.gz The master documentation file is doc/index.html a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3826617#3826617;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3826617Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Multicast JMS
The serverless jms release has also been made availble from the JBossMQ section of the sourceforge JBoss project page: http://sourceforge.net/project/showfiles.php?group_id=22866package_id=26210release_id=224938 a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3826628#3826628;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3826628Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Multicast JMS
Sounds great! I look forward to trying this out next week. If you could give me some instructions on how/where to get the 0.2 when you release it, I would appreciate it. Thanks. a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3825509#3825509;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3825509Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Multicast JMS
Is there some date in mind for releasing a non-beta version? I'm assuming 0.2 still means in the beta stage? Thanks. a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3825243#3825243;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3825243Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Multicast JMS
So let me ask you this... Is it currently possible to send that JMS through a firewall? Can I send it multicast and rebroadcast unicast and vice versa or is that impossible in the 0.2? Would there be a significant development effort to do this? Here's what I'm thinking and perhaps what I could do is this: Configure a producer to a topic using 1 channel via mulicast. Have a consumer connect and retrieve that data via the same protocol stack configuration. Have it then somehow send data (forward it) to another topic that would create another channel with a different protocol stack (unicast or firewall) and send it that way? Would that at least be possible to do? Can I pass in another jgroups xml file and overwrite the protocol stack...I don't have issues using another channel to do this. I just want to make sure it's possible. a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3825287#3825287;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3825287Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Multicast JMS
Your solution is in principle correct, and, oddly enough, almost possible to implement with the current alpha release. Basically, you'll have to write a bridge client, that creates two connections to two different serverless JMS providers. The first one runs over the multicast domain and the other one has a JGroups stack that uses a router or direct TCP. You'll have to write the bridging code, based on the topic name, etc. There is a small problem with the way the connection gets its configuration information, right now is kind of hardcoded, but this is easy to fix. I'll have to change the JNDI implementation for that. The good solution to the problem is to add bridging code to JGroup itself. This way, you won't have to send messages up and down the stack just to take a routing decision at application level. We have plans to add that, as well. If everything works out OK, a version that supports the solution you described should be available some time next week. a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3825310#3825310;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3825310Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Multicast JMS
Thanks for the quick reply. What can I expect in this new implementation? Will true hardware multicast be available with the JMS? When can I expect an officially stable release? Am I currently multicasting with that old version? Can I get some documentation? a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3825121#3825121;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3825121Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Multicast JMS
Nevermind. Looks like the Synch client was what I wanted. However, I'm still wondering if I'm using multicast or not. This GMS output with addresses not in the multicast range lead me to believe I'm not multicasting. Is there some way to turn this on in the jgroups configuration? Thanks. a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3824981#3824981;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3824981Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Multicast JMS
Don't use the old impl; Ovidiu is working on a new implementation. He will post a first prototype in 1-2 weeks (I'm actually playing with it as we speak). Bela a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3825004#3825004;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3825004Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user