You set up the EntityManager and EntityManagerFactory you want to use in an application in an annotation or the DD.
For details on annotations, see 2. Annotations and Dependency Injection Supported by Application Server in the uCosminexus Application Server API Reference Guide. For details on the tags to be set for DD, see the uCosminexus Application Server Definition Reference Guide.