Hello Mark/Romain,
Thanks for the tips!
I managed to launch the project with a custom Main, but I still need to
provide a custom server.xml in order to use the Nio2 connector from Tomcat.
I suppose the custom Main should look like
try (final Meecrowave meecrowave = new Meecrowave()) {
meecrowave.getConfiguration().setServerXml("server.xml");
meecrowave.bake().await();
}
but I don't know for sure where the server.xml file should be placed (it
doesn't seem to work when it is in the resources folder, in WEB-INF or in
the same package as the class that implements Main).
As for a good quickstart, I suppose that a HelloWorld with Maven, a custom
Main, and a dummy/sample server.xml would be very explanatory and serve
most use cases.
Additionally, the configuration sample from
http://openwebbeans.apache.org/meecrowave/meecrowave-core/configuration.html
new Meecrowave(new Builder() .randomHttpPort() .setTomcatScanning(false)
.setTomcatAutoSetup(false) .setRealm(new JAASRealm()) .user("admin",
"secret")) .bake() .await();
doesn't even compile, because the setters (using version 0.3.0) don't
return a Builder reference.
On Thu, Apr 6, 2017 at 2:59 AM, Romain Manni-Bucau <[email protected]>
wrote:
> Hi Danilo,
>
> basically it is a plain tomcat/jaxrs/cdi API in term of java code.
>
> In term of maven setup https://github.com/rmannibucau/myfolder/ uses it
> and angular (versions surely need to be adjusted to 0.3.0). Another nice
> thing of this sample is it integrates with meecrowave CLI options.
>
> You can also use a plain custom Main (http://openwebbeans.apache.
> org/meecrowave/meecrowave-core/configuration.html) or the existing one
> directly (http://openwebbeans.apache.org/meecrowave/meecrowave-
> core/cli.html)
>
> what would be a good quickstart for you? an hello world with meecrowave
> plugin setup? with a main?
>
>
>
> Romain Manni-Bucau
> @rmannibucau <https://twitter.com/rmannibucau> | Blog
> <https://blog-rmannibucau.rhcloud.com> | Old Blog
> <http://rmannibucau.wordpress.com> | Github
> <https://github.com/rmannibucau> | LinkedIn
> <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
> <https://javaeefactory-rmannibucau.rhcloud.com>
>
> 2017-04-06 5:08 GMT+02:00 Mark Struberg <[email protected]>:
>
>> Hi Danilo!
>>
>> Seems the start is still a bit rockier than it is supposed to be :/
>>
>> What I did was as easy as just creating a plain WAR project in maven and
>> use
>>
>> $> mvn meecrowave:run
>> to start it up
>>
>> Use
>> $> mvndebug meecrowave:run
>> to debug your project.
>>
>> LieGrue,
>> strub
>>
>>
>> > Am 06.04.2017 um 00:05 schrieb Danilo Cominotti Marques <
>> [email protected]>:
>> >
>> > Hello there,
>> >
>> > Could someone please add a Maven quickstart to Meecrowave's website? No
>> matter what I did, I couldn't get a Meecrowave sample up and running with
>> Maven. A code sample in the repository would be great, too.
>> >
>> > Regards,
>> >
>> > Danilo
>> >
>>
>>
>