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
Specifically, you'll create a program that will hold minutes worked and assign a value. Calculate the value into hours and minutes. Display the result as shown in Figure 2. Reme

I want to get some idea about how i can make a project on "Free Lancer Teaching."

how to create a face with nose using applet

Want an expert with knowledge of UML diagrams and writing experience for pages writing including diagrams. This project needs 3-4 pages of technical writing about tickets reserv

Employee get data from console

Write names of the DoS attack's phases? DoS (Denail of service): DoS attach has in total 3 kinds of phases and below they are listed: 1. Search 2. Arm 3. Attack

State the significance of public, private, protected, default modifiers both singly and in combination and state the effect of package relationships on declared items qualified by

Write a programme to create a webpage that prints the name of the STUDENT database in Wide Latin font and set the subtitle with description of the STUDENT to the screen. Set the pa

We require expert programmers who will solve problems, who can code by the book, and who will code in java and JavaScript what is designed. Skills required: CSS, Java, HTML5,

Object-to-Relational (O/R) mapping : There are various ways to persist data and the persistence layer is one of the most important layers in any application development. O/R ma