That's the message that JBoss / Tomcat gives me as I try to run a jsp that accesses 2
entity beans . I know it's not a "best practice" but after a lot of thought i decided
this is best for what i'm curently trying to do .
I initially thought the error was due to the fact that i'm using JSP's but after a
few google searches i saw some guys writting session ejb's having the same problems .
here is a bit of code :
| ...
| Object ref = jndiContext.lookup("HolderObjectLocalHome");
| HolderObjectLocalHome hohome =
(HolderObjectLocalHome)PortableRemoteObject.narrow(ref , HolderObjectLocalHome.class);
| Collection hoz = hohome.findAll(); // code works here
|
| Iterator i = hoz .iterator(); // code works here
|
| while ( i.hasNext() ) {
| HolderObjectLocal hol = (HolderObjectLocal)i.next();
|
| Collection objz = hol.getObjects(); // code works here
| Iterator ii = objz.iterator(); // code stops working here
| ...
|
I find it wierd how it only complains when i try to access the second collection .
Any ideeas ?
thanks
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3823281#3823281
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3823281
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user