Hi,
It’s my pleasure to announce that I’ve finally released JTheque Core 2.1.0 !
The different services of the core are now separated using OSGi. With this separation, I’ve improved a lot the design of the core and the orthogonality of the different services. Each service is now an OSGi bundle. I’ve also refactored the implementation of all services. Several services have been completely rewritten. The majority of …
Posts Tagged ‘OSGi’
Hi,
It’s my pleasure to announce the release of a new version of JTheque Utils, the 1.1.5.
There is a lot of changes in this version. First of all, the library is now OSGi Ready, you can use it with no problem in an OSGi application. Here are the main changes of this version :
The main classes have been made thread safe and all the classes …
In this pose st, we’ll take the first implementation we made using OSGi and use Spring Dynamic Modules to improve the application.
Spring Dynamic Modules (Spring Dm) makes the development of OSGi-based applications a lot more easier. With that, the deployment of services is a lot easier. You can inject services like any other Spring beans.
So let’s start with Spring dm.
When you develop applications and you’ve performance problems, it’s really interesting to see what can cause this problems. And it that case, the profilers are the most useful tool. By example, we can use VisualVM, packed by default with the Java Virtual Machine. For more information, you can read this introduction to Java VisualVM.
But, when you work with OSGi application, it’s not as …
In this post, we’ll develop a simple Hello World application with OSGi. We will use Felix as OSGi container. In the next post, we’ll continue with this application and use Spring Dynamic Modules to improve it.
To make the development interesting, we will create two bundles :
A bundle providing a service of HelloWorld
A bundle consuming the service to print hello at regular interval time.
Some weeks ago, I finished “Modular Java – Creating Flexible Applications With OSGi and Spring”, it’s time to do a little review now.
Modular Java
I experienced some problems with Substance in OSGi. Using this code :
SubstanceLookAndFeel.setSkin(new BusinessBlackSteelSkin());
I got different errors, like :
Exception in thread “AWT-EventQueue-0″ java.lang.NullPointerException at
org.pushingpixels.substance.internal.utils.SubstanceColorUtilities.getDefaultBackgroundColor(SubstanceColorUtilities.java:823)
I found a simple solution to make Substance work in OSGi :
try {
UIManager.setLookAndFeel(new SubstanceBusinessBlackSteelLookAndFeel());
} catch (UnsupportedLookAndFeelException e) {
LoggerFactory.getLogger(getClass()).error(e.getMessage(), e);
}
UIManager.getLookAndFeelDefaults().put("ClassLoader", SubstanceBusinessBlackSteelLookAndFeel.class.getClassLoader());
With that code, i’ve no more problems using Substance Look And …
Like you perhaps know, i’m currently migrating JTheque to OSGi. During this migration i found several problems in the JTheque architecture that made the migration impossible without changing some concepts. In this post I’ll detail all the problems I found.
I will try to reference my personal best of links about Java, Swing, … every week at monday.
Here is the most interesting links i found about Java Programming this week :
Swing event departure board : Gerrit of Java User Group Münster has developed an event departure board like those in the airports in Swing. with an amazing style.
Swinging Task Dialog Part 4 : Eugene …
After had many problems using Osmorc, the Intellij Idea plugin for OSGi support, i decided to no longer use it. Now, i make all manually.
I have several reasons to not be satisfied of this plugin.
First of all, this plugin display all the errors in OSGi configuration (Manifest, Activators and imports) but provide no way to quickly fix the problems by example by adding the …
