Tagged: jboss Toggle Comment Threads | Keyboard Shortcuts

  • Subinkrishna Gopi 12:53 am on January 22, 2010 Permalink |
    Tags: Book, Francesco Marchioni, , jboss, packt publishing,   

    Book review – JBoss AS 5 Development 

    JBoss AS 5 Development
    Written by Francesco Marchioni 
    Published by Packt Publishing

    When I started reading this book my expectations were a little less as I was expecting a “1 + 1 = 2” kinda stuff! But after reading the very first chapter – Installing core components – I realized that this one is going to be different. The story in this book is very simple which even my 11 year old nephew can understand and enjoy. Yes, it’s indeed a story.

    The first three chapters tells us what JBoss is, from where to get it, how to install it, how to configure Eclipse & JBoss tools, the JBoss sub-systems, basic deployment configurations, the background story and a lot of things. It’s very detailed, simple. I had real fun reading it. Because we assume a lot of things which we think is right. These three chapters proved me wrong at many places.

    The following chapters deal more with EJB 3, JMS, JPA, Web Services, JBoss management, JBoss clustering & security. These chapters try to cover the basics as much as it can. It will be really helpful as the first step towards J2EE/JBoss.

    Okay, now it’s time for the final verdict.

    This book – with 400+ pages & 14 chapters – is very well written. This is for the common man. This book tells the whole story in the simplest possible way. This book tells us what all things we need to do to master JBoss. It may not help you in mastering JBoss, but can definitely show you a way with all possible sign boards, maps & guides.

    I really enjoyed reading this book. I am not an expert in JBoss, EJBs JPA or JTA, but a “modestly aware” coder. Yeah, this will be a first good step towards mastering the art 🙂

    What I liked about this book
    It’s very simple & well-organized.

    What I did not like about this book
    Lacks depth. I think the target audience is beginners & enthusiasts.

    So, do I recommend this?
    Yes. I do. It’s going to be an easy & good read.

    Check this link for more details.

    Useful links
    http://www.jboss.org/ – JBoss Home
    http://www.jboss.org/jbossas/downloads/ – JBoss downloads
    http://www.eclipse.org/ – Eclipse IDE Home
    http://www.eclipse.org/downloads/ – Eclipse downloads

  • Subinkrishna Gopi 11:55 am on June 18, 2009 Permalink |
    Tags: , exception, , jboss, ,   

    A JBoss 5.1.0 Exception ! 


    This is about another exception you may get while playing around with JBoss, Transactions, Remote EJBs etc. And the exception is:

    Could not enlist in transaction on entering meta-aware object!

    My friend Venu had a post in his blog on why this exception happens and how to fix it in JBoss 5.0. You can read it here. But if we are using JBoss 5.1.0 this solution cannot help us. Because there are a couple of changes in the configuration in this new version of JBoss. In fact if you can take a look at the JBoss 5.1.0 GA release notes we can see a lot of changes in configuration especially if we are migrating from JBoss 5.0 to 5.1.

    And here is the solution.

    Open the JBOSS_HOME/server/JBOSS_CONFIGURATION/conf/jbossts-properties.xml. Set the following.

    <!-- Support subtransactions in the JTA layer? Default is NO. -->
    <property name="com.arjuna.ats.jta.supportSubtransactions" value="YES"/>

    Hope this helps.

    P.S. If you have any more details in this issue, please feel free to share it. Thank you.

  • Subinkrishna Gopi 1:59 pm on June 5, 2009 Permalink |
    Tags: , , , jboss, jms, queue, settings, ,   

    Configuring JMS in JBoss 5 


    This is again a small JMS configuration stuff we have to do in JBoss 5. There is considerable difference in doing it in JBoss 5 compared to JBoss 4 and don’t expect our old configuration to work well with JBoss 5 without any change. In JBoss 5 they are using JBoss Messaging in place of JBoss MQ. You can read a detailed post on migrating from JBoss 4 to JBoss 5 here.

    This post is about the configuration of a simple queue. We can configure topics also like this. In JBoss 5, the configuration file is in messaging directory with in the deploy directory.

    In JBoss 4.x the JMS configuration (in jms/jbossmq-destinations-service.xml) is like this:

    <mbean code="org.jboss.mq.server.jmx.Queue"
     <attribute name="JNDIName">queue/MyQueue</attribute>
     <attribute name="RedeliveryDelay">10000</attribute>
     <attribute name="RedeliveryLimit">3</attribute>
     <depends optional-attribute-name="DestinationManager">

    In JBoss 5.x we should do this (in messaging/destinations-service.xml):

    <mbean code="org.jboss.jms.server.destination.QueueService"
     <depends optional-attribute-name="ServerPeer">
     <attribute name="JNDIName">queue/MyQueue</attribute>
     <attribute name="RedeliveryDelay">10000</attribute>
     <attribute name="MaxDeliveryAttempts">3</attribute>


    JBoss Messaging:

    Migrating from JBoss 4 to JBoss 5:

    You can check this URL also for configuration guidelines (JBoss Messaging 1.4.4):

  • Subinkrishna Gopi 2:35 pm on June 4, 2009 Permalink |
    Tags: , , , , jboss, jdk   

    A small JBoss 5.1 issue 


    I don’t know whether I should call it an issue. But for me it was an issue. Recently I switched to JBoss 5.1.0 GA. But when I tried to run it, it was throwing the following exception:

    [ClassLoaderManager] Unexpected error during load of:org.jboss.resource.metadata.repository.DefaultJCAMetaDataRepository
    java.lang.UnsupportedClassVersionError: Bad version number in .class file
            at java.lang.ClassLoader.defineClass1(Native Method)
            at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
            at org.jboss.classloader.spi.base.BaseClassLoader.access$200(BaseClassLoader.java:63)
            at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:572)
            at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:532)
            at java.security.AccessController.doPrivileged(Native Method)

    You will have this problem if you are working with JDK 1.5.x. You can switch to JDK 1.6.x and you can get it working fine. But my entire work setup required me to run my Eclipse Ganymede on 1.5 but JBoss on 1.6. So I wrote a batch file which look like this:

    @echo off
    echo Overriding the Jboss home and Java home ...
    set JBOSS_HOME=D:\jboss-5.1.0.GA
    set JAVA_HOME=C:\Program Files\Java\jdk1.6.0
    echo Jboss home: %JBOSS_HOME%
    echo Java home: %JAVA_HOME%
    call %JBOSS_HOME%\bin\run.bat -b 192.168.x.y

    So I can have my Eclipse running on 1.5 with JBOSS_HOME set to JDK 1.5 and JBoss on 1.6. Hope this will be helpful for you in some way.

  • Subinkrishna Gopi 4:22 pm on February 11, 2009 Permalink |
    Tags: , , , jboss, migration, , , ,   

    Another JBoss 5 hack by Venu 


    Venu had another JBoss hack and he was able to fix one more issue that may bubble up during the migration from JBoss 4.x to 5. This time found out how solve “Adding multiple last resources is disallowed. Current resource is ….” exception which happens while trying to access an EJB from a different EAR with in a transaction and trying to commit that transaction.

    Read the article here

Compose new post
Next post/Next comment
Previous post/Previous comment
Show/Hide comments
Go to top
Go to login
Show/Hide help
shift + esc