Luis Arce Martinez created IGNITE-12518: -------------------------------------------
Summary: rest-http module (Added JSF,jndi for jdbc/ignite), please validate and include in a ignite version if is possible Key: IGNITE-12518 URL: https://issues.apache.org/jira/browse/IGNITE-12518 Project: Ignite Issue Type: Improvement Components: rest Affects Versions: 2.7.6 Environment: I test in Windows 10 pro x64, Acer Predator Helios 300, 16GB Ram. Linux Fedora 27 (vpsserver.com), 8GB Ram. Reporter: Luis Arce Martinez Attachments: GridJettyRestHandler.java, GridJettyRestProtocol.java Hi community, I modified the Java Classes: GridJettyRestHandler and GridJettyRestProtocol It's including support for JSF WebPages, auto load JNDI for JDBC/Ignite, Tunning for Thread of Jetty Embedded & support for context root page (if exists /ignite context is set for rest). Please remove old libraries of Jetty. The list of depencies are the next: commons-dbcp2-2.7.0.jar commons-lang-2.6.jar commons-pool2-2.8.0.jar el-ri-1.0.jar *ignite-rest-http-2.7.6.jar must be Modified with the classes GridJettyRestHandler and GridJettyRestProtocol)* ignite-web-2.7.6.jar jackson-annotations-2.9.6.jar jackson-core-2.9.6.jar jackson-databind-2.9.6.jar javax.el-api-3.0.1-b06.jar javax.servlet-api-4.0.1.jar jboss-jsf-api_2.2_spec-2.2.14.jar jetty-continuation-9.4.22.v20191022.jar jetty-http-9.4.22.v20191022.jar jetty-io-9.4.22.v20191022.jar jetty-jndi-9.4.22.v20191022.jar jetty-plus-9.4.22.v20191022.jar jetty-security-9.4.22.v20191022.jar jetty-server-9.4.22.v20191022.jar jetty-servlet-9.4.22.v20191022.jar jetty-util-9.4.22.v20191022.jar jetty-webapp-9.4.22.v20191022.jar jetty-xml-9.4.22.v20191022.jar jsf-api-2.2.19.jar jsf-impl-2.2.19.jar jsp-api-2.2.1-b03.jar log4j-1.2.17.jar slf4j-api-1.7.7.jar slf4j-log4j12-1.7.7.jar tomcat-servlet-api-9.0.10.jar Inside of the web.xml in the webpage is need add the next lines: <resource-ref> <description>Ignite DataSource Reference</description> <res-ref-name>jdbc/ignite</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> </resource-ref> <listener> <listener-class>com.sun.faces.config.ConfigureListener</listener-class> </listener> Call to Datasource from java: (DataSource) initContext.lookup("java:comp/env/jdbc/ignite"); -- This message was sent by Atlassian Jira (v8.3.4#803005)