REAL QUESTIONS SUBMIT MATERIAL ADVERTISE
Braindumps

Microsoft

Cisco

Citrix

CIW

CompTia

CWNA

Apple

Adobe

HP

Legato

Exin

Filemaker

Brocade

Ericsson

TIA

Veritas

ISEB

SCP

IISFA

ISM

OMG

Apc

Mile2

Foundry

Huawei

McData

Symantec

TeraData

RedHat

Solar Winds

Blue Coat

Riverbed

 

 
 
Click on name of dumper to view the dump
 
Barak
 
 

 

Braindumps of 310-091
Sun Certified Bus. Component Developer java EE Platform 5

 

Exam Questions, Answers, Braindumps (350-091)
The exam is tough but the guide from www.exams.ws was really helpful.


QUESTION 1
A developer writes a stateful session bean called FooBean.
Which code can be inserted before Line 11 of the FooBean class to define a TYPE-level environment dependency on a JMS Topic?
11. public class FooBean {
12.
13. publicvoidfoo() {}
14.
15. }
A. @Resource(type=Topic.class)
B. @Resource(name="topicRef")
private static Topic topic;
C. @Resource private Topic topic;
D. @Resource(name="topicRef" ,type=Topic.class)
Answer: D


QUESTION 2
Which two statements are true? (Choose two.)
A. All types of enterprise beans can be transaction-aware.
B. Typically, fine-grained objects, such as an employee record, should be remotely accessible.
C. The client view of any given enterprise bean will be consistent across all EJA 3.0 containers without the need to recompile the bean.
D. As long as a given enterprise bean is NOT recompiled, its security attributes are guaranteed to be consistent across all EJB 3.0 containers in which it is deployed.
Answer: A, C


QUESTION 3
Bean A is using bean-managed transaction demarcation and has invoked the too method of beanB. When the too method returns, bean A needs to determine if the transaction has been set to rollback. Which must be true?
A. It is NOT possible for bean A to determine if the transaction has been set to rollback.
B. Bean A must invoke the get Status method on the User Transaction that it began.
C. For this to be possible, bean B must also use bean-managed transaction demarcation.
D. Bean A must invoke the setRollbackOnly method on the User Transaction that it began.
E. Bean A must invoke the getRollbackOnly method on the User Transaction that it began.
Answer: B


QUESTION 4
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.)
A. java util Date
B. javax.ejb.Timer
C. an array of java.lang.String
D. an EJB 3.0 local business interface reference
E. an EJB 3.0 remote business interface reference
Answer: A, C


QUESTION 5
A Java EE 5 Application server has four different security realms for user management. One of the security realms is custom made. This realm supports only individual user entries, no grouping of users, and is used by the application. Which two statements are true? (Choose two.)
A. EJA developers cannot use the isCallerlnRole method.
B. The annotation @RunAs("AAA") can still be used for this application.
C. All security roles need a role-link entry in the deployment descriptor.
D. All security roles can be mapped successfully to individual users in the realm.
Answer: B, D


QUESTION 6
A developer is writing a stateless session bean that is obtaining a transaction-scoped entity manager using injection and assumes the application defines one persistence unit. Which declaration is correct?
A. @Resource EntityManager em;
B. @PersistenceUnit EntityManager em;
C. @PersistenceContext EntityManager em;
D. @PersistenceUnit("TransactionScoped") EntityManager em;
Answer: C


QUESTION 7
An enterprise developer needs to modify the order of interceptor method execution specified by the Bean Provider, but does NOT have access to the bean's source code. No deployment descriptor was provided in the ejb-jar delivered by the Bean Provider. Which represents the solution to this problem?
A. No solution is possible under these conditions.
B. The Deployer can add metadata annotations to the ejb-jar.
C. The Application Assembler can add metadata annotations to the ejb-jar.
D. The System Administrator can add interceptor binding information at runtime, using vendor- specific tools.
E. The Application Assembler can add a deployment descriptor to the ejb-jar that includes interceptor binding information.
Answer: E


QUESTION 8
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.)
A. In class Department:
@ManyToOne
private Company company;
B. In class Department
@OneToMany
private Company company;
C. In class Department:
@OneToMany(mappedBy="department")
private Collection<Company> companies;
D. In class Company:
@ ManyToOne(mappedBy="company")
private Collection<Department> departments;
E. In class Company:
@OneToMany(mapped By="company")
private Collection<Department> departments;
Answer: A, E

310-091

 

 

 

Braindumps Real exam questions and verified answers - 100% passing guarantee - cheap prices.

 

Braindumps and Exams - Instant download real exam questions - Passing guarantee.

Follow us on FaceBook
Braindumps on Facebook
 
 
 
 
 

CheckPoint

Linux

Novell

DB/2

Network Appliance

EC-Council

Nortel

McAfee

Juniper

ISACA

PMI

Sybase

EMC

HDI

SNIA

ISC

Sair

IBM

Lotus

Exam Express

3COM

BICSI

DeLL

Enterasys

Extreme Networks

Guidance Software

Computer Associates

Network General

SAS Institute

Alcatel Lucent

SeeBeyond

TruSecure

Polycom

Hyperion

Hitachi

Nokia

Fortinet

Vmware

Fujitsu

Tibco

Intel

PostgreSQLCE

BusinessObjects

RESSoftware

BlackBerry

AccessData

ICDL

Isilon

SAP

The Open Group

ACSM

Altiris

Avaya

Cognos

F5

Genesys

SDI

ACI

ASQ

Google

H3C

HIPAA

HRCI

SOA

IIBA

Zend