-
1. Re: Integrating ESB Service with .war file
tcunning Aug 26, 2011 8:39 AM (in response to yi1zhao)You can put package a .WAR file in an .ESB archive. There's a number of quickstarts that end up doing this - helloworld_hibernate_action, most of the webservice_consumer quickstarts. You should check them out for examples.
-
2. Re: Integrating ESB Service with .war file
yi1zhao Aug 26, 2011 3:33 PM (in response to tcunning)I'm able to put the .war inside of the .esb and it all deploys fine but how do I have the classes in the .esb call the classes inside of the .war? They seem to be in different classloaders and can't talk to each other.
If anyone can help, it would be greatly appreicated!
-
3. Re: Integrating ESB Service with .war file
yi1zhao Aug 28, 2011 10:52 PM (in response to yi1zhao)Does anyone know if this is possible? If not, what's the best way for the ESB service to talk to the webapp?
-
4. Re: Integrating ESB Service with .war file
noelo Aug 28, 2011 11:21 PM (in response to yi1zhao)It might be better to embed the web app into the ESB rather than the other way around.
You can wrap the WAR and invoke it using the http gateway and the http router functionality of the ESB.
-
5. Re: Integrating ESB Service with .war file
mannuyi Aug 29, 2011 11:06 AM (in response to yi1zhao)The first step, you should generate a web service for you web application.
Then, using ESB to transfer messages to you web application.
That's the common way I think.
If you just want to show messages that ESB received, there's another simple way.
When ESB received messages, restore it into you local database.
Then, you can show it with you web application.
-
6. Re: Integrating ESB Service with .war file
yi1zhao Aug 29, 2011 12:25 PM (in response to mannuyi)Thanks for the reply everyone!
I just think it's kinda of strange (and inefficient/slow) to have an ESB service and the app that it's associated with talk over HTTP/database. Is there a way to deply an monolithic app that acts as an ESB service and a web app, that way if the ESB service receives a message, the web app can have instant access to it?