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]
# 1
Hi,It's an odd question. 1 and 2 are not related and they aren't in conflict. You probably need to do both.Kaj
kajbja at 2007-7-11 23:33:30 > top of Java-index,Java Essentials,Java Programming...
# 2

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.

maple_shafta at 2007-7-11 23:33:30 > top of Java-index,Java Essentials,Java Programming...
# 3
hi,You right here but requirement is that i have to store messages in different tables.And from those tables other application will read.Regards
emmi@javaa at 2007-7-11 23:33:30 > top of Java-index,Java Essentials,Java Programming...
# 4
hi kajbj,Please elaborate me how/why i will use both?Regards
emmi@javaa at 2007-7-11 23:33:30 > top of Java-index,Java Essentials,Java Programming...
# 5
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,
emmi@javaa at 2007-7-11 23:33:30 > top of Java-index,Java Essentials,Java Programming...
# 6
[url] http://www.theserverside.com/tt/articles/article.tss?l=Pramati-MDB[/url]This is just an example.
maple_shafta at 2007-7-11 23:33:30 > top of Java-index,Java Essentials,Java Programming...