This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
Hi! I am working on a project where I need jBoss 4.0.4 as the EJB 3 container. It is a modified version of jBoss which supports EJB 3. Now I want that I am able to run my EJB 3 projects from netbeans directly. But netbeans is not recognizing jBoss as an application server. I don't know how I can make jBoss run my application from the source of my project. So each time I make any changes, I have to build an EAR file, undeploy the application from jBoss and redeploy it. This wastes a lot of time. What should I do to solve this problem. Do I need a netbeans plugin or is there a way jBoss runs my application directly from the build folder of my project. I would be very thankful for any help.
here I have seen that this might be the cause of Netbeans not recognizing jBoss. My application is set to Java EE 5 so that might be the reason. But still I want to know how to configure jBoss to run an application from a different folder. I know everything about Apache Tomcat but I'm new to jBoss. So any information or internet resource would be very helpful for me.
Also this can be easily configured in Netbeans. Although I don't know if there is any configuration option directly, but I went into the nbproject folder and opened the project.properties file and in that changed the value of build.dir property to Project/Project.ear. My project is in g:\myproject folder so I placed ,file:///G:/myproject/Project to the jboss-service.xml file.
I had to change the value of build.dir to Project/Project.ear because if I didn't do that, then I would have to put file:///G:/myproject/ in the jboss-service.xml. Then jBoss would deploy the war and ejb modules in the myproject folder two times. So it would be safe to point the deploy folder into an empty folder and then point jBoss to that empty folder. This is more important in EAR projects which have the sub modules in their own directory. I know this might be confusing to read but if you try this then you will realize what I am saying
Well I was to happy too soon. That solved only half of my problem. Now the ear project contains all the required jar and war files in the project. But when any of the .war files is updated, jBoss doesn't takes that into consideration. It shows the old output and the new changes are not reflected. How can this be solved??