Convert jars into OSGi bundled jars

•May 27, 2009 • Leave a Comment

Warning: file_get_contents(/home/duyingl1/public_html/researchblog.org/wp-content/plugins/terms-and-conditions/terms-and-conditions.txt) [function.file-get-contents]: failed to open stream: Permission denied in /home/duyingl1/public_html/researchblog.org/wp-content/mu-plugins/terms-and-conditions.php on line 74

Warning: file_get_contents(/home/duyingl1/public_html/researchblog.org/wp-content/plugins/terms-and-conditions/privacy-policy.txt) [function.file-get-contents]: failed to open stream: Permission denied in /home/duyingl1/public_html/researchblog.org/wp-content/mu-plugins/terms-and-conditions.php on line 78

Download Bundlor (latest) and try to follow the easiest way to convert the jars from the user documentation. Prepare a template.mf file as follows:

manifest-Version: 1.0
BundleBundle-Name: SRM Common Bundle
Bundle-SymbolicName: org.researchblog.something
Bundle-Vendor: Vendor Name
Bundle-Version: 1.0.0
Copy the required jars into a new folder. place template.mf file in it.
Execute the following commands:
Go to bin directory in Bundlor and execute this command

./bundlor.sh transform \
–bundle (location of jars)jars/sims_common.jar \
–manifest (location of template)jars/template.mf \
–outputfile (location of output jar)jars/sims_common_osgi.jar
The Above command will convert the normal jar to OSGi bundle jar.

How to start a Java EE Spring project

•May 25, 2009 • Leave a Comment

Warning: file_get_contents(/home/duyingl1/public_html/researchblog.org/wp-content/plugins/terms-and-conditions/terms-and-conditions.txt) [function.file-get-contents]: failed to open stream: Permission denied in /home/duyingl1/public_html/researchblog.org/wp-content/mu-plugins/terms-and-conditions.php on line 74

Warning: file_get_contents(/home/duyingl1/public_html/researchblog.org/wp-content/plugins/terms-and-conditions/privacy-policy.txt) [function.file-get-contents]: failed to open stream: Permission denied in /home/duyingl1/public_html/researchblog.org/wp-content/mu-plugins/terms-and-conditions.php on line 78

I found this forum very helpful and the example Spring provides is excelent.