Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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

 
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 43027
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43027
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43027
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
 
I think he's gonna try to grab my monkey. Do we have a monkey outfit for this tiny ad?
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic