[JBossWS] - Re: Jbossws Tutorial.
by zeeshan.javeed
I was doing a mistake and it deployed succesfully.
Now , I created consumer.java
| import java.rmi.RemoteException;
|
| import javax.xml.rpc.ServiceException;
| import de.iplabs.*;
|
| public class consumer
| {
| public static void main(String args[])
| {
|
| HelloWorldImplService service = new HelloWorldImplService ();
| HelloWorldImpl user = service.getHelloWorldImplPort();
| System.out.println("Server said: " +user.getName());
| System.out.println("Server said: " +user.getAge());
| }
| }
|
and when i run it, i get this error .....
C:\Office\WebService\complex\Consumer>java consumer
Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Canot get target bean instance
at com.sun.xml.internal.ws.encoding.soap.ClientEncoderDecoder.toMessageInfo(Unknown Source)
at com.sun.xml.internal.ws.encoding.soap.client.SOAPXMLDecoder.toMessageInfo(Unknown Source)
at com.sun.xml.internal.ws.protocol.soap.client.SOAPMessageDispatcher.receive(Unknown Source)
at com.sun.xml.internal.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(Unknown Source)
at com.sun.xml.internal.ws.protocol.soap.client.SOAPMessageDispatcher.send(Unknown Source)
at com.sun.xml.internal.ws.encoding.soap.internal.DelegateBase.send(Unknown Source)
at com.sun.xml.internal.ws.client.EndpointIFInvocationHandler.implementSEIMethod(Unknown Source)
at com.sun.xml.internal.ws.client.EndpointIFInvocationHandler.invoke(Unknown Source)
at $Proxy9.getName(Unknown Source)
at consumer.main(consumer.java:13)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096987#4096987
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096987
18Â years, 9Â months
[EJB/JBoss] - EJB with infinite loop does not timeout
by eia
Hi to all,
I have an application which calls other Statless Session Beans, and i want that my application be independent and be protected against EJB which have high executions times.
My application has the EJB reference which will call and tests if the execution time of an EJB exceeds a defined timeout. My code tests the duration of the execution and calls the remove() method of that EJB.
What i saw is that the remove() method is called and returns, but the CPU usage of that EJB is not freed. Apparently the EJB is NOT removed and stopped by the Container.
I have tested with an Stateless Session Bean which has a method that implements a infinite loop. So this EJB never returns.
I need help in order to know how to signal the Container to stop this EJB and to freed the resources used by it.
Thanks in advance for your help.
Jo
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096985#4096985
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096985
18Â years, 9Â months