This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

is there any JMS implementation which could be embeded into web application?  RSS feed

 
raminaa niilian
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Thank you for reading my post.
Is there any JMS implementation that can be embed into web application ?
I mean all of its component becom into web application , i have no acceess to change the server tomcat server.xml and i have no right to run a jms server on the server.
indeed
I should write an application which should handle 20-30 Tra / second .
as i fear that my database (embeded derby) or the Host server can not handle this rate , i want to embed
a jms into my web application , pass some of sql statement as a message to a queu in jms and then fetch and execute them one-by one or in a batch mode.Each trans Action has 2 insert and 2 update statement , total number of database table will not pass 20 .

thank you
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OpenJMS is written in Java, so it should be embeddable in a web app, although that's not really a good design.
 
raminaa niilian
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
thank you for reply
I found a discussion in OpenJMS mailing list
As i found they need to pass a parmeter to tomcat start-up script.
http://sourceforge.net/mailarchive/forum.php?thread_id=8269406&forum_id=12918


Can you tell me why it is wrong desing , using JMS in embeded mode is wrong or using jms in this case is wrong?




Thanks
[ November 06, 2005: Message edited by: raminaa niilian ]
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A messaging server is a server, it should operate on its own, independent from the web app or the DB (I understand the constraints of your case, although I think they're strange).
You don't give enough detail to tell whether or not using a messaging system makes sense, but if all three of web app, messaging server and DB operate inside the same JVM, you could devise a solution without a JMS that would save all its overhead, and probably be a good deal faster. Of course, it may still not be fast enough to handle DB TXs in real-time, so you might have to queue requests yourself.
 
Aleksey Barabashov
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ulf Dittmer:
OpenJMS is written in Java, so it should be embeddable in a web app, although that's not really a good design.


OpenJMS is not production ready Alas...
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OpenJMS is not production ready


Do you base that assessment on the sub-1.0 release number alone? Because version 0.761 has been stable for a while (and is much more so than quite a few post-1.0 software packages).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!