On Jan 14, 2009, at 3:29 PM, Ricky Ignatius wrote:
Hi,
I try to do same thing.
Currently I use ant to run command line, and call those ant task
from java.
For install-plugin, I unable to do that using ant so I use JMX to call
plugin gbean directly.
It's work so far, is there any bteer way to do that?
I'm a little bit confused about what you want. The original request
was for advice on how to call some gbean methods from within the
geronimo vm. We also have a lot of gshell commands that call these
gbean methods from another vm running gshell, and of course there are
lot of maven plugins that let you do this stuff. You mention ant
repeatedly.... do you want some way to call these methods from ant?
Or from another vm? JMX should certainly work but you should be able
to write some simpler client code if you use gbean proxies as the
gshell code does.
Ant tasks should be pretty easy to write also, I think no one here
uses ant much so it hasn't been a priority. If you would like to try
we can give you some advice and if you could contribute them that
would be great!
thanks
david jencks
Thanks,
Ricky
djencks wrote:
On Aug 27, 2007, at 12:56 AM, Stefan Schulze Frielinghaus wrote:
I would like to have the functionality of the command line tool
"java -jar deployer.jar --user system --password manager
{deploy,undeploy} <tool>.jar" in a GBean. So I could programmatic
load and unload other GBeans via a GBean.
Is something like that possible?
Definitely. There's a portlet in the admin console that does that.
There's also a portlet that lists all the "gbean" (non-javaee)
modules that are running.
I assume you are aware that the command you mention deploys a module
or configuration that contains a plan describing any number of gbeans
and creates a classloader also described by the plan. Your
description of what you want sounds a little like you want to deploy
single gbeans which is not exactly how I would describe a module.
thanks
david jencks
--
View this message in context:
http://www.nabble.com/deploy-and-undeploy-a-gbean-tp12317449s134p21467768.html
Sent from the Apache Geronimo - Users mailing list archive at
Nabble.com.