Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-2744

Injection resources of type URL by @Resource annotation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • 7.1.0.Final
    • None
    • EJB

    Description

      The binding resources of type URL by @Resource annotations leads to not deployable application.
      The code of the prior test which tests this functionality could be seen on:
      http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree989/ResUrlCheckerBean.java

      The problematic injections are following:

      @Stateless
      @Remote(ResUrlChecker.class)
      @Resources({
      @Resource(name="url3", type=java.net.URL.class, mappedName="http://localhost/url3")
      })
      public class ResUrlCheckerBean implements ResUrlChecker
      {
      @Resource(mappedName="http://localhost")
      private URL url1;
      
      }
      

      Attachments

        Issue Links

          Activity

            People

              sdouglas1@redhat.com Stuart Douglas
              ochaloup@redhat.com Ondrej Chaloupka (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: