This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Session bean without EJB environment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Session bean without EJB environment" Watch "Session bean without EJB environment" New topic

Session bean without EJB environment

jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 580
How to make(implement the idea ) stateful session bean and stateless session bean without EJB environment ,using POJO only.
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

You can't run EJBs without a container. You can get simmilar behaviour with a framework such as Spring.

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187
jacob - If you know about object pooling strategies and understand the details of how to create a Java-based application server, it would be possible to create a server application that will emulate the operations and functions of an Enterprise JavaBean environment. Once this framework has been created, you can then implement whatever you want as a POJO.
Kumar Subramanian

Joined: Oct 01, 2008
Posts: 8
Jacob - Not sure about your expectations of creating the idea of SFSB and SLSB without EJBs - I wonder why to re-invent a wheel from scratch

If you should not use an EJB Container, you can think of a framework like Spring framework (again you have to use its interfaces to hook into its container services). But I am still wondering with your question
[ October 15, 2008: Message edited by: Kumar Subramanian ]

Subramanian, Kumar []<br />J2EE Architect, <a href="" target="_blank" rel="nofollow">Eminent Technology Solutions (ETS)</a><br />Software / Portals / Alfresco / Outsourcing / Proteomics
I agree. Here's the link:
subject: Session bean without EJB environment
It's not a secret anymore!