{"id":132,"date":"2007-12-11T22:10:50","date_gmt":"2007-12-11T20:10:50","guid":{"rendered":"https:\/\/brakkee.org\/site\/index.php\/2007\/12\/11\/move-from-jboss-to-glassfish\/"},"modified":"2007-12-11T22:10:50","modified_gmt":"2007-12-11T20:10:50","slug":"move-from-jboss-to-glassfish","status":"publish","type":"post","link":"https:\/\/brakkee.org\/site\/2007\/12\/11\/move-from-jboss-to-glassfish\/","title":{"rendered":"Move from JBoss to Glassfish"},"content":{"rendered":"<p><!--more--><\/p>\n<p>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.&nbsp;<\/p>\n<p>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.&nbsp;<\/p>\n<p>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&#39;t work out of the box and I encountered an error. Finally, however, I managed to work around this problem. See <a href=\"http:\/\/forums.java.net\/jive\/thread.jspa?messageID=246705\">this thread<\/a> for details. <\/p>\n<p>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.&nbsp;<\/p>\n<p>Now everything is running on glassfish and jboss has been shutdown. Migration successful! <\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/brakkee.org\/site\/wp-json\/wp\/v2\/posts\/132"}],"collection":[{"href":"https:\/\/brakkee.org\/site\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/brakkee.org\/site\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/brakkee.org\/site\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/brakkee.org\/site\/wp-json\/wp\/v2\/comments?post=132"}],"version-history":[{"count":0,"href":"https:\/\/brakkee.org\/site\/wp-json\/wp\/v2\/posts\/132\/revisions"}],"wp:attachment":[{"href":"https:\/\/brakkee.org\/site\/wp-json\/wp\/v2\/media?parent=132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/brakkee.org\/site\/wp-json\/wp\/v2\/categories?post=132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/brakkee.org\/site\/wp-json\/wp\/v2\/tags?post=132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}