Skip to content

Commit 6917496

Browse files
committed
Update codebase for Docker container
1 parent 39f28a2 commit 6917496

5 files changed

Lines changed: 8 additions & 6 deletions

File tree

pom.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
<version.jboss.spec.javaee.7.0>8.0.0.Beta1</version.jboss.spec.javaee.7.0>
1818
<version.jboss.maven.plugin>7.4.Final</version.jboss.maven.plugin>
1919

20+
<finalName>${project.artifactId}-${project.version}</finalName>
21+
2022
<!-- Maven -->
2123
<maven.compiler.plugin.version>3.1</maven.compiler.plugin.version>
2224
<maven.source.plugin.version>2.2.1</maven.source.plugin.version>
@@ -41,7 +43,7 @@
4143
</dependencyManagement>
4244

4345
<build>
44-
<finalName>usopen</finalName>
46+
<finalName>${finalName}</finalName>
4547
<pluginManagement>
4648
<plugins>
4749
<plugin>

src/main/java/com/mgreau/wildfly/websocket/StarterService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public class StarterService {
2626
public void init() {
2727
logger.log(Level.INFO, "Initializing App.");
2828
random = new Random();
29-
matches.put("1234", new TennisMatch("1234", "US OPEN - QUARTER FINALS", "Ferrer D.", "es", "Almagro N.", "es"));
29+
matches.put("1234", new TennisMatch("1234", "ROLLAND GARROS - QUARTER FINALS", "Ferrer D.", "es", "Almagro N.", "es"));
3030
matches.put("1235", new TennisMatch("1235", "US OPEN - QUARTER FINALS", "Djokovic N.", "rs", "Berdych T.", "cz"));
3131
matches.put("1236", new TennisMatch("1236", "US OPEN - QUARTER FINALS", "Murray A.", "gb", "Chardy J.", "fr"));
3232
matches.put("1237", new TennisMatch("1237", "US OPEN - QUARTER FINALS", "Federer R.", "ch", "Tsonga J.W.", "fr"));

src/main/webapp/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<title>Java EE 7 - Websocket - Wildfly 8 - OpenShit</title>
4+
<title>Java EE 7 - Websocket - Wildfly 8.2 - OpenShit</title>
55
<meta charset="UTF-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<meta name="description" content="" />

src/main/webapp/js/live/services.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ app.factory('WebSocketService', function($window) {
1010
return;
1111
}
1212

13-
var appPath = $window.location.pathname.split('/')[1];
13+
var appPath = "/";//$window.location.pathname.split('/')[1];
1414
var host = $window.location.hostname;
1515
var port = "8080";
1616
var protocol = "ws";

src/main/webapp/live.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html ng-app="tennisApp">
33
<head>
4-
<title>Java EE 7 - Websocket - AngularJS - Wildfly 8 - OpenShit</title>
4+
<title>Java EE 7 - Websocket - AngularJS - Wildfly 8.2 - OpenShit</title>
55
<meta charset="UTF-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<meta name="description" content="" />
@@ -27,7 +27,7 @@
2727
</head>
2828
<body ng-app="tennisApp" ng-controller="TournamentCtrl">
2929
<div class="container">
30-
<h2>Tennis Game Tournament - Java EE 7 - Java API for Websocket - AngularJS</h2>
30+
<h2>Tennis Game Tournament - Java EE 7 - Java API for WebSocket - AngularJS</h2>
3131
<p class="lead">AngularJS HTML5 app sample to illustrate the new Java API
3232
for WebSocket (JSR 356).</p>
3333
<p>

0 commit comments

Comments
 (0)