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 deployer is given the following session bean: 10. @Stateless 11. @RolesAllowed("BATH") 12. @DeclareRoles("SOAP") 13. public class ShowerBean implements Shower { 14. public void plug() {} 15. } and the following associated excerpt from the ejb-jar.xml descriptor file: 20. 21. 22. TOWEL 23. 24. Which roles is the deployer expected to map to users or user groups?


2) Given the method invocation sequence: Method 1 calls Method 2 Method 2 calls Method 3 Method 1 calls Method 4 And the transaction scope: Method 1: Transaction A Method 2: Transaction A Method 3: Transaction A Method 4: Transaction B Assuming Method 1 is invoked by a client without an existing transaction context, which set of transaction attributes will support this scope?


3) 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.)


4) According to the Java Persistence API, a managed entity instance X becomes removed by invoking the remove method on it or when it is a target of a cascaded remove operation. Which statement is true?


5) A developer wants to create a business interface for both local and remote usage. For performance reasons the remote interface should NOT be called by a client in the same JVM.Which statement is required to accomplish this, assuming there is no deployment descriptor?


6) A developer has obtained a container-managed entity manager in a stateless session bean. Which two statements are correct? (Choose two.)


7) A Java Persistence application uses a Version attribute to manage concurrent updates. Which is true?


8) A developer writes an interceptor class called FooInterceptor containing the following AroundInvoke method: 11. @AroundInvoke 12. public Object intercept(InvocationContext ctx) { 13. return "intercepted"; 14. } FooInterceptor is applied to a business method in a stateless session bean: 11. @Interceptors(FooInterceptor.class) 12. public String testzero(int i) { 13. return (i == 0) ? "zero" : "not zero"; 14. } Which describes the result when a client invokes the testzero method with a value of 1?


9) A developer needs to include a set of managed classes in a persistence unit.Which two solutions are correct? (Choose two.)


10) A developer wants to implement a relationship between Company and Department entity classes. Every department belongs to one company, and one company has several departments. In this application it is essential to quickly determine which company a department belongs to and to also easily access all departments of a given company. Which two declarations provide a solution to these requirements? (Choose two.)
Page 1 of 10
Home | Register for Job Updates | Contact Us