Microprofile
Microprofile is currently built on minimum footprint technology statck that includes JAX-RS, CDI and JSONP. More capabilities will be added going foward to build a more robust Microservices platform.
its current release is 1.2 is based on Eclipse Foundation under Apache 2.0 license
Apache TomEE Microprofile
Apache TomEE is product from Tomitribe which is one of the vendor contributing towards Microprofile project.
@ApplicationScoped
@Produces({MediaType.APPLICATION_JSON})
@Path("/expenses")
public class ExpenseEndpoint {
private Map<String, List<Expense>> expenses;
@GET
@Path("{customerId}")
public List<Expense> getExpenses(@PathParam("customerId") String customerId) throws Exception {
expenses = loadExpenses();
return expenses.get(customerId);
}
...
....
<dependencies>
<dependency>
<groupId>org.apache.tomee</groupId>
<artifactId>javaee-api</artifactId>
<version>7.0</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.8.7</version>
</dependency>
</dependencies>
<build>
<finalName>tomeeweb</finalName>
<plugins>
...
<plugin>
<groupId>org.apache.tomee.maven</groupId>
<artifactId>tomee-maven-plugin</artifactId>
<version>7.0.1</version>
<configuration>
<tomeeClassifier>webprofile</tomeeClassifier>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
</plugin>
....
mvn package
java -jar target\<buildname>-exe.jar
Congratulations @namoo4u! You received a personal award!
Click here to view your Board
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Congratulations @namoo4u! You received a personal award!
You can view your badges on your Steem Board and compare to others on the Steem Ranking
Vote for @Steemitboard as a witness to get one more award and increased upvotes!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit