What are not allowed within the ejb container? , JAVA Programming

In  order  to  provide  portable  and  reliable  EJB  elements,  the  following  restrictions  apply  to  EJB  code implementation:

1. Avoid using static non-final fields. Defining all static fields in EJB component as final is recommended. This enables the EJB container to provide instances across multiple JVMs.

2. Avoid starting a using thread or new thread synchronization.

3. Avoid using Swing or AWT functionality. EJBs are server side business elements.

4. Avoid using java.io operations or file access. EJB business elements are meant to use source managers such as JDBC to retrieve and store application data. But deployment descriptors may be used to store .

5. Avoid listening or accepting to socket connections. EJB components are not meant to give network socket functionality. However the specification lets EJB elements act as RMI clients or socket clients.

6. Avoid using the reflection API of java. This restriction enforces Java security.

 

Posted Date: 7/27/2012 4:32:28 AM | Location : United States







Related Discussions:- What are not allowed within the ejb container? , Assignment Help, Ask Question on What are not allowed within the ejb container? , Get Answer, Expert's Help, What are not allowed within the ejb container? Discussions

Write discussion on What are not allowed within the ejb container?
Your posts are moderated
Related Questions
Each time an object is started in Java it goes into the area of memory named as heap. The primitive variables like double and int are allocated in the stack, if they are local inst

Normal 0 false false false EN-US X-NONE X-NONE

What is a variable in Java program? It's a memory location. Memory location is given some name. Memory location is being assigned some value. Value may change o

Explain the both HashSet and TreeSet? HashSet is an unordered, unsorted Set. It's a Collection set which restrict duplicate elements and also repositioning of elements. I

How we can changing the Implementation ? Suppose the Car class requires to be used in a simulation of New York City traffic in that each actual car on the street is represente

The process of applying aspects to a target object to form a new proxy object is known as Weaving. The aspects are woven into the target object at the verified join points.

I want Android application with motion detection Project Description: We need to develop a simple application for android which uses motion detection libraries from open sour

You must design, code and demonstrate a J2ME program (a program capable of running on mobile telephones) according to the specification given in the next section.  The overall cour

implement simulated annealing for cable company problem

To develop a shopping carts application for an online store of your choice Outcomes: 1. Apply the GUI components of Java and other tools to create user-friendly interfaces.