Sun SCBCD 5.0 exams
- Friday, December 5, 2008, 11:48
- Exam Topics
- 1,712 views
- Add a comment
Are you a developer who is responsible for designing and implementing applications using Enterprise JavaBeans 3.0? If so, this is your opportunity to get involved in the creation of the Sun Certified Business Component Developer (SCBCD) 5.0 exam!!!!!
SCBCD 5.0 Books
Mastering Enterprise JavaBeans 3.0
Featuring myriad changes from its previous versions, EJB 3.0 boasts a very different programming and deployment model, with nearly every aspect of development affected. Even the most experienced EJB and J2EE developers will need to relearn how to best use EJB to develop mission-critical applications. This author team of experts has taken their combined skills in architecture, development, consulting, and knowledge transfer to explain the various changes to EJB 3.0 as well as the rationale behind these changes. You’ll learn the concepts and techniques for authoring distributed, enterprise components in Java from the ground up. Buy this book from amazon
Enterprise JavaBeans 3.0
If you’re up on the latest Java technologies, then you know that Enterprise JavaBeans (EJB) 3.0 is the hottest news in Java this year. In fact, EJB 3.0 is being hailed as the new standard of server-side business logic programming. And O’Reilly’s award-winning book on EJB has been refreshed just in time to capitalize on the technology’s latest rise in popularity. Buy this book from amazon
EJB 3 in Action
EJB 3 in Action tackles EJB 3 and the Java Persistence API head-on, providing practical code samples, real-life scenarios, best practices, design patterns, and performance tuning tips. This book builds on the contributions and strengths of seminal technologies like Spring, Hibernate, and TopLink. EJB 3 is the most important innovation introduced in Java EE 5.0. EJB 3 simplifies enterprise development, abandoning the complex EJB 2.x model in favor of a lightweight POJO framework. The new API represents a fresh perspective on EJB without sacrificing the mission of enabling business application developers to create robust, scalable, standards-based solutions. Buy this book from amazon
SCBCD 5.0 Exam Details
Prerequisites: Sun Certified Programmer for the Java 2 Platform (any edition)
Exam type: Multiple-Choice, Scenario-based questions and Drag-and-Drop questions
Number of questions: 61
Pass score: 59% (36 of 61 questions)
Time limit: 145 minutes
The Sun SCBCD 5.0 certificates give you possibility to work in any country of the world because they are acknowledged in all countries equally. This Sun SCBCD 5.0 torrent certificate helps
not only to improve your knowledge and skills, but it also helps your career, gives a possibility for qualified usage of Sun SCBCD 5.0 exam products under different conditions. The
majority of companies in the sphere of information technologies require the presence of Sun SCBCD 5.0 exams for the work in the company, and that makes obtaining this Sun SCBCD 5.0
certificate necessary. Many IT specialists were not able to obtain the real Sun SCBCD 5.0 certificate from the first attempt, which was the result of poor preparation for the
examination, using preparatory Sun SCBCD 5.0 study guide of poor quality.
The PassGuide leader among the providers of Sun SCBCD 5.0 preparatory materials is products such as Sun SCBCD 5.0 vce pdf Braindumps, Sun SCBCD 5.0 Tutorial, Sun SCBCD 5.0 Exam Questions with Answers, Sun SCBCD 5.0
Trainings, Sun SCBCD 5.0 Test Online Simulations Course and free PDF. It obtained its leadership and trust of the users from the very beginning of its work on the Sun SCBCD 5.0 training
materials market. All the Sun SCBCD 5.0 value pack aids have been created by people who are personally familiar with actualtests Sun SCBCD 5.0 Preparation Labs and who know all the
difficulties and popular mistakes made by those who take a Sun SCBCD 5.0 . The entire material is logically composed in such a way that everything becomes easy to understand for
anyone. full download Many Sun SCBCD 5.0 guides include audio and video material. It is really easy to acquire Sun SCBCD 5.0 exams because of great variety of methods of payment.
pass4sure testking Sun SCBCD 5.0 transcender PassGuide Testinside rapidshare 4shared links
1) Consider the following Stateless Session Bean,
@Stateless
public class MyTestBean implements MyTestLocal
{
public void cleanResources( )
{
}
}
You want to annotate the method cleanResources() with @PreDestroy Annotation using XML Deployment Descriptor. Which of the following will correctly do that? 1.
cleanResources
2.
cleanResources
3.
cleanResources
4. None of the above.
2) A Stateful Session Bean by name ‘ResourceAllocatorBean’ has a business method by name ‘allocate’ along with a number of methods. You have developed an interceptor class ‘net.javabeat.ejb3.LoggingInterceptor’ which you want to apply to the method ‘allocate’ of the ‘ResourceAllocatorBean’. Which of the following is the correct way to achieve that?
1.
2.
3.
4. None of the above.
3) Given the following session bean,
@Stateful
public class CounterBean implements CounterRemote
{
// Line ‘A’
public int count()
{
// Line ‘B’.
userTransaction.begin();
// Do something here
userTransaction.commit();
}
}
Which of the following code snippets can be inserted into the lines marked by identifiers A and B so that the above bean code will compile without any compilation errors? 1.
Donwload Free PassGuide Braindumps-The Most Realistic Practice Questions and Answers,Help You Pass any Exams @Resource
private SessionContext sessionContext; // Line ‘A’
Transaction userTransaction = sessionContext.getTransaction(); // Line ‘B’
2.
@Resource
private SessionContext sessionContext; // Line ‘A’
UserTransaction userTransaction = sessionContext.getUserTransaction(); // Line ‘B’
3.
@Resource
private ApplicationTransaction transaction; // Line ‘A’
UserTransaction userTransaction = transaction.getUserTransaction(); // Line ‘B’
4. None of the above.
4) Which of the following is not a life-cycle method for a Stateful Session Bean?
1. Post Construction
2. Pre Destruction
3. Post Activation
4. Pre Construction
5. Pre Passivation
6. All the Above
5) Imagine that you have a business interface by name ‘Template’. Which of the following ways can be used by the Client Application to acquire a reference to the business interface (assuming that this interface is bound in the JNDI Context)?
1.
@Resource
SessionContext context;
?? Template template = (Template)context.lookup(“template”);
2.
@EJB
Template template;
3.
Template template = null;
InitialContext context = new InitialContext();
template = (Template)Context.lookup(“java:comp/ejb/template”);
4. All the above.
6) Which of the following code snippets correctly declares a Message-Driven Bean by name ‘TestMessageDrivenBean’?
1.
public class TestMessageDrivenBean implements javax.jms.MessageListener
{
public void onMessage(Message message)
{
// Business logic here.
}
}
2.
public class TestMessageDrivenBean implements javax.ejb.MessageListener
{
public void onMessage(Message message)
{
// Business logic here.
}
}
3.
public class TestMessageDrivenBean implements javax.ejb.MessageListener
{
public void ejbRemove()
{
}
public void setMessageDrivenContext(MessageDrivenContext context)
{
}
}
4. All the above.
7) Imagine that the Application you develop periodically sends some events to some other parts of the Application at some defined intervals. Which of the following enterprise bean(s) can be used in this scenario?
1. Entity Bean
2. Stateful Session Bean
3. Stateless Session Bean
4. Message Driven Bean
5. Timer Bean
6. None of the above.
Assume that your Application has created as instance of EntityManager with the following piece of code,
EntityManagerFactory factory = Persistence.createEntityManagerFactory(“…”);
EntityManager manager = factory.createEntityManager();
Which of the following methods can be used to check whether the handle of the EntityManager instance is valid?
1. EntityManager.isValid()
2. EntityManager.isHandleValid()
3. EntityManager.isOpen()
4. None of the above.
9) Which of the following way is used for creating an extended persistence context?
1.
EntityManager entityManager = …;
PersistenceContext context = entityManager.createExtendedPersistenceContext();
2.
EntityManagerFactory factoy = Persistence.createEntityManagerFactory();
EntityManager entityManager = factory.createEntityManager();
PersistenceContext context =
entityManager.createPersistenceContext(PersistenceContextType.EXTENDED);
3.
@PersistenceContext(unitName = “…”, type=PersistenceContextType.EXTENDED)
private EntityManager entityManager;
4. None of the above.
10) Which of the following criteria is needed to make a plain java class by name ‘Employer’ as an entity and that can also be transferred and accessible by a remote application?
1.
@Entity
public class Employer
{
}
2.
public class Employer extends javax.persistence.Entity
{
}
3.
@Entity
public class Employer implements Serializable
{
}
4. All the above.
Answers
1) b.
Option b is correct. The element ‘lifecycle-callback-method’ must be used specifying the name of the method and this element should be included within the element ‘pre-destroy’.
2)4) a.
Option a is correct. This option correctly defines the elements for associating an enterprise bean and the interceptor class along with the method that should be intercepted.
3) b.
Option b is correct. The business method ‘count’ is trying to explicitly start a transaction, then do some business logic and finally commit the transaction. Here, since the transaction is controlled at the Application level, this transaction should be of type ‘UserTransaction’. A UserTransaction object can be obtained a reference by calling the method getUserTransaction() on the Session Context object which is already initialized by the Container by applying the Annotation ‘@Resource’.
4) d.
Option d is correct. The life-cycle method Pre Construction is not valid for a Stateful Session Bean (as well as for any Enterprise Bean).
5) d.
All the options are correct. Options a and b using the dependency injection mechanism for initializing the business interface (from EJB 3.0). Option c uses the older style (EJB 2.1) for acquiring the reference to the business interface.
6) a.
Option a is correct. It is mandatory for a Message-Driven Bean to implement the MessageListener interface thereby overriding the onMessage() method.
7) c and d.
Options c and d are correct. It should be noted that only Stateless Session Beans and Message Driven Beans can make use of the Timer Service provided by the Container.
c.
Option c is correct. The method isOpen() will return true if the handle of the EntityManager is valid and it is not closed.
9) c.
Option c is correct. There is no such interface called PersistenceContext defined by the JPA Specification. A Persistence context is a virtual object that comes into existence whenever an EntityManager instance is created.
10) c.
Option c is correct. The class must be annotated with @Entity and must implement the Serializable interface (or the Externalizable interface).
|
Type |
Exam Bible | New Questions & Answers |
Latest Updated |
Download link |
| All Certbible 's Exam Dumps |
597 |
1 days ago | Available |
PassGuide Training Materials & Practice Tests
About the Author
Write a Comment
Gravatars are small images that can show your personality. You can get your gravatar for free today!

