Connecting Tech Pros Worldwide Forums | Help | Site Map

Web Services using Java

ak1dnar's Avatar
Moderator
 
Join Date: Jan 2007
Location: Colombo
Posts: 1,440
#1: May 31 '07
Hi,
I need to build up a web service using java. I am using,
Netbeans 5.5.1
JDK 1.5

is there any thing else that i should plug in to my project environment apart from this to build up a web service.

and i am very new to java web services. so please help by providing any tutorial that i can start over, with Netbeans.

JosAH's Avatar
Expert
 
Join Date: Mar 2007
Posts: 10,611
#2: May 31 '07

re: Web Services using Java


Quote:

Originally Posted by ajaxrand

Hi,
I need to build up a web service using java. I am using,
Netbeans 5.5.1
JDK 1.5

is there any thing else that i should plug in to my project environment apart from this to build up a web service.

and i am very new to java web services. so please help by providing any tutorial that i can start over, with Netbeans.

Yep, you need at least a Servlet container such as Tomcat. Servlets handle
http requests and supply dynamically created html responses.

good luck and

kind regards,

Jos
sumittyagi's Avatar
Expert
 
Join Date: Mar 2007
Location: New Delhi, India
Posts: 198
#3: May 31 '07

re: Web Services using Java


Quote:

Originally Posted by ajaxrand

Hi,
I need to build up a web service using java. I am using,
Netbeans 5.5.1
JDK 1.5

is there any thing else that i should plug in to my project environment apart from this to build up a web service.

and i am very new to java web services. so please help by providing any tutorial that i can start over, with Netbeans.

If that's ur urgent requirement then I won't comment anything.
But if you are doing it for learning purpose, then I would rather say, first expertize on web applications. Web services is quite a broad term, and if u are new to java, then u will be lost.

The sequence of learning should be (according to me),
1. Expertize core java field.
2. Expertize Web applications field.
3. Get introduced to (very basic) Web Component development field (EJBs) (optional, but will help in understanding many things.) (I myself am not much introduced to this field).
4. Then come to Web services field.

See wikipedia Link for web services.
ak1dnar's Avatar
Moderator
 
Join Date: Jan 2007
Location: Colombo
Posts: 1,440
#4: May 31 '07

re: Web Services using Java


Quote:

Originally Posted by JosAH

Yep, you need at least a Servlet container such as Tomcat. Servlets handle
http requests and supply dynamically created html responses.

good luck and

kind regards,

Jos

Thank you so much jos.
Both these application servers available in my machine.
Tom cat 5.5.17
Sun java system application server 9

I am sorry I didn't mention it in my original post.

I went through this tutorial sample application.
http://qa.netbeans.org/modules/j2ee/.../hello_ws.html
and build the sample application as they have mentioned.

Web service is here.

package org.netbeans.end2end.hellosample;

Expand|Select|Wrap|Line Numbers
  1. import javax.jws.HandlerChain;
  2. import javax.jws.WebMethod;
  3. import javax.jws.WebService;
  4. import javax.jws.WebParam;
  5.  
  6. @WebService(serviceName="GreeterWs")
  7. @HandlerChain(name = "HelloWebService_handlerChain", file = "HelloWebService_handler.xml")
  8. public class HelloWebService
  9. {
  10.     /**
  11.      * Web service operation
  12.      */
  13.     @WebMethod(operationName="sayHi")
  14.     public String operation(@WebParam(name="name")String param)
  15.     {
  16.         // TODO implement operation 
  17.         return "Hi"+ param;
  18.     }
  19.       @WebMethod()
  20.     public String sayHello(String s)
  21.     {
  22.         // TODO implement operation 
  23.         return "Hello"+ s;
  24.     }
  25.  
  26. }
  27.  
message handler is here with some errors.

