Developers, Developers, Developers! Maksim Sorokin IT Blog


[PACKT] JBoss AS 7 Configuration, Deployment and Administration

I have just been contacted from PACKT to review a book JBoss AS 7 Configuration, Deployment and Administration book. I agreed immediately, since PACKT releases quite good and qualitative stuff.

In two words, as the title says, the JBoss AS 7 book deals with administration topics, new and advanced features of the JBoss Application Server 7. It seems like it is a must-have book for everyone using or looking forward to migrate/update to JBoss AS 7.


Some Resources on Social Engineering

I have recently been to social engineering lecture by some security specialist. The presentation was ok. There were no surprises as I was interested in social engineering some time ago. However, there were some useful resources and and tools mentioned, which I want to list here:


Berlin — Google Developer Day 2011

Very well organized event. It was a good chance to talk to Google people and other developers that are interested in latest technologies from Google.

However, some talks were more like common-sense and did not gave much new insights. Some talks were in how-to fashion. Furthermore, some presenters were somewhat unprepared and boring. Talks about html5 were very tight to Google products and are not that well supported by other vendors. Several talks were done by Berlin universities people. Those were somewhat boring and abstract.

Anyhow, here are some photos:


Java SE 7 Certificates Are Almost Out!

Check the Oracle certification page. Java SE 7 certificates are now in beta (programmer certificate is not available yet, however). The price is 50$, instead of ordinary 300$. However, it has twice more questions and is twice longer.


Maven + Apache Felix + CXF + DOSGi: An Example of DOSGi Service

Link in series

Link to two Felix instances

Here is yet another post in Maven + Apache Felix + CXF + DOSGi series.

Here I will show how to use Apache CXF DOSGi for cosuming remote services. You may see the sources on my GitHub account.

We will have


Apache Felix: Running Two Instances of Felix Launcher in The Eclipse

This is a next post in Maven + Apache Felix + CXF + DOSGi series.

As was shown in the first post, one my have a separate project for Apache Felix in conveniently launch it using Eclipse.

You need to have two instance of Apache Felix running in the same Eclipse, for example if you are testing DOSGi remote services between different OSGi instances.

First, you will need to have two Apache Felix configurations. The first one can be default: conf\,start
felix.log.level=1 = ...

Then you need to have second one for the second instance. Let's create it here: conf\,start

org.osgi.service.http.port=8081 ...

Note org.osgi.service.http.port and Former is needed to tell OSGi to use different http port. The latter one specifies different cache for OSGi bundle (by default it is felix-cache), which is used to contain all started bundles.

Then the start configuration is the same as was described in the first post. For the second configuration one has to provide a location of conf\ In "VM arguments" specify:

Maven + Apache Felix: Strategy to Handle non-OSGi Dependencies

This is another post in Maven + Apache Felix + CXF + DOSGi series.

Sometimes in the project plain Maven dependencies has to be used. A simple strategy to use those in OSGi project handled by Maven is to have a separate module, containing all non-OSGi dependencies and converting those to OSGi bundles using Apache Felix Maven Bundle Plugin.
So one may have the following structure of the project:


This nonOsgiDependencies projects would contain


Maven + Apache Felix + CXF: Securing a Service with HTTP Basic Authentication

This is another post in series Maven + Apache Felix + CXF + DOSGi Series. Here I will describe how to secure CXF published web services with HTTP basic authentication. You can find the sources on my GitHub account.

We will have three projects here. The first one defines an interface for a service. Another one provides implementation for it. And the third one will provide security.


dosgiSecurity will be just a holder project.

Our interface HelloService in bundle dosgiSecurity-api will be similar to the one we defined in


Maven + Apache Felix + CXF: RESTful Webservice with CXF. Using POST.

It is another post in Maven + Apache Felix + CXF + DOSGi Series.

In this post I showed you how to create a RESTful webservice consuming and creating a String. However, the example was using @GET method. Here I will show, what changes need to be done in order to consume input from @POST. As usual, sources are available in the end of the post.

Simply change @GET to @POST and remove


Mule ESB: Building a Self-Contained Standalone Web App with Maven

This example demonstrates how to build standalone self-contained Mule ESB web application, which can be deployed to a Java web container, e.g. Tomcat. The sources used are taken from Mule ESB "hello" example, which is distributed together with Mule.

You can obtain the sources from this post on my github:

I will just show the keypoints of the application and changes, that were different from "hello" application in Mule distributable.

First of all, the