[jboss-jira] [JBoss JIRA] Reopened: (EJBTHREE-989) Can't inject resources of type URL
Andrew Lee Rubinger (JIRA)
jira-events at lists.jboss.org
Fri Nov 21 02:13:36 EST 2008
[ https://jira.jboss.org/jira/browse/EJBTHREE-989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Lee Rubinger reopened EJBTHREE-989:
------------------------------------------
How is this:
@Resource(name="url3", type=java.net.URL.class, mappedName="http://localhost/url3")
..valid?
Results in:
+ url3 [link>http://localhost/url3]
...in the ENC.
> Can't inject resources of type URL
> ----------------------------------
>
> Key: EJBTHREE-989
> URL: https://jira.jboss.org/jira/browse/EJBTHREE-989
> Project: EJB 3.0
> Issue Type: Bug
> Affects Versions: AS 4.2.0 GA
> Reporter: Carlo de Wolf
> Assignee: Carlo de Wolf
> Fix For: AS 5.0.0.Beta3
>
>
> All constructs leading into injection of an URL do not work.
> @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;
>
> // coming in via res-url
> @Resource(name="url2")
> private URL url2;
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list