Expand|Select|Wrap|Line Numbers
  1. package org.netbeans.end2end.hellosample;
  2.  
  3. import java.util.Collections;
  4. import java.util.Set;
  5. import javax.xml.namespace.QName;
  6. import javax.xml.soap.SOAPMessage;
  7. import javax.xml.ws.handler.MessageContext;
  8. import javax.xml.ws.handler.soap.SOAPHandler;
  9. import javax.xml.ws.handler.soap.SOAPMessageContext;
  10.  
  11.  
  12. public class MessageHandler implements SOAPHandler<SOAPMessageContext>
  13. {
  14.  
  15.     public boolean handleMessage(SOAPMessageContext messageContext)
  16.     {
  17.         //SOAPMessage msg = messageContext.getMessage();
  18.         log(messageContext);
  19.         return true;
  20.     }
  21.  
  22.    private void log(SOAPMessageContext messageContext)
  23.    {
  24.        Boolean outcoming = (Boolean)
  25.        messageContext.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);
  26.        if(outcoming.booleanValue())
  27.        {
  28.            System.out.println("\nOutcoming Message:");
  29.        }else
  30.        {
  31.            System.out.println("\nIncoming Message:");
  32.        }
  33.        SOAPMessage message= messageContext.getMessage();
  34.        try{
  35.            message.writeTo(System.out);
  36.            System.out.println("\n");
  37.        }catch(Exception e)
  38.        {
  39.            System.out.println("Exception "+e);
  40.        }
  41.    }
  42.  
  43. }
  44.  
  45.  

C:\Sun\SDK\samples\javaee5\webservices\HelloWs\src \java\org\netbeans\end2end\hellosample\MessageHand ler.java:12: org.netbeans.end2end.hellosample.MessageHandler is not abstract and does not override abstract method getHeaders() in javax.xml.ws.handler.soap.SOAPHandler
public class MessageHandler implements SOAPHandler<SOAPMessageContext>

What is the reason here.
JosAH's Avatar
Expert
 
Join Date: Mar 2007
Posts: 10,611
#5: May 31 '07

re: Web Services using Java


Quote:

Originally Posted by ajaxrand

C:\Sun\SDK\samples\javaee5\webservices\HelloWs\src \java\org\netbeans\end2end\hellosample\MessageHand ler.java:12: org.netbeans.end2end.hellosample.MessageHandler is not abstract and does not override abstract method getHeaders() in javax.xml.ws.handler.soap.SOAPHandler
public class MessageHandler implements SOAPHandler<SOAPMessageContext>

What is the reason here.

Exactly what the compiler whines about: your class implements the interface
SOAPHandler; that implies that your class is either abstract or not. If your
class is abstract your class doesn't need to implement all methods declared
in that interface. Your class isn't abstract so it should implement all methods
declared in the interface but it doesn't: method getHeaders() is a method from
that interface but your class doesn't implement it.

kind regards,

Jos
ak1dnar's Avatar
Moderator
 
Join Date: Jan 2007
Location: Colombo
Posts: 1,440
#6: Jun 1 '07

re: Web Services using Java


Fantastic jos. Now i got a clear idea.Thanks.
ak1dnar's Avatar
Moderator
 
Join Date: Jan 2007
Location: Colombo
Posts: 1,440
#7: Jun 1 '07

re: Web Services using Java


oops But I failed to solve the problem.

I used the netbeans wizard to create this message handler.

File -> new file -> web services -> message Handler

and add the coding as in the tutorial that i used.

http://qa.netbeans.org/modules/j2ee/...reatingHandler

Did i missed something in my coding.

