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]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to