Application Design suggetions
hi all,
I am developing an application which is like JMS Client and receive different messages.
I have to save those messages on the base of starting keyword in messages into different tables.
Here i have some points to save this messages in db tables
1- Do i create different objects (each contain logic to insert in table) and store them in hashtable with keyword, and when i get message campare keyword with hashtable and send message to that object.
2- Or i use some multithreading, if so then how?
Regards
Imran Raza Khan
[575 byte] By [
emmi@javaa] at [2007-11-27 0:59:14]

I would start b using an application server and EJB container that manages JMS queues and create message driven beans that listen on that queue.
Why bother with mutli-threading when this architecture is provided for you already?
In this way you can also use the app server to manage data sources for your app.
This leaves you more time to focus on business requirements than developing a multi-threaded messaging system.
hi maple,Can you guide me to some good tutorial on MDB's, second i have to do different record insertion and gathering information from external DB.regards,