Expand|Select|Wrap|Line Numbers
  1. package org.netbeans.end2end.hellosample;
  2.  
  3. import java.util.Collections;
  4. import java.util.Set;
  5. import javax.xml.namespace.QName;
  6. import javax.xml.soap.SOAPMessage;
  7. import javax.xml.ws.handler.MessageContext;
  8. import javax.xml.ws.handler.soap.SOAPHandler;
  9. import javax.xml.ws.handler.soap.SOAPMessageContext;
  10.  
  11.  
  12. public class MessageHandler implements SOAPHandler<SOAPMessageContext>
  13. {
  14.  
  15.     public boolean handleMessage(SOAPMessageContext messageContext)
  16.     {
  17.         log(messageContext);
  18.         return true;
  19.     }
  20.  
  21.    private void log(SOAPMessageContext messageContext)
  22.    {
  23.        Boolean outcoming = (Boolean)
  24.        messageContext.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);
  25.        if(outcoming.booleanValue())
  26.        {
  27.            System.out.println("\nOutcoming Message:");
  28.        }else
  29.        {
  30.            System.out.println("\nIncoming Message:");
  31.        }
  32.        SOAPMessage message= messageContext.getMessage();
  33.        try{
  34.            message.writeTo(System.out);
  35.            System.out.println("\n");
  36.        }catch(Exception e)
  37.        {
  38.            System.out.println("Exception "+e);
  39.        }
  40.    }
  41.  
  42. }
ak1dnar's Avatar
Moderator
 
Join Date: Jan 2007
Location: Colombo
Posts: 1,440
#8: Jun 1 '07

re: Web Services using Java


http://www.netbeans.org/kb/55/websvc-jax-ws.html
Let me know whether this sample is working or not.
I failed with first one now second one also not working.

i made it as they mentioned but getting this error.

Expand|Select|Wrap|Line Numbers
  1. init:
  2. deps-module-jar:
  3. deps-ear-jar:
  4. deps-jar:
  5. library-inclusion-in-archive:
  6. library-inclusion-in-manifest:
  7. compile:
  8. compile-jsps:
  9. do-dist:
  10. dist:
  11. In-place deployment at D:\NetBeans\WS\CalculatorWSApplication\build\web
  12. Start registering the project's server resources
  13. Finished registering server resources
  14. moduleID=CalculatorWSApplication
  15. deployment started : 0%
  16. Deploying application in domain failed; com.sun.tools.apt.Main.process(Lcom/sun/mirror/apt/AnnotationProcessorFactory;[Ljava/lang/String;)I
  17. D:\NetBeans\WS\CalculatorWSApplication\nbproject\build-impl.xml:453: Deployment error:
  18. The module has not been deployed.
  19. See the server log for details.
  20. BUILD FAILED (total time: 1 second)
line number 453 under build-impl.xml as like this.

Expand|Select|Wrap|Line Numbers
  1.     <target name="-run-deploy-nb" if="netbeans.home">
  2.         <nbdeploy debugmode="false" clientUrlPart="${client.urlPart}" forceRedeploy="${forceRedeploy}"/>
  3.     </target>
ak1dnar's Avatar
Moderator
 
Join Date: Jan 2007
Location: Colombo
Posts: 1,440
#9: Jun 14 '07

re: Web Services using Java


Hi Guys,
Sorry for struggling with this. I really need your help.
I tried lots of tutorial all over the net. but only thing what i can do with them,

I can build the project with Netbeans 5.5.
Once i tried to deploy it to the web container deployment error appears.

Expand|Select|Wrap|Line Numbers
  1. Deploying application in domain failed; com.sun.tools.apt.Main.process(Lcom/sun/mirror/apt/AnnotationProcessorFactory;[Ljava/lang/String;)I
  2. D:\NetBeans\firstcup-dukes-age\nbproject\build-impl.xml:453: Deployment error:
  3. The module has not been deployed.
  4. See the server log for details.
  5. BUILD FAILED (total time: 5 seconds)
And the server log is here:

Expand|Select|Wrap|Line Numbers
  1. Exception occured in J2EEC Phase
  2. java.lang.NoSuchMethodError: com.sun.tools.apt.Main.process(Lcom/sun/mirror/apt/AnnotationProcessorFactory;[Ljava/lang/String;)I
  3.         at com.sun.tools.ws.wscompile.CompileTool.buildModel(CompileTool.java:605)
  4.         at com.sun.tools.ws.wscompile.CompileTool.run(CompileTool.java:538)
  5.         at com.sun.tools.ws.util.ToolBase.run(ToolBase.java:56)
  6.         at com.sun.tools.ws.util.WSToolsObjectFactoryImpl.wsgen(WSToolsObjectFactoryImpl.java:44)
  7.         at com.sun.enterprise.webservice.WsUtil.runWsGen(WsUtil.java:1820)
  8.         at com.sun.enterprise.webservice.WsUtil.genWSInfo(WsUtil.java:2089)
  9.         at com.sun.enterprise.deployment.backend.ModuleDeployer.loadDescriptors(ModuleDeployer.java:396)
  10.         at com.sun.enterprise.deployment.backend.WebModuleDeployer.deploy(WebModuleDeployer.java:155)
  11.         at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:160)
  12.         at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:169)
  13.         at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)
  14.         at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:871)
  15.         at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:266)
  16.         at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:739)
  17.         at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:174)
  18.         at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:210)
  19.  
