JSF EJB communication

15 views
Skip to first unread message

dharmendra sahoo

unread,
Nov 2, 2009, 7:08:55 AM11/2/09
to bo...@googlegroups.com
Hi,
   I want to do a JSF-EJB communication in which i want to use the ejb for managed bean purpose.Can anyone have idea, please help me in this area ?
  

Thanks
-Dharmendra

Raghavan.30May1981_GMail

unread,
Nov 2, 2009, 7:11:56 AM11/2/09
to bo...@googlegroups.com
Its been years I worked in JSF. Still if my memory serves me right, the Managed bean in JSF does NOT mandatorily be an EJB. I guess most probably it is of a POJO type. Is there any specific resaon for going with EJB as a Managed Bean Dharmendra?

The reason being, when an EJB is involved all the protocol and nuances should be in place invoking the EJB Container.

Cheers,
Raghavan alias Saravanan M.
http://groups.google.com/group/S_H_a_D_E

"We could never learn to be brave and patient, if there were only joy in the world". - Helen Keller

Chandru

unread,
Nov 2, 2009, 7:15:49 AM11/2/09
to bo...@googlegroups.com
Him

Java EE 6 should allow you to use EJBs as Managed Beans directly.

However, you can used @Ejb to inject an EJB into a dummy managed bean.  And then you can use #{dummyBean.ejb.property_or_method} to access EJB's properties/method in EL expressions.

dharmendra sahoo

unread,
Nov 2, 2009, 7:22:13 AM11/2/09
to bo...@googlegroups.com
No special reason.But i don't know how to call the method which returning a list  to my JSF page.
just like:
<rich:dataTable width="483" id="carList" rows="4" columnClasses="col"
            value="#{addressEJB.list}" var="category">
           
        </rich:dataTable>

and the AddressEJB is the EJB where I have the method to return list.


On Mon, Nov 2, 2009 at 5:41 PM, Raghavan.30May1981_GMail <raghavan....@gmail.com> wrote:



--
Thanks
-Dharmendra
Reply all
Reply to author
Forward
0 new messages