JBoss Community

Re: jboss hot-deploy limitations

created by nimo stephan in JBoss Tools - View the full discussion

okay, it works now!

I deleted the tmp-folder and the work-directory and made a new (successfully) retry.

 

 

I have only one question:

 

Do I need to make a "Full publish" when changing source code which has annotations

(for example, Weld, Restfull WS,...)?

 

For example:

 

I hot deployed the war with the class "RestResource" and can point to http://localhost/mywar/rest/txt which shows "Hello WebService".

 

After that, I change the source-code of the class "RestResource.java" from

 

@Path("rest")
public class RestResource {


    @GET
    @Path("txt")
    @Produces("text/plain")
    public String getResource()

    {

            return "Hello WebService";
    }


}

 

 

to

 

@Path("rest")
public class RestResource {


     @GET
     @Path("txt")
     @Produces("text/plain")
     public String getResource()

    {

            return "Hello WebService HOT DEPLOY";
     }

 

}

 

I can see, Jboss Tools does the update of the RestResource.class in my hot-deployed-folder automatically (timestamp of that class is changed).


However, when I go to http://localhost/mywar/rest/txt, the text of my old source-code is shown: "Hello WebService" instead of "Hello WebService HOT DEPLOY".

Reply to this message by going to Community

Start a new discussion in JBoss Tools at Community