Jakarta EE和MicroProfile演进趋势分析

上传人:I*** 文档编号:148923223 上传时间:2020-10-23 格式:PPTX 页数:50 大小:1.56MB
返回 下载 相关 举报
Jakarta EE和MicroProfile演进趋势分析_第1页
第1页 / 共50页
Jakarta EE和MicroProfile演进趋势分析_第2页
第2页 / 共50页
Jakarta EE和MicroProfile演进趋势分析_第3页
第3页 / 共50页
Jakarta EE和MicroProfile演进趋势分析_第4页
第4页 / 共50页
Jakarta EE和MicroProfile演进趋势分析_第5页
第5页 / 共50页
点击查看更多>>
资源描述

《Jakarta EE和MicroProfile演进趋势分析》由会员分享,可在线阅读,更多相关《Jakarta EE和MicroProfile演进趋势分析(50页珍藏版)》请在金锄头文库上搜索。

1、1,Jakarta EE 和 MicroProfile演进趋势分析,IT evolution,2,Agile ,16,Dependent RegisterRestClient RegisterProvider(UnknownUrlExceptionMapper.class) Path(/properties) public interface SystemClient GET Produces(MediaType.APPLICATION_JSON) public Properties getProperties() throws UnknownUrlException, ProcessingE

2、xception; ,io.openliberty.guides.inventory.client.SystemClient/mp-rest/url=http:/localhost:9080/system,CDI Contexts Dependency Injection,B,A,public class InventoryManager Inject private SystemClient systemClient; ,17,Equivalent to Spring Injection Autowired,20,JSON-B ,public class InventoryList priv

3、ate List systems; public InventoryList(List systems) this.systems = systems; public List getSystems() return systems; public int getTotal() return systems.size(); ,21,Handling 100s of collaborating and frequently evolving services requires new APIs,22,Eclipse MicroProfile,microprofile.io,3,2,MicroPr

4、ofile OpenAPI,A,B,openapi: 3.0.0 info: title: Inventory App description: App for storing JVM system properties of various hosts. license: name: Eclipse Public License - v 1.0 url: https:/www.eclipse.org/legal/epl-v10.html version: 1.0 servers: - url: http:/localhost:port description: Simple Open Lib

5、erty. variables: port: description: Server HTTP port. default: 9080 paths: /inventory/systems: get: summary: List inventory contents. description: Returns the currently stored host:properties pairs in the inventory. operationId: listContents responses: 200: description: host:properties pairs stored

6、in the inventory. content: application/json: schema: $ref:,http:/localhost:9080/openapi/ui,GET Produces(MediaType.APPLICATION_JSON) APIResponse( responseCode = 200, description = host:properties pairs stored in the inventory., content = Content( mediaType = application/json, schema = Schema( type =

7、SchemaType.OBJECT, implementation = InventoryList.class) Operation( summary = List inventory contents., description = Returns the stored host:properties pairs.) public InventoryList listContents() return manager.list(); ,MicroProfile JWT,A,B,GET RolesAllowed( admin, user ) Path(hostname) Produces(Me

8、diaType.APPLICATION_JSON) public Response getPropertiesForHost(PathParam(hostname) String hostname, Context HttpHeaders httpHeaders) ,22,MicroProfile Fault Tolerance,A,B,Fallback(fallbackMethod = fallbackForGet) public Properties get(String hostname) throws IOException return invUtils.getProperties(

9、hostname); ,23,A,MicroProfile Config,B,Inject ConfigProperty(name = io_openliberty_guides_inventory_inMaintenance) private Provider inMaintenance;,config_ordinal=100 io_openliberty_guides_inventory_inMaintenance=fals e, config_ordinal:150, io_openliberty_guides_inventory_inMaintenance:true ,24,Handl

10、ing 100s of collaborating services requires a strong operations focus,25,Eclipse MicroProfile,microprofile.io,26,MicroProfile Health,A,B,Health ApplicationScoped public class InventoryResource implements HealthCheck . public boolean isHealthy() . Override public HealthCheckResponse call() if (!isHea

11、lthy() return HealthCheckResponse.named(“InventoryResource”).withData().down().build(); return HealthCheckResponse.named(“InventoryResource”).withData().up().build(); ,27,MicroProfile Metrics,A,B,Timed(name = inventoryPropertiesRequestTime, absolute = true, description = Time needed to get the prope

12、rties of + a system from the given hostname) public Properties get(String hostname) return invUtils.getProperties(hostname); ,28,MicroProfile OpenTracing,A,B,Traced(value = true, operationName = InventoryManager.list) public InventoryList list() return new InventoryList(systems); ,JAX-RS methods are

13、 automatically traced by default,29,ow to get star,32,https:/openliberty.io/guides,Hhttps:/start.microprofile.ioted?,30,Meanwhile,2017 - 2018,3333,Jakarta EE vs Java EE,Compare and Contrast Content, Processes, Participants, Deliverables, etc,Think 2019 / Session 2138 / February 15, 2019 / 2019 IBM C

14、orporation,32,34,Roadmap,Moving material from Oracle to Eclipse Java EE 8 Specifications Java EE 8 APIs Java EE 8 RIs Java EE 8 TCKs,35,33,36,Java EE 8,Oracle GlassFish 5.0,Java EE 8,Jakarta EE 8,36,Sources, TCKs, Docs,We are getting closer to Jakarta EE .,Eclipse GlassFish 5.1,Eclipse GlassFish 5.2

15、,Jakarta EE 9,Eclipse GlassFish 5.X,Community-Driven Innovation with new specs!,29-JAN-19,37,Roadmap,Think 2019 / Session 2138 / February 15, 2019 / 2019 IBM Corporation,37,https:/www.eclipse.org/ee4j/status.php 20% - Project Proposed 40% - Project Accepted and Provisioned 60% - Initial Code Contribution to Eclipse 80% - Build / Test in Github and Jenkins 100% - Project has First Release!,*As of Feb 06, 2019,2.Several Compatible Implementations will be Jakarta EE 8 compliant using Jakarta EE 8 C

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > IT计算机/网络 > 云计算/并行计算

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号