Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!

Rajesh Bangalore

Greenhorn
+ Follow
since Jun 17, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Rajesh Bangalore

Thanks for the reply Roger again.

I am clear that each message will be processed in a separate thread by MDB instance. But In our case, each message(Publish-subscriber model) is being simultaneously displayed by 10 clients(screens) at same time. How does 10 clients subscribe simultaneously and get the same message at same time using Message Driven Bean?
Thanks Roger for the reply.

I have written multiple POJO's, which implements MessageListerners. These are working fine. I am trying to implement Message Driven Beans version for our application.

we are developing an application that writes transaction messages onto the Topic. There are several client graphical User Interfaces , which connects to the Topic, subscribes itself and keeps on displaying the transactions on user interface as and when the transaction happens.

This is my Question: I have written one Message Driven Bean, configured Deployment Descriptor, Deployed and it works fine for one MDB(It prints transaction in onMessage()).

Let us say, we have a pool of 20 MDB's. As soon as Message is published, Container takes one MDB from pool and assigns to perform the task.

I am thinking of having each MDB that subscribes itself and start displaying
transactions, when Graphical User Interface is opened by user. How do you get instance of MDB from the pool, when the user interfaces starts up?

Let us say, 10 users have opened 10 screens. DO we have 10 instances of same MDB that display all transactions in 10 screens? Does MDB's fit in this kind of scenario?

Appreciate your ideas.
I have configured Topic (Publish - Subscriber Model) in JMS. I have written Message Driven Bean, Configured Deployment Descriptors, Deployed the application onto Application Server ( JMS Server). I have writen client, which sends the messages onto JMS Server. The Message Driven Bean's onMessage() automatically prints the received message from the topic by the client.

The question is how do we write multiple subscribers (Message Receivers) that receives each message sent by client. Do we write multiple Message Driven Beans?

We are writing application, which models Publish-subscriber ( Topic). The client keeps on writing messages onto JMS Topic. On the Server(Receiver) side, we have several application programs that subscribes itself to single topic and read the messages.

Do we write stand alone progams that just implements message listeners or multiple Message Driven Beans? Any ideas will be appreciated.
We are planning to use Rich Client for developing user interface screens. We developed the prototype for user interface using RSWT. Can anybody tell whether RSWT became a baseline for any commercial products? what's the availability and support for RSWT?

I think they have stopped development of new RSWT releases after 2003. Also, what are the other technologies available for developing rich client User interfaces?
16 years ago
We are evaluating different JMS vendors for our application. We are considering JBoss Messaging, web logic, webshere and Oracle Advanced messaging. Please post your experiences for the above JMS vendors.
We are planning to use JMS - Point-to-Point mechanism. Once the message is read from Queue, we would like to save them in oracle database. What are the different options available for the transaction processing?

We are considering the following options.

1. Use Message Driven Beans to read the messages from Queues. Use Container
Managed Transactions ( CMP) and use required attribute setting in
Deployment descriptor. This will ensure that if there are any previous
transactions, the message will be saved within the same transaction.
Otherwise, it will create new transaction and commit the changes to
oracle database.

2. Use some simple POJO's and write your own JDBC to save into oracle
database?

3. Use some object mapping relational tools like hibernate, JDO and use
their transaction control mechanism etc.

Are there any other options available for transaction processing?

Also, My biggest concern is , what happens if the message is read from
message queue and if there is some problem in saving to database
(database is down etc)? what happens to the message already read at
that point?

Appreciate your suggestions, comments etc.
We have planning to replace the message queue for the application in our company. We are planning to use JBossMQ messaging. We are suppose to send and receive message into JBossMQ message Queue using C language since the business logic is written in C. We have considered the following options.

1. Use REST API's to talk with message queue.

2. The C libraies can be used to send and receive http get and post
requests and the server side logic can read/write into message queue.

3. Use JNI to talk with message queue.

4. I read like each application server has its own C/C++ interface API's
for message queues. I googled for JBossMQ c interface API's and
couldn't find any C interface API's.

what are the other options available to communicate with message Queue? which of the above is the best option? Please post your expereinces with c program talking with message queues.
Thanks for the reply.

I was able to unzip the .tgz file and create encache-1.1.jar. Also, I figured out the exception was due to incorrect tags in one of my hbm.xml file.
I tried to run one of the hibernate 3.0 tutorial examples and I got the
following exceptions.

java.lang.NoClassDefFoundError: net/sf/ehcache/CacheException

I am looking to download encache-1.1.jar. I did google search and could not find encache-1.1.jar. I see encache-1.1.tgz at http://ehcache.sourceforge.net which is of different format.

Can somebody show me pointers, where to download this jar file?

Thanks