[EJB 3.0] - Re: static ejb client stubs?
by robert.geisler
thank, jaikiran, for your response...
well, we learned that we have to generate the stubs explicitly by executing create_EJBStubs.bat in WebSphere installation directory that creates us a .jar file containing stub classes for EJBs in an .ear. we deploy this .jar with our standalone client later.
the disadvantage i see is the additional effort in putting together client libraries. the advantage is, that the client do not need to download stubs again and again.
at least this is how i think it is done by JBoss...? i imagine that our users download stubs again and again, whenever they start and stop the standalone client. or even whenever the client application does a remote lookup? or even whenever it does a remote call!?
am i right? or is there something like caching on client side?
this is the reason why i am interested in this... i would like to reduce network traffic by using static ejb stubs (in single server environment)... given that there is such a feature in JBoss...?
thank you again.
robert[img][/img]
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247866#4247866
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247866
16 years, 8 months
[JBossWS] - org.jboss.ws.WSException: Cannot obtain operation meta data
by karypid
Hi,
I'm trying to create a web service client with WS-RM enabled, that will work with a WebLogic 10gR3 service. When I run the client I get:
***********************
| Create Web Service Client...
| Create Web Service...
| Call Web Service Operation...
| Exception in thread "main" org.jboss.ws.extensions.wsrm.api.RMException: Unable to create WSRM sequence
| at org.jboss.ws.core.jaxws.client.ClientImpl.createSequence(ClientImpl.java:573)
| at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:168)
| at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150)
| at $Proxy14.deliver(Unknown Source)
| at cmr.messaging.clientsample.ClientSample.main(ClientSample.java:23)
| Caused by: org.jboss.ws.WSException: Cannot obtain operation meta data for: {http://docs.oasis-open.org/ws-rx/wsrm/200702}CreateSequence
| at org.jboss.ws.core.CommonClient.getOperationMetaData(CommonClient.java:201)
| at org.jboss.ws.core.CommonClient.getOperationMetaData(CommonClient.java:182)
| at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:295)
| at org.jboss.ws.core.jaxws.client.ClientImpl.createSequence(ClientImpl.java:559)
| ... 4 more
Any pointers as to what is going wrong? I use the following configuration for the client:
<?xml version="1.0" encoding="UTF-8"?>
| <jaxws-config xmlns="urn:jboss:jaxws-config:2.0"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:javaee="http://java.sun.com/xml/ns/javaee"
| xsi:schemaLocation="urn:jboss:jaxws-config:2.0 jaxws-config_2_0.xsd">
|
| <client-config>
| <config-name>Standard Anonymous WSRM Client</config-name>
| <reliable-messaging>
| <message-retransmission attempts="50"
| interval="10" timeout="10" />
| </reliable-messaging>
|
| <post-handler-chains>
| <javaee:handler-chain>
| <javaee:protocol-bindings>##SOAP11_HTTP</javaee:protocol-bindings>
| <javaee:handler>
| <javaee:handler-name>WSAddressing Handler</javaee:handler-name>
| <javaee:handler-class>org.jboss.ws.extensions.addressing.jaxws.WSAddressingClientHandler</javaee:handler-class>
| </javaee:handler>
|
| <javaee:handler>
| <javaee:handler-name>WSRM Handler</javaee:handler-name>
| <javaee:handler-class>org.jboss.ws.extensions.wsrm.jaxws.RMClientHandler</javaee:handler-class>
| </javaee:handler>
| </javaee:handler-chain>
| </post-handler-chains>
| </client-config>
| </jaxws-config>
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247865#4247865
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247865
16 years, 8 months