QueryCAT Logo
Search 5,000,000+ questions and answers.

Frequently Asked Questions

How do I create a stateless session bean with EJB 3.0?

jGuru: EJB FAQ Home Page
To create a stateless session bean you need to make use of the @Stateless annotation. You place the annotation on the line before the class declaration....

How do I create a statefull session bean with EJB 3.0?

jGuru: EJB FAQ Home Page
To create a statefull session bean you need to make use of the @Statefull annotation. You place the annotation on the line before the class declaration.... See similar questions...

What is the EJB 3.0 Java Persistence API (JPA)?

Frequently Asked Questions
The Enterprise JavaBeans (EJB) 3.0 specification includes an additional persistence specification called the Java Persistence API (JPA). It is an API for creating, removing and querying across lightweight Java objects and can be used both within a compliant EJB 3.0 Container and a standard Java SE 5 environment. See similar questions...

Can I use TopLink Essentials in any EJB 3.0 container?

Frequently Asked Questions
Yes, TopLink Essentials through the pluggable persistence capabilities will function as the persistence provider in an compliant EJB 3.0 container. See similar questions...

How can my JSP page communicate with an EJB Session Bean?

Enterprise JavaBeans (EJB) FAQs
The following is a code snippet that demonstrates how a JSP page can interact with an EJB session bean: <%@ page import="javax.naming.*, javax.rmi.PortableRemoteObject,foo.AccountHome,foo.Account" %> <%! //declare a "global" reference to an instance of the home interface of the session bean AccountHome accHome=null; public void jspInit() { //obtain an instance of the home interface InitialContext cntxt = new InitialContext( ); Object ref= cntxt. See similar questions...

Can I use TopLink Essentials outside of an EJB 3.0 container?

Frequently Asked Questions
Yes, TopLink Essentials offers support for deployment within an EJB 3.0 container or outside the container. This includes using the persistence API in Web Containers, other non-EJB 3.0 Java EE containers, or in Java SE. This allows the persistence API to be used anywhere Java is used. See similar questions...

What is a session bean?

Enterprise JavaBeans (EJB) FAQs
A session bean is a type of enterprise bean; a type of EJB server-side component. Session bean components implement the javax.ejb.SessionBean interface and can be stateless or stateful. Stateless session beans are components that perform transient services; stateful session beans are components that are dedicated to one client and act as a server-side extension of that client. Session beans can act as agents modeling workflow or provide access to special transient business services. See similar questions...

How do you implement ejbRemove in EJB 3.0?

jGuru: EJB FAQ Home Page
To implement ejbRemove in EJB 3.0 you will firstly need to import javax.ejb.Remove, then you can annotate the required method with @Remove. @Remove public... See similar questions...

How do I use the @PostConstruct annotation in EJB 3.0?

jGuru: EJB FAQ Home Page
You will firstly need to import javax.annotation.PostConstruct before you can use the annotation. Then annotate a method with @PostConstruct @Pos... See similar questions...

How do I use the @PreDestroy annotation in EJB 3.0?

jGuru: EJB FAQ Home Page
You will firstly need to import javax.annotation.PreDestroy before you can use the annotation. Then annotate a method with @PreDestroy @PreDestroy public... See similar questions...

How do I use the @PostActivate annotation in EJB 3.0?

jGuru: EJB FAQ Home Page
You will firstly need to import javax.ejb.PostActivate before you can use the annotation. Then annotate a method with @PostActivate @PostActivate public... See similar questions...

How do I use the @PrePassivate annotation in EJB 3.0?

jGuru: EJB FAQ Home Page
You will firstly need to import javax.ejb.PrePassivate before you can use the annotation. Then annotate a method with @PrePassivate @PrePassivate public... See similar questions...

What's difference between Servlet/JSP session and EJB session?

jGuru: Servlets FAQ Home Page
From a logical point of view, a Servlet/JSP session is similar to an EJB session. Using a session, in fact, a client can connect to a server and maintain... See similar questions...

How do you implement ejbCreate, ejbRemove, ejbActivate and ejbPassivate in EJB 3.0?

jGuru: EJB FAQ Home Page
There are 4 lifecycle callback methods available in EJB 3.0. They are specified by annotating a method with one of the lifecycle annotations. The annotations... See similar questions...

How do I call one EJB from another EJB?

There is an example on OTN that demonstrates how to call one EJB from another EJB. This example is one session bean calling another session bean but the principles apply globally. In your META-INF directory, add the EJB reference in the application-client.xml file that specifies the EJB you want to refer to. In release 1.0.2.2 we support pessimistic locking and an implicit read-only mode (only changed fields are written. See similar questions...

Back What is a Bean?

Data Representations: Support
A Bean is a reusable Java class which can be combined with other beans to form an application. JavaBeans are lightweight Java objects with methods (getter/setter) for accessible attribute. EJBs Enterprise JavaBeans are heavyweight Java components that adhere to the J2EE specification. See similar questions...

How does a session bean obtain a JTA UserTransaction object?

Enterprise JavaBeans (EJB) FAQs
A session bean can obtain a UserTransaction object via the EJBContext using the getUserTransaction() method. It doesn't! By definition, container-managed transaction processing implies that the EJB container is responsible for transaction processing. The session bean has only limited control of transaction handling via the transaction attribute. See similar questions...

How is Stateful Session bean maintain their states with client?

Enterprise JavaBeans (EJB) FAQs
When a client refers to a Stateful Session object reference, all calls are directed to the same object on the EJB container. The container does not require client identity information or any cookie object to use the correct object. This means that for a client to ensure that calls are directed to the same object on the container, all it has to do is to use same reference for every call. See similar questions...

Explore Other Topics

What is UIC ?
How long does my authorization for direct deposit remain in effect with ASIFlex?
When do I break even when I use Compact Fluorescent Lights (energy saving bulbs)?
What must I do if I have a DME number and am opening a new office?
How can I start Emacs in fullscreen mode on MS-Windows?
Where can I request a charitable donation from CDW?
How will I know when I am actually registered to vote?
How does the Drafting Manual address ASME/ANSI drafting standards?
What is the recovery like after revision rhinoplasty?
What are the duties and responsibilities of the Judicial Conference?
What is the difference between "KVA rating" and "KW rating" of UPS?
What does ECU remapping do?
Can Medicaid place a lien on property or recover against an estate?
More Questions >>

© Copyright 2007-2012 QueryCAT
About • Webmasters • Contact