Page 1 of 1
					
				About Question enthuware.oce-ejbd.v6.2.492 :
				Posted: Mon Aug 12, 2013 10:49 am
				by mopuffus
				IMHO the Stateless bean does not have to implement the setSessionContext method. 
If this is correct then the container needs to call only: 
constructor, postConstruct, bussinesMethod and preDestroy.
My test claims that the upper listed method flow is wrong but I think it is not.
Best Regards,
Mihai
			 
			
					
				Re: About Question enthuware.oce-ejbd.v6.2.492 :
				Posted: Tue Aug 13, 2013 6:43 pm
				by admin
				Actually, a bean does not need to implement @PostConstruct or @PreDestroy either. But the question is just trying to illustrate the sequence of all these calls assuming the bean has these methods.
HTH,
Paul.
			 
			
					
				Re: About Question enthuware.oce-ejbd.v6.2.492 :
				Posted: Wed Aug 14, 2013 11:07 am
				by mopuffus
				I agree with you and the question is good because it make you think over the entire methods flow.
On the other side the "setSessionContext" is a 2.1 remaining 

.
 
			 
			
					
				Re: About Question enthuware.oce-ejbd.v6.2.492 :
				Posted: Thu Feb 20, 2014 9:19 pm
				by vinkjrwl
				Hi,
Remember that a stateless session bean does not have ejbActivate and ejbPassivate methods.
Choices given contains @prePassivate and @postActivate and not ejbActivate and ejbPassivate as given in the explanation.
keeping the options given in mind, following order should also be a valid answer to this question:
@PostConstruct
businessMethod
@prePassivate
@postActivate
@preDestroy
 
			 
			
					
				Re: About Question enthuware.oce-ejbd.v6.2.492 :
				Posted: Thu Feb 20, 2014 10:40 pm
				by admin
				ejbActivate/ejbPassivate are same as @PostActivate/@PrePassivate. ejbActivate/ejbPassivate methods are declared in SessionBean interface and are invoked by the container upon activation/passivate of a bean that implements SessionBean interface, while the @PostActivate/@PrePassivate are annotations meant for the same purpose.
As noted in the explanation, a Stateless Session bean does not have these methods. So the order you've mentioned is wrong.
HTH,
Paul.
			 
			
					
				Re: About Question enthuware.oce-ejbd.v6.2.492 :
				Posted: Fri Feb 21, 2014 2:30 am
				by vinkjrwl
				Thanks Paul. It was kind of stupid on my part to ask this question as I failed to notice the session bean type itself (stateless in the case).
Thanks.
			 
			
					
				Re: About Question enthuware.oce-ejbd.v6.2.492 :
				Posted: Thu Jun 01, 2017 12:37 pm
				by johnlong
				I am not getting show correct answer option in DnD pop-up screen.
			 
			
					
				Re: About Question enthuware.oce-ejbd.v6.2.492 :
				Posted: Thu Jun 01, 2017 12:43 pm
				by admin
				If you are in a test, it will be enabled after you finish the test. If not, you need to click on Evaluate first.
			 
			
					
				Re: About Question enthuware.oce-ejbd.v6.2.492 :
				Posted: Fri Jun 02, 2017 10:02 am
				by johnlong
				It is not showing after evaluation.
			 
			
					
				Re: About Question enthuware.oce-ejbd.v6.2.492 :
				Posted: Fri Jun 02, 2017 10:20 am
				by admin
				Please follow these steps.
			
		
				
			
 
						- test1.png (26.26 KiB) Viewed 16547 times
 
		
		
		
			  
			 
			
					
				Re: About Question enthuware.oce-ejbd.v6.2.492 :
				Posted: Sat Jun 03, 2017 7:55 am
				by johnlong
				Please see my screenshot.
			 
			
					
				Re: About Question enthuware.oce-ejbd.v6.2.492 :
				Posted: Sat Jun 03, 2017 10:13 pm
				by admin
				I have made some change to this question to fix the issue. 
Could you please download the updated version of the question bank from 
http://enthuware.com/downloads/ejbplusv6.ets ?
thank you,
Paul.
 
			 
			
					
				Re: About Question enthuware.oce-ejbd.v6.2.492 :
				Posted: Sat Jun 10, 2017 8:45 am
				by johnlong
				Will do, thanks.