Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dabla committed Jan 31, 2012
0 parents commit 3ea383b
Show file tree
Hide file tree
Showing 140 changed files with 4,299 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="ejb/target/classes" path="ejb/src/main/java"/>
<classpathentry excluding="**" kind="src" output="ejb/target/classes" path="ejb/src/main/resources"/>
<classpathentry kind="src" output="ejb/target/test-classes" path="ejb/src/test/java"/>
<classpathentry excluding="**" kind="src" output="ejb/target/test-classes" path="ejb/src/test/resources"/>
<classpathentry kind="src" output="jar/target/classes" path="jar/src/main/java"/>
<classpathentry excluding="**" kind="src" output="jar/target/classes" path="jar/src/main/resources"/>
<classpathentry kind="src" output="jar/target/test-classes" path="jar/src/test/java"/>
<classpathentry excluding="**" kind="src" output="jar/target/test-classes" path="jar/src/test/resources"/>
<classpathentry kind="src" output="war/target/classes" path="war/src/main/java"/>
<classpathentry excluding="**" kind="src" output="war/target/classes" path="war/src/main/resources"/>
<classpathentry excluding="**" kind="src" output="war/target/classes" path="war/src/main/webapp"/>
<classpathentry kind="src" output="war/target/test-classes" path="war/src/test/java"/>
<classpathentry excluding="**" kind="src" output="war/target/test-classes" path="war/src/test/resources"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
23 changes: 23 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>tomee-maven-demo</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.maven.ide.eclipse.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.maven.ide.eclipse.maven2Nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
5 changes: 5 additions & 0 deletions .settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#Fri Jan 27 15:43:49 CET 2012
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.source=1.6
9 changes: 9 additions & 0 deletions .settings/org.maven.ide.eclipse.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#Tue Jan 31 10:56:54 CET 2012
activeProfiles=
eclipse.preferences.version=1
fullBuildGoals=process-test-resources
includeModules=true
resolveWorkspaceProjects=true
resourceFilterGoals=process-resources resources\:testResources
skipCompilerPlugin=true
version=1
94 changes: 94 additions & 0 deletions MessageService-soapui-project.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
<?xml version="1.0" encoding="UTF-8"?>
<con:soapui-project name="MessageService" resourceRoot="" soapui-version="3.6.1" abortOnError="false" runType="SEQUENTIAL" xmlns:con="http://eviware.com/soapui/config"><con:settings/><con:interface xsi:type="con:WsdlInterface" wsaVersion="200508" name="MessageServiceSoapBinding" type="wsdl" bindingName="{urn:service.dabla.be}MessageServiceSoapBinding" soapVersion="1_1" anonymous="optional" definition="http://localhost:8081/tomee-maven-demo-war-2.0.0/services/MessageService?wsdl" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:settings/><con:definitionCache type="TEXT" rootPart="http://localhost:8081/tomee-maven-demo-war-2.0.0/services/MessageService?wsdl"><con:part><con:url>http://localhost:8081/tomee-maven-demo-war-2.0.0/services/MessageService?wsdl</con:url><con:content><![CDATA[<wsdl:definitions name="MessageService" targetNamespace="urn:service.dabla.be" xmlns:ns1="http://schemas.xmlsoap.org/wsdl/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="urn:service.dabla.be" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types>
<xs:schema targetNamespace="urn:service.dabla.be" version="1.0" xmlns:ns1="urn:model.dabla.be" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:import namespace="urn:model.dabla.be"/>
<xs:element name="callbackMessage" type="tns:callbackMessage"/>
<xs:element name="create" type="tns:create"/>
<xs:complexType name="create">
<xs:sequence>
<xs:element minOccurs="0" ref="ns1:Message"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="message">
<xs:sequence>
<xs:element minOccurs="0" name="id" type="xs:long"/>
<xs:element name="description" type="xs:string"/>
<xs:element minOccurs="0" name="date" type="xs:dateTime"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="callbackMessage">
<xs:sequence>
<xs:element minOccurs="0" ref="ns1:Message"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
<xs:schema targetNamespace="urn:model.dabla.be" version="1.0" xmlns:ns1="urn:service.dabla.be" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:import namespace="urn:service.dabla.be"/>
<xs:element name="Message" type="ns1:message"/>
</xs:schema>
</wsdl:types>
<wsdl:message name="callbackMessage">
<wsdl:part element="tns:callbackMessage" name="parameters"></wsdl:part>
</wsdl:message>
<wsdl:message name="create">
<wsdl:part element="tns:create" name="parameters"></wsdl:part>
</wsdl:message>
<wsdl:portType name="MessageService">
<wsdl:operation name="create">
<wsdl:input message="tns:create" name="create" wsam:Action="create" wsaw:Action="create"></wsdl:input>
</wsdl:operation>
<wsdl:operation name="callbackMessage">
<wsdl:input message="tns:callbackMessage" name="callbackMessage" wsam:Action="callbackMessage" wsaw:Action="callbackMessage"></wsdl:input>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="MessageServiceSoapBinding" type="tns:MessageService">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsaw:UsingAddressing wsdl:required="false"/>
<wsp:PolicyReference URI="#MessageServiceSoapBinding_WSAM_Addressing_Policy"/>
<wsdl:operation name="create">
<soap:operation soapAction="create" style="document"/>
<wsdl:input name="create">
<soap:body use="literal"/>
</wsdl:input>
</wsdl:operation>
<wsdl:operation name="callbackMessage">
<soap:operation soapAction="callbackMessage" style="document"/>
<wsdl:input name="callbackMessage">
<soap:body use="literal"/>
</wsdl:input>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="MessageService">
<wsdl:port binding="tns:MessageServiceSoapBinding" name="MessageServicePort">
<soap:address location="http://localhost:8081/tomee-maven-demo-war-2.0.0/services/MessageService"/>
</wsdl:port>
</wsdl:service>
<wsp:Policy wsu:Id="MessageServiceSoapBinding_WSAM_Addressing_Policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsam:Addressing wsp:Optional="true">
<wsp:Policy/>
</wsam:Addressing>
</wsp:Policy>
</wsdl:definitions>]]></con:content><con:type>http://schemas.xmlsoap.org/wsdl/</con:type></con:part></con:definitionCache><con:endpoints><con:endpoint>http://localhost:8081/tomee-maven-demo-war-2.0.0/services/MessageService</con:endpoint></con:endpoints><con:operation isOneWay="false" action="callbackMessage" name="callbackMessage" bindingOperationName="callbackMessage" type="One-Way" inputName="callbackMessage" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1" useWsAddressing="true"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8081/tomee-maven-demo-war-2.0.0/services/MessageService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:service.dabla.be" xmlns:urn1="urn:entity.dabla.be">
<soapenv:Header/>
<soapenv:Body>
<urn:callbackMessage>
<!--Optional:-->
<urn1:Message>
<id>?</id>
<description>?</description>
<date>?</date>
</urn1:Message>
</urn:callbackMessage>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:wsaConfig mustUnderstand="NONE" version="200508" action="callbackMessage"/></con:call></con:operation><con:operation isOneWay="false" action="create" name="create" bindingOperationName="create" type="One-Way" inputName="create" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1" useWsAddressing="true"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8081/tomee-maven-demo-war-2.0.0/services/MessageService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:service.dabla.be" xmlns:urn1="urn:model.dabla.be">
<soapenv:Header/>
<soapenv:Body>
<urn:create>
<!--Optional:-->
<urn1:Message>
<description>Hello David</description>
</urn1:Message>
</urn:create>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="create" addDefaultAction="true" addDefaultTo="true" replyTo="http://localhost:9999/MockMessageService" generateMessageId="true"/><con:wsrmConfig version="1.2"/></con:call></con:operation></con:interface><con:mockService port="9999" path="/MockMessageService" host="PO100012899" name="MockMessageService"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.mock.WsdlMockService@require-soap-action">false</con:setting></con:settings><con:mockOperation name="callbackMessage" interface="MessageServiceSoapBinding" operation="callbackMessage"><con:settings/><con:dispatchStyle>SEQUENCE</con:dispatchStyle><con:defaultResponse>Response 1</con:defaultResponse><con:response name="Response 1" encoding="UTF-8"><con:settings/><con:responseContent/><con:wsaConfig mustUnderstand="NONE" version="200508" action="callbackMessage"/></con:response><con:dispatchConfig/></con:mockOperation><con:properties/></con:mockService><con:properties/><con:wssContainer/></con:soapui-project>
105 changes: 105 additions & 0 deletions ear/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>

