Skip to content

Commit e5c749a

Browse files
author
Arun Gupta
committed
Simplifying annotation
1 parent d7d31dc commit e5c749a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

websocket/injection/src/main/java/org/javaee7/websocket/injection/MyEndpointWithEJB.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@
4646
/**
4747
* @author Arun Gupta
4848
*/
49-
@ServerEndpoint(value="/websocket-ejb")
49+
@ServerEndpoint("/websocket-ejb")
5050
public class MyEndpointWithEJB {
5151

5252
@Inject MySessionBean bean;
5353

5454
@OnMessage
5555
public String sayHello(String name) {
56-
return bean.sayHello(name);
56+
return bean.sayHello(name + " (from EJB)");
5757
}
5858
}

0 commit comments

Comments
 (0)