What is this com.sun.tools.apt.Main.process() why i am getting same error for all the web services samples.?
JosAH's Avatar
Expert
 
Join Date: Mar 2007
Posts: 10,611
#10: Jun 14 '07

re: Web Services using Java


I'm no web/servlet guru by any means but those exceptions smell like an
installation/configuration error. When the system can't find one of its own
components something is rotten in the state of Denmark.

I apologize for not having a pre-cooked solution for you but if I were you I'd
check the installation of it all. I had to do that once, using Tomcat, and it was
a mess, I can tell you that.

best of luck and

kind regards,

Jos
Lives Here
 
Join Date: Sep 2006
Posts: 12,070
#11: Jun 14 '07

re: Web Services using Java


Quote:

Originally Posted by ajaxrand

Hi Guys,
Sorry for struggling with this. I really need your help.
I tried lots of tutorial all over the net. but only thing what i can do with them,

I can build the project with Netbeans 5.5.
Once i tried to deploy it to the web container deployment error appears.

Expand|Select|Wrap|Line Numbers
  1. Deploying application in domain failed; com.sun.tools.apt.Main.process(Lcom/sun/mirror/apt/AnnotationProcessorFactory;[Ljava/lang/String;)I
  2. D:\NetBeans\firstcup-dukes-age\nbproject\build-impl.xml:453: Deployment error:
  3. The module has not been deployed.
  4. See the server log for details.
  5. BUILD FAILED (total time: 5 seconds)
And the server log is here:

Expand|Select|Wrap|Line Numbers
  1. Exception occured in J2EEC Phase
  2. java.lang.NoSuchMethodError: com.sun.tools.apt.Main.process(Lcom/sun/mirror/apt/AnnotationProcessorFactory;[Ljava/lang/String;)I
  3.         at com.sun.tools.ws.wscompile.CompileTool.buildModel(CompileTool.java:605)
  4.         at com.sun.tools.ws.wscompile.CompileTool.run(CompileTool.java:538)
  5.         at com.sun.tools.ws.util.ToolBase.run(ToolBase.java:56)
  6.         at com.sun.tools.ws.util.WSToolsObjectFactoryImpl.wsgen(WSToolsObjectFactoryImpl.java:44)
  7.         at com.sun.enterprise.webservice.WsUtil.runWsGen(WsUtil.java:1820)
  8.         at com.sun.enterprise.webservice.WsUtil.genWSInfo(WsUtil.java:2089)
  9.         at com.sun.enterprise.deployment.backend.ModuleDeployer.loadDescriptors(ModuleDeployer.java:396)
  10.         at com.sun.enterprise.deployment.backend.WebModuleDeployer.deploy(WebModuleDeployer.java:155)
  11.         at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:160)
  12.         at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:169)
  13.         at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)
  14.         at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:871)
  15.         at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:266)
  16.         at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:739)
  17.         at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:174)
  18.         at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:210)
  19.  
What is this com.sun.tools.apt.Main.process() why i am getting same error for all the web services samples.?

It's usually advisable to test the installation using one of their test projects that they provide with their programs. Have you been able to deploy the project before?
ak1dnar's Avatar
Moderator
 
Join Date: Jan 2007
Location: Colombo
Posts: 1,440
#12: Jun 14 '07

re: Web Services using Java


Thank you guys,

When I build other web Application (Not web services), Netbeans allows me to build, deploy projects successfully.

And i used the tutorial samples under sun/netbeans for Web sevices.

Ok I'll remove the J2SE and J2EE from the system and NB also.
Will be right back after a fresh installation.
ak1dnar's Avatar
Moderator
 
Join Date: Jan 2007
Location: Colombo
Posts: 1,440
#13: Jun 15 '07

re: Web Services using Java


Hi,
I reinstalled JDK and netbeans.

Current configurations:

Expand|Select|Wrap|Line Numbers
  1. C:\>java -version
  2. java version "1.5.0"
  3. Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
  4. Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing)
Netbeans 5.5.1 under this location:
http://www.netbeans.info/downloads/start.php
http://us1.mirror.netbeans.org/downl..._1-windows.exe

And I didn't update the IDE for any other add-ons using update manager.

Now the problem is different than previous one.

I tried this sample application.
http://qa.netbeans.org/modules/j2ee/.../hello_ws.html

Again once i come up with deploy it getting this error.

under Output-HelloWs window:
Expand|Select|Wrap|Line Numbers
  1. init:
  2. deps-module-jar:
  3. deps-ear-jar:
  4. deps-jar:
  5. library-inclusion-in-archive:
  6. library-inclusion-in-manifest:
  7. wsgen-init-nonJSR109:
  8. wsgen-HelloWebService-nonJSR109:
  9. Exception in thread "main" java.lang.NoSuchMethodError: com.sun.tools.apt.Main.process(Lcom/sun/mirror/apt/AnnotationProcessorFactory;[Ljava/lang/String;)I
  10.         at com.sun.tools.ws.wscompile.WsgenTool.buildModel(WsgenTool.java:175)
  11.         at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:102)
  12.         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  13.         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  14.         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  15.         at java.lang.reflect.Method.invoke(Method.java:585)
  16.         at com.sun.tools.ws.Invoker.invoke(Invoker.java:100)
  17.         at com.sun.tools.ws.WsGen.main(WsGen.java:38)
  18. Command invoked: wsgen "C:\Program Files\Java\jdk1.5.0\jre\bin\java.exe" -Djava.endorsed.dirs=${jaxws.endorsed.dir} -classpath "C:\Program Files\Java\jdk1.5.0\lib\tools.jar;D:\NetBeans\HelloWs\build\web\WEB-INF\classes;C:\Program Files\netbeans-5.5.1\ide7\modules\ext\jaxws21\activation.jar;C:\Program Files\netbeans-5.5.1\ide7\modules\ext\jaxws21\FastInfoset.jar;C:\Program Files\netbeans-5.5.1\ide7\modules\ext\jaxws21\http.jar;C:\Program Files\netbeans-5.5.1\ide7\modules\ext\jaxws21\api\jaxb-api.jar;C:\Program Files\netbeans-5.5.1\ide7\modules\ext\jaxws21\jaxb-impl.jar;C:\Program Files\netbeans-5.5.1\ide7\modules\ext\jaxws21\jaxb-xjc.jar;C:\Program Files\netbeans-5.5.1\ide7\modules\ext\jaxws21\api\jaxws-api.jar;C:\Program Files\netbeans-5.5.1\ide7\modules\ext\jaxws21\jaxws-rt.jar;C:\Program Files\netbeans-5.5.1\ide7\modules\ext\jaxws21\jaxws-tools.jar;C:\Program Files\netbeans-5.5.1\ide7\modules\ext\jaxws21\api\jsr173_api.jar;C:\Program Files\netbeans-5.5.1\ide7\modules\ext\jaxws21\api\jsr181-api.jar;C:\Program Files\netbeans-5.5.1\ide7\modules\ext\jaxws21\jsr250-api.jar;C:\Program Files\netbeans-5.5.1\ide7\modules\ext\jaxws21\api\saaj-api.jar;C:\Program Files\netbeans-5.5.1\ide7\modules\ext\jaxws21\saaj-impl.jar;C:\Program Files\netbeans-5.5.1\ide7\modules\ext\jaxws21\sjsxp.jar;C:\Program Files\netbeans-5.5.1\ide7\modules\ext\jaxws21\stax-ex.jar;C:\Program Files\netbeans-5.5.1\ide7\modules\ext\jaxws21\streambuffer.jar" com.sun.tools.ws.WsGen -d D:\NetBeans\HelloWs\build\web\WEB-INF\classes -keep -wsdl -r D:\NetBeans\HelloWs\build\generated\wsgen\service -s D:\NetBeans\HelloWs\build\generated\wsgen\service org.netbeans.end2end.hellosample.HelloWebService
  19. D:\NetBeans\HelloWs\nbproject\build-impl.xml:303: wsgen failed
  20. BUILD FAILED (total time: 0 seconds)
  21.  
