[jboss-user] [EJB 3.0] - Re: How to lazily load collections?

ALRubinger do-not-reply at jboss.com
Mon Oct 16 17:02:24 EDT 2006

        at org.hibernate.collection.PersistentBag.toArray(PersistentBag.java:254)
  |         at java.util.ArrayList.addAll(ArrayList.java:473)
  |         at com.ati.raa.bl.EntityLogicBean.getAlertsFromEntity(EntityLogicBean.java:144)

...is your JSF stuff accessing your EJB directly?!  You should be obtaining your EJBs via a proxy object, looked up through JNDI...please post your view code?  Was expecting something like:

at Proxy$x.getAlertsFromEntity()

VO/TO = Value Object / Transfer Object.  Serializable POJOs without any session-specific information (read: Hibernate) associated with them, intended for holding data for safe shipping between layers.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978637#3978637

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978637

More information about the jboss-user mailing list