[jboss-user] [JBoss Tools] - Re: jboss hot-deploy limitations

nimo stephan do-not-reply at jboss.com
Tue Nov 30 06:00:41 EST 2010


nimo stephan [http://community.jboss.org/people/nimo22] created the discussion

"Re: jboss hot-deploy limitations"

To view the discussion, visit: http://community.jboss.org/message/573600#573600

--------------------------------------------------------------
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 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
[http://community.jboss.org/message/573600#573600]

Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20101130/1ac18acb/attachment-0001.html 


More information about the jboss-user mailing list