/**
**
** MiddCor-C# DemoJava
**			CORBA Solution for .Net with C# Language mapping							 
**																			 
**				
** Copyright:
**			Middsol GmbH, Hamburg
**			Germany  2004
**			www.middsol.com
**			info@middsol.com	
**
*/

package InnerClasses;


import java.rmi.RemoteException;
import javax.rmi.PortableRemoteObject;
import java.util.*;


public class GreetingsImpl extends PortableRemoteObject implements Greetings{

	public GreetingsImpl() throws RemoteException {
		
             	super(); 
	}
	

	public Info hello( Info oInfo) throws RemoteException {
		

		System.out.println( "Method executed Greetings.hello" ); 

		System.out.println( " Info passed in:\n" ); 
		System.out.println( " from " + oInfo.getName() );
		
		System.out.println( " Message: " + oInfo.getMessage() );

		System.out.println( " -- Innerclass --");
		System.out.println( " Business note: " + oInfo.getBusinessNote() );
		System.out.println( " Private  note: " + oInfo.getPrivateNote() );

		Info oRet = new Info();
			
		oRet.setName( "Middsol");

		oRet.setMessage( "Hello Client");
		oRet.setMessage( "Hello " + oInfo.getName() );
		oRet.setBusinessNote("Middsol provides Middleware solutions");
		oRet.setPrivateNote("CORBA, .NET and J2EE technology");
		

		return oRet;	
	}
}

