Hi,
Quote:
Everything works as expected.
Awesome :)
Quote:
If I create a similar project with a traditional datasource in WF I am able to create a config module with the persistence.xml, add this module as a dependency to other EJB modules. In such a configuration all entities in all modules are auto discovered (no need to put them in the persistence.xml) and I need to add the persistence.xml just once. Is it possible to achive the same behaviour when using Hibernate OGM?
I haven't tested this but if it was working before it should work now as well. Are you asking because you tried and it does not work?
Quote:
If this is not possible, do I have to put a persistence.xml file in every EJB module? Is auto-discovery possible in such a configuration? Is the connection between the modules shared or does every EJB open up it's own connection to the MongoDB database?
At the moment, every EJB will have it's own connection.
You should be able to configure OGM in the same way you configure ORM or another JPA implementation, the main difference is that you cannot configure datasources or JDBC connections.
I hope this help, please let us know if there is some use case that does not work and we will check.
Cheers,
Davide