JMS and EJB

N

Nico

Hi,

i have more entity beans that must leave their messages on a queue and i
have more message-driven beans that must read the messages on the queue.
can i implement this situations?
how?
maybe i must use a topic instead of the queue, but can differets entity
beans leave their messages in the same queue or topic?

thanks and sorry for my english... :)
nico
 
O

Oliver Wong

Nico said:
Hi,

i have more entity beans that must leave their messages on a queue and i
have more message-driven beans that must read the messages on the queue.
can i implement this situations?
how?
maybe i must use a topic instead of the queue, but can differets entity
beans leave their messages in the same queue or topic?

Not sure I fully understand your question, but it sounds like an example
of the producer-consumer problem which is typically demonstrated in most
textbooks on multithreading. See for example
http://java.sun.com/docs/books/tutorial/essential/threads/synchronization.html

Does this solve your problem?

- Oliver
 
P

Patrick May

Nico said:
i have more entity beans that must leave their messages on a queue and i
have more message-driven beans that must read the messages on the queue.
can i implement this situations?
how?
maybe i must use a topic instead of the queue, but can differets entity
beans leave their messages in the same queue or topic?

One alternative worth considering is Jini (http://www.jini.org).
The JavaSpace service, in particular, is well suited to your
requirements.

Regards,

Patrick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top