blob: 9dbc989fc4edc7c071a8e603ae05a4f5aace0b2d [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<!-- $PAGETITLE -->
<TITLE>OpenEJB - OpenEJB 1.0</TITLE>
<LINK href="http://openejb.apache.org/all.css" rel="stylesheet" type="text/css">
<!--[if IE]><link rel="stylesheet" type="text/css" media="screen, projection" href="openejb.apache.org/ie.css"><![endif]-->
<LINK rel="SHORTCUT ICON" href="http://openejb.apache.org/images/favicon.ico">
<META http-equiv="Content-Type" content="text/html;charset=UTF-8">
<SCRIPT language="javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js" type="text/javascript"></SCRIPT>
<SCRIPT language="javascript" src="http://openejb.apache.org/tweet/jquery.tweet.js" type="text/javascript"></SCRIPT>
<SCRIPT type="text/javascript">
$(document).ready(function(){
$(".tweet").tweet({
avatar_size: 32,
count: 4,
fetch:25,
username: "openejb",
list: "contributors",
template:"{avatar}{text}",
filter: function(t){ return /openejb/i.test(t["tweet_raw_text"]); },
loading_text: "loading list..."
});
});
</SCRIPT>
</HEAD>
<BODY>
<!-- Delay the loading of the external javascript file needed for labels (as it takes too long to load and visibly holds loading of the page body) -->
<!-- To do this without javascript errors over undefined functions, we need to declare stubs here (that are overrided later by the proper implementations) -->
<SCRIPT language="JavaScript" type="text/javascript">
function doAddLabel(hideTextfieldAfterAddParam)
{
// stub
}
function onAddLabel()
{
// stub
}
function showLabelsInput()
{
// stub
}
</SCRIPT>
<A name="top"></A>
<TABLE class="frameTable" cellpadding="0" cellspacing="0" border="0">
<TR class="Row1">
<TD class="Col1"><IMG alt="" src="http://openejb.apache.org/images/dotTrans.gif"></TD>
<TD class="Col2"><IMG alt="" src="http://openejb.apache.org/images/dotTrans.gif"></TD>
<TD class="Col3"><IMG alt="" src="http://openejb.apache.org/images/dotTrans.gif"></TD>
<TD class="Col4"><IMG alt="" src="http://openejb.apache.org/images/dotTrans.gif"></TD>
<TD class="Col5"><IMG alt="" src="http://openejb.apache.org/images/dotTrans.gif"></TD>
</TR>
<TR class="Row2">
<TD class="Col1"><IMG alt="" src="http://openejb.apache.org/images/dotTrans.gif"></TD>
<TD class="Col2">&nbsp;</TD>
<TD class="Col3" id="breadcrumbs">
<!-- $TOP_NAV_BAR -->
<A href="index.html" title="Index">Home</A> | <A href="news.html" title="News">News</A> | <A href="faq.html" title="FAQ">FAQ</A> | <A href="download.html" title="Download">Download</A> | <A href="mailing-lists.html" title="Mailing Lists">Lists</A> | <A href="http://issues.apache.org/jira/browse/OPENEJB" class="external-link" rel="nofollow">Issues</A>
</TD>
<TD class="Col4"><IMG alt="" src="http://openejb.apache.org/images/dotTrans.gif"></TD>
<TD class="Col5">&nbsp;</TD>
</TR>
<TR class="Row3">
<TD class="Col1"><IMG alt="" class="Row3Img" id="thinLine" src="http://openejb.apache.org/images/line_sm.gif"></TD>
<TD class="Col2"><IMG alt="" class="Row3Img" src="http://openejb.apache.org/images/dotTrans.gif"></TD>
<TD class="Col3"><IMG alt="" class="Row3Img" src="http://openejb.apache.org/images/dotTrans.gif"></TD>
<TD class="Col4"><IMG alt="" src="http://openejb.apache.org/images/dotTrans.gif"></TD>
<TD class="Col5"><IMG alt="" class="Row3Img" src="http://openejb.apache.org/images/dotTrans.gif"></TD>
</TR>
<TR class="Row4">
<TD class="Col1">
<SPAN id="Navigation">
<H3><A name="Navigation-Overview"></A>Overview</H3>
<UL class="alternate" type="square">
<LI><A href="index.html" title="Index">Home</A></LI>
<LI><A href="news.html" title="News">News</A></LI>
<LI><A href="faq.html" title="FAQ">FAQ</A></LI>
<LI><A href="download.html" title="Download">Download</A></LI>
<LI><A href="../OPENEJBx30/index.html" title="Index">Documentation</A></LI>
<LI><A href="examples.html" title="Examples">Examples</A></LI>
<LI><A href="http://cwiki.apache.org/confluence/display/OPENEJB/Lightening%20Demos" class="external-link" rel="nofollow">Lightning Demos</A></LI>
<LI><A href="mailing-lists.html" title="Mailing Lists">Mailing Lists</A></LI>
<LI><A href="source-code.html" title="Source Code">Source Code</A></LI>
<LI><A href="http://blogs.apache.org/openejb" class="external-link" rel="nofollow">Project Blog</A></LI>
</UL>
<H3><A name="Navigation-Servers"></A>Servers</H3>
<UL class="alternate" type="square">
<LI><A href="local-server.html" title="Local Server">Local</A></LI>
<LI><A href="remote-server.html" title="Remote Server">Remote</A></LI>
</UL>
<H3><A name="Navigation-Integrations"></A>Integrations</H3>
<UL class="alternate" type="square">
<LI><A href="../OPENEJBx30/tomcat.html" title="Tomcat">Tomcat</A></LI>
<LI><A href="geronimo.html" title="Geronimo">Geronimo</A></LI>
<LI><A href="webobjects.html" title="WebObjects">WebObjects</A></LI>
</UL>
<H3><A name="Navigation-Community"></A>Community</H3>
<UL class="alternate" type="square">
<LI><A href="team.html" title="Team">Team</A></LI>
<LI><A href="articles.html" title="Articles">Articles</A></LI>
<LI><A href="http://webchat.freenode.net/?channels=openejb" class="external-link" rel="nofollow">IRC</A></LI>
</UL>
<H3><A name="Navigation-RelatedProjects"></A>Related Projects</H3>
<UL class="alternate" type="square">
<LI><A href="http://activemq.apache.org/" class="external-link" rel="nofollow">ActiveMQ</A></LI>
<LI><A href="http://openjpa.apache.org/" class="external-link" rel="nofollow">OpenJPA</A></LI>
<LI><A href="http://cxf.apache.org/" class="external-link" rel="nofollow">CXF</A></LI>
</UL>
<H3><A name="Navigation-Index"></A>Index</H3>
<UL class="alternate" type="square">
<LI><A href="space-index.html" title="Space Index">Site Index</A></LI>
<LI><A href="../OPENEJBx30/space-index.html" title="Space Index">Doc Index</A></LI>
</UL>
<H3>
<A name="Navigation-Feeds"></A>
Feeds
</H3>
<UL class="feeds">
<LI>
<A href="http://cwiki.apache.org/confluence/spaces/rss.action?key=OPENEJB&newPages=false">
<IMG src="http://openejb.apache.org/images/rss.gif"></A>
<A class="feedsText" href="http://cwiki.apache.org/confluence/spaces/rss.action?key=OPENEJB&newPages=false">Site</A>
</LI>
<LI><A href="http://cwiki.apache.org/confluence/spaces/blogrss.action?key=OPENEJB">
<IMG src="http://openejb.apache.org/images/rss.gif"></A>
<A class="feedsText" href="http://cwiki.apache.org/confluence/spaces/blogrss.action?key=OPENEJB">News</A>
</LI>
</UL>
</SPAN>
</TD>
<TD class="Col2">&nbsp;</TD>
<TD class="Col3">
<TABLE id="PageHeader" border="0" width="100%">
<TR>
<TD>
<A href="http://openejb.org/">
<IMG hspace="0" src="http://openejb.apache.org/images/logo_openejb.gif" vspace="0">
</A>
</TD>
<TD align="right">
<A href="http://www.apache.org/">
<IMG src="http://www.apache.org/images/asf-logo.gif" width="258" height="66">
</A>
</TD>
</TR>
<TR>
<TD id="page_title">
<!-- $TITLE -->
OpenEJB 1.0
</TD>
<TD align="right">
<BR><BR>
<!-- Google CSE Search Box Begins -->
<FORM id="searchbox_010475492895890475512:_t4iqjrgx90" action="http://www.google.com/cse">
<INPUT type="hidden" name="cx" value="010475492895890475512:_t4iqjrgx90">
<INPUT type="hidden" name="cof" value="FORID:0">
<INPUT name="q" type="text" size="25">
<INPUT type="submit" name="sa" value="Search">
</FORM>
<SCRIPT type="text/javascript" src="http://www.google.com/coop/cse/brand?form=searchbox_010475492895890475512:_t4iqjrgx90"></SCRIPT>
<!-- Google CSE Search Box Ends -->
</TD>
</TR>
</TABLE>
<P>
<!-- $BODY -->
<DIV id="PageContent">
<UL>
<LI>Release Date: February 26th, 2006</LI>
<LI>EJB 1.1 support</LI>
<LI>EJB 2.0 Local Interface support</LI>
</UL>
<H1><A name="OpenEJB1.0-Download"></A>Download</H1>
<UL>
<LI>Binary: openejb-1.0 {<A href="http://dist.codehaus.org/openejb/distributions/openejb-1.0.zip" class="external-link" rel="nofollow">zip</A> , <A href="http://dist.codehaus.org/openejb/distributions/openejb-1.0.tar.gz" class="external-link" rel="nofollow">tar.gz</A>}</LI>
<LI>Source: openejb-1.0-src {<A href="http://dist.codehaus.org/openejb/distributions/openejb-1.0-src.zip" class="external-link" rel="nofollow">zip</A> , <A href="http://dist.codehaus.org/openejb/distributions/openejb-1.0-src.tar.gz" class="external-link" rel="nofollow">tar.gz</A>}</LI>
</UL>
<H1><A name="OpenEJB1.0-TestedOn"></A>Tested On</H1>
<DIV class="table-wrap">
<TABLE class="confluenceTable"><TBODY>
<TR>
<TH class="confluenceTh">&nbsp;</TH>
<TH class="confluenceTh"> Windows XP (JDK 1.4) </TH>
<TH class="confluenceTh"> Windows XP (JDK 1.5) </TH>
<TH class="confluenceTh"> Linux (JDK 1.4) </TH>
<TH class="confluenceTh"> Linux (JDK 1.5) </TH>
<TH class="confluenceTh"> Mac OSX (JDK 1.4) </TH>
<TH class="confluenceTh"> Mac OSX (JDK 1.5) </TH>
</TR>
<TR>
<TD class="confluenceTd">Embedded</TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
</TR>
<TR>
<TD class="confluenceTd"> Standalone</TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
</TR>
<TR>
<TD class="confluenceTd"> Tomcat 4.1.x (Global Mode)</TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
</TR>
<TR>
<TD class="confluenceTd"> Tomcat 4.1.x (Webapp Mode)</TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
</TR>
<TR>
<TD class="confluenceTd"> Tomcat 5.0.x (Global Mode)</TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
</TR>
<TR>
<TD class="confluenceTd"> Tomcat 5.0.x (Webapp Mode)</TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
</TR>
<TR>
<TD class="confluenceTd"> Tomcat 5.5.x (Global Mode)</TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
</TR>
<TR>
<TD class="confluenceTd"> Tomcat 5.5.x (Webapp Mode)</TD>
<TD class="confluenceTd">&nbsp;</TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"> </TD>
<TD class="confluenceTd">&nbsp;</TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
<TD class="confluenceTd">&nbsp;</TD>
<TD class="confluenceTd"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" height="16" width="16" align="absmiddle" alt="" border="0"></TD>
</TR>
</TBODY></TABLE>
</DIV>
<H1><A name="OpenEJB1.0-NewFeatures"></A>New Features</H1>
<H2><A name="OpenEJB1.0-RemoteServersupportsEJBinvocationsoverHTTP"></A>Remote Server supports EJB invocations over HTTP</H2>
<P>Having a hard time with those pesky firewalls? Our Remote Server now has it's own HTTP front end which supports a stripped-down version of HTTP specifically for supporting our EJB protocol. Remote invocations from EJB Clients can now be layered over HTTP and serviced by our standalone EJB Server.</P>
<H2><A name="OpenEJB1.0-TomcatIntegrationsupportsRemoteEJBClients"></A>Tomcat Integration supports Remote EJB Clients</H2>
<P>No extra ports necesarry. Simply point your EJB client to the URL of the LoaderSerlvet and go! All HTTP requests to the LoaderServlet will be sent into the embedded OpenEJB container. Combine this with the <A href="collapsed-ear.html" title="Collapsed EAR">Collapsed EAR</A> approach to embedding OpenEJB and you get a single webapp containing it's own private EJBs and OpenEJB container which can now support it's own remote java clients as well as web browsers. Or combine this with traditional style of embedding OpenEJB into the root of Tomcat at a global level and turn your Tomcat server into a no holds-barred EJB server. If you want no remoting at all, simply remove the LoaderServet's serlvet-mapping and the door is closed.</P>
<H2><A name="OpenEJB1.0-Bettercommandlinesupport"></A>Better command line support</H2>
<P>OpenEJB and it's tools can now be executed via an executable jar. Simply 'java -jar openejb-core-1.0.jar start' and the server will start. Or 'java -jar openejb-core-1.0.jar deploy' to deploy an EJB application. This makes it far easier to use OpenEJB in scripts and third party tools like IDEs. You can even add your own custom commands to the command line via any class with a static main method and a properties file in the classpath at META-INF/org.openejb.cli/mycommand.</P>
<H2><A name="OpenEJB1.0-Xinet.dstyleprotocolconfiguration"></A>Xinet.d style protocol configuration</H2>
<P>Protocols in OpenEJB are a pluggable, snap-in, style concept. Anything that consumes data on a socket is wrapped with a standard set of xinet.d like services for ip and port management, connection pooling, host-based authorization and more. Want to disable a protocol and prevent it from starting? Want to change it's port? Want to limit the max number of concurrent connections or restrict access to clients on specific IP addresses? Just crack open that protocol's properties files and edit away.</P>
<H2><A name="OpenEJB1.0-EJB2.0Localinterfacesupport"></A>EJB 2.0 Local interface support</H2>
<P> OpenEJB now has support for EJB 2.0 Local Interfaces. This is very nice for when OpenEJB is combined with Tomcat or embedded in another application where Remote interfaces are not always needed. See the &quot;Moviefun&quot; example in the source or binary distributions for how to use them. Note that no other EJB 2.0 features (such as CMP 2 or MDBs)<BR>
are supported in the OpenEJB 1.x codebase.</P>
<H2><A name="OpenEJB1.0-CollapsedEARsupport"></A>Collapsed EAR support</H2>
<P> <A href="collapsed-ear.html" title="Collapsed EAR">Collapsed EAR</A>s are an OpenEJB invention allowing you to combine your ejbs and servlets in the same archive and classloader. This is essentially a new way to embed OpenEJB into Tomcat so that OpenEJB and your EJBs are loaded only into your webapp. Combine this with an embedded database and you have a complete mini-J2EE environment that can be hosted in your Tomcat webapp space.</P>
<P> See the &quot;Moviefun&quot; example in the distribution which will be online for a short while here:</P>
<P> <A href="http://demo1.openejb.org/moviefun" class="external-link" rel="nofollow">http://demo1.openejb.org/moviefun</A></P>
<P> (visit <A href="http://demo1.openejb.org/moviefun/setup.jsp" class="external-link" rel="nofollow">http://demo1.openejb.org/moviefun/setup.jsp</A> to reset)</P>
<H2><A name="OpenEJB1.0-UnpackedEJBJarsupport"></A>Unpacked EJB Jar support</H2>
<P> It is now possible to deploy and run EJB apps that are not in a *.jar archive. For example, for ejb app located at:</P>
<BLOCKQUOTE><P>/home/jsmith/myejbapp/META-INF/ejb-jar.xml</P></BLOCKQUOTE>
<P> Simply add a Deployments declaration to the openejb.conf like the following:</P>
<BLOCKQUOTE><P>&lt;Deployment dir=&quot;/home/jsmith/myejbapp&quot; /&gt;</P></BLOCKQUOTE>
<H2><A name="OpenEJB1.0-AutoDeployforSimpleApps"></A>Auto Deploy for Simple Apps</H2>
<P> In OpenEJB 1.0 beta1, the use of openejb-jar.xml is not required for ejb-jar.xml files that do not contain CMP EntityBeans or ejbs with multiple datasource references.</P>
<H2><A name="OpenEJB1.0-MacOSXUsers"></A>Mac OSX Users</H2>
<P>The speed of the Remote Server has been improved tremendously to compensate for differing default parameters for TCP Socket creation and closing in the Mac OSX Java VM. This makes sequential calls from a Remote Client to the Server several times faster.</P>
<H1><A name="OpenEJB1.0-UpgradeNotes"></A>Upgrade Notes</H1>
<H2><A name="OpenEJB1.0-CMPconfigchange"></A>CMP config change</H2>
<P>In 0.9.2 and before, the JDO database was using the private JNDI namespace of the very first CMP accessed to grab a datasource and hold onto it for use on all requests into the CMP container. This was configured with something like this:</P>
<DIV class="code panel" style="border-width: 1px;"><DIV class="codeHeader panelHeader" style="border-bottom-width: 1px;"><B>cmp.global_database.xml</B></DIV><DIV class="codeContent panelContent">
<PRE class="code-xml">
<SPAN class="code-tag">&lt;database name=<SPAN class="code-quote">&quot;Global_TX_Database&quot;</SPAN> engine=<SPAN class="code-quote">&quot;instantdb&quot;</SPAN>&gt;</SPAN>
<SPAN class="code-tag">&lt;jndi name=<SPAN class="code-quote">&quot;java:comp/env/jdbc/basic/entityDatabase&quot;</SPAN> /&gt;</SPAN>
<SPAN class="code-tag">&lt;mapping href=<SPAN class="code-quote">&quot;conf/default.cmp_mapping.xml&quot;</SPAN> /&gt;</SPAN>
<SPAN class="code-tag">&lt;/database&gt;</SPAN>
</PRE>
</DIV></DIV>
<P>This was just wrong. We've switched it so that the &quot;jndi&quot; tag of a Castor database.xml file can be set directly to the global JNDI name of a Connector element declared in an openejb.conf file.</P>
<DIV class="code panel" style="border-width: 1px;"><DIV class="codeHeader panelHeader" style="border-bottom-width: 1px;"><B>cmp.global_database.xml</B></DIV><DIV class="codeContent panelContent">
<PRE class="code-xml">
<SPAN class="code-tag">&lt;database name=<SPAN class="code-quote">&quot;Global_TX_Database&quot;</SPAN> engine=<SPAN class="code-quote">&quot;instantdb&quot;</SPAN>&gt;</SPAN>
<SPAN class="code-tag">&lt;jndi name=<SPAN class="code-quote">&quot;java:openejb/connector/Default JDBC Database&quot;</SPAN> /&gt;</SPAN>
<SPAN class="code-tag">&lt;mapping href=<SPAN class="code-quote">&quot;conf/default.cmp_mapping.xml&quot;</SPAN> /&gt;</SPAN>
<SPAN class="code-tag">&lt;/database&gt;</SPAN>
</PRE>
</DIV></DIV>
<P>This is still not so optimal as we do not want to people using OpenEJB's internal jndi and encourage people to become dependent on it. Newer releases of Castor allow for a completely programmatic way to configure a JDO database. In future releases, these global and local database files will go away all together! You will only need to specify your mapping.xml and will be able to pack it in your ejb jar.</P>
<H1><A name="OpenEJB1.0-Changelog"></A>Changelog</H1>
<H2><A name="OpenEJB1.0-1.0"></A>1.0</H2>
<DIV class="jiraissues_table">
<FIELDSET class="hidden">
<INPUT type="hidden" name="retrieverUrlHtml" value="/confluence/plugins/servlet/issue-retriever?url=http%3A%2F%2Fjira.codehaus.org%2Fsecure%2FIssueNavigator.jspa%3Fview%3Drss%26pid%3D10401%26fixfor%3D10421%26reset%3Dtrue%26decorator%3Dnone&columns=key&columns=summary&useTrustedConnection=true">
<INPUT type="hidden" name="sortField" value="key">
<INPUT type="hidden" name="sortOrder" value="desc">
<INPUT type="hidden" name="clickableUrl" value="http://jira.codehaus.org/secure/IssueNavigator.jspa?pid=10401&fixfor=10421&sorter/field=issuekey&sorter/order=DESC&reset=true">
<INPUT type="hidden" name="title" value="JIRA Issues">
<INPUT type="hidden" name="requestedPage" value="1">
<INPUT type="hidden" name="resultsPerPage" value="500">
<INPUT type="hidden" name="errormsg" value="Connection Error">
<INPUT type="hidden" name="pagestat" value="Displaying {from} to {to} of {total} items">
<INPUT type="hidden" name="procmsg" value="Processing, please wait...">
<INPUT type="hidden" name="nomsg" value="No items">
<INPUT type="hidden" name="useCache" value="true">
<INPUT type="hidden" name="showTrustWarnings" value="true">
<INPUT type="hidden" name="sortEnabled" value="true">
<INPUT type="hidden" name="width" value="100%">
<INPUT type="hidden" name="Key" value="key" class="columns nowrap">
<INPUT type="hidden" name="Summary" value="summary" class="columns">
<INPUT type="hidden" name="jiraissuesError" value="Error">
</FIELDSET>
<A name="jiraissues"></A>
<DIV class="trusted_warnings" style="display:none"><DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD></TD></TR></TABLE></DIV></DIV>
<IFRAME class="jiraissues_errorMsgSandbox hidden" frameborder="0"></IFRAME>
</DIV>
<H2><A name="OpenEJB1.0-1.0Beta1"></A>1.0 Beta 1</H2>
<DIV class="jiraissues_table">
<FIELDSET class="hidden">
<INPUT type="hidden" name="retrieverUrlHtml" value="/confluence/plugins/servlet/issue-retriever?url=http%3A%2F%2Fjira.codehaus.org%2Fsecure%2FIssueNavigator.jspa%3Fview%3Drss%26pid%3D10401%26fixfor%3D11983%26reset%3Dtrue%26decorator%3Dnone&columns=key&columns=summary&useTrustedConnection=true">
<INPUT type="hidden" name="sortField" value="key">
<INPUT type="hidden" name="sortOrder" value="desc">
<INPUT type="hidden" name="clickableUrl" value="http://jira.codehaus.org/secure/IssueNavigator.jspa?pid=10401&fixfor=11983&sorter/field=issuekey&sorter/order=DESC&reset=true">
<INPUT type="hidden" name="title" value="JIRA Issues">
<INPUT type="hidden" name="requestedPage" value="1">
<INPUT type="hidden" name="resultsPerPage" value="500">
<INPUT type="hidden" name="errormsg" value="Connection Error">
<INPUT type="hidden" name="pagestat" value="Displaying {from} to {to} of {total} items">
<INPUT type="hidden" name="procmsg" value="Processing, please wait...">
<INPUT type="hidden" name="nomsg" value="No items">
<INPUT type="hidden" name="useCache" value="true">
<INPUT type="hidden" name="showTrustWarnings" value="true">
<INPUT type="hidden" name="sortEnabled" value="true">
<INPUT type="hidden" name="width" value="100%">
<INPUT type="hidden" name="Key" value="key" class="columns nowrap">
<INPUT type="hidden" name="Summary" value="summary" class="columns">
<INPUT type="hidden" name="jiraissuesError" value="Error">
</FIELDSET>
<A name="jiraissues"></A>
<DIV class="trusted_warnings" style="display:none"><DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD></TD></TR></TABLE></DIV></DIV>
<IFRAME class="jiraissues_errorMsgSandbox hidden" frameborder="0"></IFRAME>
</DIV>
</DIV>
</P>
</TD>
<TD class="Col4"><IMG src="http://openejb.apache.org/images/dotTrans.gif"></TD>
<TD class="Col5">
</TD>
</TR>
<TR class="Row5">
<TD class="Col1">&nbsp;</TD>
<TD class="Col2">&nbsp;</TD>
<TD class="Col3">
<BR>
<BR>
<IMG width="100%" height="1" src="http://openejb.apache.org/images/line_light.gif">
<TABLE width="100%">
<TR>
<TD>
<SPAN class="bodyGrey">
<SMALL>
<NOTICE><!-- $FOOTER -->
Apache OpenEJB is an project of The Apache Software Foundation (ASF)
</NOTICE>
<BR>
Site Powered by
<A href="http://atlassian.com/">Atlassian</A>
<A href="http://atlassian.com/confluence/">Confluence</A>
.
</SMALL>
</SPAN>
</TD>
<TD align="right">
<A style="color:#999;font-size:small;font-weight:normal;" href="https://cwiki.apache.org/confluence/pages/editpage.action?spaceKey=OPENEJB&title=OpenEJB%201.0">[ edit ]</A>
</TD>
</TR>
</TABLE>
<BR>
</TD>
<TD class="Col4"><IMG src="http://openejb.apache.org/images/dotTrans.gif"></TD>
<TD class="Col5">&nbsp;</TD>
</TR>
</TABLE>
<!-- Needed for composition plugin -->
<!-- delay the loading of large javascript files to the end so that they don't interfere with the loading of page content -->
<SPAN style="display: none">
<SCRIPT type="text/javascript" language="JavaScript" src="http://cwiki.apache.org/confluence/labels-javascript"></SCRIPT>
<SCRIPT src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</SCRIPT>
<SCRIPT type="text/javascript">
_uacct = "UA-2717626-1";
urchinTracker();
</SCRIPT>
</SPAN>
</BODY>
</HTML>