Sreejobs Logo
   For Latest Job Updates  
sreenutech.com Online Exams
Home Govt Jobs IT Fresher Jobs IT Exp Jobs IT Walk-Ins MBA Jobs BPO Jobs Register FAQ’s Post Job Contact Us
Search:
SreeJob Fees   Feeds
Hot Jobs
Welcome Guest
Login | Register
Total No Of Questions: 100.
1) A Java EE 5 application contains a session bean which uses a security role USER. A group called people is defined in an LDAP server. Which two define appropriate EJB role responsibilities? (Choose two.)


2) Which statement is true about the Timer service in an EJB 3.0 stateless session bean?


3) A developer creates a stateful session bean that is used by many concurrent clients. The clients are written by other development teams and it is assumed that these clients might not remove the bean when ending their session. The number of concurrent sessions will be greater than the defined bean cache size. The developer must consider that the state of the session bean can be influenced by either passivation or timeout. Which three actions should the developer take to make the bean behave correctly in passivation and timeout situations?(Choose three.)


4) Which method always throws an exception when invoked on a container-managed entity manager?


5) A CMT session bean named MrBean is annotated as follows : 21. @Stateless(name="MrBean") 22. @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED) 23. public class MrBean { 24. public void storeStuff() {} 25. There are no transaction annotations at the method level. Given the following snippet of an ejb-jar.xml: 23. 24. 25. MrBean 26. storeStuff 27. 28. Mandatory 29. Which statement is correct about the business methods in MrBean?


6) A developer writes a stateless session bean with a constructor, a PostConstruct method, a PreDestroy method, and this business method: 11. public String hello() { 12. return "hello"; 13. } The container invokes the hello method on an instance of the bean. Which is true about that bean instance when control reaches Line 12?


7) The Java Persistence API defines EntityTransaction interface. Which statement is correct?


8) A developer creates a stateful session bean that is used by many concurrent clients. The clients are written by other development teams and it is assumed that these clients might not remove the bean when ending their session. The number of concurrent sessions will be greater than the defined bean cache size. The developer must consider that the state of the session bean can be influenced by either passivation or timeout. Which three actions should the developer take to make the bean behave correctly in passivation and timeout situations? (Choose three.)


9) A developer wants to create a Java Persistence query that restricts the results of an age-based query. Specifically, the developer wants to select everyone who is NOT a teenager. (A teenager is someone who is 13, 14, 15, 16, 17, 18, or 19 years old.) Which expression in the query's WHERE clause is correct?


10) The bean class of an EJB Web service endpoint has one method annotated with @WebMethod. Which two types can be legally returned from that method? (Choose two.)
Page 1 of 10
Home | Register for Job Updates | Contact Us