Results 1 to 1 of 1
- 12-04-2011, 10:19 AM #1
Member
- Join Date
- Dec 2011
- Posts
- 1
- Rep Power
- 0
Dispatch messages system design consult
I have a design question and would like to have suggestions.
I am using Weblogic 11g, EJB3.0 , Weblogic JMs
I have a system which it's target to retrieve and dispatch messages to couple of resources(databases).
Each message contain information and target database key.
So here is an flow example:
I get from web service a message and key target. I parse the message and dispatch it to the right database via the key target.
There is a possibility that a message will contain more then one target database.(for example the key 'all' means that I should dispatch to all databases.
If Insert is failing in one of the resources a rollback will occurred and I a re-try will re-execute the whole operation.
So now this is my issue:
Should I make the number of the queues as the number of my resources? (and dedicated each Queue to a specific resource)
(In this case I parse each message and just send it to the right queue while an MDB will listen and do the insertion to the right database)
If I do it that way I wont be able to make it dynamic, Meaning each time a new resource will need to be added/removed in the future I will need to open the code and make the right changes.
What you desgigners think? How could I implement it better dynamiclly?
thanks for your help,
ray
Similar Threads
-
Best way to design a Pipe System?
By FadedAura in forum New To JavaReplies: 1Last Post: 11-18-2011, 09:55 PM -
skip a line between 2 system.out.println messages
By aconti in forum New To JavaReplies: 5Last Post: 05-30-2011, 11:27 AM -
The Proper Class Design For Designing a Custom Language Type System
By abdulsami in forum Advanced JavaReplies: 2Last Post: 02-17-2011, 05:15 AM -
How to design this System architecture
By thejavaman in forum Advanced JavaReplies: 2Last Post: 10-18-2009, 12:41 AM -
database design for leave management system
By anji4u_19 in forum JDBCReplies: 0Last Post: 08-26-2008, 11:27 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks