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
I want cyclos mobile banking USSD and IVR module Project Description: We already have a Cyclos mobile banking project deployed on our server with SMS banking module. The s

Develop a Custom Android App Project Description: We want you to construct a custom Android app. Once user downloads the app and upon installation the user gets push notif

I have to weave two positive integers together. For example, if the numbers are 137 and 064, the output integer would be 103647. This has to be done using integer arithmetic (not s


Mike sells on the average 15 newspapers per week (Monday – Friday). Find the probability that 2.1 In a given week he will sell all the newspapers [7] 2.2 In a given day he will se


Class variables are named as static variables. There is only single occurrence of a class variable per JVM per class loader. When a class is operated the class variables are in

Conversation to HTML Project Description: We have inner pages to be transformed into html for travel domain. 1. Flight search page for one way and round trip 2. Bus res

Explain what is FontMetrics in Java? No word wrapping is completed when you draw a string in an applet, even if you embed newlines in the string along with \n. If you expect th

Im receiving an error message of Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 5 at Homework.main(Homework.java:51)