summaryrefslogtreecommitdiffstats
path: root/sandbox/travelsample/services
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-10-26 23:36:54 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-10-26 23:36:54 +0000
commit3c908c16d224e5c7d84b01e9662f7104bd546eeb (patch)
tree28ae7ebdbca92ad7c900ce65646250d15b2119b2 /sandbox/travelsample/services
parentce7474138d1b4596137ebc9141f0949c470c3a85 (diff)
Add Main-Class and Class-Path to the MF so that we can run the clients, services and launchers using java -jar
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@830020 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/travelsample/services')
-rw-r--r--sandbox/travelsample/services/creditcard-payment-jaxws/pom.xml16
-rw-r--r--sandbox/travelsample/services/creditcard-payment-jaxws/src/main/java/scatours/creditcard/CreditCardServiceBootstrap.java9
-rw-r--r--sandbox/travelsample/services/smsgateway-corba/pom.xml14
-rw-r--r--sandbox/travelsample/services/smsgateway-ejb/pom.xml20
-rw-r--r--sandbox/travelsample/services/smsgateway-jaxws/pom.xml16
-rw-r--r--sandbox/travelsample/services/smsgateway-jaxws/src/main/java/com/tuscanyscatours/smsgateway/SMSGatewayServiceBootstrap.java8
-rw-r--r--sandbox/travelsample/services/smsgateway-jms/pom.xml16
-rw-r--r--sandbox/travelsample/services/smsgateway-rmi/pom.xml16
8 files changed, 104 insertions, 11 deletions
diff --git a/sandbox/travelsample/services/creditcard-payment-jaxws/pom.xml b/sandbox/travelsample/services/creditcard-payment-jaxws/pom.xml
index c73e425868..b004113afc 100644
--- a/sandbox/travelsample/services/creditcard-payment-jaxws/pom.xml
+++ b/sandbox/travelsample/services/creditcard-payment-jaxws/pom.xml
@@ -39,5 +39,21 @@
<build>
<finalName>${artifactId}</finalName>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>2.2</version>
+ <configuration>
+ <archive>
+ <manifest>
+ <addClasspath>true</addClasspath>
+ <classpathPrefix>../lib/</classpathPrefix>
+ <mainClass>scatours.creditcard.CreditCardServiceBootstrap</mainClass>
+ </manifest>
+ </archive>
+ </configuration>
+ </plugin>
+ </plugins>
</build>
</project>
diff --git a/sandbox/travelsample/services/creditcard-payment-jaxws/src/main/java/scatours/creditcard/CreditCardServiceBootstrap.java b/sandbox/travelsample/services/creditcard-payment-jaxws/src/main/java/scatours/creditcard/CreditCardServiceBootstrap.java
index bbf3b93b1c..2fa12fc187 100644
--- a/sandbox/travelsample/services/creditcard-payment-jaxws/src/main/java/scatours/creditcard/CreditCardServiceBootstrap.java
+++ b/sandbox/travelsample/services/creditcard-payment-jaxws/src/main/java/scatours/creditcard/CreditCardServiceBootstrap.java
@@ -23,10 +23,9 @@ import javax.xml.ws.Endpoint;
public class CreditCardServiceBootstrap {
public static void main(String[] args) {
- System.out.println("Publishing Credit Card Service as web service");
-
- Endpoint.publish(
- "http://localhost:8081/CreditCardService",
- new CreditCardServiceImpl());
+ System.out.println("Publishing Credit Card Service as web service: http://localhost:8081/CreditCardService");
+ System.out.println("Press Ctrl^C to terminate...");
+
+ Endpoint.publish("http://localhost:8081/CreditCardService", new CreditCardServiceImpl());
}
}
diff --git a/sandbox/travelsample/services/smsgateway-corba/pom.xml b/sandbox/travelsample/services/smsgateway-corba/pom.xml
index 513550181f..68acf42e27 100644
--- a/sandbox/travelsample/services/smsgateway-corba/pom.xml
+++ b/sandbox/travelsample/services/smsgateway-corba/pom.xml
@@ -41,6 +41,20 @@
<finalName>${artifactId}</finalName>
<plugins>
<plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>2.2</version>
+ <configuration>
+ <archive>
+ <manifest>
+ <addClasspath>true</addClasspath>
+ <classpathPrefix>../lib/</classpathPrefix>
+ <mainClass>scatours.smsgateway.SMSGatewayCORBAServiceBootstrap</mainClass>
+ </manifest>
+ </archive>
+ </configuration>
+ </plugin>
+ <plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>idlj-maven-plugin</artifactId>
<version>1.1</version>
diff --git a/sandbox/travelsample/services/smsgateway-ejb/pom.xml b/sandbox/travelsample/services/smsgateway-ejb/pom.xml
index ac90abbd04..01d58240d4 100644
--- a/sandbox/travelsample/services/smsgateway-ejb/pom.xml
+++ b/sandbox/travelsample/services/smsgateway-ejb/pom.xml
@@ -46,18 +46,34 @@
<groupId>org.apache.openejb</groupId>
<artifactId>openejb-core</artifactId>
<version>3.1.1</version>
- <scope>test</scope>
+ <scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.apache.openejb</groupId>
<artifactId>openejb-ejbd</artifactId>
<version>3.1.1</version>
- <scope>test</scope>
+ <scope>runtime</scope>
</dependency>
</dependencies>
<build>
<finalName>${artifactId}</finalName>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>2.2</version>
+ <configuration>
+ <archive>
+ <manifest>
+ <addClasspath>true</addClasspath>
+ <classpathPrefix>../lib/</classpathPrefix>
+ <mainClass>scatours.smsgateway.SMSGatewayEJBServiceBootstrap</mainClass>
+ </manifest>
+ </archive>
+ </configuration>
+ </plugin>
+ </plugins>
</build>
</project> \ No newline at end of file
diff --git a/sandbox/travelsample/services/smsgateway-jaxws/pom.xml b/sandbox/travelsample/services/smsgateway-jaxws/pom.xml
index d1602e6aec..2074310069 100644
--- a/sandbox/travelsample/services/smsgateway-jaxws/pom.xml
+++ b/sandbox/travelsample/services/smsgateway-jaxws/pom.xml
@@ -39,5 +39,21 @@
<build>
<finalName>${artifactId}</finalName>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>2.2</version>
+ <configuration>
+ <archive>
+ <manifest>
+ <addClasspath>true</addClasspath>
+ <classpathPrefix>../lib/</classpathPrefix>
+ <mainClass>com.tuscanyscatours.smsgateway.SMSGatewayServiceBootstrap</mainClass>
+ </manifest>
+ </archive>
+ </configuration>
+ </plugin>
+ </plugins>
</build>
</project>
diff --git a/sandbox/travelsample/services/smsgateway-jaxws/src/main/java/com/tuscanyscatours/smsgateway/SMSGatewayServiceBootstrap.java b/sandbox/travelsample/services/smsgateway-jaxws/src/main/java/com/tuscanyscatours/smsgateway/SMSGatewayServiceBootstrap.java
index 3d07ffdd13..e63f248c1e 100644
--- a/sandbox/travelsample/services/smsgateway-jaxws/src/main/java/com/tuscanyscatours/smsgateway/SMSGatewayServiceBootstrap.java
+++ b/sandbox/travelsample/services/smsgateway-jaxws/src/main/java/com/tuscanyscatours/smsgateway/SMSGatewayServiceBootstrap.java
@@ -23,9 +23,9 @@ import javax.xml.ws.Endpoint;
public class SMSGatewayServiceBootstrap {
public static void main(String[] args) {
- System.out.println("Publishing SMS Gateway Service as web service");
-
- Endpoint.publish("http://localhost:8081/SMSGatewayService",
- new SMSGatewayServiceImpl());
+ System.out.println("Publishing SMS Gateway Service as web service: http://localhost:8081/CreditCardService");
+ System.out.println("Press Ctrl^C to terminate...");
+
+ Endpoint.publish("http://localhost:8081/SMSGatewayService", new SMSGatewayServiceImpl());
}
}
diff --git a/sandbox/travelsample/services/smsgateway-jms/pom.xml b/sandbox/travelsample/services/smsgateway-jms/pom.xml
index 3c5a12d367..d23511e80c 100644
--- a/sandbox/travelsample/services/smsgateway-jms/pom.xml
+++ b/sandbox/travelsample/services/smsgateway-jms/pom.xml
@@ -84,5 +84,21 @@
<build>
<finalName>${artifactId}</finalName>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>2.2</version>
+ <configuration>
+ <archive>
+ <manifest>
+ <addClasspath>true</addClasspath>
+ <classpathPrefix>../lib/</classpathPrefix>
+ <mainClass>scatours.smsgateway.SMSGatewayJMSServiceBootstrap</mainClass>
+ </manifest>
+ </archive>
+ </configuration>
+ </plugin>
+ </plugins>
</build>
</project>
diff --git a/sandbox/travelsample/services/smsgateway-rmi/pom.xml b/sandbox/travelsample/services/smsgateway-rmi/pom.xml
index a9a07e3fc3..1d8ebabc78 100644
--- a/sandbox/travelsample/services/smsgateway-rmi/pom.xml
+++ b/sandbox/travelsample/services/smsgateway-rmi/pom.xml
@@ -39,5 +39,21 @@
<build>
<finalName>${artifactId}</finalName>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>2.2</version>
+ <configuration>
+ <archive>
+ <manifest>
+ <addClasspath>true</addClasspath>
+ <classpathPrefix>../lib/</classpathPrefix>
+ <mainClass>scatours.smsgateway.SMSGatewayRMIServiceBootstrap</mainClass>
+ </manifest>
+ </archive>
+ </configuration>
+ </plugin>
+ </plugins>
</build>
</project>