Java Virtal Machine.net

[ News ] rss

February 01, 2011

Mark Wielaard: New GPG key. Finally created a new GPG key using gnupg. The old one was a DSA/1024 bits one and 8 years old. The new one is a RSA/2048 bits one. I will use the new one in the future to sign any release tarballs I might create. pub 2048R/57816A6A 2011-01-29 Key f...

More »

February 01, 2011

Andrew Hughes: [SECURITY] IcedTea6 1.7.8, 1.8.5, 1.9.5 Released!. We are pleased to announce a new set of security releases, IcedTea6 1.7.8, IcedTea6 1.8.5 and IcedTea6 1.9.5. This update contains the following security updates: The IcedTea project provides a harness to build the source code from OpenJDK6 u...

More »

March/2024
SunMonTueWedThuFriSat
     12
3456789
10111213141516
17181920212223
242526272829 30
31      

[ Archives News
for 'Java Technology' ]

home > news > java technology > using a rest console to administer osgi runtime in glassfish

Using a REST Console to administer OSGi runtime in GlassFish

Introduction   What are our options to administer OSGi runtime in GlassFish? We have already talked about a) a command line tool, and b) a web console. We now have a third option. Recently I came across a REST based console being developed by Filippo Diotalevi. We already have all the necessary support in GlassFish - the REST console requires OSGi/HTTP Service and we have an implementation of the same in GlassFish. So,  I thought I would give it a try and I found it a smooth ride. How to install the REST console: Here are the simple steps to install them: 0. Start GlassFish (I usually run "java -jar glassfish/modules/glassfish.jar"). I suggest you use v3 build #62 or higher available at http://download.java.net/glassfish/v3/promoted 1. Download GlassFish OSGi/HTTP Service bundle and copy it to glassfish/domains/domain1/autodeploy-bundles/. 2. Download the REST Console bundle and copy it to the same directory (i.e., glassfish/domains/domain1/autodeploy-bundles/). That's all. If you are watching the GlassFish logs, you can see GlassFish detecting the new OSGi bundles and starting them. Using the REST console I will show you a couple of commands here. To use the console, you need a HTTP client. You can refer to the usage page for more information. I am using cURL. It is installed by default in many OS. To list all the bundles in the system, we can run: curl http://localhost:8080/osgi/restconsole/bundles/.txt To se...


Date: September, 04 2009
Url: http://www.java.net/blog/ss141213/archive/2009/09/04/using-rest-console-administer-osgi-runtime-glassfish


Others News

©2002-2019Java-Virtual-Machine.net free web editor | Free Bootstrap Template | easy website builder software | bootstrap buttons | bootstrap button