Hi,
This is interesting. Actually Servicemix 4 and OSGI give a much more fine
grained control in terms of staging applications than Servicemix 3 due to
richer OSGi based lifecycle operations support.
As far as best practices go, when you deploy service assemblies in OSGi in
the following way
a> Ensure that you deploy using
servicemix> osgi install
jbi:mvn:com.mycompany/foo-sa/1.0-SNAPSHOT/zip
b> Set the OSGI bundle level
servicemix> osgi start-level <bundle-number>
servicemix> osgi start <bundle-number>
c> You could deploy using a batch file that could source the above
commands via a shell script using the utils commands for e.g
servicemix> utils exec foobar.bat
The above 3 steps should help you to craft a strategy that allows you to
deploy your JBI applications in a staged manner.
What is more setting the bundle-level will ensure that you can stage your
deployment in a very fine-grained manner. This staging will hold good on any
subsequent bouncing of your container as well.
Hope this helps.
Cheers,
Ashwin...
jbi joe wrote:
>
> With Servicemix 3.x I started servicemix with my desired
> containers, BC, SE's and then after all was UP, I systematically
> deployed my SA's in the order in which I wanted them to
> dynamically deploy, checking endpoints to ensure each
> was up prior to deploying the next. I used the apache ODE engine
> with BPEL SA'z to perform this task. I used Netbeans to create
> the BPEL flows and this proved to be very easy to maintain
> and alter business logic as needed.
>
> With Servicemix 4.x I am loading everything ALL at once.
> It seems that my load method with Serivemix 3.x was
> much faster and highly reliable. All at once I never know
> whats loading first or even if MY NMR is transacting prior
> to everything being ready..
>
>
> Please, whata best Practice here?
> TIA
>
-----
---
Ashwin Karpe, Principal Consultant, PS - Opensource Center of Competence
Progress Software Corporation
14 Oak Park Drive
Bedford, MA 01730
---
+1-972-304-9084 (Office)
+1-972-971-1700 (Mobile)
----
Blog: http://opensourceknowledge.blogspot.com/
--
View this message in context:
http://www.nabble.com/Best-Practice-for-deployments-3.x-vs-4.x-tp22729118p22788525.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.