Cool!

Can you add public static final String constants in @EnableServices so
fat fingered users can just directly reference the correct names?

On Thu, Feb 12, 2015 at 3:33 PM, Romain Manni-Bucau
<[email protected]> wrote:
> Hi guys
>
> took few time to play with app composer and see how to go further - I
> should have sent a mail earlier but I guess you know what it is ;)
>
> in the topic I want to cover since weeks (months now) there was a
> maven plugin integration
>
> I added today 2 goals in a new plugin - still experimental so
> feedbacks welcomed:
>
> - applicationcomposer:run -> nothing fancy but running current module
> with a configured application class
> - applicationcomposer:zip -> create a zip ready to deploy (only unix
> ATM, if anyone wants to add windws script it would be awesome)
>
> Here some more concrete found around it:
>
> 1) create a maven module
> 2) add this plugin:
>
>       <plugin>
>         <groupId>org.apache.openejb.maven</groupId>
>         <artifactId>applicationcomposer-maven-plugin</artifactId>
>         <version>5.0.0-SNAPSHOT</version>
>         <configuration>
>           <application>org.superbiz.MyApp</application>
>         </configuration>
>       </plugin>
>
> 3) define MyApp as:
>
> @Default // I'm too lazy to do anything else ;)
> @Classes(context = "/")
> @EnableServices("jaxrs")
> public class MyApp {
> }
>
> 4) define some app business (at least a jaxrs resource)
> 5) mvn compile applicationcomposer:run -> you get your service deployed
> 6) mvn applicationcomposer:zip ->
> target/<project>-applicationcomposer.zip is created
> 7) cd target && unzip <project>-applicationcomposer.zip && cd
> <project>-applicationcomposer && ./bin/applicationcomposer -> your
> server is started :)
>
> Nice thing compared to EJBContainer is you can fully control the app
> you deploy and the container programmatically
>
>
>
> Romain Manni-Bucau
> @rmannibucau
> http://www.tomitribe.com
> http://rmannibucau.wordpress.com
> https://github.com/rmannibucau

Reply via email to