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
Oliver Wong - 24 May 2006 21:48 GMT
> Hi,
>
[quoted text clipped - 4 lines]
> 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
Patrick May - 25 May 2006 19:23 GMT
> 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
------------------------------------------------------------------------
S P Engineering, Inc. | The experts in large scale distributed OO
| systems design and implementation.
pjm@spe.com | (C++, Java, Common Lisp, Jini, CORBA, UML)