Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exploded ear -how to debug jboss

 
avihai marchiano
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,

I am working in eclipse 3.3 and jboss 4.2.
My application package as an ear (the ear size is 40M) with maven.

I understand that i can work in exploded mode in order to save the build and deploy time.

I look in google for reference , but didnt find. can any one give me a reference on how to set up eclipse in order to work against expolded ear?

Thank you
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did not completely understand the question. As far as i know, there's nothing different you have to do with Eclipse to work with an exploded ear file deployed in JBoss. It's the same as working with any application deployed as an archive.
 
avihai marchiano
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In order to build the ear and deploy it to the server i use maven.

As i understand if i want to work in exploded mode i need to extract the ear and my jars (am i correct ? is there any tool or plugin that can do it for me?)

Now , i have an exploded ear in the server.

i work with eclipse and i want to be in debug mode , so when i change a class (or any other trigger) it will copy the changed class to the exploded ear in the server.

Thank you
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by avihai marchiano:
In order to build the ear and deploy it to the server i use maven.

As i understand if i want to work in exploded mode i need to extract the ear and my jars (am i correct ? is there any tool or plugin that can do it for me?)


Extracting the ear is enough. Extracting the jars inside the ear is optional. As far as tools are concerned, Ant has the unjar/unwar task which can be used to exploding the archives. I guess maven too has a similar task. I haven't used maven so not sure the exact task names.

Originally posted by avihai marchiano:
Now , i have an exploded ear in the server.

i work with eclipse and i want to be in debug mode , so when i change a class (or any other trigger) it will copy the changed class to the exploded ear in the server.



I havent tried this but i guess it will update the changes. If it doesn't then follow the steps mentioned here
 
avihai marchiano
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much.

I didnt understand how you tell eclipse to deploy changes to the exploded ear?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic