Hudgins, Paul wrote:
Hi Simon,
You have correctly assumed our structure. Ideally we would be using
implementation.ejb since we have an app server already running the
EJBs. However, since Tuscany does not support this today, we are using
pass-through implementation.java POJOs with a service reference to the
corresponding EJB. Time permitting, we can look into helping on the
implementation of supporting implementation.ejb but time is pretty hard
to come by these days!
We will be starting off using the 1.6.1 version of Tuscany so if there
is any old 1.x Geronimo implementation.ejb content laying around feel
free to let me know. Perhaps there is a pattern I can observe and apply
to WebLogic?
I see Simon Nash also answered this thread with an example of the
bootstrap code needed. I will see if I can encapsulate this and tie it
to the life-cycle (deployment) of the EAR.
Showing my ignorance of web apps, how is this bootstrap code triggered
when deploying a WAR? Is it through a ServletContextListener? If so, I
can easily create a simple WAR in my EAR that does the same.
The WAR uses a servlet filter with a filter class of
org.apache.tuscany.sca.host.webapp.TuscanyServletFilter
See [1] for details.
The init() method of TuscanyServletFilter calls the init() method
of WebAppServletHost, which uses an older version of the Tuscany
bootstrap API to create an SCADomain. See [2] for details.
With this older API, the node is started as part of creating the
domain, and the node is stopped when the destroy() method of
WebAppServletHost calls scaDomain.close().
Simon
[1]
http://svn.apache.org/repos/asf/tuscany/sca-java-1.x/trunk/samples/calculator-webapp/src/main/webapp/WEB-INF/web.xml
[2]
http://svn.apache.org/repos/asf/tuscany/sca-java-1.x/trunk/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppServletHost.java
Paul