Advertisement
Guest User

Untitled

a guest
May 10th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. System.setProperty("java.net.useSystemProxies", "true");
  2.  
  3. System.setProperty("http.proxyHost", "comproxy.net");
  4. System.setProperty("http.proxyPort", "80");
  5. System.setProperty("http.nonProxyHosts", "localhost|127.0.0.1");
  6. System.setProperty("http.proxyUser", "tm_user");
  7. System.setProperty("http.proxyPassword", "password@135");
  8.  
  9. -Djava.net.useSystemProxies=true
  10. -Dhttp.proxyHost=comproxy.is
  11. -Dhttp.proxyPort=80
  12. -Dhttp.nonProxyHosts=localhost
  13. -Dhttp.proxyUser=tm_user
  14. -Dhttp.proxyPassword=pwd@135
  15.  
  16.  
  17.  
  18. INFO: HHH000115: Hibernate connection pool size: 10 (min=1)
  19.  
  20. public class HibernateUtil {
  21.  
  22. static{
  23. try {
  24. sessionFactory = new Configuration().configure("/com/singtel/mi/utils/hibernate.cfg.xml").buildSessionFactory();
  25.  
  26. } catch (Exception e) {
  27. System.err.println("Seesion Factory Creation Failed---> "+e);
  28. throw new ExceptionInInitializerError();
  29. }
  30. }
  31.  
  32. public static SessionFactory getSessionFactory(){
  33. return sessionFactory;
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement