User: sylvain
Date: 00/05/30 19:43:09
Modified: src/java/org/ejboss/deployment/deployer/implementations
DeployerBean.java
Log:
Changed from URLs to Files since it's easier for now.
It will move back to URLs soon...
Revision Changes Path
1.6 +11 -14
ejboss/src/java/org/ejboss/deployment/deployer/implementations/DeployerBean.java
Index: DeployerBean.java
===================================================================
RCS file:
/products/cvs/ejboss/ejboss/src/java/org/ejboss/deployment/deployer/implementations/DeployerBean.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- DeployerBean.java 2000/05/30 23:28:10 1.5
+++ DeployerBean.java 2000/05/31 02:43:09 1.6
@@ -4,13 +4,17 @@
import javax.ejb.SessionContext;
import javax.ejb.CreateException;
import javax.naming.InitialContext;
-import java.util.Collection;
import javax.naming.Context;
+
+import java.io.File;
import java.net.URL;
+import java.rmi.RemoteException;
+import java.util.Collection;
+
import org.ejboss.deployment.Deployer;
import org.ejboss.deployment.deployer.interfaces.DeployerException;
import org.ejboss.deployment.EjbJar;
-import java.rmi.RemoteException;
+
public class DeployerBean implements SessionBean {
@@ -46,25 +50,18 @@
deployer = Deployer.getDeployer();
}
-
- public Collection deployJar(URL jarURL) throws DeployerException {
-
- return deployJar(jarURL, "defaultOwner", "default application");
- }
- public Collection deployJar(URL jarURL, String owner, String application)
throws DeployerException {
+ public Collection deployJar(File jarFile, String owner, String application)
throws DeployerException {
- if (jarURL != null) {
+ if (jarFile != null) {
- System.out.println("DeployerBean.deployJar("+
jarURL.toString()+") Owner="+owner+" app="+application);
+ System.out.println("DeployerBean.deployJar("+
jarFile.toString()+") Owner="+owner+" app="+application);
try {
- EjbJar ejbJar = new EjbJar(jarURL);
- ejbJar.setClientJar(jarURL.toString());
- return deployer.deploy(ejbJar, owner, application);
+ return deployer.deploy(jarFile, owner, application);
}
catch (Exception e) {
- System.out.println("Deployment failed");
+ System.out.println("66666666666666666666 Deployment
failed");
e.printStackTrace();
throw new DeployerException(e.getMessage());
}