Archive for March, 2007

week or two weeks off

Friday, March 30th, 2007

Last week I was on vacation, and now another week off. Everything beacuse of because of man’s stupid-ness.

I like Scoble’s idea and will be taking the week off.

Good luck

telnet-maven-plugin

Sunday, March 11th, 2007

Our project has ant magic telnet deployment. After project was moved too maven, we encounter a problem with telnet under maven. Firstly I googled a while to find something useful plugin, without success.

Everybody suggest use antrun, but if i moved to maven why i must still use ant. So i decided to write my own telnet-maven-plugin. It’s very simple to write maven plugin, so if you need something write your own, don’t ever use ant-run.
Now I convince that maven problem lies in antrun plugin, because if you can’t do something, everybody suggest using antrun, bullshit.

The next step is to join mojo and make plugin public. This is more complicated than write it. You must follow rules, convention and finally vote for plugin to be released. I’m sure that I can do it. For now you can download telnet-maven-plugin from my site, put it into local maven repository.

Here is simple configuration:

<plugin>
<groupid>org.codehaus.mojo</groupid>
<artifactid>maven-telnet-plugin</artifactid>
<version>0.1-SNAPSHOT</version>

<executions>
<execution>
<phase>your_phase</phase>
<goals>
<goal>telnet</goal>
</goals>
</execution>
</executions>
<configuration>
<echo>false</echo>
<url>your_url</url>
<username>your_usser</username>
<password>your_pass</password>
<commands>
<command>your_command</command>
</commands>
</configuration>
</plugin>

OSGI – the future from the past

Monday, March 5th, 2007

I don’t know why, but sometimes great technology comes to early. And it must wait for its time. I think the same is with OSGi. Now we have forth edition. The first edition was released in May 2000. The situation was change after Eclipse foundation chooses OSGi specification in eclipse 3.2 as plugin system. Now it’s main core eclipse library. This specification has three implementation

* Eclipse Equinox
* Apache Feli
* Knopflerfish

I think you can start here Getting started with OSGi. You can find also how to integrate maven with OSGi in Jacek Laskowski wiki (in polish).

I’ll have many fun with Equinox implementation which I will describe in my wiki. Yep I’ve got a wiki system, and this is reason why i don’t post in last time. But i promise to post more.

In simple word OSGi specification is describing portion independent part of software as a bundle. You can imagine that bundle is simple module of Java program (jar, plugin). It must be fully self-describing. If you have ever tried building plugin system, that you know, that java class loader is a problem. OSGi has something called activator. Activator is responsible for starting and stopping bundles. OSGi is highly dynamic that means that bundles may come and go at any time in application life cycle.

In next episode : The tutorial to build OSGi bundles with maven-bundle-plugin. And I also try to compare OSGi implementation

Technorati Tags: ,

about me

My name is Sebastian Pietrowski. I've finished Warsaw University as Master degree. I started my journey with Java 1.1 with Thread and JDBC programing in 1998 as I worked for merlin.pl. In 1999 I've passed Java Programer Certificate for Java 1.2, and was solution architect of merlin.pl infrastructure when we was moving from pl/sql to J2EE. It was great performance optimization with 10 times more req/sec than in requirements and 85 times faster as original solution.

Currently I work as Expert Software Development Java at F.Hoffmann-La Roche. The company was founded in 1896 and today, Roche employs over 80.000 people. After work I'm involved in activities related to Scala/Lift, Ruby/Rails/Merb, Python/Django. This is because I try to be pragmatic also I'm focused on application performance and tuning with success in my daily work.

My Yoda's motto: Do, or do not. There is no try.