I am trying to run simple stateless session bean in weblogic 6.0
the client code is

import javax.ejb.*;
import javax.naming.*;
import java.rmi.*;
import java.util.Properties;

/**
 * This class is an example of client code that invokes
 * methods on a simple stateless session bean.
*/
public class HelloClient
{
        public static void main(String []args)
        {
                try
                {
                
                
                
                        Properties props = System.getProperties();
        
props.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContex
tFactory");
                        Context ctx = new InitialContext(props);
                        HelloHome home = (HelloHome)
ctx.lookup("HelloHome");
                        Hello hello = home.create();
                        System.out.println("output : " + hello.hello());
                        hello.remove();
                }
                catch(Exception ex)
                {
                        System.out.println("Exception in main() :" +
ex);
                        System.exit(1);
                }
        }
}

this client code works fine with weblogic 5.1 but it gives following
error in weblogic 6.0

Exception in main() :javax.naming.CommunicationException [Root exception
is weblogic.socket.UnrecoverableConnectException: [Login failed:
'Incompatible version:Incompatible versions - this server:6.0.0b2
client:5.1.0]] 

can any one please help me 
and let me know what should I do

==========================================================================To 
unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to