1-On client side usually u dont need any settings.
2-On server box, depending on the server u are using,
should do somethings, it generally includes generating
secure keys and some settings in config file. please
refer to ur server (tomcat,weblogic,...)
documentation.good news is that which u never need to
code anything.