• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

EJB Remote Call within Message Queue (JMS) Receiver

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic