[Remoting] - Re: Socket read stuck on a client invoke call
by sarbu
Hi,
The scenario is the following: I have two systems that communicates with each other using remoting. When each system is started, I create a client connector to send requests to peer and a server connector to receive requests from peer.
I start both systems and the two way comms is up and running. When one node wants to invoke a API on the peer node, it calls the invoke method of the client connector. This connector has a listener for callback incase the peer is lost. The ping time for this listener is set at 10 seconds.
In the above scenario, I reboot one machine. In about 10 seconds, I get a connect lost event on the listener. I remove the client connector object.
The problem that I encountered was in this 10 second time frame, if I call client.invoke() API, the request gets stuck. I specified the timeout (socketTimeout) in the URI to be 120seconds. However, the request was stuck and did not timeout until 30 mins (this happens to be the default timeout).
All other requests are blocked at this time. Even the listener call back for the connection lost is also blocked. After 30 minutes, I see a large number of queued connection lost events in the queue in the listener. Every event in the queue creates another thread and calls the listener method.
Hope I am clear. Let me know if you need any more information
Saravanan
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980549#3980549
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980549
19 years, 6 months
[JBossWS] - Re: Can't get wstools to work for multiple endpoints in JBos
by dmitri_furman
Here is what I did to work around the issue. I manually modified webservices.xml. I changed the namespace name from impl to impl1, added a new namespace in webservices tag and named it impl2. Look at the file below. The changes are in bold:
<webservices version='1.1' xmlns='http://java.sun.com/xml/ns/j2ee' xmlns:impl1='http://edv.etenet.com/AddressValidationService' xmlns:impl2='http://edv.etenet.com/BenefitsValidationService' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd'>
<webservice-description>
<webservice-description-name>AddressValidationService</webservice-description-name>
<wsdl-file>META-INF/wsdl/AddressValidationService.wsdl</wsdl-file>
<jaxrpc-mapping-file>META-INF/AddressValidationService-mapping.xml</jaxrpc-mapping-file>
<port-component>
<port-component-name>AddressValidationServiceSEIPort</port-component-name>
<wsdl-port>impl1:AddressValidationServiceSEIPort</wsdl-port>
<service-endpoint-interface>com.psc.edv.avs.ejb.AddressValidationServiceSEI</service-endpoint-interface>
<service-impl-bean>
<ejb-link>AddressValidationService</ejb-link>
</service-impl-bean>
<handler-name>com.psc.edv.audit.AuditHandler</handler-name>
<handler-class>com.psc.edv.audit.AuditHandler</handler-class>
</port-component>
</webservice-description>
<webservice-description>
<webservice-description-name>BenefitsValidationService</webservice-description-name>
<wsdl-file>META-INF/wsdl/BenefitsValidationService.wsdl</wsdl-file>
<jaxrpc-mapping-file>META-INF/BenefitsValidationService-mapping.xml</jaxrpc-mapping-file>
<port-component>
<port-component-name>BenefitsValidationServiceSEIPort</port-component-name>
<wsdl-port>impl2:BenefitsValidationServiceSEIPort</wsdl-port>
<service-endpoint-interface>com.psc.edv.bvs.ejb.BenefitsValidationServiceSEI</service-endpoint-interface>
<service-impl-bean>
<ejb-link>BenefitsValidationService</ejb-link>
</service-impl-bean>
<handler-name>com.psc.edv.audit.AuditHandler</handler-name>
<handler-class>com.psc.edv.audit.AuditHandler</handler-class>
</port-component>
</webservice-description>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980544#3980544
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980544
19 years, 6 months
[JBoss Seam] - Injection not happening?
by bsheward
Hi,
I have a POJO JavaBean and JSF page which sets a property in that POJO. I have Log4J output which shows the property of the POJO being set to reasonable values.
I have a SessionBean which contains a method which should act upon that POJO. I can see the method being executed, but the @In'd property is always null.
| @Stateful
| @Scope(SESSION)
| @Name("fileCabinetSession")
| public class FileCabinetSession implements FileCabinetSessionLocal, FileCabinetSessionRemote {
|
| @In(required=true)
| private FileCabinetEntry fileCabinetEntry;
|
| public void importFile() throws Exception {
|
| if ( fileCabinetEntry == null ) {
| System.out.println( "FCE IS NULL" );
| } else {
| System.out.println( "FCE IS: " + fileCabinetEntry.toString() );
| fileCabinetService.importFile( fileCabinetEntry );
| }
| }
|
The JSF file is:
| <h:form enctype="multipart/form-data">
| <t:inputFileUpload value="#{fileCabinetEntry.file}"/>
| <h:commandButton type="submit" value="Import New"
| action="#{fileCabinetSession.importFile}" />
| <h:messages />
| </h:form>
|
I can see in the debug.seam page that both fileCabinetEntry and fileCabinetSession objects exist in the application context.
Can anyone tell me why the fileCabinetEntry isn't being injected?
Thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980543#3980543
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980543
19 years, 6 months