Manage Bean Endpoint

UI Components for JSF
Post Reply
william_gosse
Posts: 4
Joined: 22 Jul 2015, 21:23

28 Jul 2015, 14:41

Simple question, can a manage bean also be an end point? I'm trying to do something like this but it doesn't seem to work:
@ManagedBean
@SessionScoped
@PushEndpoint("/notify")
public class UsersAccountsMBean implements Serializable {
private static final String JSON_USER_SELECT_ACCOUNTS = "json/user/s
...

I get the following errors on startup:
940 [localhost-startStop-8] WARN org.primefaces.push.impl.PushEndpointProcessor -
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at org.primefaces.push.impl.PushObjectFactory.newClassInstance(PushObjectFactory.java:54)
...
1047 [localhost-startStop-8] INFO org.atmosphere.cpr.AtmosphereFramework - Installed AtmosphereInterceptor @PushEndpoint Interceptor with priority AFTER_DEFAULT
1047 [localhost-startStop-8] ERROR org.primefaces.push.PushServlet - No Annotated class using @PushEndpoint found. Push will not work.

smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

28 Jul 2015, 21:23

It's best for you to use as documented (in user guide) and demonstrated in showcase examples.
Howard

PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome

Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 43 guests