Please correct me if i'm wrong but the second option (JMX api) seems like a
more supported API then start running ant commands.

Let me explain:

If i only wish to deploy the SA then running JBI:Deploy will simply
accomplish it. But, if i also want to retrieve the returned status from the
deploy action then i'll have a tough time using ant command while the JMX
api will probably support it.

Am i shooting to the right direction here?

Thanks.



On Mon, Mar 2, 2009 at 4:50 PM, Guillaume Nodet <[email protected]> wrote:

> No, you can either use ant tasks, or use plain JMX api to access the
> AdminCommandsService object which is already available in JMX.
>
> On Mon, Mar 2, 2009 at 15:19, liav ezer <[email protected]> wrote:
> > So, i should implement this interface & in deployServiceAssembly method i
> > use ant tasks?
> >
> > On Mon, Mar 2, 2009 at 4:08 PM, Guillaume Nodet <[email protected]>
> wrote:
> >
> >> You can use ant tasks or JMX (ant tasks use JMX underneath).
> >> At the end, everything is delegated to
> >>   org.apache.servicemix.jbi.framework.AdminCommandsServiceMBean
> >> object registered in JMX.
> >> See
> >>
> https://svn.apache.org/repos/asf/servicemix/smx3/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/AdminCommandsServiceMBean.java
> >>
> >> It's jmx name is by default:
> >>
> >>
> org.apache.servicemix:ContainerName=ServiceMix,Type=SystemService,Name=AdminCommandsService
> >> You should find it easily in JConsole or any other JMX console.
> >>
> >> On Mon, Mar 2, 2009 at 14:59, Liav Ezer <[email protected]> wrote:
> >> >
> >> > Hi,
> >> >
> >> > I'm intrested in automating the deploy phase of my SA.
> >> >
> >> > Assuming that i have built a SA & it's ready to be deployed to
> >> servicemix,
> >> > which Java API do i use in order to deploy it & get the deply process
> >> status
> >> > from the container?
> >> >
> >> >
> >> > Thanks.
> >> > --
> >> > View this message in context:
> >>
> http://www.nabble.com/Is-there-a-Java-API-to-deploy-SA--tp22288609p22288609.html
> >> > Sent from the ServiceMix - User mailing list archive at Nabble.com.
> >> >
> >> >
> >>
> >>
> >>
> >> --
> >> Cheers,
> >> Guillaume Nodet
> >> ------------------------
> >> Blog: http://gnodet.blogspot.com/
> >> ------------------------
> >> Open Source SOA
> >> http://fusesource.com
> >>
> >
>
>
>
> --
>  Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> Open Source SOA
> http://fusesource.com
>

Reply via email to