web service
Expand|Select|Wrap|Line Numbers
  1. package org.netbeans.end2end.hellosample;
  2.  
  3. import javax.jws.HandlerChain;
  4. import javax.jws.WebMethod;
  5. import javax.jws.WebParam;
  6. import javax.jws.WebService;
  7.  
  8. @WebService(serviceName="GreeterWs")
  9. @HandlerChain(name = "HelloWebService_handlerChain", file = "HelloWebService_handler.xml")
  10. public class HelloWebService
  11. {
  12.     @WebMethod(operationName="sayHi")
  13.     public String operation(@WebParam(name="name")String param)
  14.     {
  15.         return "Hi" + param;
  16.     }
  17.  
  18.     @WebMethod
  19.     public String sayHello(String s)
  20.     {
  21. return "Hello" +s;
  22.     }
  23.  
  24.  
  25. }
  26.  
Message Handler
Expand|Select|Wrap|Line Numbers
  1. package org.netbeans.end2end.hellosample;
  2.  
  3. import java.util.Collections;
  4. import java.util.Set;
  5. import javax.xml.namespace.QName;
  6. import javax.xml.soap.SOAPMessage;
  7. import javax.xml.ws.handler.MessageContext;
  8. import javax.xml.ws.handler.soap.SOAPHandler;
  9. import javax.xml.ws.handler.soap.SOAPMessageContext;
  10.  
  11.  
  12. public class MessageHandler implements SOAPHandler<SOAPMessageContext>
  13. {
  14.  
  15.  
  16.     public boolean handleMessage(SOAPMessageContext messageContext)
  17.     {
  18.         //SOAPMessage msg = messageContext.getMessage();
  19.          log(messageContext);
  20.         return true;
  21.     }
  22.      private void log(SOAPMessageContext messageContext)
  23.    {
  24.        Boolean outcoming = (Boolean)
  25.        messageContext.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);
  26.        if(outcoming.booleanValue())
  27.        {
  28.            System.out.println("\nOutcoming Message:");
  29.        }else
  30.        {
  31.            System.out.println("\nIncoming Message:");
  32.        }
  33.        SOAPMessage message= messageContext.getMessage();
  34.        try{
  35.            message.writeTo(System.out);
  36.            System.out.println("\n");
  37.        }catch(Exception e)
  38.        {
  39.            System.out.println("Exception "+e);
  40.        }
  41.    }
  42.  
  43.     public Set<QName> getHeaders()
  44.     {
  45.         return Collections.EMPTY_SET;
  46.     }
  47.  
  48.     public boolean handleFault(SOAPMessageContext messageContext)
  49.     {
  50.         return true;
  51.     }
  52.  
  53.     public void close(MessageContext context)
  54.     {
  55.     }
  56.  
  57. }
  58.  
Reply