[jboss-jira] [JBoss JIRA] (AS7-2744) Injection resources of type URL by @Resource annotation

Ondřej Chaloupka (JIRA) jira-events at lists.jboss.org
Wed Jan 25 11:08:50 EST 2012


    [ https://issues.jboss.org/browse/AS7-2744?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12661931#comment-12661931 ] 

Ondřej Chaloupka commented on AS7-2744:
---------------------------------------

Well, I suppose that this not required by specification. It was functionality which works in EAP5 and this jira was created during test migration from former ejb3 testsuite. Whether it's not appropriate it can be closed and rejected.
                
> Injection resources of type URL by @Resource annotation
> -------------------------------------------------------
>
>                 Key: AS7-2744
>                 URL: https://issues.jboss.org/browse/AS7-2744
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: EJB
>            Reporter: Ondřej Chaloupka
>            Assignee: Stuart Douglas
>              Labels: eap6_prd_req
>             Fix For: 7.1.0.Final
>
>
> 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:
> {code}
> @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;
> }
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the jboss-jira mailing list