* @param inCtx inbound message context
* @param outCtx outbound message context
* @return welcome message
*/
public Welcome welcomeService(Greetee greeetee, InContext inCtx, OutContext outCtx) {
Locale locale = (Locale) inCtx.getAttribute("example.locale");
QOS qos = null;
String greeting = "Hi";
if (locale != null) {
if (locale.getLanguage().equals("en")) {
greeting = "Hello";
qos = new QOS(8, "OK");
} else if (locale.getLanguage().equals("fr")) {
greeting = "Bonjour";
qos = new QOS(9, "Très bon");
}
}
outCtx.setAttribute("comm.qos", qos);