users@glassfish.java.net

Re: IIS Integration problem with Load Balancing!

From: <glassfish_at_javadesktop.org>
Date: Fri, 29 Feb 2008 00:03:54 PST

Hi:

Below is the answer to your question regarding user-defined lb. I think the other questions are being handled at - http://forums.java.net/jive/thread.jspa?messageID=261545

When using the Sun Web Server the printf statements in the user-defined lb sample roundrobin.c are routed to the web-server's error.log file. In the case of IIS, you will need to modify the roundrobin.c file to open a file pointer to a log file of your choice and use fprintf statements.

Example -

FILE *pLogFile1;
pLogFile1=fopen("c:\\InetPub\\wwwroot\\sun-passthrough\\lb.log","a");

// Now, you can use statements like below

fprintf(pLogFile1, "There are %d listeners\n", noOfListeners);
[Message sent by forum member 'vr143562' (vr143562)]

http://forums.java.net/jive/thread.jspa?messageID=261568