How to use @PushEndpoint from jar-file

UI Components for JSF
Post Reply
balta3
Posts: 7
Joined: 20 Sep 2011, 23:57

30 Oct 2014, 11:55

Hi,

I'm using Primefaces 5.1 and Atmosphere 2.2.3 on Tomcat 8.0.14 and Primefaces Push is working great. But I want to move some parts of the application in external projects, so the classes will be in jar-Files. Sadly Primefaces Push / Atmosphere is not detecting any class anotated with @PushEndpoint in jar files. Is there any hidden configuration option to scan class files? Can I manually define endpoint classes? Setting the init-param org.atmosphere.cpr.packages makes no difference.

Does anybody got endpoint classes from jar files working?

Houdre
Posts: 12
Joined: 29 Apr 2013, 12:22

30 Oct 2014, 12:32

I wanted to do the same thing you're trying and i ran into problems.

I solved it by overlaying Java classes from the JAR into the WAR (with Maven, since we're using it to build our project). Ofc. don't forget to exclude the JAR from the WAR build pom.xml and adding the push configuration to the WAR's faces-config.xml.

Here is the topic i opened regarding the same issue:
http://forum.primefaces.org/viewtopic.php?f=10&t=39905

I hope you find it useful.

Regards.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 24 guests