From: Konstantin P. <kpr...@ya...> - 2002-12-27 09:29:02
|
--- Gavin King <Gav...@ex...> 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 |