Browse DevX
Sign up for e-mail newsletters from DevX

Search the Tips
Tip Bank > Java > Enterprise Javabeans

Enterprise Javabeans

1-20 of 25     Previous     Next
Modifying Setters In Java
by Octavia Anghel
Language: Java, Expertise: Intermediate - See why, as a general rule, a bean should not modify its data, it is a data container, not business logic.
Using ThreadMXBean to Understand Threads
by M S Sridhar
Language: Java, Expertise: Intermediate - Use this interface to learn more about the threads in your code.
Using a JDBC Template
by Octavia Anghel
Language: Java, Expertise: Intermediate — Spring provides a nice abstraction on top of the JDBC API using JdbcTemplate and also provides great transaction management capabilities using annotation-based approach.
Managing Concurrent Requests with EJB Containers
by Anghel Leonard
A limitation of EJB containers is that they can't serialize complex objects. Find out how the PrePassivate and PostActivate methods overcome this shortcoming.
Using EJB Interceptors for Java EE Audits
by Leonard Anghel
With EJB interceptors, you can access the name, parameters, and EJB context of business methods.
How to Declare a java.util.Date in a EJB 3.0 Entity
by Leonard Anghel
To map a date value to a Java date in EJB 3.0, use this code.
Writing a Parameterized SQL Query in EJB 3.0
by Leonard Anghel
Follow this DELETE statement example to write parameterized SQL queries in EJB 3.0.
Inject an EJB 3.0 into the init() Method of a Servlet
by Leonard Anghel
This tip shows you how to inject an EJB 3.0 into the init() method of a servlet.
Look Up a Bean Interface in EJB 3.0
by Leonard Anghel
In principle, in EJB 3.0, you can access a bean from another bean by looking it up in the interface (local or remote). Find out how.
Passivation/Activation of a Stateful Bean in EJB 3.0
by Leonard Anghel
The EJB container needs help when dealing with nonserializable objects. Find out how to provide it.
Use the "Service Locator" Design Pattern with the J2EE Architechture
by Mouli Chandra
This tip is an extension of a Design Pattern called "Service Locator" for the J2EE architecture. Generally, the "Service Locator" pattern returns a home object by merely accepting a string, usually a mapping for a JNDI name.
Improve Performance by Re-using EJB Homes and DataSources
by Gautham Muthuravichandran
Obtaining EJB homes and DataSources from an application server requires the allocation of expensive resources. Free up these resources by caching and reusing EJB Home objects and the DataSource objects.
Write a Primary Key Class in CMP EJB
by Elayaraja David
Check if a Given String Is a Palindrome
by Nico Montenegro
This code checks if a given string is a palindrome. ...
Use an Adapter Class To Provide Empty Implementations For Javabean Interfaces
by Slava Vaseykin
Like many high-level, abstract, and portable concepts, EJB spec has ...
Enforcing consistency in EJB implementation
by Slava Vaseykin
EJB specification does not prohibit
JavaBeans vs. Enterprise JavaBeans
by DevX Pro
What is the difference between a JavaBean and an Enterprise JavaBean?
EJBs and Servlets
by DevX Pro
Both Enterprise JavaBeans and Servlets are server side components. What are the major differences between them? Specifically, what is the difference between a Session Bean and a Servlet?
EJB Scalability
by DevX Pro
One of EJB's obvious design goals was to provide an environment that can scale up to meet the demands of enterprise applications. I'm curious, however, about the other end of the scalability spectrum as well. I would like to write an application that can scale up to meet enterprise demands, but can also be easily used by a single individual working on a non-networked laptop computer. If I build my application with EJB, will I alienate this user base?
Enterprise JavaBeans
by DevX Pro
What is the basic difference between JavaBeans and Enterprise JavaBeans?
1-20 of 25     Previous     Next
Thanks for your registration, follow us on our social networks to keep up-to-date