![]() |
Re: EJB 3.0 Stateful Session Bean Example
Hi,
I tried out this example using glassfish and netbeans but getting following error can you guide me? javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial at javax.naming.spi.NamingManager.getInitialContext(N amingManager.java:645) at javax.naming.InitialContext.getDefaultInitCtx(Init ialContext.java:247) at javax.naming.InitialContext.getURLOrDefaultInitCtx (InitialContext.java:284) at javax.naming.InitialContext.lookup(InitialContext. java:351) at ejb_stateful.CartClient.main(CartClient.java:14) Thanks Nirav Shah |
Re: EJB 3.0 Stateful Session Bean Example
Quote:
just add app-serv-rt.jar(for GlassFish 2.0) in your client project it would be working fine Thanx Sabbirali Kadiwala |
Re: EJB 3.0 Stateful Session Bean Example
Hi :charming: :charming:
:nonod: I tried out this example using glassfish and netbeans |
Re: EJB 3.0 Stateful Session Bean Example
write a simple Stateful Session Bean. It consists of three POJO's: Remote interface Cart.java, Bean class CartBean.java and EJB client CartClient.java. Prerequisites In order to complete the example application, you should
|
Re: EJB 3.0 Stateful Session Bean Example
hello,
i know that a stateful bean retains the state. but in this example, i don't see the strength of maintaining the "state" of the so called stateful bean. In this example, what is the so called "state"? Or can someone explain where in this example the difference with a stateless bean comes above??? Thanks! |
Re: EJB 3.0 Stateful Session Bean Example
What a dumb example. How about actually exercising the state of the session bean by making multiple calls. Calling it once demonstrates nothing.
|
Re: EJB 3.0 Stateful Session Bean Example
what are the jar files which i have import for this example? :confused:
|
| All times are GMT +5.5. The time now is 22:23. |