Are there any ways to achieve what you ask.
I personally prefer:
client1 has an SB (Bean session) that connects to the JMS queue (the JMS queue is configured on the server), for now we will call it inQueue.
after the form data is in inQueue, you will need MDB (a message-driven bean running on a server that will retrieve data from inQueue, we will call it MDBInQueue.
The server in MDBInQueue processes the data received in the form and generates the appropriate output format for the client.
Now again in MDBInQueue it sends a response to the next queue, which is again on the server. we will call it outQueue.
2 MDB, MDBOutQueue. , , 2.
,