facebook

Redeploy problem in java projects on Jboss 4.x

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #271441 Reply

    Victor Adsuar
    Participant

    I hava a Java project that need for my Web Project and My EJB project. The problem is that i export my Java project on the root of EAR exploded deployment.
    The problem is that when I change a Java class in this java project I need to redeploy the application on the server.

    The first solution that I think valid is the option of deploy the classes in the EJB project, but my EJB project is a common project between more than one EAR’s (applications).

    #271451

    Loyal Water
    Member

    Hi TERALCO,
    You should add the Java Project as a dependency to the EAR. Depending on your deployment policy, the Project would get redeployed if any changes are made to it. I suggest you go through section 9 of the following tutorial. It explains the deployment policies as well.
    http://myeclipseide.com/enterpriseworkbench/help/index.jsp?topic=/com.genuitec.myeclipse.doc/html/quickstarts/earprojects/index.html

    #271455

    Victor Adsuar
    Participant

    Hi, I think that I have all dependency correctly. When I change a java class when the server is start ( sorry for my English ), MyEclipse creates a folder MyProject.ear\bin\ with the new compiled class. This is correct and I can debug this new change, but If I stop and run Jboss, I Lost this changes because de Java Project archived in the root of EAR don’t have this changes.

    If the server is stop, then when I change a java class, my Java project archived not modify. When i start jboss new always to redeploy to see my new changes. Any suggestions ??

    The unique form that I see that the server modify the new compiled class is using o deploying my clases inside of the Project EJB ( or web, but in my case need ejb ), but this solution not is valid for me because my Project EJB is shared across varios EAR’s (applications ).

    #271475

    Loyal Water
    Member

    I hope the deploy type that you have selected is Exploded Archive. Ill check up with my team and get back to you on this. Thank you for your patience .

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Redeploy problem in java projects on Jboss 4.x

You must be logged in to post in the forum log in