Avatar billede fredand Forsker
26. april 2006 - 15:40 Der er 6 kommentarer og
2 løsninger

Is there an alternative to JMS?

Hello!

Suppose you have this scenario of a webshop running on server A and a webbased system to monitor your warehouse running on server B.
The webshop creates orders to be assembled in the warehouse.
Since the webshop does not need any employees it is running 24/7.

The warehouse on the other hand has employees and during each night they shut down server B.

A solution to create a nice communications between server A and server B could be using JMS. Since it supports guaranteed delivery with concept such "Store-and-Forward Messaging" and "Internal acknowledgment rules".

The question now is if you could suggest any other solution for this.

The problem is:
how to not lose any messages
how to not block the webshops interaction

With block the webshop I mean that if the webshop creates an order and waits for an respond it may be blocked and the customer may not be able to complete the order if server B is down.

Any comments are welcome!

Best regards
Fredrik
Avatar billede mfalck Praktikant
26. april 2006 - 15:52 #1
I guess that an Enterprise Service Bus could do the same thing: e.g. http://mule.codehaus.org/ supports transactions - but i dont know if it supports something like store and forward.
Avatar billede arne_v Ekspert
26. april 2006 - 19:21 #2
The only alternative I can see to a message queue is using the database.

And since a message queue that persists messages are probbaly storing them
in a database anyway, then the only thing using the database is achieving
is that you have to write some more code instead of using the convenient
JMS interface.
Avatar billede arne_v Ekspert
26. april 2006 - 19:27 #3
An ESB can be used, but that is a higher level thing which makes it possible
to get data in as format_1/transport_a and out as format_2/transport_b.

Message queue will typical be supported in an ESB and can be
used as infrstructure for an ESB.

I would usually say:

existing heteregenous environment => use ESB

new heteregenous environment => use only SOAP/HTTP

homogenous environment => use something more specific like JMS and a message queue
Avatar billede fredand Forsker
28. april 2006 - 08:37 #4
Hello!

Thanks for your comments.

Please correct me if my following assumptions is wrong.

1) We are using JMS between WebLogic and MQ, (heteregenous environment). To achive this we use a XA-adapter shipped with WebLogic. Then I guess that we are likely using ESB?

2) We just use JMS in our code I assume that the adapter between our WebLogic and MQ hides the implementation about SOAP/HTTP(RPC)? Does this sound resonable?

3) Correct me if I'm wrong when I say that a description of ESB is:
In a homogenous environment, like inside our WebLogic, we use JMS. But when we need to bridge our coummunication to an other environment, like MQ, we use SOAP/HTTP (RPC). This two technics together is the definition of ESB?

4) I have also seen something about ESB and J2EE Connector Architecture, but where does this JCA fit in in the above description of ESB?

I hope I made my assumptions cleared. Feel free to comment!

Best regards
Fredrik
Avatar billede arne_v Ekspert
28. april 2006 - 13:12 #5
Since MQ do comes with a JMS interface, then it is not that heterogeneous.

You are using a JMS interface to MQ (either from BEA or IBM). No SOAP/HTTP here.

ESB is a marketing term not a technical term. I would say that you would
need more than 2 different interfaces to call it an ESB.

http://en.wikipedia.org/wiki/Enterprise_Service_Bus is not particular clear either.

From J2EE you could connect to an ESB via JMS or via SOAP/HTTP or via a custom
JCA adapter.
Avatar billede fredand Forsker
03. maj 2006 - 10:10 #6
Hello!

Thanks for all comments, please give svar so I can reward all of you!

Best regards
Fredrik
Avatar billede mfalck Praktikant
03. maj 2006 - 10:13 #7
i guess that arne_v (as always) deserves the better part of the points :-)
Avatar billede arne_v Ekspert
03. maj 2006 - 13:12 #8
answer

not necesarrily - I may have written more lines, but your ESB idea brougth a new idea
to the table
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester