Hey,

It is there as far as I know.  Just declare resource ref to url as in
tutorial you refer to.

Vladimir

On Thu, 12 Apr 2001, Peter Antman wrote:

> Hi,
> is there any support in JBoss yet to get access to an URL via JNDI (like
> the JavaMail support), as shown in the J2EE tutorial:
> 
>                try {
>                   context = new InitialContext();
>                   url = (URL)context.lookup("java:comp/env/url/MyURL");  
>                   connection = (HttpURLConnection)url.openConnection();
>                   responseCode = connection.getResponseCode();
>                } catch (Exception ex) {
>                    throw new EJBException(ex.getMessage());
>                }
> 
> Have I missed it, or is it not there?
> 
> Should we not have it?
> 
> Anyone hade any thought about this? It does not seem that hard to
> implement.
> 
> //Peter
> 


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to