000-287 Exam
test287,enterprise appl.dev.with websphere studio v5.0
- Exam Number/Code : 000-287
- Exam Name : test287,enterprise appl.dev.with websphere studio v5.0
- Questions and Answers : 104 Q&As
- Update Time: 2011-05-04
- Price:
$ 102.00$ 99.00
Free 000-287 Dumps Download
Exam4dumps offers free 000-287 dumps,000-287 Practice exam,000-287 exam questions for Certified Enterprise Developer certification(IBM Certified Network Associate). You can check out the question quality and usability of our 000-287 practice exam before you decide to buy it.Before you purchase our 000-287 Q&A,you can click the link below to download the latest 000-287 pdf dumps.
Exam : IBM 000-287
Title : Test287,enterprise appl.dev.with websphere studio v5.0
1. A developer is writing a session bean which makes use of several entity beans to perform a task. The session bean must record the invocation of the task using a LogEntry entity bean. The log entry must be made regardless of the success of the task. What supports BEST this behavior?
A. Provide two distinct operations on the session bean that would be invoked in sequence by the client code; one for creating the LogEntry and one for performing the task.
B. Use 'RequiresNew' transaction attribute on the LogEntry bean to ensure that the creation of the LogEntry occurs on a separate transaction.
C. Use 'Mandatory' transaction attribute on the LogEntry bean to ensure that the creation of the LogEntry occurs on a separate transaction.
D. Have the task session bean invoke a createLogEntry() method on another session bean to ensure that the LogEntry is created outside the task transaction.
Answer: B
2. A developer is writing a task() method, in a session bean, which makes use of several entity beans to perform a task. The session bean must record the invocation of the task using a LogEntry entity bean. The log entry must NOT be made if the task fails. Assume that the LogEntry bean is configured with 'Supports'. In order to GUARANTEE this behavior, the task() method of the session bean should be configured as:
A. bean-managed transaction and explicitly begin an UserTransaction before creating the LogEntry instance and performing the task logic. Finally, have the task() method commit or rollback the transaction based on the success/failure of the task.
B. 'Supports'. Within the task() method, create the LogEntry instance and perform the task logic. Finally, have the task method() call sessionContext.setRollBackOnly() if the task logic fails.
C. 'RequiresNew'. Within the method, create the LogEntry instance and perform the task logic. Finally, have the task() method call sessionContext.setRollBackOnly() if the task fails.
D. 'Mandatory'. Within the method, create the LogEntry instance and perform the task logic. Finally, have the task() method call sessionContext.setRollBackOnly() if the task fails.
Answer: AC
3. While developing an EJB for an EJB 2.0 compliant server, a developer runs into a problem. Whenever the method ejbContext.getUserTransaction() is called, an IllegalStateException is thrown. Which of the following are possible causes for this behavior?
A. The bean is an entity bean.
B. The bean is a session bean.
C. A transaction has not been started.
D. Container-managed transaction demarcation is being used.
Answer: AD
4. A developer discovers that an exception being thrown from a business method on an entity bean does not cause the transaction to rollback; a rollback was expected. What would correct this problem?
A. Ensure that the business method throws an instance of javax.jts.TransactionRolledbackException.
B. Ensure that the business method marks the current transaction for rollback by calling the setRollbackOnly() method on the EJBContext.
C. Call rollback() on the current UserTransaction object.
D. Call rollback() on the EJBContext.
E. call setRollbackOnly() on the UserTransaction object.
Answer: B
5. Customer and Address are BMP entity beans. The ejbCreate method for Customer is passed values for the properties of the Customer's address and it is necessary to ensure that an Address Entity is created as part of the same transaction that creates the Customer. Assuming the Address requires a reference to the Customer and there are no foreign key constraints enforced by the database, the BEST way to create the Address is to:
A. Insert the Address data into the address table in the ejbCreate method of Customer.
B. Insert the Address data into the address table in the ejbPostCreate method of Customer.
C. Invoke the create() method of AddressHome from the ejbCreate method of Customer.
D. Invoke the create() method of AddressHome from the ejbPostCreate method of Customer.
Answer: D
Free download:Free 000-287 dumps
Download 000-287 Exam Testing Engine
Exam4dumps 000-287 Exam Description
000-287 exam training is available in various formats to best suit your needs and learning style from Exam4dumps. Whether you are a hands-on tactile learner, visually or even a textbook training veteran, we has the 000-287 resources that will guarantee you to pass your 000-287 practice exam at the first time!
Guarantee to Pass Your 000-287 Exam
We provide the latest high quality 000-287 practice exam for the customers,we guarantee your success at the first attempt with only our 000-287 exam questions, if somehow you do not pass the exam at the first time, we will not only arrange FULL REFUND for you, but also provide you another exam of your claim, ABSOLUTELY FREE!
The Tenet Of Exam4dumps
Our on-site online training experts create all of the IBM 000-287 exam products available through Actual-Exams. Our main goal is that you get more kownleage with less money.You will find our price is very cheap.
After-sales Service
Once you purchase our products,we will offer you the best service.After you purchase our product, we will offer free update in time for 90 days.Whatever you have any questions,we will help you solve it. And in 3 weeks we will offer you free updates,so please pay attention our site at all times.
Acquiring IBM Certified Enterprise Developer certifications are becoming a huge task in the field of I.T. More over these exams like 000-287 exam are now continuously updating and accepting this challenge is itself a task. This 000-287 practice test is an important part of IBM certifications and at Certified Enterprise Developer braindumps we have the resources to prepare you for this. The 000-287 exam is essential and core part of IBM certifications and once you clear the exam you will be able to solve the real time problems yourself.Wamt to take advantage of the Real 000-287 Value Pack and save time and money while developing your skills to pass your 'IBM Certified Network Associate (Certified Enterprise Developer) Exam'? Let Exam4dumps help you climb that ladder of success and pass your 000-287 now!


