[jboss-dev-forums] [JBoss AS7 Development] - Re: Embedded AS

Kabir Khan do-not-reply at jboss.com
Wed Nov 17 05:26:52 EST 2010


Kabir Khan [http://community.jboss.org/people/kabir.khan%40jboss.com] created the discussion

"Re: Embedded AS"

To view the discussion, visit: http://community.jboss.org/message/571537#571537

--------------------------------------------------------------
I think instead of the names picking out the relevant modules like I have

@TestSetup(
    implClass="org.jboss.test.as.modular.demos.impl.DemosTestImpl",
    testModule="test.demos",
    tcclModule="test.demos.tccl",
    systemPropertyProvider=DemoSystemPropertyProvider.class,
    modules= {
        @ModuleDef(
                name="test.demos",
                packages={@PackageResource(directory="${demo.impl.classes}", packages={"org.jboss.test.as.modular.demos.impl"})},
                jars=@JarResource (directory="${project.root}/demos/target", jar="jboss-as-demos.*(?<!sources)\\.jar", expand=true),
                dependencies= {@Dependency("javaee.api"), @Dependency("org.hornetq"), @Dependency("org.jboss.as.messaging"), @Dependency("javax.jms.api")}),
        @ModuleDef (
                name="test.demos.tccl",
                dependencies= {@Dependency("org.jboss.logging"), @Dependency("test.demos")})
        }
)

They should be defined inline instead

@TestSetup(
    implClass="org.jboss.test.as.modular.demos.impl.DemosTestImpl",
    testModule=@ModuleDef(
                name="test.demos",
                packages={@PackageResource(directory="${demo.impl.classes}", packages={"org.jboss.test.as.modular.demos.impl"})},
                jars=@JarResource (directory="${project.root}/demos/target", jar="jboss-as-demos.*(?<!sources)\\.jar", expand=true),
                dependencies= {@Dependency("javaee.api"), @Dependency("org.hornetq"), @Dependency("org.jboss.as.messaging"),
    tcclModule=@ModuleDef (
                name="test.demos.tccl",
                dependencies= {@Dependency("org.jboss.logging"), @Dependency("test.demos")})
        },
    systemPropertyProvider=DemoSystemPropertyProvider.class,
    modules= {}
)

modules then can be used for the unusual case where people need to define more modules
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/571537#571537]

Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20101117/b35fc02f/attachment.html 


More information about the jboss-dev-forums mailing list