(I’ve read many other sync-on-demand posts and didn’t find one that matched this problem)
I have 2 projects, one an EJB project and the other a web project with a jsp (which has the ejb project listed as a dependent project in its java build path). I have Build Automatically checked for both projects, and they are deployed (exploded) in the JBoss server connector (which is Enabled).
When I make changes to the jsp, the changes appear immediately when I refresh my web browser. So far so good.
But, when I make changes to a bean in the ejb (e.g. change a hard-coded string that is returned through the remote i/f), there is no evidence of the change when I refresh the web page (and no messages show up in the JBoss server log). The timestamp on the corresponding class file in the jboss deployment directory IS updated each time I save a change (so I know it’s getting re-deployed, e.g. if I stop and restart the JBoss server the change is visible on the web page).
I tried manually redeploying both projects. No log messages appear in the JBoss console when I redeploy the ejb (wierd?), but I get the undeploy and redeploy logs when redeploying the web/jsp project. But then it still appears to be using the old ejb.
Am I stuck with stopping and restarting JBoss for each ejb change?
I’m using JBoss 4.0.5 on WinXP and MyEclipse 5.1.1GA.