--- Gavin King <[EMAIL PROTECTED]> wrote:
> Cool. Looks good - I will add a link from the
> Hibernate Wiki.
> 
> One comment:
> 
> > _sessionFactory = (
> cirrus.hibernate.SessionFactory ) 
> > PortableRemoteObject.narrow( ic.lookup(
> "java:/hibernate/Samples" ), 
> > cirrus.hibernate.SessionFactory.class );
> 
> 
> It shouldn't be necessary to use
> PortableRemoteObject here, right?
> The SesionFactory is always a local object, so we
> can just typecast.

IIRC, everything you get from JNDI shall be narrowed
(I read this somewhere). Ant this demo shall
demonstrate ghood practices :)

regards,

=====
Konstantin Priblouda ( ko5tik )    Freelance Software developer
< http://www.pribluda.de > < play java games -> http://www.yook.de >
< render charts online -> http://www.pribluda.de/povray/ >

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to