On Thu, Nov 25, 2004 at 07:03:15AM -0500, Mark Lybarger wrote:
> David Blevins wrote:
> >
> >The compliant way is to do this:
> >
> >
> >   <resource-ref>
> >       <res-ref-name>my/favorite/datasource/foo</res-ref-name>
> >       <res-type>javax.sql.DataSource</res-type>
> >       <res-auth>Container</res-auth>
> >   </resource-ref>
> >
> >
> > 
> >
> 
> i'm just curious why you imply that a bean can't do soemthing like?:
> 
> Properties props = new Properties();
> // put jndi class name.
> // put ip address.
> Context remoteContext = new InitialContext( props);
> 

Didn't say it wouldn't work, it just isn't the spec defined way an EJB
should get resources from the server and therefore may not be
portable.

-David

Reply via email to