Currently i am calling EJB 3
Session Beans from JSF 2
. However, i am not sure if i should be passing JSF managed beans into EJB?
Assuming that whatever on the form (and thus the backing bean) was everything i needed to persist through the EJB layer, should i clone out all the attributes by hand into a transfer object, or is there a better way of doing this?
The backing bean though POJO
is heavily annotated with JSF lifecycle tags (Such as @ManagedBean
) and resides in the Web project
while the EJBs reside separately in the EJB project
.