??????????????????????????????GlassFish ESB v2.2???????????????????????????POJO??????????????? ??

??????????????????Full install??????????????????????????????????????????? ??????????GlassFish ESB v2.2?????????????NetBeans 6.7.1?????????File->New Project->Java->Java Appication??????????????File->New File->ESB->POJO Service????POJO????????????????????



?????????????Finish??????????????????????????????? ???????????????????????????????????
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package com.sun.oha;import org.glassfish.openesb.pojose.api.annotation.Provid er;import org.glassfish.openesb.pojose.api.annotation.Resour ce;import org.glassfish.openesb.pojose.api.annotation.Operat ion;import org.glassfish.openesb.pojose.api.res.Context;impor t java.util.logging.Logger;/** * * @author oha */@Provider public class Hello { /** * Constructor */ public Hello() { } /** * POJO Operation * * @param input input of type String input * @return String */ @Operation (outMessageTypeQN="{http://oha.sun.com/Hello/}HelloOperationResponse") public String receive(String input) { return input; } // Logger private static final Logger logger = Logger.getLogger(Hello.class.getName()); // POJO Context @Resource private Context jbiCtx;}
???Hello???????receive()?????????????????
@Operation (outMessageTypeQN="{http://oha.sun.com/Hello/}HelloOperationResponse") public String receive(String input) { return "Hello, " + input + "!"; }
POJO Service???????OK????Composite Application??????????File->New Project->SOA->Composite Application?????????????????????POJO?????????????? ??????JBI Modules???????????????Clean&Build?????????????????SOAP BC?????????WSDL Ports???????????????SOAP BC?Consume?????POJO Service?Provide????????????????????????Composite Application???????



?????????POJO Service?BPEL?????????????????????BPEL??????Java??? ??BPEL??????????????????????????Java?????BPEL????? ????BPEL??????Web???????????????BPEL?????????????? ????????????????????????????????BPEL?????????????? ???????????????GlassFish ESB v2.2?POJO SE????????????????????????????????POJO SE???????????????

More...