• Post Reply Bookmark Topic Watch Topic
  • New Topic

EBJ beginner question

 
P. Ingle
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

our team is developing a web app. One of the *requirements* is to remain stateless. In that case, do we pretty much rule out option of using Entity Bean?

Thanks,
P.Ingle
 
Raj CK
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. You can use EJBs(enity beans also).

All web application are stateless. You can still develop EJBs. Think Entity beans as your 'backend'. Session Beans(state less) as access layer to the backend.

For more info
http://c2.com/cgi/wiki?SessionBeanWrapsEntityBeans
 
Rahul Juneja
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

firstly, I'l say you to change the Name to follow proper naming poilicy of Java Ranch.

And yes regarding your query, if you use Stateless Session bean, you can surely use entity beans to be called from the S.Session beans, Infact that is very much commonly used in designing J2EE applications. And there are verious design patterns which states this method of calling Entity beans.

Cheers,
Rahul
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!