sessionBean never call init()-Method

i am using a sessionBean extended from an abstractPageBean, but it never calls the init-MethodIn a requestBean i have in the init-Method a forward to an other page with an requestDispatcher. So if a SessionBean never calls the init-Method where can i do the redirect instead?
[296 byte] By [schaeflia] at [2007-11-27 1:52:10]
# 1
What is the init method? The constructor?
reinanto3a at 2007-7-12 1:20:48 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

He is talking about integrated JSF tools of Sun Java Studio Creator.

The init() method is definied in the [url=http://developers.sun.com/docs/jscreator/apis/jsfcl/com/sun/jsfcl/app/AbstractPageBean.html]AbstractPageBean[/url].

I don't know the answer tho. I don't use Studio Creator. Eclipse + JSF RI 1.2 all the way.

BalusCa at 2007-7-12 1:20:48 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
The init() method ist called when the session bean ist used first time. A SessionBean extends com.sun.rave.web.ui.AbstractSessionBean.
Ingmara at 2007-7-12 1:20:48 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
so if i do a direct request to a page which is a session bean, should it be created then?
schaeflia at 2007-7-12 1:20:48 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5

It's not clear, what do you think a page is. A page is more than just one bean. There are JSPs, Servlets, renderer, some XML, HTML or other output. A page bean or backing bean is usually in request scope not in session scope. Add some logging statements to your session bean in constructor, init() method and action method to watch the order of execution. There may be differences between managed beans and not managed beans.

Ingmara at 2007-7-12 1:20:48 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...