Tags » Tomcat

How to Create a Multicast Client/Server with Apache Tribes

Client

import static java.lang.System.out;

import java.io.Serializable;

import org.apache.catalina.tribes.Channel;
import org.apache.catalina.tribes.ChannelListener;
import org.apache.catalina.tribes.Member;
import org.apache.catalina.tribes.group.GroupChannel;

public final class TribesClient {

  public static void main(final String[] args) throws Exception {
    final Channel chan = new GroupChannel();

    chan.start(Channel.DEFAULT);

    chan.addChannelListener(new ChannelListener() {

      public boolean accept(final Serializable msg, final Member sender) {
        return true;
      }

      public void messageReceived(final Serializable msg, final Member sender) {
        out.println(msg);
      }

    });
  }

} 53 more words
Software

Tomcat Thursday

In the mid-eighteenth century, a popular children’s book called “The Life and Adventures of a Cat” featured a cat named Tom. Since then, the word has taken on several other meanings.

Paws

Apache Load balancer setup with failover mechanism

Apache web server

Apache is a powerful and flexible web server. It can act as a load balancer using httpd or mod_jk module and as a proxy server using mod_proxy module. 743 more words

Software

Into the Wild

Entry 10, Day 20

Time to talk a little environment. Go green, plant a tree, that kind of stuff. Kidding. We are going to talk about the server and the data source for the application. 542 more words

BookSentry

Fix for Eclispe generated WAR file not including Ivy libraries

I was using Eclipse to create a relatively simple Dynamic Web Project that used Ivy for dependency mangement.  Also, I wanted to use Eclipse’s export to a WAR feature so I would not need to write a build script.  287 more words

Tomcat

Restart tomcat using java code , check for session count ( no one using application ).

Refer to previous Blog how to get session count for application .: http://techspread.wordpress.com/2014/08/12/get-application-session-count-on-tomcat-using-java-code/

Java code to get session count for application and restart tomcat if session count is  zero for application. 277 more words

Java

Red Boris

Meet the latest member of our family: Boris, a ginger tomcat of two years old. Boris was looking for a place to stay, and he is more than welcome to hang out with us. 33 more words

Photo