what are required main interfaces in EJB?

Answers were Sorted based on User's Feedback



what are required main interfaces in EJB?..

Answer / sathya


The Home Interface and the Remote Interface.

Is This Answer Correct ?    1 Yes 0 No

what are required main interfaces in EJB?..

Answer / shilpa kapurkar

when we go for EJB 2.x version, the required interfaces to
develop and EJB component are
Remote Interface - Business Logic methods declaration
Home Interface - Life Cycle Methods
Bean class - Implemetation for BL methods & Life cycle methods
optionally, Local Interfaces.
When we go for EJB 3.0 , there is no need of declaring home
interface or Remote Interface. Instead it will make use of
JAVA POJO & POJI classes and interfaces. EJB 3.0 will have
only Business Interface (POJI) in which business methods are
declared. EJB3.0 makes use if Annotations.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More EJB Interview Questions

What are the various types of entrepreneur java bean?

0 Answers  


how to set the relationship between tables in ejb

1 Answers  


Name the interfaces that you used in Beans?

2 Answers  


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?

0 Answers  


What are the design goals of EJB architecture?

1 Answers  






What is @enableautoconfiguration?

0 Answers  


difference b/w the hybernate and entity bean

6 Answers   Wipro,


In my project iam integrating telephone line using some bridge. To connect my project to that telephone line they have give some jar file. Using dat i connected with that.. To handle that event like call attented, call disposed and idle time they have give one event listener class.. I did every thing and this class is alsoo called when a particular event is fired. The only thing is i wanna call EJB from that event listener method.. But the EJB is not getting initated and exception is thrown. This below shownn error is occured only i try to call it from this event listener class. In other places EJB calling is working fine.. javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: org/jnp/interfaces/NamingContextFactory] at javax.naming.spi.NamingManager.getInitialContext (NamingManager.java:657) at javax.naming.InitialContext.getDefaultInitCtx (InitialContext.java:247) at javax.naming.InitialContext.init(InitialContext.java:223) at javax.naming.InitialContext.<init> (InitialContext.java:197) at com.kgisl.etrac.desk.servicelocator.ServiceLocator.getInitia lContext(ServiceLocator.java:82) at com.kgisl.etrac.commonUtils.EventListener.getAdministrationE JBRemote(EventListener.java:206) at com.kgisl.etrac.commonUtils.EventListener.CallDispositioned (EventListener.java:65) Caused by: java.lang.ClassNotFoundException: org/jnp/interfaces/NamingContextFactory at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:242) at com.sun.naming.internal.VersionHelper12.loadClass (VersionHelper12.java:42) at javax.naming.spi.NamingManager.getInitialContext (NamingManager.java:654) ... 6 more javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: org/jnp/interfaces/NamingContextFactory] at javax.naming.spi.NamingManager.getInitialContext (NamingManager.java:657) at javax.naming.InitialContext.getDefaultInitCtx (InitialContext.java:247) at javax.naming.InitialContext.init(InitialContext.java:223) at javax.naming.InitialContext.<init> (InitialContext.java:197) at com.kgisl.etrac.desk.servicelocator.ServiceLocator.getInitia lContext(ServiceLocator.java:82) at com.kgisl.etrac.commonUtils.EventListener.getAdministrationE JBRemote(EventListener.java:206) at com.kgisl.etrac.commonUtils.EventListener.CallDispositioned (EventListener.java:65) Caused by: java.lang.ClassNotFoundException: org/jnp/interfaces/NamingContextFactory at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:242) at com.sun.naming.internal.VersionHelper12.loadClass (VersionHelper12.java:42) at javax.naming.spi.NamingManager.getInitialContext (NamingManager.java:654) ... 6 more It would be more help full if i get the solution 10x in advance balaji

1 Answers  


Where is ejb used?

0 Answers  


Can an ejb send asynchronous notifications to its clients?

0 Answers  


What are different Methods and Classes written in a Session Bean

1 Answers   DELL,


Is is possible for an ejb client to marshal an object of class java.lang.class to an ejb?

0 Answers  


Categories