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 »
December/2024
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 | | | | |
|
|
OSGi/JMS/MDB Example
Here is an example of yet another hybrid (OSGi + Java EE) application. This is a complete JMS consumer/producer example using OSGi and GlassFish. You can download the complete sample from here.
How to use the sample:
1. Download osgi-jms-mdb-1.zip and unzip it.
2. cd osgi-jms-mdb-1/
3. mvn clean install
4. Start GlassFish (something like "asadmin start-domain" or "java -jar glassfish.jar" will do)
5. Download OSGi/EJB container support bundle for GlassFish and
install it by just copying to modules/autostart/:
wget http://download.java.net/maven/glassfish/org/glassfish/osgi-ejb-container/3.1-SNAPSHOT/osgi-ejb-container-3.1-SNAPSHOT.jar
cp osgi-ejb-container-3.1-SNAPSHOT.jar $glassfish/modules/autostart/
6. Create a couple of JMS resources by executing the following commands
(you can use the admingui if you prefer GUI)
asadmin create-jms-resource --restype javax.jms.Topic jms/osgi.Topic1
asadmin create-jms-resource --restype javax.jms.ConnectionFactory jms/osgi.ConnectionFactory1
7.tail -f $glassfish/domains/domain1/logs/server.log.
8. Deploy the bundles and configure them as shown below
(Although, you can copy them in any order you like, but I suggest you copy them
in the following order to them in action and after each step, watch server.log).
cp ./message-consumer/target/osgijms1.consumer.jar $glassfish/domains/domain1/autodeploy/bundles/
cp ./message-producer/target/osgijms1.producer.jar $glassfish/domains/domain1/...
Date: April, 22 2010
Url: http://www.java.net/blog/ss141213/archive/2010/04/21/osgijmsmdb-example
Others News
|