"perfectionist" wrote :
|
| The problem was the injected reference to the stateless session bean was being called one time from inside the constructor for the backing bean.
|
|
I haven't used JSF, but i think you should be using the injected reference after @PostConstruct and not in the constructor of the managed bean.
public class MyBackingBean ...
| {
|
| @EJB
| private MyEJB ejb;
|
| public MyBackingBean()
| {
| ... // don't use the bean here, its not yet injected
| }
|
| @PostConstruct
| public void myPostConstruct()
| {
| // use the bean here, since this is called after
| // resources have been injected
| ejb.doSomething();
| }
| ...
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4207028#4207028
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4207028
"nimrodt" wrote :
| 1. Why Jboss is collapsing after initiating shutdown command < ./shutdown.sh -s jnp://localhost:<JNP port> >
| Jboss just stuck during the boot process.
|
I'm sorry, i did not get a clear picture of what is happening. Are you saying when you run the shutdown script, the script just hangs? Or are you saying that when JBoss is starting/booting, it just hangs?
Can you please post the relevant console logs? And what command do you use to start the server?
While posting logs or xml content or code, please remember to wrap it in a code block by using the Code button in the message editor window. Please use the Preview button to ensure that your post is correctly formatted.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4207017#4207017
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4207017
I have a situation where I use @EJB annotation in a JSF backing bean and sometimes it is null and other time it is not.
I am converting an application from jboss-eap-4.3 to jboss-5.0.0.GA. In 4.3 I used JNDI lookup.
The problem was the injected reference to the stateless session bean was being called one time from inside the constructor for the backing bean. That is when it would be NULL. All other references worked fine.
Is that correct behavior?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4207013#4207013
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4207013