Can i define in the persistence.xml two database?

I'm working on an application in Java EE. I must use two database ,how can I define two database in my persistence.xml?

Thank you in advance for your suggestions


Create another persistence-unit in your exisiting persistent.xml and give it a different name. Then create another entity manager depending on newly added persistent unit.

Need Your Help

How to encodeToBase64String a Windows.Storage.Streams.IBuffer (Video) in WinJS

video encoding winjs

I have an app which takes a picture with the web camera then get the bytes and then I use a method for converting it on base64, everything works okay