2022

Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
 @Override
public void open() throws RemoteException {
	// TODO Auto-generated method stub
	sessionKey = UUID.randomUUID().toString();
	logger.log(Level.INFO, "Hello World AppCode Session opened:" + sessionKey);

System.out.println("Hello World AppCode Session opened:" + sessionKey);

	}

2. setContext

This method should initialize the context for the AppCode Implementation and is called before the open method is called. It normally the contains the initialization parameters which are required to initialize the custom implementation.
In our HellWorld we can just log a trace stating setContext is called in the console and in the log 

Code Block

 @Override
public void setContext(Context arg0) {
	// TODO Auto-generated method stub
	logger.log(Level.INFO, "Hello World AppCode Set Context called");

	System.out.println("Hello World AppCode Set Context called");

	}