Personally I use the built in method to query JIRA's internal tables . They replacing your connection declaration with this one. I cant say for sure it will work as it as I use pure java implementation.
conn= new DefaultOfBizConnectionFactory().getConnection();
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG