Anonymous avatar Anonymous committed 7f781ae

Patch from WF-403

Comments (0)

Files changed (4)

src/java/com/opensymphony/workflow/util/ejb/local/LocalEJBCondition.java

 
 import java.util.Map;
 
-import javax.ejb.EJBHome;
+import javax.ejb.EJBLocalHome;
 
 import javax.naming.InitialContext;
 
  *
  *
  * @author $Author: hani $
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
  */
 public class LocalEJBCondition implements Condition {
     //~ Static fields/initializers /////////////////////////////////////////////
         Condition sessionBean = null;
 
         try {
-            EJBHome home = (EJBHome) PortableRemoteObject.narrow(new InitialContext().lookup(ejbLocation), EJBHome.class);
+            EJBLocalHome home = (EJBLocalHome) PortableRemoteObject.narrow(new InitialContext().lookup(ejbLocation), EJBLocalHome.class);
             Method create = home.getClass().getMethod("create", new Class[0]);
             sessionBean = (Condition) create.invoke(home, new Object[0]);
         } catch (Exception e) {

src/java/com/opensymphony/workflow/util/ejb/local/LocalEJBFunctionProvider.java

 
 import java.util.Map;
 
-import javax.ejb.EJBHome;
+import javax.ejb.EJBLocalHome;
 
 import javax.naming.InitialContext;
 
  *
  *
  * @author $Author: hani $
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
  */
 public class LocalEJBFunctionProvider implements FunctionProvider {
     //~ Static fields/initializers /////////////////////////////////////////////
         String ejbLocation = (String) args.get(AbstractWorkflow.EJB_LOCATION);
 
         try {
-            EJBHome home = (EJBHome) PortableRemoteObject.narrow(new InitialContext().lookup(ejbLocation), EJBHome.class);
+            EJBLocalHome home = (EJBLocalHome) PortableRemoteObject.narrow(new InitialContext().lookup(ejbLocation), EJBLocalHome.class);
             Method create = home.getClass().getMethod("create", new Class[0]);
             sessionBean = (FunctionProvider) create.invoke(home, new Object[0]);
         } catch (Exception e) {

src/java/com/opensymphony/workflow/util/ejb/local/LocalEJBRegister.java

  */
 package com.opensymphony.workflow.util.ejb.local;
 
-import com.opensymphony.workflow.*;
+import com.opensymphony.workflow.AbstractWorkflow;
+import com.opensymphony.workflow.Register;
+import com.opensymphony.workflow.WorkflowContext;
+import com.opensymphony.workflow.WorkflowException;
 import com.opensymphony.workflow.spi.WorkflowEntry;
 
 import org.apache.commons.logging.Log;
 
 import java.util.Map;
 
-import javax.ejb.EJBHome;
+import javax.ejb.EJBLocalHome;
 
 import javax.naming.InitialContext;
 
  * the JNDI location of the session bean.
  *
  * @author $Author: hani $
- * @version $Revision: 1.3 $
+ * @version $Revision: 1.4 $
  */
 public class LocalEJBRegister implements Register {
     //~ Static fields/initializers /////////////////////////////////////////////
         Register sessionBean = null;
 
         try {
-            EJBHome home = (EJBHome) PortableRemoteObject.narrow(new InitialContext().lookup(ejbLocation), javax.ejb.EJBHome.class);
+            EJBLocalHome home = (EJBLocalHome) PortableRemoteObject.narrow(new InitialContext().lookup(ejbLocation), EJBLocalHome.class);
             Method create = home.getClass().getMethod("create", new Class[0]);
             sessionBean = (Register) create.invoke(home, new Object[0]);
         } catch (Exception e) {

src/java/com/opensymphony/workflow/util/ejb/local/LocalEJBValidator.java

 
 import java.util.Map;
 
-import javax.ejb.EJBHome;
+import javax.ejb.EJBLocalHome;
 
 import javax.naming.InitialContext;
 
  *
  *
  * @author $Author: hani $
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
  */
 public class LocalEJBValidator implements Validator {
     //~ Static fields/initializers /////////////////////////////////////////////
         Validator sessionBean = null;
 
         try {
-            EJBHome home = (EJBHome) PortableRemoteObject.narrow(new InitialContext().lookup(ejbLocation), EJBHome.class);
+            EJBLocalHome home = (EJBLocalHome) PortableRemoteObject.narrow(new InitialContext().lookup(ejbLocation), EJBLocalHome.class);
             Method create = home.getClass().getMethod("create", new Class[0]);
             sessionBean = (Validator) create.invoke(home, new Object[0]);
         } catch (Exception e) {
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.