I carried out the test as rram75 had suggested and ended up getting timed out 
exception with jboss. 

        I also tried hitting weblogic server with the same code and it did work 
perfectly fine. One thing i did try was to print the thread name to see, whether in 
case the call to the server was synchronized and i was right. Web logic did 
synchronize the calls to the naming server. 

           I debugged the jboss naming client code and modified the static Naming 
getServer(String host, int port, Hashtable serverEnv)  throws NamingException code to 
be synchronized and that took care of the socket timeout exception that was happening 
before. THe reason for the socket exception was that at times, the Naming reference 
was null and it then tried to do a multicasting to find the server. This was the place 
where a socket time out happened.

             I did a few testing and benchmarking with weblogic against jboss and 
found that jboss was faster with smaller amounts of hits to the server. ie, if i had 
100 threads that hits the server using jndi , jboss would always beat weblogic in 
retrieving the objects. But for higher threshold values, weblogic beats jboss. This is 
probably due to the way it attempts reconnection in lookup function  of 
org.jnp.Interfaces.NamingContext .java file. Augmenting the backlog also didnt help 
jboss in significantly reducing the time in retrieving objects using Jndi.

   I am wondering if i had to do any thing else to make the jndi lookup faster?.
Regards,
Rajaneesh, Technologist
Vistasoft India 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3834274#3834274

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3834274


-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to 
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to