Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-7593

Injection resources of type URL by @Resource annotation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • EAP No Release
    • EAP 6.0.0 DR 7
    • EJB
    • Because of inconsistency of this feature against design of AS7 - rejected.
    • NEW

      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;
      
      }
      

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

              Created:
              Updated:
              Resolved: