Author: jsdelfino
Date: Tue May 13 16:21:49 2008
New Revision: 656053
URL: http://svn.apache.org/viewvc?rev=656053&view=rev
Log:
Changes to enable the catalog-ejb to work on WebSphere. Added an ejbCreate method to the EJB
session bean implementation. Added a comment to the composite file with the particular corbaname
URL to use with WebSphere, left the one that works with OpenEJB as the default one.
Modified:
incubator/tuscany/java/sca/tutorial/catalog-ejb/src/main/java/services/ejb/VegetablesCatalogEJBSessionBean.java
incubator/tuscany/java/sca/tutorial/catalog-ejb/src/main/resources/catalog-ejb.composite
Modified: incubator/tuscany/java/sca/tutorial/catalog-ejb/src/main/java/services/ejb/VegetablesCatalogEJBSessionBean.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tutorial/catalog-ejb/src/main/java/services/ejb/VegetablesCatalogEJBSessionBean.java?rev=656053&r1=656052&r2=656053&view=diff
==============================================================================
--- incubator/tuscany/java/sca/tutorial/catalog-ejb/src/main/java/services/ejb/VegetablesCatalogEJBSessionBean.java
(original)
+++ incubator/tuscany/java/sca/tutorial/catalog-ejb/src/main/java/services/ejb/VegetablesCatalogEJBSessionBean.java
Tue May 13 16:21:49 2008
@@ -23,6 +23,7 @@
import java.util.ArrayList;
import java.util.List;
+import javax.ejb.CreateException;
import javax.ejb.EJBException;
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;
@@ -44,6 +45,9 @@
return catalogArray;
}
+ public void ejbCreate() throws CreateException {
+ }
+
public void ejbActivate() throws EJBException, RemoteException {
}
Modified: incubator/tuscany/java/sca/tutorial/catalog-ejb/src/main/resources/catalog-ejb.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tutorial/catalog-ejb/src/main/resources/catalog-ejb.composite?rev=656053&r1=656052&r2=656053&view=diff
==============================================================================
--- incubator/tuscany/java/sca/tutorial/catalog-ejb/src/main/resources/catalog-ejb.composite
(original)
+++ incubator/tuscany/java/sca/tutorial/catalog-ejb/src/main/resources/catalog-ejb.composite
Tue May 13 16:21:49 2008
@@ -24,6 +24,7 @@
<component name="VegetablesCatalogEJB">
<implementation.ejb ejb-link="tutorial-catalog-ejb.jar#VegetablesCatalogEJB"/>
<service name="CatalogEJB">
+ <!-- <binding.ejb uri="corbaname:iiop:1.2@localhost:2809/NameServiceServerRoot#VegetablesCatalogEJB"/>
-->
<binding.ejb uri="corbaname:iiop:1.2@localhost:1050#VegetablesCatalogEJB"/>
</service>
</component>
|