title: can i have 2 configuration bdd of Hibernate?
body: <p>i develop a <em>J2EE</em> application with <strong>Hibernate</strong>, and i want to have 2 database, the first will be local (in client computer ), and the second will be in the server.<br/>
  indeed ,  i want to configure hibernate to connect in the local databases when the global is not accessible. 
  My actual config file :<br/>
      <code>&lt;hibernate-configuration &gt;
      &lt;session-factory&gt;
      &lt;property name= "hibernate.dialect"&gt; org.hibernate.dialect.MySQLDialect&lt;/property&gt;
      &lt;property name= "hibernate.connection.driver_class"&gt; com.mysql.jdbc.Driver&lt;/property&gt;
      &lt;property name="hibernate.connection.url"&gt;jdbc:mysql://localhost/serverBdd &lt;/property&gt; 
      &lt;property name="hibernate.connection.username"&gt;root&lt;/property&gt;
      &lt;property name="hibernate.hbm2ddl.auto"&gt;update&lt;/property&gt; 
      &lt;property name="show_sql"&gt;true&lt;/property&gt; 
      &lt;property name="hibernate.connection.password"&gt;&lt;/property&gt;
      &lt;mapping resource="hibernateConfiguration/Usine.hbm.xml"/&gt;
      &lt;mapping resource="hibernateConfiguration/Produit.hbm.xml"/&gt;
      &lt;mapping resource="hibernateConfiguration/Machine.hbm.xml"/&gt;
      &lt;mapping resource="hibernateConfiguration/Operation.hbm.xml"/&gt;
      &lt;mapping resource="hibernateConfiguration/Utilisateur.hbm.xml"/&gt;
      &lt;/session-factory&gt;
      &lt;/hibernate-configuration&gt;</code></p>
  
  <p>how Can i do this ? and if i can't what should i do to solve my problem ? <br/>
  thanks</p>