<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div>Actually OpenEJB works great as an embeddable.<br><br>Just dowloand openejb.war, deploy it into tomcat/webapp that is it! You can use all EJB container functionality in your web applications!<br><br>Actually the point is that EJB&nbsp; is just a technology related with Java EE distribution model/architecture. Its usage heavily depends on where you would like to use it. If you want to create a (simple) web application that depends on single database resource, maybe it is not necessary to include EJBs into your application. But if you would like to use 2PC (for example, integrating JMS with Databases etc.), to distribute your business code into more than one machine , to integrate with legacy CORBA systems or other messaging systems etc. you could likely to use EJBs in Java EE environment.
 <br><br>Thanks;<br><br>--Gurkan<br></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Dan Allen &lt;dan.j.allen@gmail.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> Gurkan Erdogdu &lt;gurkanerdogdu@yahoo.com&gt;<br><b><span style="font-weight: bold;">Cc:</span></b> reza_rahman@lycos.com; Weld-Dev &lt;weld-dev@lists.jboss.org&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Tue, November 24, 2009 10:22:42 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [weld-dev] persistence and transactions outside Java EE<br></font><br><meta http-equiv="x-dns-prefetch-control" content="off"><div class="gmail_quote">On Tue, Nov 24, 2009 at 3:17 PM, Gurkan Erdogdu <span dir="ltr">&lt;<a rel="nofollow"
 ymailto="mailto:gurkanerdogdu@yahoo.com" target="_blank" href="mailto:gurkanerdogdu@yahoo.com">gurkanerdogdu@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><div><div class="im">&gt;&gt;&gt;the main concern is that JTA transactions simply aren't available in a servlet environment (without extra configuration).<br>
</div>AFAIK, you can use UserTransaction object<br></div></div></div></blockquote><div><br>If I download Tomcat or Jetty right now (unless I didn't get the memo) I won't have a UserTransaction.<br><br>Yes, if I spend half the day searching the web to find a tutorial that actually works, maybe I can "upgrade" these containers to support JTA, but that's a PITA.<br>
<br>If you can tell me that placing a single JAR file in the container so that EJB lite works, then we have something.<br><br>-Dan<br></div></div><br>-- <br>Dan Allen<br>Senior Software Engineer, Red Hat | Author of Seam in Action<br>
Registered Linux User #231597<br><br><a rel="nofollow" target="_blank" href="http://mojavelinux.com">http://mojavelinux.com</a><br><a rel="nofollow" target="_blank" href="http://mojavelinux.com/seaminaction">http://mojavelinux.com/seaminaction</a><br><a rel="nofollow" target="_blank" href="http://www.google.com/profiles/dan.j.allen">http://www.google.com/profiles/dan.j.allen</a><br>

<meta http-equiv="x-dns-prefetch-control" content="on"></div></div>
<!-- cg17.c1.mail.mud.yahoo.com compressed/chunked Tue Nov 17 21:32:47 PST 2009 -->
</div><br>



      </body></html>