I am using pure java and an HttpUrlConnection with JDK 1.7. I am using Bonita 6.3 with Postgress. I can add more information if it is needed.
I have basic Java code that logs me in as a user. I get the session id, and with that I can get an existing user from the database with no issues.