-- 
Hi,

     I want to execute database Query for ticket Validate. For that i have
store TGT and service ticket in database. In my application TGT used for
user type like count used number of times and expiry hours. i want to check
that TGT used count and expiry hours for that i have to hit the database.
I have configure datasource like

private  BasicDataSource dataSource;
JdbcTemplate template=new  JdbcTemplate(dataSource);

<bean id="grantingTicketExpirationPolicy"
class="com.iris.tiket.expiry.CustomExpriyPolicy"
p:maxTimeToLiveInSeconds="${tgt.maxTimeToLiveInSeconds:28800}"
p:timeToKillInSeconds="${tgt.timeToKillInSeconds:7200}"
p:dataSource-ref="dataSource"/>

But when isExpired method called for ticket validate, datasource become
null.

I don't want to declear BasicDataSource  as static. and premitive is
allowed bt BasicDataSource  not allowed. I have to fired the query. please
give the solution.

Thanks and Regards,
Santosh Kumar
Mail id - [email protected]
Mobile no. - 9967106799

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to