Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB Remote Call within Message Queue (JMS) Receiver  RSS feed

 
Santhosh Kalisamy
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I do have an design question regarding making EJB call within JMS Queue

Java : Java 7
Server: JBoss AS 7.1.1.Final
EJB: EJB 3 (Not fully, Migrated from EJB 2 to 3 with some tweeks)

The current design is like that.

ApplicationSer1 has been deployed JBossInstance1 @ UNIXServer1, and
ApplicationCli2 has been deployed JBossInstance2 @ UNIXServer1.

ApplicationCli2 makes EJB call to ApplicationSer1 for many actions - Direct Call.

ApplicationCli2 already has an Message Queue (Local).

Is it ok to make a EJB call to ApplicationSer1 on ApplicationCli2 within Message Queue (Receiver)

I tested the call, it works well.

I am just worried about the performance issues.

 
Ganesh Malaichamy
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can call a EJB from a queue. The catch here is not performance. But the transaction. When there is interruption in the current flow please observe the transaction rollback behavior.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!