piotrekde [
http://community.jboss.org/people/piotrekde] created the discussion
"@Service annotated bean lifecycle methods"
To view the discussion, visit:
http://community.jboss.org/message/588490#588490
--------------------------------------------------------------
Hi,
I use org.jboss.ejb3.annotation.Service annotated bean as singleton. I'd like to
perform some bean initialization before it will be used by other components (e.g.
instantiate some local POJO fields by calling constructors). As it is stated in
documentation:
http://docs.jboss.org/ejb3/app-server/reference/build/reference/en/html/j...
http://docs.jboss.org/ejb3/app-server/reference/build/reference/en/html/j...
I implemented:
public void start() throws Exception
and
void create() throws Exception
methods, but none of them is called upon @Service bean is created (no entries in logs).
I've read documentation couple of times, and now I am not sure if this methods are
also applicable for @Service beans or maybe only for @Managment.
What are the correct annotations/method signatures to do such @Service bean
initialization?
Thanks in advance,
Piotr
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/588490#588490]
Start a new discussion in Beginner's Corner at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]