How can I use the Glassfish JMS firewall to "proxy" messages in JMS Broker on the Internet?

I am working on a Java EE 6 Enterprise Application that runs on my local Glassfish3 installation. One of my EJBs should send messages to a remote JMS broker located somewhere on the Internet.

Unfortunately, the internet connection is rather unreliable, so my idea is to first send messages to my local Glassfish JMS broker. Then my local broker forwarded the messages to the remote broker. If the Internet connection is not available, the local broker will simply wait until the connection returns.

Am I right in assuming this will work? If so, I really appreciate some ideas on how to get started.

+3
source share
2 answers

This approach is ideal for this situation (when the remote endpoint is not always available) and is known as store-and-forward messaging. In fact, many application servers support this out of the box, such as WebLogic and its Store and Forward :

SAF WebLogic Server , WebLogic Server. , SAF , WebLogic Server, , . - , - , .

Open MQ ( JMS GlassFish), , (. 2007 ). , ( , , ). , GlassFish v3 Open MQ 4.4 Open MQ 4.4 JMS ( ), . . , ( Open MQ 4.4!). dev.

, , , , . , "" MDB JMS- ( ). , , JMS, MDB, , .

+1

JMS , ( ) , , , .

redelivery (-, # ..) -. MDB, forwarer: MDB, . , . MDB.

"" , MDB "" . , , (DMQ) "" , .

...

0

Source: https://habr.com/ru/post/1730397/


All Articles