[Beginners Corner] - Re: No answer after run command
by zofe7
anonymous wrote : Does it hang? Or does the control return back to the command prompt?
The control does return to back to the command prompt.
echo %JAVA_HOME% outputs:
C:\Sun\SDK\jdk\jre\bin
This is actually where I put my downloaded Java EE + SDK, bin being the directory where the client and server directories lie.
The whole output from trying to run it:
anonymous wrote :
| C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin>run
|
| C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin>rem ------------------------------
| -------------------------------------------
|
| C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin>rem JBoss Bootstrap Script for Win32
|
| C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin>rem ------------------------------
| -------------------------------------------
|
| C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin>rem $Id: run.bat 73584 2008-05-22
| 12:09:26Z dimitris(a)jboss.org $
|
| C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin>set DIRNAME=.\
|
| C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin>if "Windows_NT" == "Windows_NT" set DIRNAME=C:\Installs\jboss-4.2.3.GA\jboss4.2.3.GA\bin\
|
| C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin>set PROGNAME=run.bat
|
| C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin>if "Windows_NT" == "Windows_NT" set PROGNAME=run.bat
|
| C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin>pushd C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin\..
|
| C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA>set JBOSS_HOME=C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA
|
| C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA>popd
|
| C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin>REM Add bin/native to the PATH if present
|
| C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin>if exist "C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin\native" set PATH=C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin\native;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;c:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files (x86)\SSH Communications Security\SSH Secure Shell;C:\Program Files (x86)\Common Files\Teleca Shared;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\Java\jre1.6.0_07\bin;C:\Sun\SDK\bin;C:\Program Files (x86)\SSH Communications Security\SSH Secure Shell
|
| C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin>if exist "C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin\native" set JAVA_OPTS= -Djava.library.path="C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;c:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files (x86)\SSH Communications Security\SSH Secu
| re Shell;C:\Program Files (x86)\Common Files\Teleca Shared;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\Java\jre1.6.0_07\bin;C:\Sun\SDK\bin;C:\Program Files (x86)\SSH Communications Security\SSH Secure Shell"
|
| C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin>rem Find run.jar, or we can't continue
|
| C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin>set RUNJAR=C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin\run.jar
|
| C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin>if exist "C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin\run.jar" goto FOUND_RUN_JAR
|
| C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin>if not "C:\Sun\SDK\jdk\jre\bin" == "" goto ADD_TOOLS
|
| C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin>set JAVA=C:\Sun\SDK\jdk\jre\bin\bin\java
|
| C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin>rem A full JDK with toos.jar is not required anymore since jboss web packages
|
| C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin>rem the eclipse jdt compiler and javassist has its own internal compiler.
|
| C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin>if not exist "C:\Sun\SDK\jdk\jre\bin\lib\tools.jar" goto SKIP_TOOLS
|
| C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin>rem If JBOSS_CLASSPATH or JAVAC_JAR is empty, don't include it, as this will
|
| C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin>rem result in including the local directory in the classpath, which makes
|
| C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin>rem error tracking harder.
|
| C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin>if not "" == "" set RUNJAR=;C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin\run.jar
|
| C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin>if "" == "" set RUN_CLASSPATH=C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin\run.jar
|
| C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin>if "C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin\run.jar" == "" set RUN_CLASSPATH=;C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin\run.jar
|
| C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin>set JBOSS_CLASSPATH=C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin\run.jar
|
| C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin>rem Setup JBoss specific properties
|
| C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin>set JAVA_OPTS=-Dprogram.name=run.bat
|
| C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin>rem Add -server to the JVM options, if supported
|
| C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin>"C:\Sun\SDK\jdk\jre\bin\bin\java" -server -version 2>&1 | findstr /I hotspot 1>nul
|
| C:\Installs\jboss-4.2.3.GA\jboss-4.2.3.GA\bin>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4171522#4171522
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4171522
17 years, 10 months
[JBossWS] - Handling timeouts in WebService client
by rohit.macherla
Hi all,
I have JBoss 4.2.2.GA version installed on a HP Unix machine. We have a WebService, say A, that calls another WebService, say B. When A calls B it usually takes a lot of time, say 3-4 minutes to respond. I would like to know where to configure the timeout value for the WebService client A.
I have increased the Transaction timeout of the transaction-manager MBean to 400 ( I guess it is in seconds). Still we don't find any improvement and we get a transfer-timeout error.
|
| <!--
| | The fast in-memory transaction manager.
| | Deprecated in JBossAS v4.2. Use JBossTS JTA instead.
| - ->
| <mbean code="org.jboss.tm.TransactionManagerService"
| name="jboss:service=TransactionManager"
| xmbean-dd="resource:xmdesc/TransactionManagerService-xmbean.xml">
| <attribute name="TransactionTimeout">400</attribute>
| <!- - set to false to disable transaction demarcation over IIOP - ->
| <attribute name="GlobalIdsEnabled">true</attribute>
| <depends optional-attribute-name="XidFactory">jboss:service=XidFactory</depends>
|
| <!- - Transaction Integrity Checking - ->
| <!- - Force a rollback if another thread is associated with the transaction at commit - ->
| <!- - <depends optional-attribute-name="TransactionIntegrityFactory"
| proxy-type="org.jboss.tm.integrity.TransactionIntegrityFactory">
| <mbean code="org.jboss.tm.integrity.FailIncompleteTransaction"
| name="jboss:service=TransactionManager,plugin=TransactionIntegrity"/>
| </depends> - ->
| </mbean>
| -->
|
| <!-- JBoss Transactions JTA -->
| <mbean code="com.arjuna.ats.jbossatx.jta.TransactionManagerService"
| name="jboss:service=TransactionManager">
| <attribute name="TransactionTimeout">400</attribute>
| <attribute name="ObjectStoreDir">${jboss.server.data.dir}/tx-object-store</attribute>
| </mbean>
|
|
|
Also, since we are developing the code in Java, we have found some of the following properties that are configured in our code :
|
| timeout.TestTimeOut_Service service = new timeout.TestTimeOut_Service();
| timeout.TestTimeOut port = service.getTestTimeOutPort();
|
| ((BindingProvider)port).getRequestContext().
| put("com.sun.xml.ws.request.timeout", 4*60*1000);
|
| ((BindingProvider)port).getRequestContext().put(
| BindingProviderProperties.REQUEST_TIMEOUT,
| 4*60*1000);
|
| ((BindingProvider)port).getRequestContext().put(
| BindingProviderProperties.CONNECT_TIMEOUT,
| 4*60*1000);
|
| ((BindingProvider)port).getRequestContext().put(
| "com.ibm.SOAP.requestTimeout",
| 4*60*1000);
| ((BindingProvider)port).getRequestContext().put(
| "org.jboss.webservice.timeout",
| 4*60*1000);
|
| ((BindingProvider)port).getRequestContext().put(
| "org.jboss.webservice.client.timeout",
| 4*60*1000);
| ((BindingProvider)port).getRequestContext().put(
| "org.jboss.ws.timeout",
| 4*60*1000);
|
|
where, the "TestTimeOut_Service" is the WebService name and the 'port' object is the WebService Port for the "TestTimeOut_Service". We are using NetBeans for developing. And this code change does not help us in increasing the timeout because the WebService A throws a transfer timeout at about 120 seconds almost always.
Please suggest a proper place where we can set the client timeout when calling other
webservices.
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4171508#4171508
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4171508
17 years, 10 months