I have been working through the lw-container, JSR181 and wanted to share some thoughts on these service engines.
I'm wondering whether then should be service engines, since they each require a additions to the classpath I'm wondering if they shouldn't be Binding Component Archetypes. I suppose the question becomes one on how best to define the JBI spec. Here is the logic for my argument: If a binding component is meant to broker some interaction with an external system then the JSR-181 and lw-container are most likey doing that. If I can presenting a service interface to the ESB for business logic (most common usecase in the JSR181) then I would have thought I was a binding component. In a binding component we would be able to handle additions to the classpath through the JBI descriptor, while in the Service Units this is don't outside of JBI. I'm thinking that the lw-container and jsr-181 se could be better places as shared libraries that archetypes use - such that you can create an archetype (even add classes to the dependencies) and still have the functionality. This leads into the ServiceMix components and LW-Container - I'm wondering whether servicemix-components would be better off being a Shared Library, then you could create a binding component based on the lightweight component shared library and the servicemix components shared library and hopefully the class path would be resolved. The only problem I see here is that if you are working in a servicemix embedded model you might need to be able to reference shared libraries in your servicemix.xml to force them to load in there so that the packaging can be consistent. I realize this is all large scale changes but I wanted to throw them out there to see what people think? Cheers P
