Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- System.setProperty("java.net.useSystemProxies", "true");
- System.setProperty("http.proxyHost", "comproxy.net");
- System.setProperty("http.proxyPort", "80");
- System.setProperty("http.nonProxyHosts", "localhost|127.0.0.1");
- System.setProperty("http.proxyUser", "tm_user");
- System.setProperty("http.proxyPassword", "password@135");
- -Djava.net.useSystemProxies=true
- -Dhttp.proxyHost=comproxy.is
- -Dhttp.proxyPort=80
- -Dhttp.nonProxyHosts=localhost
- -Dhttp.proxyUser=tm_user
- -Dhttp.proxyPassword=pwd@135
- INFO: HHH000115: Hibernate connection pool size: 10 (min=1)
- public class HibernateUtil {
- static{
- try {
- sessionFactory = new Configuration().configure("/com/singtel/mi/utils/hibernate.cfg.xml").buildSessionFactory();
- } catch (Exception e) {
- System.err.println("Seesion Factory Creation Failed---> "+e);
- throw new ExceptionInInitializerError();
- }
- }
- public static SessionFactory getSessionFactory(){
- return sessionFactory;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement