Hi Brian,

Certainly on of the options I can see is to use one of the standard
resource manager connection factory types URL. See spec EJB 14.4.1.3
so for you stateless bean declare resource-ref like this:

<resource-ref>
     <res-ref-name>....url location...</res-ref-name>
     <res-type>java.net.URL</res-type>
     <res-auth>Container</res-auth>
</resource-ref>

And container will make URL object pointing to url location and bind it to
that
env namespace for that container/classloader.

All you have to do then is standard JNDI lookup to get your URL and
URL.openConection()
or whatever.

Cheers,
Vladimir



Brian Elliott wrote:

> I am doing some XML to device markup translations using XSLT. Does
> anybody have any recommendations on how I should retrieve some XSLT
> files in a stateless session bean? I could read them in my servlet, and
> pass them in as streams via parameters, but I want my bean to be
> responsible for determining the stylesheet based on the device type.
>
> Should I just store the file name in an environment setting in the
> deployment descriptor file? And then try doing a read on the file name?
> Or should I somehow store the XSLT contents as a string in JNDI? What
> would the code look like in this case?
>
> Any advice would be appreciated,
>
> Brian
> --
> Brian Elliott
> Unplugged Systems
> [EMAIL PROTECTED]
> http://www.unpluggedsystems.com
>
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> List Help?:          [EMAIL PROTECTED]



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to