Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8713587
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:22:38+00:00 2026-06-13T05:22:38+00:00

Im using Primefaces Push (the new thing in 3.4) together with jsf2 and ejb3.

  • 0

Im using Primefaces Push (the new thing in 3.4) together with jsf2 and ejb3. Seperate .war and ejb.jar

Now I need to trigger a prime-push event from the ejb tier. What is a clean way to do this? Some options I can think of:

  1. ManagedBean pass down a callback interface when invoking the ejb method
  2. A JMS messagelistener in the web-tier and ejb to send messages.
  3. Managed bean to analyze returned data from ejb method invocation and do push if conditions are met.

Basicly the question is where to put below code?

PushContext pushContext = PushContextFactory.getDefault().getPushContext();
pushContext.push("/notifications", new FacesMessage(summary, detail));  
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T05:22:39+00:00Added an answer on June 13, 2026 at 5:22 am

    What i’ve got working, I didnt go with any of my ideas above, just added dependencies needed to access atmosphere APIs from EJB-tier.

    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 simply copied two packages from primefaces sources into ejb.jar

    org.primefaces.push
    org.primefaces.json
    

    because adding primefaces in pom.xml for ejb.jar caused

    Missing artifact org.primefaces:primefaces
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using primefaces datatable with clickable rows and I need to find way
I'm using primefaces 3.1, and I want to use the PrimeFaces Push. I want
I am using Primefaces and JSF2 . All my .xhtml files are dumped in
I am using primefaces with JSF. I need a input component that allows users
I have correctly set up a Push server using PrimeFaces p:push component (using a
I'm using Primefaces 3.3.1 and have a <p:selectOneMenu> where I'm selecting a new value.
I am using Primefaces-2.1 now, I try to integrate Richfaces-3.3.3 in my application in
I'm using PrimeFaces 3.2 and I should store a file on filesystem. Now, I
I am using PrimeFaces <p:dataTable> with pagination. I use <h:selectBooleancheckbox> with a Map property
I'm using Primefaces 3.3.1 and have question. I have p:commandButton inside p:column of p:dataTable.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.