cancel
Showing results for 
Search instead for 
Did you mean: 

message driven bean

Former Member
0 Kudos

Do we need two separate session beans for handling two message driven beans ?

If not, will same connectionfactories, queues/topics suffice for both of them?

Accepted Solutions (0)

Answers (2)

Answers (2)

Vlado
Advisor
Advisor
0 Kudos

Hi,

Session beans do not directly "handle" or call message-driven beans. Instead, they can send messages to some JMS destination (Queue or Topic) where MDBs can be registered as listeners.

That being said, there is no relation between the number of session beans and MDBs, neither is it important if the session bean is stateless or stateful (or is it a session bean at all).

Please see my replies in thread.

Hope that clarifies it a bit!

-Vladimir

Former Member
0 Kudos

Hi,

As long as the session bean is stateless, you can use the same for both.

Thanks,

Rajit Srinivas