[arquillian-issues] [JBoss JIRA] Issue Comment Edited: (ARQ-293) Support container targeted deployments

Dan Allen (JIRA) jira-events at lists.jboss.org
Wed Sep 15 02:32:28 EDT 2010


    [ https://jira.jboss.org/browse/ARQ-293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12550983#action_12550983 ] 

Dan Allen edited comment on ARQ-293 at 9/15/10 2:31 AM:
--------------------------------------------------------

Note my recommendation here: https://community.jboss.org/message/561762#561762

One way to accomplish this would be to inject a container identifier into the @Deployment method. Another would be to allow multiple @Deployment methods, each annotated with an execution environment qualifier (and perhaps one without a qualifier that's the fallback). Arquillian would then select the appropriate @Deployment method according to which container I am targeting. (See Proposal: Filtering out tests not compatible with target container => http://community.jboss.org/thread/156500.
 
For example:
 
@Deployment @JBossAS6Container
public static Archive<?> createDeploymentForJBossAS()
{
   // prepare for JBoss AS 6
}
 
@Deployment @GlassFishV3Container
public static Archive<?> createDeploymentForGlassFish()
{
   // prepare for GlassFish V3
}

      was (Author: dan.j.allen):
    Note my recommendation here: https://community.jboss.org/message/561762#561762

One way to accomplish this would be to inject a container identifier into the @Deployment method. Another would be to allow multiple @Deployment methods, each annotated with an execution environment qualifier (and perhaps one without a qualifier that's the fallback). Arquillian would then select the appropriate @Deployment method according to which container I am targeting. (See Proposal: Filtering out tests not compatible with target container (http://community.jboss.org/thread/156500)).
 
For example:
 
@Deployment @JBossAS6Container
public static Archive<?> createDeploymentForJBossAS()
{
   // prepare for JBoss AS 6
}
 
@Deployment @GlassFishV3Container
public static Archive<?> createDeploymentForGlassFish()
{
   // prepare for GlassFish V3
}
  
> Support container targeted deployments
> --------------------------------------
>
>                 Key: ARQ-293
>                 URL: https://jira.jboss.org/browse/ARQ-293
>             Project: Arquillian
>          Issue Type: Feature Request
>            Reporter: Aslak Knutsen
>             Fix For: 1.0.0.CR1
>
>
> in some cases it is useful to be able to define different @Deployments pr target container.
> e.g. Container X needs a different defined deployment descriptor to work etc..

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the arquillian-issues mailing list