voyent
PortableRenderer and MDBs  XML
Forum Index -> Development Build Feedback
Author Message
axlesoft


Joined: 06/Jan/2009 00:00:00
Messages: 189
Offline


Has anyone managed to successfully get the portable renderer working with a message driven bean.

I have the following code :

Code:
 
     @Override
     public void onMessage(Message message) {
         System.out.println("******** NEW ORDER RECEIVED ********");
         PortableRenderer pr = PushRenderer.getPortableRenderer();
         if (pr != null) {
             pr.render("WorkForToday");
         } else {
             System.err.println("Portable Renderer was null");
         }
     }
 


I am unable to get this to work as the getPortableRenderer throws a NPE.

Code:
 Caused by: java.lang.NullPointerException
         at org.icefaces.application.PushRenderer.getPortableRenderer(PushRenderer.java:157)
         at com.flosoftware.web.mdb.NewMessageBean.onMessage(NewMessageBean.java:30)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 


I know this subject has been brought up before but I haven't seen any progress on it.


-Lee
swarne27

Joined: 07/Jan/2012 12:35:51
Messages: 2
Offline


Have you found any solution to this problem?. I'm also facing the same issue
 
Forum Index -> Development Build Feedback
Go to:   
Powered by JForum 2.1.7ice © JForum Team