mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Changes to deploy cxf
This commit is contained in:
parent
bd17d35adb
commit
bcff47d4b0
@ -38,7 +38,7 @@ public interface DataCenterResourceEntity extends CloudStackEntity, StateObject<
|
||||
public enum State {
|
||||
Disabled("The resource is disabled so CloudStack should not use it. This is the initial state of all resources added to CloudStack."),
|
||||
Enabled("The resource is now enabled for CloudStack to use."),
|
||||
Deactivated("The resource is disactivated so CloudStack should not use it for new resource needs.");
|
||||
Deactivated("The resource is deactivated so CloudStack should not use it for new resource needs.");
|
||||
|
||||
String _description;
|
||||
|
||||
|
||||
@ -54,6 +54,7 @@ public interface OrchestrationService {
|
||||
* @return VirtualMachineEntity
|
||||
*/
|
||||
@POST
|
||||
@Path("/createvm")
|
||||
VirtualMachineEntity createVirtualMachine(
|
||||
@QueryParam("id") String id,
|
||||
@QueryParam("owner") String owner,
|
||||
|
||||
@ -38,5 +38,12 @@ public class TimeService {
|
||||
DateFormatter formatter = new DateFormatter("dd/MM/yyyy hh:mm:ss");
|
||||
return formatter.print(Calendar.getInstance().getTime(), Locale.getDefault());
|
||||
}
|
||||
|
||||
//
|
||||
// @GET @Produces("text/plain")
|
||||
// public ZoneEntity getZoneEntity() {
|
||||
// return new ZoneEntityImpl();
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -10,11 +10,11 @@
|
||||
<import resource="classpath:META-INF/cxf/cxf.xml" />
|
||||
<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
|
||||
|
||||
<context:component-scan base-package="org.apache.cloudstack.engine.service.api" />
|
||||
<context:component-scan base-package="org.apache.cloudstack.test" resourcePattern="**/*.jar"/>
|
||||
|
||||
<jaxrs:server id="restContainer" address="/">
|
||||
<jaxrs:serviceBeans>
|
||||
<ref bean="provisioningService"/>
|
||||
<ref bean="timeService" />
|
||||
</jaxrs:serviceBeans>
|
||||
</jaxrs:server>
|
||||
</beans>
|
||||
|
||||
@ -12,6 +12,9 @@
|
||||
org.springframework.web.context.ContextLoaderListener
|
||||
</listener-class>
|
||||
</listener>
|
||||
<listener>
|
||||
<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
|
||||
</listener>
|
||||
<servlet>
|
||||
<servlet-name>CXFServlet</servlet-name>
|
||||
<display-name>CXF Servlet</display-name>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user