Skip to content

SampleJNDIConfiguration

mzuchowski edited this page Apr 2, 2015 · 1 revision

This page contains sample JNDI configurations for Aperte Reports. If you succeeded to configure environment not mentioned here, please submit it.

Apache Tomcat 6.0

This is sample content of file:

$TOMCAT_HOME/conf/context.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements.  See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License.  You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

--><!-- The contents of this file will be loaded for each web application -->
<Context>

<!-- Default set of monitored resources -->
<WatchedResource>WEB-INF/web.xml

Unknown end tag for &lt;/WatchedResource&gt;




<!-- JNDI JDBC source for aperte reports -->
<Resource name="jdbc/aperte-reports"
auth="Container"
driverClassName="org.hsqldb.jdbcDriver"
maxActive="8"
maxIdle="4"
password=""
type="javax.sql.DataSource"
url="jdbc:hsqldb:${liferay.home}/data/hsql/aperte-reports"
username="sa"
/>

<!-- datasource for sample reports -->
<Resource name="jdbc/liferay"
auth="Container"
driverClassName="org.hsqldb.jdbcDriver"
maxActive="8"
maxIdle="4"
password=""
type="javax.sql.DataSource"
url="jdbc:hsqldb:${liferay.home}/data/hsql/lportal"
username="sa"
/>

<!-- 	JMS Connection - uses default configuration of ActiveMQ as external JMS provider.  -->
<!--    Don't forget to add ActiveMQ jar to the classpath (e.g. in $TOMCAT_HOME/lib directory)!  -->
<Resource name="jms/ConnectionFactory"
auth="Container"
brokerName="MyActiveMQBroker"
brokerURL="tcp://localhost:61616"
description="JMS Connection Factory"
factory="org.apache.activemq.jndi.JNDIReferenceFactory"
type="org.apache.activemq.ActiveMQConnectionFactory"
/>

<!-- 	Cyclic reporting JMS queue -->
<Resource name="jms/ProcessReportQueue"
auth="Container"
description="JMS queue"
factory="org.apache.activemq.jndi.JNDIReferenceFactory"
physicalName="ProcessReportQueue"
type="org.apache.activemq.command.ActiveMQQueue"
/>

<!-- 	Background reporting JMS queue -->
<Resource name="jms/GenerateReportQueue"
auth="Container"
description="JMS queue"
factory="org.apache.activemq.jndi.JNDIReferenceFactory"
physicalName="GenerateReportQueue"
type="org.apache.activemq.command.ActiveMQQueue"
/>

<!-- 	Mail session for mailing feature - provide your own settings -->
<Resource name="mail/session"
auth="Container"
type="javax.mail.Session"
mail.transport.protocol="smtp"
mail.smtp.host="smtp.gmail.com"
mail.smtp.port="465"
mail.smtp.auth="true"
mail.smtp.user="username@gmail.com"
password="yourpassword"
mail.smtp.starttls.enable="true"
mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"
/>


Unknown end tag for &lt;/Context&gt;


Clone this wiki locally