Re: Design validation please?
Tim Anderson <[email protected]> Tue, 10 Oct 2006 08:24:54 +1000
| Newsgroups | gmane.comp.java.openjms.user |
|---|---|
| Message-ID | <[email protected]> |
Phillip Rhodes wrote: > I need to keep a database in sync with a lucene index. The database and > JVM application that updates it may be on a different machine than the > lucene index. I was thinking that using a publish/subscribe model would > solve this problem. > > Something like this; > 1) Java application updates database and publishes message to jms queue > about the db update > 2) Java subscribers to the queue update their lucene indexes. > > While this sounds good to me, introducing JMS into the application stack > is of concern since I am already running a database, lucene indexers, > spring, hibernate, 3+ different war files as part of the techology > stack, and I am wondering if I am overengineering my idea. > I would appreciate some validation/repudiation on my idea to use open > jms in my application. > Sounds like a reasonable approach. A database only approach I have seen used, uses triggers to track changes. Changes are logged to a single table, which is polled by one or more applications (effectively the 'subscribers'). > And what exact license does open jms use? > http://openjms.sourceforge.net/license.html > Is it possible to startup in a container like tomcat as a server, or > does it need to run as a standalone server? > > See http://article.gmane.org/gmane.comp.java.openjms.user/2624/match=tomcat+server -Tim ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV