EJB questions

Is is possible for an EJB client to marshall an object of class java.lang.Class to an EJB?
Technically yes, spec. compliant NO! - refer to section 18.1.2 of the EJB 1.1 specification (page 273). "The enterprise bean must not attempt to query a class to ...


Is it possible to write two EJB's that share the same Remote and Home interfaces, and have different bean classes?
if so, what are the advantages/disadvantages?
Sharing interfaces might be possible, but not trivial.
If you deploy with Sun Deployment Tool 1.2.1 you will get a
java.lang.ClassCastException: MyBean2EJB_EJBObjectImpl ...


Is it possible to specify multiple JNDI names when deploying an EJB?
No. To achieve this you have to deploy your EJB multiple times each
specifying a different JNDI name. Java:API:EJB Andrea Pompili ...


What is the status of the UML-EJB Mapping Specification (JSR 26)?
Thank you for your interest in JSR-000026. It is currently > in the expert group stage, meaning that the CAll For > Experts (CAFE) was issued and replies were received. ...


Is it legal to have static initializer blocks in EJB?
Although technically it is legal, static initializer blocks are used to execute some piece of code before executing any constructor or method while instantiating ...


In CMP how can I define a finder method equivalent
to a 'SELECT * FROM TABLE'? [RC - Please give reference
to the particular AppServer you are using]
Weblogic 5.1.0 - Define the following Finder syntax in your weblogic-ejb-jar.xml deployment descriptor. All ...


Is it possible to access a CORBA object from a EJB? I am using VisiBroker 4.0 for my CORBA objects and J2EE 1.2.1 for my EJB.
These properties can be set on the commandline (using -Dorg. or using a file named orb.properties. Java:API:EJB, Java:API:CORBA Robert Castaneda ...


How can we interact with COM/DCOM components from a EJB component ?
A list of tools that integrate Java with the Microsoft platform is
available here. These tools can be used, as long as they stay within
the EJB specification requirements ...

Is it possible to stop the execution of a method before completion
in a SessionBean?

Threads inside an EJB, refer to section 18.1.2 of the EJB 1.1 specification. One possible solution (that requires coding) would be to set the transaction that the ...


Is it legal to have static initializer blocks in EJB?
Is it legal to have static initializer blocks in EJB? Java:API:EJB ravi srivatsav ...

No comments: