简体   繁体   中英

Sending data from EJB server to another EJB server

在此处输入图片说明

I have to send data from P1 et P2 and P3 till reaching the 4th machine P4 which contains 2 EJBs. I don't know how to send data from EJB3A to EJB3B. Can a server be a client too?

The server can, of course, be a client, too.

I guess P3, in the end, is calling EJB3A. If EJB3A andEJB3B are deployed within the same JBoss server, you can use EJB injection to delegate to EJB3B or lookup the EJB. If EJB3B is deployed to another JBoss server instance, you have two options: if EJB3B is clustered, you can use injection or lookup like above. If not, you can still lookup EJB3B like an ordinary remote client would do, using the adress and port and the remote view of the other JBoss server and EJB.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM