[arquillian-issues] [JBoss JIRA] Issue Comment Edited: (ARQ-566) Support injection of MSC Services in AS7 Container

Ivo Studensky (JIRA) jira-events at lists.jboss.org
Wed Aug 31 09:20:26 EDT 2011


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

Ivo Studensky edited comment on ARQ-566 at 8/31/11 9:18 AM:
------------------------------------------------------------

Excellent! The following works for me:

{code:java}
@Inject ServiceContainer container;

@Test
public void should() {
  ServiceController<?> controller = container.getService(WebSubsystemServices.JBOSS_WEB);
  Service<WebServer> service = (Service<WebServer>) controller.getService();
  WebServer webServer = service.getValue();
  webServer.addConnector(...);
  ...
}
{code}

Thanks a lot!

      was (Author: istudens):
    Excellent! The following works for me:

{code:java}
Inject ServiceContainer container;

@Test
public void should() {
  ServiceController<?> controller = container.getService(WebSubsystemServices.JBOSS_WEB);
  Service<WebServer> service = (Service<WebServer>) controller.getService();
  WebServer webServer = service.getValue();
  webServer.addConnector(...);
  ...
}
{code}

Thanks a lot!
  
> Support injection of MSC Services in AS7 Container
> --------------------------------------------------
>
>                 Key: ARQ-566
>                 URL: https://issues.jboss.org/browse/ARQ-566
>             Project: Arquillian
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: JBoss Containers
>            Reporter: Ivo Studensky
>
> It would be nice to have a support for the injection of a MSC Service into tests powered by Arquillian. For example, we need to inject the WebServer service of the JBossWeb module into a test and call the getConnector method directly on it. One possibility is to use a Management API layer, but this is targeted for end users and so does not expect to include all methods of MSC services. Hence, it is needed for QE tests to have a way to get the service itself and be able to play with it directly.

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

        


More information about the arquillian-issues mailing list