Sunday, October 18, 2009

Using OpenWebBeans in Java SE

You can use OpenWebBeans dependency injection service in Java SE (for example Java Swing) project. New sample project is added to SVN trunk that shows how to use OpenWebBeans in Swing applications.

Source of the module is under "trunk/samples/standalone-sample".

Firstly you run mvn:install from the "trunk" to install/update necessary modules.


>> cd samples/standalone-sample;
>> mvn clean package;

This creates a jar in "target/standalone-sample.jar"
>> unjar this into any folder
>> java -jar standalone-sample-1.0.0-incubating-SNAPSHOT.jar Boot

It shows simple login screen :)


No comments: