forked from kylinsoong/wildfly-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bb36877
commit 3754f6b
Showing
16 changed files
with
174 additions
and
478 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,130 +1,58 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- JBoss, Home of Professional Open Source Copyright 2012, Red Hat, Inc. | ||
and/or its affiliates, and individual contributors by the @authors tag. See | ||
the copyright.txt in the distribution for a full listing of individual contributors. | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not | ||
use this file except in compliance with the License. You may obtain a copy | ||
of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required | ||
by applicable law or agreed to in writing, software distributed under the | ||
License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS | ||
OF ANY KIND, either express or implied. See the License for the specific | ||
language governing permissions and limitations under the License. --> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<artifactId>ejbiiop01</artifactId> | ||
<name>JBoss AS Quickstarts: Java Transaction Service Application Component 2</name> | ||
<description>Using CMT with JTS</description> | ||
<packaging>jar</packaging> | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<artifactId>ejbiiop01</artifactId> | ||
<name>WFLY-2920 Reproduction</name> | ||
<description>WFLY-2920 Reproduction</description> | ||
<packaging>jar</packaging> | ||
|
||
|
||
<parent> | ||
<groupId>org.jboss.as.quickstarts</groupId> | ||
<artifactId>jboss-as-jts-parent</artifactId> | ||
<version>7.1.1.CR2</version> | ||
</parent> | ||
<parent> | ||
<groupId>org.jboss.as.quickstarts</groupId> | ||
<artifactId>jboss-as-jts-parent</artifactId> | ||
<version>7.1.1.CR2</version> | ||
</parent> | ||
|
||
<url>http://jboss.org/jbossas</url> | ||
<licenses> | ||
<license> | ||
<name>Apache License, Version 2.0</name> | ||
<distribution>repo</distribution> | ||
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url> | ||
</license> | ||
</licenses> | ||
<url>http://jboss.org/jbossas</url> | ||
<licenses> | ||
<license> | ||
<name>Apache License, Version 2.0</name> | ||
<distribution>repo</distribution> | ||
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url> | ||
</license> | ||
</licenses> | ||
|
||
<properties> | ||
<!-- Explicitly declaring the source encoding eliminates the following | ||
message: --> | ||
<!-- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered | ||
resources, i.e. build is platform dependent! --> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
</properties> | ||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
</properties> | ||
|
||
<dependencies> | ||
<!-- Import the JPA API, we use provided scope as the API is included | ||
in JBoss AS 7 --> | ||
<dependency> | ||
<groupId>org.jboss.spec.javax.transaction</groupId> | ||
<artifactId>jboss-transaction-api_1.1_spec</artifactId> | ||
<scope>provided</scope> | ||
</dependency> | ||
<!-- Import the JMS API, we use provided scope as the API is included | ||
in JBoss AS 7 --> | ||
<dependency> | ||
<groupId>org.jboss.spec.javax.jms</groupId> | ||
<artifactId>jboss-jms-api_1.1_spec</artifactId> | ||
<scope>provided</scope> | ||
</dependency> | ||
<!-- Import the EJB API, we use provided scope as the API is included | ||
in JBoss AS 7 --> | ||
<dependency> | ||
<groupId>org.jboss.spec.javax.ejb</groupId> | ||
<artifactId>jboss-ejb-api_3.1_spec</artifactId> | ||
<scope>provided</scope> | ||
</dependency> | ||
<!-- Import the CDI API, we use provided scope as the API is included | ||
in JBoss AS 7 --> | ||
<dependency> | ||
<groupId>javax.enterprise</groupId> | ||
<artifactId>cdi-api</artifactId> | ||
<scope>provided</scope> | ||
</dependency> | ||
</dependencies> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.jboss.spec.javax.ejb</groupId> | ||
<artifactId>jboss-ejb-api_3.1_spec</artifactId> | ||
<scope>provided</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<!-- Maven will append the version to the finalName (which is the | ||
name given to the generated war, and hence the context root) --> | ||
<finalName>${project.artifactId}</finalName> | ||
<plugins> | ||
<!-- Compiler plugin enforces Java 1.6 compatibility and activates | ||
annotation processors --> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>2.3.1</version> | ||
<configuration> | ||
<source>1.6</source> | ||
<target>1.6</target> | ||
</configuration> | ||
</plugin> | ||
<!-- The JBoss AS plugin deploys your war to a local JBoss AS | ||
container --> | ||
<!-- To use, set the JBOSS_HOME environment variable and run: | ||
mvn package jboss-as:deploy --> | ||
<plugin> | ||
<groupId>org.jboss.as.plugins</groupId> | ||
<artifactId>jboss-as-maven-plugin</artifactId> | ||
<version>7.3.Final</version> | ||
<configuration> | ||
<port>10099</port> | ||
</configuration> | ||
</plugin> | ||
<!-- The other application-component will depend on this --> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-ejb-plugin</artifactId> | ||
<version>2.3</version> | ||
<executions> | ||
<execution> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>ejb</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
<configuration> | ||
<ejbVersion>3.0</ejbVersion> | ||
<!-- this is false by default --> | ||
<generateClient>true</generateClient> | ||
<jarName></jarName> | ||
<clientExcludes> | ||
<clientExclude>**/*Impl.class</clientExclude> | ||
<clientExclude>**/*MDB.class</clientExclude> | ||
</clientExcludes> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
<build> | ||
<finalName>${artifactId}</finalName> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>2.3.1</version> | ||
<configuration> | ||
<source>1.6</source> | ||
<target>1.6</target> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.jboss.as.plugins</groupId> | ||
<artifactId>jboss-as-maven-plugin</artifactId> | ||
<version>7.3.Final</version> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
</project> |
27 changes: 0 additions & 27 deletions
27
...-2920/ejbiiop01/src/main/java/org/jboss/as/quickstarts/cmt/jts/ejb/InvoiceManagerEJB.java
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
...0/ejbiiop01/src/main/java/org/jboss/as/quickstarts/cmt/jts/ejb/InvoiceManagerEJBHome.java
This file was deleted.
Oops, something went wrong.
54 changes: 0 additions & 54 deletions
54
...0/ejbiiop01/src/main/java/org/jboss/as/quickstarts/cmt/jts/ejb/InvoiceManagerEJBImpl.java
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
sanbox/wfly-2920/ejbiiop01/src/main/java/org/wildfly/wfly2920/InvoiceManagerEJB.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package org.wildfly.wfly2920; | ||
|
||
import java.rmi.RemoteException; | ||
|
||
import javax.ejb.EJBObject; | ||
|
||
public interface InvoiceManagerEJB extends EJBObject { | ||
|
||
public void createInvoice(String name) throws RemoteException; | ||
} |
11 changes: 11 additions & 0 deletions
11
sanbox/wfly-2920/ejbiiop01/src/main/java/org/wildfly/wfly2920/InvoiceManagerEJBHome.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.wildfly.wfly2920; | ||
|
||
import java.rmi.RemoteException; | ||
|
||
import javax.ejb.EJBHome; | ||
|
||
public interface InvoiceManagerEJBHome extends EJBHome { | ||
|
||
public InvoiceManagerEJB create() throws RemoteException; | ||
|
||
} |
17 changes: 17 additions & 0 deletions
17
sanbox/wfly-2920/ejbiiop01/src/main/java/org/wildfly/wfly2920/InvoiceManagerEJBImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.wildfly.wfly2920; | ||
|
||
import javax.ejb.RemoteHome; | ||
import javax.ejb.Stateless; | ||
import javax.ejb.TransactionAttribute; | ||
import javax.ejb.TransactionAttributeType; | ||
|
||
|
||
@RemoteHome(InvoiceManagerEJBHome.class) | ||
@Stateless | ||
public class InvoiceManagerEJBImpl { | ||
|
||
@TransactionAttribute(TransactionAttributeType.MANDATORY) | ||
public void createInvoice(String name) { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.