Hello Israel & Jon, > From: Jon D. Hatton [mailto:[EMAIL PROTECTED]] > I think the question your asking is the advantage of Session > Beans or Stateless Beans ? you cant deploy per say standard > objects ( those that dont extend EJB interfaces ).
But you can invoke them from another deployed J2EE component, which I expect is what Israel probably means. e.g. a servlet or JSP can use plain Java objects as a middle tier instead of using stateless session EJBs. > The difference between Session and Stateless is the Session > beans hold state between calls to > the EJB. Stateless beans are one and done. Well, stateless EJBs are still session EJBs. Session EJBs are either 'stateful' or 'stateless'. Since you are only using a single server, you won't be using the benefit of the distributable nature of EJBs (though if your system is likely to need to be distributed in future, it could be easier to do this if you'd already implemented your solution using EJBs). As Jon pointed out, one reason you may want to use stateless session EJBs is that they allow you to use declarative transaction support. There are other potential benefits, e.g. declarative security, but if you don't need these features then you'd probably be better off sticking to plain Java objects, since it's a simpler (& faster) programming model. Regards, Al. > -----Original Message----- > From: Israel Ayala [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 17, 2003 1:40 PM > To: jdjlist > Subject: [jdjlist] Sessions Bean vs Objects. > > > Hello. > > I want to know the advantages of Sessions Bean instead > of simple objects java. > > The scenery of my application is: > - Only one WebLogic server (NO clusters). > - DAO pattern to access to the data. > - Oracle RDBMS. > > > Thanks. > > __________________________________________________ > Do you Yahoo!? > Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com --- You are currently subscribed to jdjlist as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] --- You are currently subscribed to jdjlist as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] --- You are currently subscribed to jdjlist as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]
