Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

How to implement a cyclic/repeating process in J2EE
The project we are currently developing receives database triggered
events using an Oracle AQ messaging server and a receiving MDB.  It
turns out the Oracle AQ is not delivering the messages reliably.  We
intend to replace the AQ with our own process in the J2EE application
server.  This process will query the database for stored database
changes (stored by the new triggers), and then post the changes on the
application server through the application server's JMS.  In the same
XA transaction posting the JMS message the database entries will be
removed so they will not be available onthe next query.

The question I have is how to implement the repeating/cyclic J2EE
process that quiries the database for the triggered stored database
changes.

(1) One suggestion is to spin off a separate thread within the current
MDB that would repeatedly query the database and post any new changes
on the servers JMS.  I am always concerned about adding threads onto
the J2EE server instance, so this one concerns me.

(2) Another suggestion is to develop another MDB that would send
itself a low priority message to make the database query.  When the
message is received the new MDB would query the database, post any new
database change messages, and then send itself a message to start the
process over again.

I would be very interrested in any suggestions or warning on how to
deploy a cyclic/repeated service like the one I briefly described
here.

Thank you for your time,
Bud Curtis

Report this thread to moderator Post Follow-up to this message
Old Post
Bud Curtis
10-20-04 01:56 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Java Beans archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:54 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.