<parent>
<groupId>be.dabla</groupId>
<artifactId>tomee-maven-demo</artifactId>
<version>2.0.0</version>
</parent>

<artifactId>tomee-maven-demo-ear</artifactId>
<packaging>ear</packaging>
<name>tomee-maven-demo-ear</name>

<dependencies>
<dependency>
<groupId>be.dabla</groupId>
<artifactId>tomee-maven-demo-war</artifactId>
<version>${project.version}</version>
<type>war</type>
</dependency>
<dependency>
<groupId>be.dabla</groupId>
<artifactId>tomee-maven-demo-ejb</artifactId>
<version>${project.version}</version>
<type>ejb</type>
</dependency>
<dependency>
<groupId>be.dabla</groupId>
<artifactId>tomee-maven-demo-jar</artifactId>
<version>${project.version}</version>
</dependency>
<!-- http://stackoverflow.com/questions/3659726/weblogic-ejb-deployement-classes-in-jar-inside-ear-are-not-accessible -->
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>1.0.0.GA</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>4.0.2.GA</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.6.1</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ear-plugin</artifactId>
<version>2.6</version>
<configuration>
<filtering>true</filtering>
<defaultJavaBundleDir>APP-INF/lib</defaultJavaBundleDir>
<displayName>tomee-maven-demo-ear</displayName>
<description>TomEE Maven Demo</description>
<version>5</version>
<archive>
<manifestEntries>
<WebLogic-Application-Version>${project.version}</WebLogic-Application-Version>
</manifestEntries>
</archive>
<modules>
<webModule>
<groupId>be.dabla</groupId>
<artifactId>tomee-maven-demo-war</artifactId>
<contextRoot>tomee-maven-demo-context-root</contextRoot>
<excluded>web.xml</excluded>
</webModule>
<ejbModule>
<groupId>be.dabla</groupId>
<artifactId>tomee-maven-demo-ejb</artifactId>
</ejbModule>
<jarModule>
<groupId>javax.activation</groupId>
<artifactId>activation</artifactId>
<excluded>true</excluded>
</jarModule>
<jarModule>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<excluded>true</excluded>
</jarModule>
<jarModule>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<excluded>true</excluded>
</jarModule>
<jarModule>
<groupId>javax.xml.stream</groupId>
<artifactId>stax-api</artifactId>
<excluded>true</excluded>
</jarModule>
</modules>
</configuration>
</plugin>
</plugins>
</build>
</project>
5 changes: 5 additions & 0 deletions ear/src/main/application/META-INF/weblogic-application.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<weblogic-application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-application http://www.bea.com/ns/weblogic/weblogic-application/1.0/weblogic-application.xsd"
xmlns="http://www.bea.com/ns/weblogic/weblogic-application">
</weblogic-application>
Loading

0 comments on commit 3ea383b

Please sign in to comment.