This content has been marked as final.
Show 1 reply
-
1. Re: web service life cycle
jahhaj Jul 16, 2008 9:48 AM (in response to jahhaj)Fixed the problem, I added the @Stateless annotation to my service class, and deployed as a jar. Now my @PostConstruct method is called (and incidentally the ctor is only called once), which is exactly what I want.
I'd appreciate some explanation of why this works however, and what the change I've made actually means. Programming EJB seems a bit like magic, if you know the right incantation then everything works smoothly, if you don't you're stuck.