JMX connections to JBoss AS

There are many tools that use JMX connections which can be useful for debugging and performance tunning of your applications running on the JVM. The most used are JConsole (shipped with every JDK) and VisualVM (available to download on Oracle page). But before I show how to connect them to JBoss AS we need to understand a few concepts. Standalone and domain mode JBoss AS can be run in either standalone or domain mode. I won’t explain in detail the difference between those two here because this is a topic for another blog post. The most important difference is that in domain mode you can manage a set of JBoss AS instances using one management entry point compared to starting just one server in standalone mode. It depends on your use case which mode you should use - both have pros and cons. ...

April 16, 2013 · 7 min · Marek Goldmann

Configuring polkit in Fedora 18 to access virt-manager

In Fedora when you run virt-manager you’ll be asked for your password. Since I use this tool a lot I would like to have a password-less virt-manager. Thank Jebus we have polkit where we can define authentication rules. There was a handy rule available written by Rich, but it stopped to work with the release of Fedora 18 because polkit changed completely the language used in rules files. Since polkit-0.106 the new rules files are written in JavaScript. Yes, JavaScript. More info about the choice you can find on David’s blog post. ...

December 3, 2012 · 1 min · Marek Goldmann

Webservices support in JBoss AS in Fedora

Version infoNew features mentioned in this post are available in jboss-as-7.1.1-11 or newer. Until now the webservices support was not available in the Fedora packaged JBoss AS. The main issue was the lack of CXF stack in Fedora. It took some time to make it available in an RPMified version since CXF is a pretty big project, with many submodules and a pretty nice dependency tree. Currently in Fedora we have JBoss AS available in version 7.1.1.Final which requires CXF 2.4.6. This is a pretty old release. I decided to upgrade the CXF stack to the latest available release from the 2.6.x series. This triggered updating the jbossws-* stack to newer versions than shipped with JBoss AS 7.1.1.Final. I did some tests and it seems that the components integrate with JBoss AS seamlessly. Either case please test your application with the new stack and report any bugs. ...

November 26, 2012 · 3 min · Marek Goldmann

Generate a database schema with OpenJPA and Hibernate on JBoss AS 7

When you develop an application, sometimes you want to run it quickly and test it manually. Sometimes you want to execute some integration tests that require database access. In all of these cases you need a working database. Thanks to JPA providers we can generate the database schema based on the entity definitions. Let’s quickly look at two of them: Hibernate and OpenJPA. Hibernate configuration I’m sure you have used Hibernate before. Did you know that it has a nice feature that generates the schema in the database at application startup? You can additionally place any SQL statements you want to execute after the creation of the schema into file called import.sql. ...

August 24, 2012 · 3 min · Marek Goldmann

OpenJPA and Hibernate 3 on JBoss AS in Fedora

With the upcoming new release of the JBoss AS package in Fedora you’ll be able to use both the Hibernate 3 and OpenJPA JPA providers. The reason why I’m enabling this for you is that we still don’t have Hibernate 4 packaged, which is a pity since Hibernate 4 is the default JPA provider in JBoss AS 7. If you want to help us with it, please consider reviewing the Gradle package. Sample application I crafted a small application that shows how to use the two new providers. The full source code is available from my GitHub account. This application uses JSF and CDI in addition to JPA. And yes, I use both JPA providers at the same time. ...

August 22, 2012 · 3 min · Marek Goldmann

JBoss AS 7.1.1-4 update pushed to Fedora

I’m very happy to let you know that I pushed today a new update for jboss-as package to Fedora. New stuff The 7.1.1-4 version includes a lot of new modules as well as some design changes, let’s go briefly over them. Stability The most important change from a RPM/build stability POV is the move from building minimalistic to default profile. This let me know to drop about 60 (sic!) patches from the jboss-as.spec. ...

July 4, 2012 · 2 min · Marek Goldmann

HP Smart Array E200i performance

I have at home a pretty nice server: HP ML350 G5. My model has one Quad-Core Intel Xeon Processor X5355 (2.66 GHz), 8 GB of RAM and 4x 250 GB SATA II, 2.5’’, 5.4k disk drives. I have this HW for over three years now, but never really tried to do anything besides installing an operating system and grinding some boxes. Recently I decided to run some quick tests to see the actual performance of the disks. ...

May 13, 2012 · 4 min · Marek Goldmann

Impressions after Fedora Test Day for JBoss Application Server

Yesterday we had JBoss AS Test Day. Since the early morning hours we received help with testing the RPM packaged JBoss AS. And what’s the general impression? It works! Almost all test cases we prepared were successfully finished by our community members. We found one issue with not preserving the permission on files when adding new users to JBoss AS management interface. I’ve created a fix for that and sent a pull request. Expect to have it fixed in jboss-as-7.1.0-4 package. ...

April 18, 2012 · 1 min · Marek Goldmann

JBoss AS Fedora Test Day - today!

We’re going today to test the (very) fresh JBoss Application Server which was packaged into Fedora. I hope you have some time to join us! Where I can read more about the test day? Most recent information you can find on the JBoss AS Fedora Test Day wiki page. How should I prepare? Make sure you have a Fedora 17 environment somewhere (VM preferred) with latest updates installed. This is very important. ...

April 17, 2012 · 1 min · Marek Goldmann

New song: 'Connection'

Below you can find my latest song I made with Makul over the last year. We planned to do a song together since a few years, but it always failed because of lack of time. Finally in April this year we met at Makul’s house, had a couple of beers and started the work. This is the output of our work. Melody line and part of beat is Makul’s work whereas I arrnged and finished the whole thing. A few days ago the song was mastered. ...

December 16, 2011 · 1 min · Marek Goldmann