js.um Posted August 15 Share Posted August 15 Hi All, I have deployed Jasper Report Server 8.2 with external database authentication, however, when I stress testing Jasper Server, I found that the server creates lots of sessions to the database, querying the credential.May I know if using a connection pool with external database authentication is possible? Thanks.Joe Link to comment Share on other sites More sharing options...
anish.rai Posted August 16 Share Posted August 16 Thank you for posting to the Jaspersoft Community. Our team of experts has read your question and we are working to get you an answer as quickly as we can. If you have a Jaspersoft Professional Subscription plan, please visit https://support.tibco.com/s/ for direct access to our technical support teams offering guaranteed response times. Link to comment Share on other sites More sharing options...
pjimenezZ Posted August 16 Share Posted August 16 Hello,External database authentication is possible. More information can be found here:https://community.jaspersoft.com/documentation/tibco-jasperreports-server-authentication-cookbook/v80/external-databaseIn most situations, customizing the sample template will work. I hope this helps.Regards,Paul Link to comment Share on other sites More sharing options...
js.um Posted August 17 Author Share Posted August 17 I have successfully configured connection pooling for external database authentication.Add your datasource for authentication to webapps/{js-app}/META-INF/Context.xml<Resource name="jdbc/myAuthDs" auth="Container" type="javax.sql.DataSource" maxActive="10" maxIdle="5" maxWait="10000" username="username" password="password" driverClassName="oracle.jdbc.OracleDriver" url="jdbcurl" factory="com.jaspersoft.jasperserver.tomcat.jndi.JSCommonsBasicDataSourceFactory"/>[/code] Edit your applicationContext-externalAuth.xmldefine your externalDataSource bean like so <bean id="externalDataSource" class="org.springframework.jndi.JndiObjectFactoryBean"> <property name="jndiName" value="java:comp/env/jdbc/myAuthDs"/></bean>[/code]Reference the bean above in externalUserDetailsService bean<bean id="externalUserDetailsService" class="com.jaspersoft.jasperserver.api.security.externalAuth.db.ExternalJDBCUserDetailsService"> <property name="dataSource" ref="externalDataSource"/> ...</bean>[/code] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now