This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Manifest-Version: 1.0 | |
Bundle-ManifestVersion: 2 | |
Bundle-Name: Mysql-Osgi | |
Bundle-SymbolicName: com.osgi.mysql | |
Bundle-Version: 1.0.0 | |
Bundle-RequiredExecutionEnvironment: JavaSE-1.7 | |
Import-Package: javax.management, | |
javax.naming, | |
javax.naming.spi, | |
javax.net, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@page session="false"%><% | |
%><%@ page import="com.day.commons.datasource.poolservice.DataSourcePool" %><% | |
%><%@ page import="javax.sql.DataSource" %><% | |
%><%@ page import="java.sql.Connection" %><% | |
%><%@ page import="java.sql.SQLException" %><% | |
%><%@ page import="java.sql.Statement" %><% | |
%><%@ page import="java.sql.ResultSet"%><% | |
%><%@ page import="java.sql.PreparedStatement"%> | |
%><%@ page import="java.sql.DriverManager"%> | |
DataSourcePool dspService = sling.getService(DataSourcePool.class); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Manifest-Version: 1.0 | |
Bundle-ManifestVersion: 2 | |
Bundle-Name: Taradatajdbc | |
Bundle-SymbolicName: taradatajdbc | |
Bundle-Version: 1.0.0 | |
Bundle-ClassPath: . | |
Export-Package: com.ncr.teradata, | |
com.teradata.jdbc, | |
com.teradata.jdbc.client, | |
com.teradata.jdbc.encode, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Service | |
@Component(immediate=true) | |
public class WriteServiceImpl implements WriteService { | |
private final Logger log = LoggerFactory.getLogger(getClass()); | |
@Reference | |
private ResourceResolverFactory resolverFactory; | |
//If you are planning to use repository session |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Service | |
@Component(immediate=true) | |
public class ReadServiceImpl implements ReadService{ | |
private final Logger log = LoggerFactory.getLogger(getClass()); | |
@Reference | |
private ResourceResolverFactory resolverFactory; | |
//If you are planning to use repository session |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" | |
jcr:primaryType="sling:OsgiConfig" | |
user.mapping="[com.adobe.granite.oauth.server=oauthservice,com.adobe.granite.oauth.server:authentication-handler=admin,com.day.cq.cq-search-suggest=suggestionservice,blog.wemblog.com:writeService=bob, blog.wemblog.com:readService=alice]"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependency> | |
<groupid>com.adobe.aem</groupid> | |
<artifactid>aem-api</artifactid> | |
<version>6.0.0.1</version> | |
<scope>provided</scope> | |
</dependency> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.sling.adapter.SlingAdaptable; | |
import org.apache.sling.api.resource.Resource; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import javax.jcr.Node; | |
public abstract class MyCustomClass extends SlingAdaptable { | |
protected static final Logger log = LoggerFactory.getLogger(MyCustomClass.class); | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--Add sling Model dependencies --> | |
<!-- All your existing dependencies --> | |
<dependency> | |
<groupId>org.apache.sling</groupId> | |
<artifactId>org.apache.sling.models.api</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.sling</groupId> | |
<artifactId>org.apache.sling.models.impl</artifactId> | |
</dependency> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependency> | |
<groupId>org.apache.sling</groupId> | |
<artifactId>org.apache.sling.models.api</artifactId> | |
<version>1.1.0</version> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.sling</groupId> | |
<artifactId>org.apache.sling.models.impl</artifactId> | |
<version>1.1.0</version> | |
</dependency> |
OlderNewer