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.
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!
Does anyone know if this is possible? If not, what's the best way for the ESB service to talk to the webapp?
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.
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.
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?