[
https://issues.jboss.org/browse/RF-11110?page=com.atlassian.jira.plugin.s...
]
Brian Leathem commented on RF-11110:
------------------------------------
Addressing the event API:
In CDI 1.0 (today), the @Observes method will not have access to the qualifiers. This has
been address with CDI 1.1 (Future). See: CDI-36
The workaround is to create a _PushEvent_ class, that will contain the payload, as well as
the topic metadata.
So the API would look like:
{code}
@Inject Event<PushEvent> pushEvents;
....
pushEvents.fire(new PushEvent(myPayload, myTopic));
{code}
When CDI 1.1 becomes available, we can adopt a more concise annotation driven approach as
originally proposed.
Push and CDI Events integration
-------------------------------
Key: RF-11110
URL:
https://issues.jboss.org/browse/RF-11110
Project: RichFaces
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: component-push/poll
Reporter: Brian Leathem
Assignee: Lukáš Fryč
Priority: Critical
Fix For: 4.1.0.Milestone3
Original Estimate: 6 hours
Remaining Estimate: 6 hours
I would really like to see ajax push work with CDI events directly, without any
requirement for JMS.
Ideally we would leverage the work done in the Errai project.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira