Posts

Showing posts from January, 2011

Tomcat Clustering

http://www.easywayserver.com/implementation-tomcat-clustering.htm

Open Source Load Balancing Softwares

Nice post about LB softwares and I found this on a good blog http://linuxpoison.blogspot. com/  Linux Virtual Server The Linux Virtual Server Project is a project to cluster many real servers together into a highly available, high- performance virtual server. The LVS load balancer handles connections from clients and passes them on the the real servers (so-called Layer 4 switching) and can virtualize almost any TCP or UDP service, like HTTP, HTTPS, NNTP, FTP, DNS, ssh, POP3, IMAP4, SMTP, etc. It is fully transparent to the client accessing the virtual service. Homepage: http://www.LinuxVirtualServer.org/ BalanceNG BalanceNG is a modern software IP load balancing solution. It is small, fast, and easy to use and setup. It offers session persistence, different distribution methods (Round Robin, Random, Weighted Random, Least Session, Least Bandwidth, Hash, Agent, and Randomized Agent) and a customizable UDP health check agent in source code. It supports VRRP to set up hi...

Hibernate Connection Fails if there is Database inconsistency or DB fail-over (Oracle RAC)

        /**      * A static method with returns Hibernate Sessoin Object.      *      * @return {@link Session}      */     public static Session getSession() throws HibernateException {         Session appSession = sessionFactory .openSession();         try         {                 if (appSession.connection().isClosed()||!appSession.isConnected()||!appSession.isOpen()){                         System. out .println( "Session Closed, Creating Session again..." );                  ...

Printing CLOB Object Data in JSP

< tr >                 < td >                         < PRE > <% String line;                                 if (docObj != null ) {                                     BufferedReader in = new BufferedReader(docObj.getDocument().getCharacterStream());                                     line = in.readLine();                                     while (line != null ) {                                         line = line.replace( ">" , "&gt;" );                                         line = line.replace( "<" , "&lt;" );                                         out.println(line);                                         out.flush();                                         line = in.readLine();                                     }                                 }                             %>                          </ PRE >                 </ td...