users@glassfish.java.net

Re: Glassfish + TopLink Lazy Loading

From: Sahoo <Sahoo_at_Sun.COM>
Date: Thu, 13 Dec 2007 22:51:37 +0530

I know you do it, but question is where you do it? I asked you to call
size() in the EJB method as opposed to doing it in the web layer.

Thanks,
Sahoo
glassfish_at_javadesktop.org wrote:
> The strange thing is that I do It.
> And the exception is obtained when .size() method is called.
>
> My source code:
>
> Categories cat = categorieFacade.find(categoryId);
>
> Collection<Contents> contents = cat.getContentsCollection();
> contents.size();
>
> When I debug the source code before
> contents.size()
>
> the contents variable tooltip tell me:
> contents = (oracle.toplink.essentials.indirection.IndirectList) { IndirectList: not instantiated}
> [Message sent by forum member 'peppeme' (peppeme)]
>
> http://forums.java.net/jive/thread.jspa?messageID=249956
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>