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 developer creates a stateless session bean, EmployeeServiceBean, and its interface, EmployeeService. The session bean uses two annotated entity classes, Employee.class and Department.class. Which two packaging options can the developer use when creating a deployable EAR?The proposed directory structure is listed for each option. (Choose two.)


2) A developer is working on a user registration application using EJB 3.0. A business method registerUser in stateless session bean RegistrationBean performs the user registration. The registerUser method executes in a transaction context started by the client. If some invalid user data causes the registration to fail, the client invokes registerUser again with corrected data using the same transaction. Which design can meet this requirement?


3) A developer creates a stateless session bean, EmployeeServiceBean,and itsinterface,EmployeeService. The session bean uses two annotated entity classes, Employee.class and Department.class. Which two packaging options can the developer use when creating a deployable EAR? The proposed directory structure is listed for each option. (Choose two.)


4) A developer is implementing an EJB 3.0 message-driven bean that will be associated with a JMS topic. The bean must NOT miss any messages published to the topic, even if the EJB server is down for some time. Which is correct?


5) 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?


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


7) Bean Provider has been asked to write a stateless session bean, MyBean with a single method breakout. A System Administrator guarantees that all clients accessing the bean will be identified by mutual SSL authentication. The Bean Provider's task is to ensure that breakout always logs identity information of the client that invoked it. Which solution would satisfy this requirement?


8) A developer maps the abstract entity class Account with concrete entity sub-classes CreditCardAccount and SavingsAccount using the single table per class hierarchy strategy.Which two statements are true? (Choose two.)


9) 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?


10) Given: A stateless session bean's business method invokes EJBContext.setRollbackOnly and receives an IllegalStateException.Under which of these conditions could this be possible?
Home | Register for Job Updates | Contact Us