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

Why uploading a web page is important? Describe in 2 - 3 lines? Through only uploading webpage we could place our data so that another can reach up to what we have loaded. Uplo

Draw: loops through the list of cards drawing them in a single row starting from the screen position referred to by the 'x' and 'y' fields of the Hand class. You can limit the numb

Does Java pass arguments by value or reference? Ans) Pass by value. 1. When passing primitives, it going a copy of the variable to the method. Any change made in the method d

ActionForm is javabean which shows the form inputs containing the request parameters from the View referencing the Action bean.

1. Pre-translated: Before the JSP file has been compiled and translated into the Servlet. 2. Translated: The JSP file has been compiled and translated as a Servlet. 3. I

differentiate between states and behaviors of n object

Write a short Java application that stores words in an Array or ArrayList. You get to pick the number of words to store. Generate a random number between 0 (inclusive) and the leng

(Tic-Tac-Toe)  Create class TicTacToe that will enable you to write a complete application to play the game of Tic-Tac-Toe. The class contains a private 3-by-3 rectangular array o

The statechart diagrams and activity diagram are related in a sense that statechart diagram refers on object undergoing a transition process and an activity diagram refers on the f