-
1. Re: mbd receiving messages from stateless session bean
raja05 Aug 25, 2003 6:53 PM (in response to blakbox)> I must do the same as if I sent the messages
> from an external client?
Not sure if i get you right here, its exactly like how u do it from an external client, Get a ConnectionFactory, session, get the topic/queue, send /publish the message. This is from inside ur session bean instead of a standalone client. You need to define the connectionfactory, topic jndi's as resource references in ur session beans's descriptor if u need to use logical jndi names.
-Raj -
2. Re: mbd receiving messages from stateless session bean
blakbox Aug 26, 2003 2:02 AM (in response to blakbox)Thanks a lot,
that was exactly my question -
3. Re: mbd receiving messages from stateless session bean
alwyn Oct 29, 2003 5:50 AM (in response to blakbox)How do this scale if you have a pool of these session beans each having their own connection to a JMS Queue?
-
4. Re: mbd receiving messages from stateless session bean
frito Oct 30, 2003 12:19 AM (in response to blakbox)Since the connections are pooled there is no problem at all. The beans are stateless and should lookup a new conneciton every time they need one and release it afterwards. There is no need to associate a SLSB with a connection for its lifetime.
Greetings,
Frito -
5. Re: mbd receiving messages from stateless session bean
adrian.brock Oct 30, 2003 12:27 AM (in response to blakbox)You should use the JCA resource adapter.
The connection factory is bound at java:/JmsXA
This has three advantages:
1) It uses the in memory transport (method calls)
2) It pools sessions behind the scenes
3) Your send won't happen if the transaction rolls back.
Regards,
Adrian -
6. Re: mbd receiving messages from stateless session bean
alwyn Oct 30, 2003 2:12 AM (in response to blakbox)In the case where you don't want to use transactions. Would the java:/ConnectionFactory have the same effect?
-
7. Re: mbd receiving messages from stateless session bean
adrian.brock Oct 30, 2003 2:17 AM (in response to blakbox)Not quite. That is just a plain connection factory, there is
no pooling.
Regards,
Adrian -
8. Re: mbd receiving messages from stateless session bean
alwyn Oct 30, 2003 2:21 AM (in response to blakbox)I might be wrong, but I seem to have read that XA connections are lower performance.
This is not true in this case as it is JVM method calls right? -
9. Re: mbd receiving messages from stateless session bean
adrian.brock Oct 30, 2003 2:38 AM (in response to blakbox)Transactions are slower because of the transaction log.
XA => transactions
Regards,
Adrian