I have gone through the tutorials and I think I have grasped some of the
basic concepts of JBI. However I still feel a gap between the simple
examples and usage of an ESB in an enterprise environment.
I have a web application which exposes a set of webservices accessing
functionality of various legacy or proprietrary platforms. The WSDL of these
webservices is standard and cannot be changed. I wish to decouple the
proprietrary functionality from the webservices themselves and it seems that
having an ESB in place would be the ideal framework.
The application currently runs inside tomcat and makes use of various other
frameworks (JAAS, JAX-WS, JPA) so re-writing the whole application is not
justifiable.
I imagine that I would need to write any protocol-specific Binding
Components according to the JBI framework to interact with the proprietrary
protocols. However, it is not clear how I should go about the rest of the
application framework.
I would really appreciate some feedback and answers on the best way to do
this. These are the obvious questions that come to my mind.
Where is the best way for the business logic of the application to reside?
The web service currently does some business logic (keeping track of
requests in a database, etc.) before sending requests through the
proprietrary protocols.
What is the best way for a client to use the services or binding components
on the ESB? Is the RemoteServiceMixClient the right way? What is the easiest
way to integrate the web service part to the different binding components.
I tried to use the RemoteServiceMixClient but the documentation is not clear
and I have seen conflicting examples on forums and mailing lists such as the
following. Which is the right one that works on ServiceMix 3.2.1?
RemoteServiceMixClient client = new
RemoteServiceMixClient("tcp://localhost:61616");
RemoteServiceMixClient client = new
RemoteServiceMixClient("http://localhost:61616");
Is this a good way to access the services available on the ESB after all?
--
View this message in context:
http://www.nabble.com/Architecture-for-application-tp15943407s12049p15943407.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.