• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Integrating jBoss 4.0.4 with Netbeans 6

 
Sheriff
Posts: 9707
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

Thanks in advance.
 
Ankit Garg
Sheriff
Posts: 9707
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

Thanks again in advance.
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ankit Garg wrote:But still I want to know how to configure jBoss to run an application from a different folder.



I don't know how it can be done through any IDE. But if you are interested in knowing how to do it in JBoss, see this thread.
 
Ankit Garg
Sheriff
Posts: 9707
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

You are the master Jaikiran.

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
 
Ankit Garg
Sheriff
Posts: 9707
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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??
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic