Click here to Skip to main content
15,887,485 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have constructing architect for Rest webservice in Java with MySQL+JPA+Hibernate using token based authentication system with Login and Customer database separate. I need help on below,

My workflow is, User authenticate by username and password and system generate Authentication Token. By using this token user can perform further operations. Token will be generated from Login Database. and using same login token user can send request to client database.
I am able to make database connection to my login database successfully using persistent.xml. But I have problem my making connection with dynamic connection with my client database on each request.

Please suggest me Rest webservice architechture to handle Login Database and Customer Database in Java Rest webservice.

What I have tried:

I have used DBContext in .net but I do not have any idea in Java
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900