You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Byte Schubser (JIRA)" <ji...@apache.org> on 2015/06/17 14:24:00 UTC
[jira] [Commented] (MEAR-181) Adding ejb-ref in application.xml
[ https://issues.apache.org/jira/browse/MEAR-181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14589700#comment-14589700 ]
Byte Schubser commented on MEAR-181:
------------------------------------
Tried the feature and it works perfectly. Great!
> Adding ejb-ref in application.xml
> ---------------------------------
>
> Key: MEAR-181
> URL: https://issues.apache.org/jira/browse/MEAR-181
> Project: Maven Ear Plugin
> Issue Type: New Feature
> Affects Versions: 2.9
> Reporter: Byte Schubser
> Assignee: Karl Heinz Marbaise
> Fix For: 2.10
>
>
> It's great to be capable of generating an application.xml when building an ear. But I do have application local jndi names that should be assigned to the correct one during building the application. There are technical components that don't know their destination at build time. But when packaging the ear the destination is known. So I want to redirect application local names.
> My Scenario:
> I want to prevent the deployment when a required service is not available in the required version in a multiple versions per ear scenario. (The jndi name of the required service depends on the version number of the api that is used within the ear)
> e.g. java:app/serviceXYZ-> java:global/ear/module/serviceXYZ
> <ejb-ref>
> <ejb-ref-name>java:app/serviceXYZ</ejb-ref-name>
> <ejb-ref-type>Session</ejb-ref-type>
> <lookup-name>java:global/ear/module/serviceXYZ</lookup-name>
> </ejb-ref>
> I'd really appreciate to be able to add ejb-refs to when generating an application.xml
> Thanks
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)