You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2007/07/14 21:27:12 UTC
svn commit: r556327 -
/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/POJODeployer.java
Author: saminda
Date: Sat Jul 14 12:27:11 2007
New Revision: 556327
URL: http://svn.apache.org/viewvc?view=rev&rev=556327
Log:
Fixed POJODeployer to include service location
Modified:
webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/POJODeployer.java
Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/POJODeployer.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/POJODeployer.java?view=diff&rev=556327&r1=556326&r2=556327
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/POJODeployer.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/POJODeployer.java Sat Jul 14 12:27:11 2007
@@ -101,11 +101,13 @@
// try to see whether JAX-WS jars in the class path , if so use them
// to process annotated pojo else use annogen to process the pojo class
AxisService axisService;
- axisService = createAxisService(classLoader, className);
+ axisService = createAxisService(classLoader,
+ className,deploymentFileData.getFile().toURL());
configCtx.getAxisConfiguration().addService(axisService);
} else {
- AxisService axisService = createAxisServiceUsingAnnogen(className,
- classLoader);
+ AxisService axisService = createAxisServiceUsingAnnogen(className,
+ classLoader,
+ deploymentFileData.getFile().toURL());
configCtx.getAxisConfiguration().addService(axisService);
}
}
@@ -172,7 +174,8 @@
jclass.getAnnotation(AnnotationConstants.WEB_SERVICE);
if (annotation != null) {
AxisService axisService;
- axisService = createAxisService(classLoader, className);
+ axisService = createAxisService(classLoader,
+ className,deploymentFileData.getFile().toURL());
axisServiceList.add(axisService);
}
}
@@ -196,7 +199,8 @@
}
private AxisService createAxisService(ClassLoader classLoader,
- String className) throws ClassNotFoundException,
+ String className,
+ URL serviceLocation) throws ClassNotFoundException,
InstantiationException,
IllegalAccessException,
AxisFault {
@@ -219,13 +223,14 @@
} catch (Exception e) {
// Seems like the jax-ws jars missin in the class path .
// lets tryu annogen
- axisService = createAxisServiceUsingAnnogen(className,
- classLoader);
+ axisService = createAxisServiceUsingAnnogen(className, classLoader, serviceLocation);
}
return axisService;
}
- private AxisService createAxisServiceUsingAnnogen(String className, ClassLoader classLoader)
+ private AxisService createAxisServiceUsingAnnogen(String className,
+ ClassLoader classLoader,
+ URL serviceLocation)
throws ClassNotFoundException,
InstantiationException,
IllegalAccessException,
@@ -251,6 +256,7 @@
messageReciverMap,
null, null,
classLoader);
+ axisService.setFileName(serviceLocation);
return axisService;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org