// MicroprofileRestApplication.java
@ApplicationPath("/")
@ApplicationScoped
public class MicroprofileRestApplication extends Application {
}
// HelloController.java
@Path("/")
@Singleton
public class HelloController {
@GET
public String sayHello() {
return "Hello App Service";
}
}
--
You received this message because you are subscribed to the Google Groups "Eclipse MicroProfile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to microprofile...@googlegroups.com.
To post to this group, send email to microp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/microprofile/c560f928-0984-43e1-98d7-2c37df9467a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
This totally should work on Thorntail and I've done this many times without an issue. Not sure if the Application class being @ApplicationScoped or the resource class being @Singleton makes a difference, but I'll check.LT
pá 26. 4. 2019 v 9:47 odesílatel <bruno...@gmail.com> napsal:
Hi all,--While playing with latest version of MP (2.1) with Payara and Thorntail projects created from start.microprofile.io, I found that the code below works on Payara, but doesn't on Thorntail:It is unclear whether this *should* (bug on Thorntail) or *shouldn't* work (Payara not following spec, if there is anything stating this behavior).Would appreciate expert help on this one.// MicroprofileRestApplication.java@ApplicationPath("/")
@ApplicationScoped
public class MicroprofileRestApplication extends Application {
}// HelloController.java@Path("/")
@Singleton
public class HelloController {
@GET
public String sayHello() {
return "Hello App Service";
}
}
You received this message because you are subscribed to the Google Groups "Eclipse MicroProfile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to microp...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to microprofile...@googlegroups.com.
To post to this group, send email to microp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/microprofile/426a4b01-de48-4834-871f-57889933d547%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to microprofile...@googlegroups.com.
To post to this group, send email to microp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/microprofile/426a4b01-de48-4834-871f-57889933d547%40googlegroups.com.
Here's a tiny application that should correspond to what you describe: https://github.com/Ladicek/thorntail-tinies/tree/test/javaee/jaxrs I ran `mvn clean package` to build a Thorntail uberjar, then `java -jar target/javaee-jaxrs-thorntail.jar` to run it, and `http localhost:8080` to check if it works. Can't see a problem.Do you have your example app somewhere?Thanks,LT
pá 26. 4. 2019 v 10:44 odesílatel <bruno...@gmail.com> napsal:
To unsubscribe from this group and stop receiving emails from it, send an email to microprofile...@googlegroups.com.
To post to this group, send email to microp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/microprofile/247d2d33-5a86-4bfd-b6a5-c8f1c1928c37%40googlegroups.com.
This is a known bug on Undertow: https://jira.jboss.org/projects/RESTEASY/issues/RESTEASY-2198?filter=allopenissues
To unsubscribe from this group and stop receiving emails from it, send an email to microprofile...@googlegroups.com.
To post to this group, send email to microp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/microprofile/247d2d33-5a86-4bfd-b6a5-c8f1c1928c37%40googlegroups.com.