a bit confused about the second parameter. objectName is the name of the MBean i want to manipulate? Meaning is it the name of the SA?
Thanks. On Mon, Mar 2, 2009 at 5:53 PM, Guillaume Nodet <[email protected]> wrote: > I would advise using something similar to what the ant tasks do: > > return (AdminCommandsService) > MBeanServerInvocationHandler.newProxyInstance( > jmxConnector.getMBeanServerConnection(), objectName, > AdminCommandsService.class, true); > > This should work with Java >= 1.4 > > On Mon, Mar 2, 2009 at 16:50, liav ezer <[email protected]> wrote: > > Can i use JMX api in java 1.5? > > > > According to this sun document the api is available for 1.6, correct? > > > > http://java.sun.com/javase/6/docs/technotes/guides/management/index.html > > > > > > > > On Mon, Mar 2, 2009 at 5:08 PM, Guillaume Nodet <[email protected]> > wrote: > > > >> Yes, ant tasks use the JMX api and the jbi maven plugin uses ant > >> tasks, so if you want to manage jbi artifacts programmatically, using > >> JMX is the way to go. > >> > >> On Mon, Mar 2, 2009 at 15:57, liav ezer <[email protected]> wrote: > >> > 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 > >> >> > >> > > >> > >> > >> > >> -- > >> 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 >
