Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a469bae

Browse files
Merge pull request #12 from DanielContrerasAladro/PAYARA-1939-ServerEventsSample
PAYARA-1939:Fixed code and pom dependencies
2 parents 999a8ce + 7523c22 commit a469bae

File tree

6 files changed

+8
-38
lines changed

6 files changed

+8
-38
lines changed

‎pom.xml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,14 @@
316316

317317
<dependencies>
318318

319+
<!-- Yasson (JSON-B RI) -->
320+
<dependency>
321+
<groupId>org.eclipse</groupId>
322+
<artifactId>yasson</artifactId>
323+
<version>1.0</version>
324+
<scope>runtime</scope>
325+
</dependency>
326+
319327
<!-- WebSocket client dependencies -->
320328
<dependency>
321329
<groupId>org.glassfish.tyrus</groupId>

‎sse/pom.xml‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,5 @@
2222
<artifactId>test-utils</artifactId>
2323
<version>${project.version}</version>
2424
</dependency>
25-
<dependency>
26-
<groupId>org.glassfish.jersey.media</groupId>
27-
<artifactId>jersey-media-sse</artifactId>
28-
<version>2.26</version>
29-
</dependency>
30-
<dependency>
31-
<groupId>javax.ws.rs</groupId>
32-
<artifactId>javax.ws.rs-api</artifactId>
33-
<version>2.1</version>
34-
</dependency>
3525
</dependencies>
3626
</project>

‎sse/producer/pom.xml‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,5 @@
1111
<packaging>war</packaging>
1212
<name>Java EE 8 Samples: Server Sent Events [Producer]</name>
1313
<dependencies>
14-
<!-- JSON-B API -->
15-
<dependency>
16-
<groupId>javax.json.bind</groupId>
17-
<artifactId>javax.json.bind-api</artifactId>
18-
<version>1.0.0-RC2</version>
19-
</dependency>
20-
21-
<!-- Yasson (JSON-B RI) -->
22-
<dependency>
23-
<groupId>org.eclipse</groupId>
24-
<artifactId>yasson</artifactId>
25-
<version>1.0.0-RC1</version>
26-
<scope>runtime</scope>
27-
</dependency>
2814
</dependencies>
2915
</project>

‎sse/producer/src/main/java/org/javaee8/sse/data/EventData.java‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
/*
2-
* To change this license header, choose License Headers in Project Properties.
3-
* To change this template file, choose Tools | Templates
4-
* and open the template in the editor.
5-
*/
61
package org.javaee8.sse.data;
72

83
import java.util.Date;
@@ -20,11 +15,9 @@ public class EventData {
2015
private String comment;
2116

2217
public EventData() {
23-
super();
2418
}
2519

2620
public EventData(String comment) {
27-
super();
2821
this.setTime(new Date());
2922
this.setId(UUID.randomUUID().toString());
3023
this.setComment(comment);

‎sse/producer/src/main/java/org/javaee8/sse/producer/SseResource.java‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package org.javaee8.sse.producer;
22

33
import javax.annotation.PostConstruct;
4-
import javax.inject.Singleton;
54
import javax.json.bind.Jsonb;
65
import javax.json.bind.JsonbBuilder;
76
import javax.ws.rs.GET;
@@ -18,7 +17,6 @@
1817
* @author Daniel Contreras
1918
*/
2019
@Path("sse")
21-
@Singleton
2220
public class SseResource {
2321

2422
@Context

‎sse/producer/src/main/java/org/javaee8/sse/rest/RestApplication.java‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
/*
2-
* To change this license header, choose License Headers in Project Properties.
3-
* To change this template file, choose Tools | Templates
4-
* and open the template in the editor.
5-
*/
61
package org.javaee8.sse.rest;
72

83
import javax.ws.rs.ApplicationPath;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /