-
-
Notifications
You must be signed in to change notification settings - Fork 756
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JMSBroadcaster JMS Session is null, every time #149
Comments
Looking...Thanks! |
I should also point out that this issue also causes an infinite loop in the incomingBroadcast method too which also hold a lock on this preventing any other entry into synchronized(this) blocks |
OK thanks. That's strange I'm pretty sure a lot of people are using the JMSBroadcaster and I would have expected the regression be catched. Anyway, sorry about that. If you have a fix let me know :-) |
Sorry no idea on a fix. Pretty new to Atmosphere and JMS and wouldn't know which direction would fit the best. Because of my new-ness (really a word?) it could be a configuration issue on my end, though I'm not sure what I could have done to make that 'session' variable never to be set :/ |
After doing some experimentation it seems that if the configure method on JMSBroadcaster is called and the JMSFilter is being used then the JMS message code ends up in an infinate loop and publishes the same message over and over again until the JMS topic server throttles the topic. I haven't experimented with this yet but I'm starting to think that a workaround could be to implement my own broadcaster that doesn't really do much and let the JMSFilter handle all the heavy lifting |
Found a workaround: Apply this patch to the atmosphere source then remove any use of the
|
Ya there are some failure with path mapping in 0.9. I've added your proposal and commited in 0.8.4-SNAPSHOT (will release it soon).Ya don't use the filter, just the broadcaster and it should works. If you have a chance, grab 0.8.4-SNAPSHOT (wait 1 hour as I'm uploading it). Thanks! |
Fixed. Please re-open if still broken. |
Thanks, I will note that with the current fix if you happen to use the JMSFilter and the JMSBroadcaster together you will end up sending unlimited messages to the JMS Topic so it might be worth mentioning that somewhere so people don't hit that problem for themselves. |
Ya, you need to use one or the other, but not both at the same time..Agree I will add documentation. Thanks!!! |
In JMSBroadcaster the outgoingBroadcast method checks to see if the session object has been set. If it is null it throws an exception. Unfortunately this is always the case because as far as I can tell the configure method is never called (the only place the session is set). This causes the following exception to be thrown every time a message is received.
The Class I'm using to test with is:
I'm using atmosphere 0.8.3
The text was updated successfully, but these errors were encountered: