I have a job, I did not go with any of my ideas above, I just added the dependencies needed to access the atmosphere API from the EJB level.
MANIFEST.MF for ejb.jar:
Manifest-Version: 1.0 Class-Path: atmosphere-runtime-1.0.1.jar atmosphere-compat-jbossweb-1.0.1.jar atmosphere-compat-tomcat7-1.0.1.jar atmosphere-compat-tomcat-1.0.1.jar
in pom.xml for ejb.jar and application.ear
<dependency> <groupId>org.atmosphere</groupId> <artifactId>atmosphere-runtime</artifactId> <version>1.0.1</version> <scope>provided</scope> </dependency>
Then just copied two packages from source sources in ejb.jar
org.primefaces.push org.primefaces.json
because adding feathers to pom.xml in ejb.jar caused
Missing artifact org.primefaces:primefaces
Aksel Willgert Oct 21 2018-12-12T00: 00Z
source share