[jboss-jira] [JBoss JIRA] Commented: (JBAS-9303) @Resource(lookup="java:module/ModuleName") doesnt work

jaikiran pai (JIRA) jira-events at lists.jboss.org
Fri Apr 15 12:02:33 EDT 2011


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

jaikiran pai commented on JBAS-9303:
------------------------------------

Yeah, including those spec jars in the application packaging will lead to classloading issue and can cause problems like the one you saw.

Closing this JIRA.


>  @Resource(lookup="java:module/ModuleName") doesnt work
> -------------------------------------------------------
>
>                 Key: JBAS-9303
>                 URL: https://issues.jboss.org/browse/JBAS-9303
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: EJB
>    Affects Versions: 6.0.0.Final
>            Reporter: Felix Ullrich
>            Assignee: Carlo de Wolf
>
> I cant inject the current application- or modulename with the resource-annotation in an EJB
> This doesnt work:
> {code:}
> @Resource(lookup="java:module/ModuleName")
> private String moduleName;
>       
> @Resource(lookup="java:app/AppName")
> private String appName;
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list