Permalink
Browse files

- Fixed hardcoded 'org.drools.mas' package name

- Fixed missing imports in generated classes
  • Loading branch information...
1 parent 422ac5f commit 55deefeeb3de7ddea1db98d835b9b471523f30fe @esteban-aliverti esteban-aliverti committed May 22, 2013
@@ -73,13 +73,23 @@
<artifactId>cxf-rt-transports-http</artifactId>
<version>2.5.1</version>
</dependency>
-
+ <dependency>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-rt-transports-http-jetty</artifactId>
+ <version>2.5.1</version>
+ </dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.1</version>
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>com.h2database</groupId>
+ <artifactId>h2</artifactId>
+ <version>1.3.162</version>
+ <scope>test</scope>
+ </dependency>
</dependencies>
<build>
<finalName>${agent-name}</finalName>
@@ -2,10 +2,11 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
-package org.drools.mas;
+package ${package};
import java.util.List;
import javax.jws.WebService;
+import org.drools.mas.ACLMessage;
/**
*
@@ -3,7 +3,7 @@
* the editor.
*/
-package org.drools.mas;
+package ${package};
import java.util.List;
import javax.jws.WebMethod;
import javax.jws.WebService;
@@ -25,13 +25,13 @@
import org.drools.mas.mappers.MyMapReferenceEntryType;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-
+import org.drools.mas.*;
/**
* @author salaboy
*/
-@WebService(targetNamespace = "http://mas.drools.org/", serviceName="AsyncAgentService", portName="AsyncAgentServicePort", endpointInterface="org.drools.mas.AsyncDroolsAgentService")
+@WebService(targetNamespace = "http://mas.drools.org/", serviceName="AsyncAgentService", portName="AsyncAgentServicePort", endpointInterface="${package}.AsyncDroolsAgentService")
@XmlSeeAlso(value = {ACLMessage.class, AbstractMessageBody.class, Inform.class, Info.class, QueryIf.class, InformIf.class,
Agree.class, Failure.class, Action.class, Rule.class, InformRef.class, Act.class,
QueryRef.class, Query.class, Ref.class, Encodings.class,
@@ -3,9 +3,10 @@
* and open the template in the editor.
*/
-package org.drools.mas;
+package ${package};
import java.util.List;
import javax.jws.WebService;
+import org.drools.mas.ACLMessage;
/**
*
@@ -3,7 +3,7 @@
* the editor.
*/
-package org.drools.mas;
+package ${package};
import java.util.List;
import javax.jws.WebMethod;
import javax.jws.WebService;
@@ -25,15 +25,15 @@
import org.drools.mas.mappers.MyMapReferenceEntryType;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-
+import org.drools.mas.*;
/**
* @author salaboy
* @author esteban
*/
@WebService(targetNamespace = "http://mas.drools.org/", serviceName="SyncAgentService",
- portName="SyncAgentServicePort", endpointInterface="org.drools.mas.SynchronousDroolsAgentService"
+ portName="SyncAgentServicePort", endpointInterface="${package}.SynchronousDroolsAgentService"
)
@XmlSeeAlso(value = {ACLMessage.class, AbstractMessageBody.class, Inform.class, Info.class, QueryIf.class, InformIf.class,
Agree.class, Failure.class, Action.class, Rule.class, InformRef.class, Act.class,
@@ -2,7 +2,7 @@
* To change this template, choose Tools | Templates and open the template in
* the editor.
*/
-package mock;
+package ${package}.mock;
import java.io.Serializable;
@@ -6,24 +6,23 @@
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
-
-
<import resource="classpath:META-INF/cxf/cxf.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
- <jaxws:endpoint id="agent-ws" address="http://localhost:8080/emergency-agent/services/SyncAgentService"
+ <jaxws:endpoint id="agent-ws"
+ address="http://localhost:8080/${agent-name}/services/SyncAgentService"
implementor="#agent-service">
</jaxws:endpoint>
-
- <jaxws:endpoint id="async-agent-ws" address="http://localhost:8080/emergency-agent/services/AsyncAgentService"
+ <jaxws:endpoint id="async-agent-ws"
+ address="http://localhost:8080/${agent-name}/services/AsyncAgentService"
implementor="#async-agent-service">
</jaxws:endpoint>
- <bean id="async-agent-service" class="org.drools.mas.AsyncDroolsAgentServiceImpl">
+ <bean id="async-agent-service" class="${package}.AsyncDroolsAgentServiceImpl">
<property name="agent" ref="agent"/>
</bean>
- <bean id="agent-service" class="org.drools.mas.SynchronousDroolsAgentServiceImpl">
+ <bean id="agent-service" class="${package}.SynchronousDroolsAgentServiceImpl">
<property name="agent" ref="agent"/>
</bean>
@@ -2,11 +2,10 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
-package org.drools.mas;
+package ${package};
import java.sql.SQLException;
import org.drools.mas.core.DroolsAgent;
-import org.drools.mas.mock.MockResponseInformer;
import org.h2.tools.DeleteDbFiles;
import org.h2.tools.Server;
import org.junit.*;

0 comments on commit 55deefe

Please sign in to comment.