Home Blog Move from JBoss to Glassfish
|
|
Move from JBoss to Glassfish |
|
|
|
Written by Erik Brakkee
|
|
Over the last weeks I have been preparing for the move from JBoss to Glassfish application server. The reason for this was to have full Java EE 5 capability instead of having to depend on a patched JBoss 4 server. This migration has caused me a few problems though. I started with the most difficult application where I did a lot of work on security with JBoss. This was an application where I integrated J2EE declarative security with JAAS and tapestry. A lot of work. The application used authentication to a database so looking for support in glassfish, I found the JDBC realm. Unfortunately, that was a bit restrictive because it placed all kinds of restrictions on the data model. So the first thing I had to do was to write a new flexible JDBC realm that could be configured with the same flexibility as that in JBoss. Of course, that didn't work out of the box and I encountered an error. Finally, however, I managed to work around this problem. See this thread for details. After this problem, it was relatively easy to move over all the other applications. One final issue I encountered was the automatic restart of glassfish at a server reboot. Here, SUN recommends a non-standard approach by editing /etc/inittab directly. This is cumbersome since that file is managed by yast2 on SuSE so I added a init.d script for glassfish instead. This fits much better in the way that services work on SuSE. Now everything is running on glassfish and jboss has been shutdown. Migration successful! |
|
Last Updated ( Tuesday, 11 December 2007 )
|
Comments
|
Have you considered contributing your JDBCRealm back? We are in the process of migrating from JBoss to GlassFish and have similar needs....I'm sure others will too. The GlassFish JDBCRealm seems only appropriate for new applications, where there schema is not defined.
Posted by Marc Calello, on February 28, 2008 at 22:52
In fact I have been in contact directly with SUN. Also, the flexible jdbc realm is available as opensource through http://flexiblejdbcrealm.wamblee.org
Posted by Erik Brakkee, on February 29, 2008 at 19:19
Erik - Nice to hear GlassFish is working for you. I don't know if you are aware of our informal adoption stories program (http://blogs.sun.com/stories). It is intended to capture production uses of GlassFish. If your case qualifies and you are interested, drop me an email. Thanks!
Marc - Same to you!
- eduard/o
Posted by Eduardo Pelegri-Llopart, Whose homepage is htttp://blogs.sun.com/theaquarium on March 1, 2008 at 1:41
|
1 Page 1 of 1 ( 3 comments ) ©2005 MosCom
|