Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 85442 invoked from network); 1 Apr 2011 11:25:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Apr 2011 11:25:57 -0000 Received: (qmail 26496 invoked by uid 500); 1 Apr 2011 11:25:55 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 26452 invoked by uid 500); 1 Apr 2011 11:25:55 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 26413 invoked by uid 99); 1 Apr 2011 11:25:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Apr 2011 11:25:55 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Apr 2011 11:25:54 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 029568DAC6 for ; Fri, 1 Apr 2011 11:22:21 +0000 (UTC) Date: Fri, 1 Apr 2011 11:22:21 +0000 (UTC) From: "Gary Tully (JIRA)" To: dev@activemq.apache.org Message-ID: <209185900.27683.1301656941007.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (AMQ-2215) Using beehive jdbc control creates db connection issue. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMQ-2215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gary Tully updated AMQ-2215: ---------------------------- Fix Version/s: (was: 5.5.0) 5.6.0 > Using beehive jdbc control creates db connection issue. > ------------------------------------------------------- > > Key: AMQ-2215 > URL: https://issues.apache.org/jira/browse/AMQ-2215 > Project: ActiveMQ > Issue Type: Improvement > Components: Performance Test > Environment: SANDBOX > Reporter: Bhabani sankar Biswas > Fix For: 5.6.0 > > > hi, > I am new to this area but, I use JIRA for issue tracking and task management. > I am facing some issues while using org.apache.beehive.controls.system.jdbc.JdbcControl sql statement. > The details are as > 1. Using only SELECT statement; can be considered as non complex. > "SELECT a.NODE_ID,a.FULL_PATH,a.{sql: orderField} FROM CM_NODE a,CM_PROPERTY b,CM_PROPERTY c " + > "WHERE a.NODE_ID=b.NODE_ID AND a.NODE_ID=c.NODE_ID AND a.LIFECYCLE_STATUS!={life_cycle_status} AND a.EFFECTIVE_DATE<=SYSDATE AND a.FULL_PATH LIKE {fullPathStart} "+ > "AND (c.property_name={expiration_vcrDate_field_name} AND c.DATETIME_VALUE>=SYSDATE ) "+ > "AND (b.property_name={content_type_field_name} AND b.text_value ={contentTypeCondition}) "+ > "ORDER BY {sql: orderField} {sql: sort}, a.NODE_ID {sql: sort} " > 2. Define the db datasource as Connection notation as > @ControlExtension > @JdbcControl.ConnectionDataSource(jndiName = "contentDataSource") > @JdbcControl.ConnectionOptions( > resultSetHoldability=org.apache.beehive.controls.system.jdbc.JdbcControl.HoldabilityType.DRIVER_DEFAULT) > 3. not opening nay connection nor closing any connection. > 4. Connection on the server i noticed is very larger numbers. > Could you please suggest something to get rid of this issue. > Should I close the db connection; if so how should i close the connection. > Thanks > Bhabani. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira