Skip to content

Commit 101b3dc

Browse files
committed
pulled kaazing/amqp.client.java.demo@develop into java.client at migrated/amqp.client.java.demo
2 parents 516e168 + c95fb6d commit 101b3dc

15 files changed

Lines changed: 1702 additions & 0 deletions

File tree

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# basic
2+
*~
3+
target
4+
GTAGS
5+
GRTAGS
6+
GPATH
7+
prop
8+
out
9+
.DS_Store
10+
.idea
11+
*.iml
12+
.project
13+
.classpath
14+
.settings
15+
*.sublime-project
16+
*.sublime-workspace
17+
build-local.properties
18+
.gradle
19+
build
20+
21+
# Github java basic
22+
*.class
23+
24+
# Mobile Tools for Java (J2ME)
25+
.mtj.tmp/
26+
27+
# Package Files #
28+
*.jar
29+
*.war
30+
*.ear
31+
32+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
33+
hs_err_pid*
34+
35+
### Xcode ###
36+
*.pbxuser
37+
!default.pbxuser
38+
*.mode1v3
39+
!default.mode1v3
40+
*.mode2v3
41+
!default.mode2v3
42+
*.perspectivev3
43+
!default.perspectivev3
44+
xcuserdata
45+
*.xccheckout
46+
*.moved-aside
47+
DerivedData
48+
*.xcuserstate
49+
50+
### Flex project ###
51+
.actionScriptProperties
52+
.flexProperties
53+
54+
### C ###
55+
# Object files
56+
*.o
57+
*.ko
58+
*.obj
59+
*.elf
60+
61+
# Precompiled Headers
62+
*.gch
63+
*.pch
64+
65+
# Libraries
66+
*.lib
67+
*.a
68+
*.la
69+
*.lo
70+
71+
# Shared objects (inc. Windows DLLs)
72+
*.dll
73+
*.so
74+
*.so.*
75+
*.dylib
76+
77+
# Executables
78+
*.exe
79+
*.out
80+
*.app
81+
*.i*86
82+
*.x86_64
83+
*.hex
84+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
language: Java
2+
jdk:
3+
- oraclejdk7
4+
- openjdk7
5+
script: mvn verify
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
This is free and unencumbered software released into the public domain.
2+
3+
Anyone is free to copy, modify, publish, use, compile, sell, or
4+
distribute this software, either in source code form or as a compiled
5+
binary, for any purpose, commercial or non-commercial, and by any
6+
means.
7+
8+
In jurisdictions that recognize copyright laws, the author or authors
9+
of this software dedicate any and all copyright interest in the
10+
software to the public domain. We make this dedication for the benefit
11+
of the public at large and to the detriment of our heirs and
12+
successors. We intend this dedication to be an overt act of
13+
relinquishment in perpetuity of all present and future rights to this
14+
software under copyright law.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
OTHER DEALINGS IN THE SOFTWARE.
23+
24+
For more information, please refer to <http://unlicense.org/>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
This product depends on Kaazing WebSocket Gateway - AMQP Java Client 5.0
2+
3+
License: http://www.apache.org/licenses/LICENSE-2.0 (Apache License, Version 2.0)
4+
Homepage: https://github.com/kaazing/amqp.client.java.git
5+
6+
This product depends on Kaazing WebSocket Gateway - Java Client 5.0
7+
8+
License: http://www.apache.org/licenses/LICENSE-2.0 (Apache License, Version 2.0)
9+
Homepage: https://github.com/kaazing/gateway.client.java.git
10+
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
AMQP 0-9-1 over WebSocket -- Java Client Demo
2+
=============================================
3+
[![Build Status][build-status-image]][build-status]
4+
5+
[build-status-image]: https://travis-ci.org/kaazing/amqp.client.java.demo.svg?branch=develop
6+
[build-status]: https://travis-ci.org/kaazing/amqp.client.java.demo
7+
8+
9+
About this Project
10+
------------------
11+
This is a simple maven-based project that shows how to use AMQP 0-9-1 Java Client library!
12+
13+
Requirements
14+
------------
15+
* Java SE Development Kit (JDK) 7 or higher
16+
* Maven 3.0.5 or higher
17+
18+
Steps for building this project
19+
--------------------------------
20+
0. Clone the repo: ```git clone https://github.com/kaazing/amqp.client.java.demo.git```
21+
0. Go to the cloned directory: ```cd amqp.client.java.demo```
22+
0. Build the project: ````mvn clean install````
23+
24+
Running the demo from the command-line
25+
---------------------------------------
26+
0. Change directory: ```cd target```
27+
0. Run the demo application: ```java -cp . -jar amqp.client.java.demo-<5.0.0.1-SNAPSHOT>-shaded.jar```
28+
29+
Running the demo from within Eclipse
30+
------------------------------------
31+
0. Import the project in Eclipse
32+
0. Right-click on AmqpFrame.java or AmqpApplet.java under src/main/java/org.kaazing.net.ws.amqp.demo and run!
Lines changed: 185 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,185 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
** This is free and unencumbered software released into the public domain.
4+
**
5+
** Anyone is free to copy, modify, publish, use, compile, sell, or
6+
** distribute this software, either in source code form or as a compiled
7+
** binary, for any purpose, commercial or non-commercial, and by any
8+
** means.
9+
**
10+
** In jurisdictions that recognize copyright laws, the author or authors
11+
** of this software dedicate any and all copyright interest in the
12+
** software to the public domain. We make this dedication for the benefit
13+
** of the public at large and to the detriment of our heirs and
14+
** successors. We intend this dedication to be an overt act of
15+
** relinquishment in perpetuity of all present and future rights to this
16+
** software under copyright law.
17+
**
18+
** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19+
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20+
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
21+
** IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
22+
** OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
23+
** ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
24+
** OTHER DEALINGS IN THE SOFTWARE.
25+
**
26+
** For more information, please refer to <http://unlicense.org/>
27+
-->
28+
<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/xsd/maven-4.0.0.xsd">
29+
<modelVersion>4.0.0</modelVersion>
30+
31+
<parent>
32+
<groupId>org.kaazing</groupId>
33+
<artifactId>gateway.client.java.common</artifactId>
34+
<version>5.1.0.9</version>
35+
</parent>
36+
37+
<groupId>org.kaazing</groupId>
38+
<artifactId>amqp.client.java.demo</artifactId>
39+
<name>Kaazing WebSocket Gateway - AMQP Java Client Demo</name>
40+
<packaging>jar</packaging>
41+
<version>5.0.0.1-SNAPSHOT</version>
42+
43+
<url>https://github.com/kaazing/amqp.client.java.demo.git</url>
44+
<description>Java demo for AMQP 0-9-1 protocol over WebSocket(RFC-6455) transport.</description>
45+
<scm>
46+
<connection>scm:git:${project.scm.url}</connection>
47+
<developerConnection>scm:git:${project.scm.url}</developerConnection>
48+
<url>[email protected]:kaazing/amqp.client.java.demo.git</url>
49+
</scm>
50+
51+
<dependencies>
52+
<dependency>
53+
<groupId>org.kaazing</groupId>
54+
<artifactId>amqp.client.java</artifactId>
55+
<type>jar</type>
56+
<version>[5.0.0.0,5.1.0.0)</version>
57+
</dependency>
58+
<dependency>
59+
<groupId>org.kaazing</groupId>
60+
<artifactId>gateway.client.java</artifactId>
61+
<version>[5.1.0.0,5.2.0.0)</version>
62+
</dependency>
63+
<!--dependency>
64+
<groupId>com.kaazing.gateway.core</groupId>
65+
<artifactId>com.kaazing.gateway.core.demo.resources</artifactId>
66+
<version>[4.0.0.0,4.1.0.0)</version>
67+
<type>zip</type>
68+
<classifier>headers</classifier>
69+
</dependency-->
70+
</dependencies>
71+
72+
<build>
73+
<plugins>
74+
<!-- Create a shaded JAR for running the applet demo -->
75+
<plugin>
76+
<groupId>org.apache.maven.plugins</groupId>
77+
<artifactId>maven-shade-plugin</artifactId>
78+
<executions>
79+
<execution>
80+
<phase>package</phase>
81+
<goals>
82+
<goal>shade</goal>
83+
</goals>
84+
<configuration>
85+
<createDependencyReducedPom>false</createDependencyReducedPom>
86+
<shadedArtifactAttached>true</shadedArtifactAttached>
87+
<shadedClassifierName>shaded</shadedClassifierName>
88+
<transformers>
89+
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
90+
<mainClass>org.kaazing.net.ws.amqp.demo.AmqpFrame</mainClass>
91+
</transformer>
92+
</transformers>
93+
<filters>
94+
<filter>
95+
<artifact>*:*</artifact>
96+
<excludes>
97+
<exclude>**/*.html</exclude>
98+
<exclude>**/*.java</exclude>
99+
<exclude>images/</exclude>
100+
<exclude>resources/</exclude>
101+
<exclude>checklist/</exclude>
102+
</excludes>
103+
</filter>
104+
</filters>
105+
</configuration>
106+
</execution>
107+
</executions>
108+
</plugin>
109+
110+
<plugin>
111+
<groupId>org.apache.maven.plugins</groupId>
112+
<artifactId>maven-jar-plugin</artifactId>
113+
<version>2.5</version>
114+
<configuration>
115+
<archive>
116+
<manifest>
117+
</manifest>
118+
<manifestEntries>
119+
<Trusted-Library>true</Trusted-Library>
120+
<Permissions>all-permissions</Permissions>
121+
</manifestEntries>
122+
</archive>
123+
</configuration>
124+
</plugin>
125+
126+
<!-- Copy the demo resources -->
127+
<plugin>
128+
<artifactId>maven-resources-plugin</artifactId>
129+
<executions>
130+
<execution>
131+
<goals>
132+
<goal>resources</goal>
133+
</goals>
134+
<configuration>
135+
<outputDirectory>target/content</outputDirectory>
136+
</configuration>
137+
</execution>
138+
</executions>
139+
</plugin>
140+
141+
<!-- Attach Demo Source Files -->
142+
<!-- BWA: Check to see if this is actually needed by a dependency anymore. -->
143+
<!-- I hate to do this, but maven-source-plugin doesn't seem
144+
to work as advertised: It doesn't generate or attach/install
145+
the sources despite my combinatorial explosion of attempts.
146+
I know assembly will work... -->
147+
<plugin>
148+
<groupId>org.apache.maven.plugins</groupId>
149+
<artifactId>maven-assembly-plugin</artifactId>
150+
<!-- this works for assembly build, but breaks from top-level -->
151+
<configuration>
152+
<filters>
153+
<filter>src/main/assembly/filter.properties</filter>
154+
</filters>
155+
</configuration>
156+
<executions>
157+
<execution>
158+
<phase>verify</phase>
159+
<goals>
160+
<goal>single</goal>
161+
</goals>
162+
<configuration>
163+
<descriptors>
164+
<descriptor>src/main/assembly/sources.xml</descriptor>
165+
<descriptor>src/main/assembly/content.xml</descriptor>
166+
</descriptors>
167+
</configuration>
168+
</execution>
169+
</executions>
170+
</plugin>
171+
<plugin>
172+
<groupId>com.google.code.maven-license-plugin</groupId>
173+
<artifactId>maven-license-plugin</artifactId>
174+
<configuration>
175+
<useDefaultExcludes>true</useDefaultExcludes>
176+
<failIfMissing>false</failIfMissing>
177+
</configuration>
178+
</plugin>
179+
</plugins>
180+
</build>
181+
182+
<properties>
183+
<geronimo.spec.version>1.1.1</geronimo.spec.version>
184+
</properties>
185+
</project>

0 commit comments

Comments
 (0)