1 Reply Latest reply on Jun 11, 2008 9:29 AM by jaikiran

    How to select whitch entity's can be mapped to each EM?

    statelessbean

      Hi,
      Let see we got 3 entity managers.
      My app is web based game, with 2 worlds (2 databases).
      First EM is for one database only whitch administration tables. (3tables)
      Second and Third EM is for game world with tables for players. (10tables)

      When jboss starts always deployes entity beans for each EM (13 beans for each EM). Is any possible to select whitch bean can be deployed for selected EM?

        • 1. Re: How to select whitch entity's can be mapped to each EM?
          jaikiran

          Do you mean, if you want to deploy your application with just the admininstration module, then only the entities belonging to administration module be mapped?

          The entities that are deployed is based on the contents of (1) application.xml file (present int the META-INF of your EAR) (2) the contents of the persistence.xml file. You can disable the deployment of a module, by removing it entry from the application.xml