pessoal, estou precisando pegar a string que define a conexao com meu banco no hibernate.cdf.xml, pra mostrar na web. estilo as aplicações desktop.
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.url">
jdbc:oracle:thin:@192.168.1.90:1521:FITLNX1
</property>
<property name="hibernate.connection.driver_class">
oracle.jdbc.driver.OracleDriver
</property>
<property name="hibernate.dialect">
org.hibernate.dialect.OracleDialect
</property>
<property name="hibernate.connection.username">
usuario
</property>
<property name="hibernate.connection.password">
senha
</property>
<property name="hibernate.c3p0.max_size">20</property>
<property name="hibernate.c3p0.min.size">5</property>
<property name="hibernate.c3p0.timeout">60</property>
<property name="hibernate.c3p0.max_statements">3000</property>
<property name="hibernate.c3p0.idle_test_period">50</property>
<property name="hibernate.c3p0.acquire_increment">2</property>
<property name="hibernate.c3p0.validate">false</property>
<property name="hibernate.format_sql">true</property>
<property name="hibernate.show_sql">true</property>
</session-factory>
</hibernate-configuration>
por exemplo pegar a url, o usuario e tal.
alguem tem uma dica?
abraços a todos