Skip to main content



      Home
Home » Eclipse Projects » Equinox » COntrolling an osgi server from ant
COntrolling an osgi server from ant [message #87841] Wed, 09 May 2007 00:14 Go to next message
Eclipse UserFriend
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have an ant script that will download new versions of plugins as they
get compiled on our CruiseControl system and install then into the
plugins directory on our OSGi server. How do I tell the OSGi server to
reload the new plugins?

Also just restarting the server would be acceptable also.

If this is not the correct way to handle the server start/stop/reload
please advise of the correct way.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGQUq+yHA2ZZVyicQRAldfAJkBNWRHLVDRVChjB6Lw4cgRAAoACACg nwh0
rsziuSEaC5+rn762Yib0k1o=
=VUeQ
-----END PGP SIGNATURE-----
Re: COntrolling an osgi server from ant [message #87977 is a reply to message #87841] Fri, 11 May 2007 09:37 Go to previous messageGo to next message
Eclipse UserFriend
OSGi provides good support for installing and uninstalling bundles in a live
system however for what you're doing it sounds like a restart would be the
easiest way. You might want to look at using "-clean" as a command argument
to clear out your old configuration data each time you run.

HTH
-Simon

"Mark Russell" <fireresq@earthlink.net> wrote in message
news:f1rhsl$gfp$1@build.eclipse.org...
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I have an ant script that will download new versions of plugins as they
> get compiled on our CruiseControl system and install then into the
> plugins directory on our OSGi server. How do I tell the OSGi server to
> reload the new plugins?
>
> Also just restarting the server would be acceptable also.
>
> If this is not the correct way to handle the server start/stop/reload
> please advise of the correct way.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (Cygwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFGQUq+yHA2ZZVyicQRAldfAJkBNWRHLVDRVChjB6Lw4cgRAAoACACg nwh0
> rsziuSEaC5+rn762Yib0k1o=
> =VUeQ
> -----END PGP SIGNATURE-----
Re: COntrolling an osgi server from ant [message #87992 is a reply to message #87977] Fri, 11 May 2007 09:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fireresq.embarqmail.com

Simon thanks for the information :->. What is the best way to shut down
the server in an automated fashion? I want my ant script to be able to
kill the running server. Should I just run a kill with sigterm or is
there a better way to kill the running server?


Simon Kaegi wrote:
> OSGi provides good support for installing and uninstalling bundles in a live
> system however for what you're doing it sounds like a restart would be the
> easiest way. You might want to look at using "-clean" as a command argument
> to clear out your old configuration data each time you run.
>
> HTH
> -Simon
>
> "Mark Russell" <fireresq@earthlink.net> wrote in message
> news:f1rhsl$gfp$1@build.eclipse.org...
> I have an ant script that will download new versions of plugins as they
> get compiled on our CruiseControl system and install then into the
> plugins directory on our OSGi server. How do I tell the OSGi server to
> reload the new plugins?
>
> Also just restarting the server would be acceptable also.
>
> If this is not the correct way to handle the server start/stop/reload
> please advise of the correct way.
Re: COntrolling an osgi server from ant [message #88035 is a reply to message #87992] Fri, 11 May 2007 23:05 Go to previous messageGo to next message
Eclipse UserFriend
SIGTERM is not pretty but would work -- especially if you're in a position
to recreate your installation.

Ideally you would want to follow the "close" console command logic and call
EclipseStarter.shutdown when you want to stop.
You might try doing something clever with a shutdown handler or else find
some other means to signal the process.
-Simon

"Mark Russell" <fireresq@embarqmail.com> wrote in message
news:f21rs8$ohr$1@build.eclipse.org...
> Simon thanks for the information :->. What is the best way to shut down
> the server in an automated fashion? I want my ant script to be able to
> kill the running server. Should I just run a kill with sigterm or is
> there a better way to kill the running server?
>
>
> Simon Kaegi wrote:
>> OSGi provides good support for installing and uninstalling bundles in a
>> live
>> system however for what you're doing it sounds like a restart would be
>> the
>> easiest way. You might want to look at using "-clean" as a command
>> argument
>> to clear out your old configuration data each time you run.
>>
>> HTH
>> -Simon
>>
>> "Mark Russell" <fireresq@earthlink.net> wrote in message
>> news:f1rhsl$gfp$1@build.eclipse.org...
>> I have an ant script that will download new versions of plugins as they
>> get compiled on our CruiseControl system and install then into the
>> plugins directory on our OSGi server. How do I tell the OSGi server to
>> reload the new plugins?
>>
>> Also just restarting the server would be acceptable also.
>>
>> If this is not the correct way to handle the server start/stop/reload
>> please advise of the correct way.
Re: COntrolling an osgi server from ant [message #88064 is a reply to message #88035] Sat, 12 May 2007 06:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alex_blewitt.yahoo.com

You could also have it running with a network console (e.g. -console 1234) and then use Ant to telnet in and echo 'shutdown\n' to bring the system down remotely.

Also see http://www.eclipsezone.com/eclipse/forums/t93976.html which talks about how to get a Java app booting up an Equinox OSGi runtime.

Alex.
Re: COntrolling an osgi server from ant [message #88135 is a reply to message #87841] Tue, 15 May 2007 16:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kgilmer.gmail.com

Mark,

I had this exact same issue. The solution I came to that worked
nicely was to write a simple bundle that scans a directory
(/cruisecontrol/artifact/project..) for bundles. When it finds a
bundle, it loads it, looks for existing bundles with older versions, and
if finds them uninstalls them, then starts the new version. This meant
that the latest build versions of my bundles were always available for
tests. I would be happy to give you the source if interested.

cheers
ken


Mark Russell wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I have an ant script that will download new versions of plugins as they
> get compiled on our CruiseControl system and install then into the
> plugins directory on our OSGi server. How do I tell the OSGi server to
> reload the new plugins?
>
> Also just restarting the server would be acceptable also.
>
> If this is not the correct way to handle the server start/stop/reload
> please advise of the correct way.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (Cygwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFGQUq+yHA2ZZVyicQRAldfAJkBNWRHLVDRVChjB6Lw4cgRAAoACACg nwh0
> rsziuSEaC5+rn762Yib0k1o=
> =VUeQ
> -----END PGP SIGNATURE-----
Re: COntrolling an osgi server from ant [message #88149 is a reply to message #87841] Tue, 15 May 2007 16:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kgilmer.gmail.com

Mark,

I had this exact same issue. The solution I came to that worked
nicely was to write a simple bundle that scans a directory
(/cruisecontrol/artifact/project..) for bundles. When it finds a
bundle, it loads it, looks for existing bundles with older versions, and
if finds them uninstalls them, then starts the new version. This meant
that the latest build versions of my bundles were always available for
tests. I would be happy to give you the source if interested.

cheers
ken


Mark Russell wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I have an ant script that will download new versions of plugins as they
> get compiled on our CruiseControl system and install then into the
> plugins directory on our OSGi server. How do I tell the OSGi server to
> reload the new plugins?
>
> Also just restarting the server would be acceptable also.
>
> If this is not the correct way to handle the server start/stop/reload
> please advise of the correct way.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (Cygwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFGQUq+yHA2ZZVyicQRAldfAJkBNWRHLVDRVChjB6Lw4cgRAAoACACg nwh0
> rsziuSEaC5+rn762Yib0k1o=
> =VUeQ
> -----END PGP SIGNATURE-----
Re: COntrolling an osgi server from ant [message #88163 is a reply to message #88135] Tue, 15 May 2007 23:24 Go to previous messageGo to next message
Eclipse UserFriend
Sounds a little bit like Peter's fileinstall agent.
http://www.aqute.biz/Code/FileInstall

I like the idea. Perhaps an implementation specific version could handle
restarts when necessary.

"Ken Gilmer" <kgilmer@gmail.com> wrote in message
news:464A156B.9020601@gmail.com...
>
> Mark,
>
> I had this exact same issue. The solution I came to that worked nicely
> was to write a simple bundle that scans a directory
> (/cruisecontrol/artifact/project..) for bundles. When it finds a bundle,
> it loads it, looks for existing bundles with older versions, and if finds
> them uninstalls them, then starts the new version. This meant that the
> latest build versions of my bundles were always available for tests. I
> would be happy to give you the source if interested.
>
> cheers
> ken
>
>
> Mark Russell wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> I have an ant script that will download new versions of plugins as they
>> get compiled on our CruiseControl system and install then into the
>> plugins directory on our OSGi server. How do I tell the OSGi server to
>> reload the new plugins?
>>
>> Also just restarting the server would be acceptable also.
>>
>> If this is not the correct way to handle the server start/stop/reload
>> please advise of the correct way.
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.5 (Cygwin)
>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>>
>> iD8DBQFGQUq+yHA2ZZVyicQRAldfAJkBNWRHLVDRVChjB6Lw4cgRAAoACACg nwh0
>> rsziuSEaC5+rn762Yib0k1o=
>> =VUeQ
>> -----END PGP SIGNATURE-----
Re: COntrolling an osgi server from ant [message #88228 is a reply to message #88163] Wed, 16 May 2007 10:18 Go to previous message
Eclipse UserFriend
Originally posted by: kgilmer.gmail.com

Oh, cool. I wish I'd seen this earlier. :) The only difference I can
see from reading the short description on the referenced page is the
version handling. Although that could probably be just as easily
handled at the filesystem level...

Simon Kaegi wrote:
> Sounds a little bit like Peter's fileinstall agent.
> http://www.aqute.biz/Code/FileInstall
>
> I like the idea. Perhaps an implementation specific version could handle
> restarts when necessary.
>
> "Ken Gilmer" <kgilmer@gmail.com> wrote in message
> news:464A156B.9020601@gmail.com...
>> Mark,
>>
>> I had this exact same issue. The solution I came to that worked nicely
>> was to write a simple bundle that scans a directory
>> (/cruisecontrol/artifact/project..) for bundles. When it finds a bundle,
>> it loads it, looks for existing bundles with older versions, and if finds
>> them uninstalls them, then starts the new version. This meant that the
>> latest build versions of my bundles were always available for tests. I
>> would be happy to give you the source if interested.
>>
>> cheers
>> ken
>>
>>
>> Mark Russell wrote:
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>>
>>> I have an ant script that will download new versions of plugins as they
>>> get compiled on our CruiseControl system and install then into the
>>> plugins directory on our OSGi server. How do I tell the OSGi server to
>>> reload the new plugins?
>>>
>>> Also just restarting the server would be acceptable also.
>>>
>>> If this is not the correct way to handle the server start/stop/reload
>>> please advise of the correct way.
>>> -----BEGIN PGP SIGNATURE-----
>>> Version: GnuPG v1.4.5 (Cygwin)
>>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>>>
>>> iD8DBQFGQUq+yHA2ZZVyicQRAldfAJkBNWRHLVDRVChjB6Lw4cgRAAoACACg nwh0
>>> rsziuSEaC5+rn762Yib0k1o=
>>> =VUeQ
>>> -----END PGP SIGNATURE-----
>
>
Previous Topic:Re: MyFaces & Equinox - Issue with FactoryFinder
Next Topic:latest org.eclipse.equinox.servletbridge is not working
Goto Forum:
  


Current Time: Fri Jul 18 17:19:22 EDT 2025

Powered by FUDForum. Page generated in 0.07493 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top