Help configuring server connection timeout

Hello I'm running JMS 3.6 SP3 in Windows and I'm trying to configure
the time it takes to generate a
[C4002]: Read packet failed. - cause: java.net.SocketException: Connection reset
message.
I've set up the following configuration, but it takes about 1:45-2:00 minutes to get the message.
Here's the configuration:
imqAddressList=mq://localhost:7676/jms
imqPingInterval=10
imqReconnectAttempts=-1
imqReconnectEnabled=true
imqReconnectInterval=10000
I would like this at around 30 seconds or less if possible.
Any help would be appreciated

Thanks for the reply.
In regards to your queustion I am running as JMS as my configuration.
Here's me queue receiver code that you wanted to look at.
import javax.jms.*;
import javax.naming.NamingException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Date;
public class QueueReceiver extends Thread implements ExceptionListener, JMSListener {
String queueName = null;
QueueConnectionFactory queueConnectionFactory = null;
javax.jms.Queue queue = null;
QueueConnection queueConnection = null;
QueueSession queueSession = null;
QueueReceiver queueReceiver = null;
TextMessage message = null;
TextListener textListener = null;
// List of listeners that will be started from the calling applications
private List listeners = new ArrayList();
public QueueReceiver(String queueName) {
// Store the queueName
this.queueName = queueName;
} // End of QueueReceiver
public void run() {
createConnection();
} // End of run()
public synchronized void addJMSListener(JMSListener l) {
listeners.add(l);
} // End of addJMSListener
public synchronized void removeJMSListener(JMSListener l) {
listeners.remove(l);
} // End of removeJMSListener
* This event will fire off that something has occurred. This will then
* be picked up from the calling application
* @param message String The message to pass back.
private synchronized void fireJMSEvent(String message) {
JMSEvent jmsEvent = new JMSEvent(this, message);
Iterator eventlisteners = listeners.iterator();
while (eventlisteners.hasNext()) {
((JMSListener) eventlisteners.next()).jmsReceived(jmsEvent);
} // End of fireJMSEvent
* This onException event is activated with a JMSException from the JMS Server
* For a complete list of available codes refer to the JavaDevelopers Guide/
* @param e JMSException The exception.
public void onException(JMSException e) {
if (e.getErrorCode() == "C4073") {
fireJMSEvent("Queue in use");
// Kill the Queue
queueConnection.close();
} else{
// This is for all other cases
fireJMSEvent("Network Error");
try{
queueConnection.close();
createConnection();
} catch (Exception ee) {
System.out.println("Attempting reconnection failure");
} //end onException
* This will catch and throw the JMSEvents received by it.
* @param event JMSEvent The JMSEvent
public void jmsReceived(JMSEvent event) {
// This event is from the TextListener stating that a message has been received
if (event.getMessage() == "Message Received") {
fireJMSEvent("Message Received");
} //End of jmsEvent
* Create the connectio to the queue
public void createConnection(){
boolean bolSkip = false;
if (queueConnectionFactory == null){
try {
queueConnectionFactory = SampleUtilities.getQueueConnectionFactory();
} catch (NamingException e) {
System.out.println("Exception = " + e.getMessage());
fireJMSEvent("Invalid name supplied");
bolSkip = true;
if (!bolSkip) {
try {
queueConnection = queueConnectionFactory.createQueueConnection();
queueConnection.setExceptionListener(this);
queueSession = queueConnection.createQueueSession(false,
Session.AUTO_ACKNOWLEDGE);
queue = (javax.jms.Queue) SampleUtilities.jndiLookup(queueName);
} catch (JMSException e) {
onException(e);
bolSkip = true;
} catch (Exception e) {
fireJMSEvent("Server not available");
bolSkip = true;
* Create session and receiver.
* Register message listener (TextListener).
* Start message delivery; listener displays the message obtained.
* Only do this if everything above was ok.
if (!bolSkip) {
try {
queueReceiver = queueSession.createReceiver(queue);
textListener = new TextListener();
textListener.addJMSListener(this);
queueReceiver.setMessageListener(textListener);
queueConnection.start();
// if successful to this point send back to calling app that the server is set up
fireJMSEvent("Server Started");
} catch (JMSException e) {
onException(e);
} // End of Class QueueReceiver
By the way what is the latest version of JMS for Windows?

Similar Messages

  • Possible to configure per connection timeout values?

    hi,
    please, does anybody know how (or whether or not it is even possible) to configure a "PER CONNECTION" timeout on the connections - created by jndi - to an ldap server?
    my understanding is that setting the "com.sun.jndi.ldap.connect.timeout" property on the javax.naming.directory.InitialDirContext sets a _global_ timeout value for _all_ connections created/managed by that InitialDirContext (that is, with a "PER CONTEXT" scope).
    however, what i would like to do instead, is somehow configure a different timeout value for each individual connection that a InitialDirContext might know about.
    the first solution that will probably pop in your head is "connection pool". however, the app sets "java.naming.ldap.factory.socket" property to a custom socket factory class. according to the following paragraph from the jndi tutorial, that disqualifies the app from using connection pools:
    "There are a couple of environment properties that automatically disqualify a Context instance from using a pooled connection. A Context instance cannot use a pooled connection if it has its "java.naming.ldap.factory.socket" property set to a custom socket factory class, or its "java.naming.security.sasl.callback" property set to a custom callback handler class, or its "com.sun.jndi.ldap.trace.ber" property set to enable protocol tracing."
    http://java.sun.com/products/jndi/tutorial/ldap/connect/config.html
    even if we could use connection pools, we still wouldn't be able to set "per connection" timeout values. would we?
    one proposed solution is to completely rip out jndi from the app and replace it with the netscape directory sdk for java. to me, that seems like too drastic a measure though - given the project's time-constraints (the way the app was originally designed does not lend itself to a straight-forward "pop-out/drop-in" type replacement). i was hoping there would be a simpler alternative (a jndi-based configuration type solution, for example).
    any suggestions would be gratefully appreciated. thanks in advance for your replies.

    Enable the Default Host option in the AirPort Admin Utility, use the IP address you have assigned to your server.

  • I need help configuring a connection with asdm 5.2 for asa

    Hi All
    I am very much a novice with asdm 5.2 for asa and I urgently need to configure a connection but don’t know how to. I have 2 domains at work and someone is trying to connect their sql client from their pc in one domain to the sql server in the other domain (DMZ).
    When he tries to connect he gets the error
    Cant connect to MySql Server at "IP Address" (10060)
    He is trying to connect on port 3306. Could anyone please give me any tips on how i can resolve this quickly? I know i am
    trying a shortcut on this one but I recently started a new job and thrown in the deep end here and need to learn this asdm 5.2 for asa product from scratch with nothing more than the manual that come with the cd . My Cisco knowledge is from 2001 when i did half of a ccna course.
    Any help would be greatly appreciated

    Hi,
    I'm not a security specialist but here is how I had it set up at home:
    Essentially a NAT and a rule forwarding the port are needed. In this particular case I had an Oracle server running and a person requested remote access. So, for example, the source address was his external IP and the destination was the Oracle's external IP. For the NAT the source was the internal IP of the Oracle server and the interface was Outside.
    Hope this points you in the right direction.

  • Help Set Proxy connection timeout

    Hi,
    I'm currently using: mysock.connect(sockaddr, 2000);
    to set socket connection timeout.
    Everything works fine until i set a proxy:
    System.setProperty("socksProxySet", "true");
    System.setProperty("socksProxyHost", "proxy");
    System.setProperty("socksProxyPort", "port");
    Can i also set connection timeout for the proxy?
    Message was edited by:
    Robotto

    Everything works fine until i set a proxy:are you not able to connect to the server? Whats the issue?

  • SQL Server  connection timeout

    Hello All.
    I use Golden Gate to extract from MS SQL Server 2005 and replicate to Oracle 11g database.
    EXTRACT works fine. But sometimes (once a day) it abends with the following message:
    2012-07-11 12:15:43 INFO OGG-01517 Position of first record processed LSN: 0x0056bf51:00002895:0001, 10.07.2012 12:27:45.
    TABLE resolved (entry DBO.DOCS):
    TABLE DBO.DOCS;
    Using the following key columns for source table DBO.DOCS: id.
    <..skip..>
    Source Context :
    SourceModule : [ggvam.gen]
    SourceID : [../gglib/ggvam/cvamgen.cpp]
    SourceFunction : [com_goldengate_vam::CVamGen::vamRead]
    SourceLine : [621]
    CommandTimeout
    2012-07-11 17:39:04 ERROR OGG-00146 VAM function VAMRead returned unexpected result: error 600 - VAM Client Report <[CTableDef::CheckName] Connection error Error (-2147217871):
    How can I avoid this error?
    Do I have to configure option "timeout"? How?

    If it really is a timeout issue (sometimes these error messages can be misleading), you can add a "sqlExec" statement in your extract prm file, at the beginning before your "table" statements, which executes only periodically rather than when records are read. This can be used to keep the connection alive (I believe there is an example of this in the docs : search for "SQLExec" in the admin or reference guide, or possibly the install guide for SQL server.)

  • Setting the server connection timeout, Mac Mail

    I have several POP accounts setup through Mac Mail and lately I've been running into problems where I can't send messages because of "two many simultaneous connections". I was told by my email host that it is likely caused by my email client maintaining an open connection with the server or idling, etc... I don't fully understand what they are referring to as I can't seem to locate any settings that pertain to this.
    A brief search shows this could be relevant to an IMAP account, but that is not how I configured them. Does anyone have any experience modifying how Mac Mail connects to the email servers, and closes the connection after send / receive is complete?
    Thanks
    Stephen

    Mail sent via att.net comes through as "via Yahoo" when I send something to Gmail, so I assume it's the case in California.
    I looked at all the headers.  Gmail is not involved nor would I expect it to be, at least when I send something.
    I got my info here:  ...
    Hmmm.  Looks like my yahoo servers still work but sometime in the last three years AT&T changed their server names to the ones on that page.  I just changed my server settings in Eudora (and also mail.app) to inbound.att.net and outbound.att.net and they work too.  I guess I'll leave them to those "new" (new to me) servers.
    And by the way, outbound.att.net doesn't support SSL, or at least seems not to since Mail bottoms out with the eternally spinning wheel whenever I check that option.
    Actually it does.  Note I said above all I changed was the servers, not any port, ssl, or authorization info.  And it works as expected.  So that's why you saw the rotating cursor, it was hanging when shaking hands with the server.
    If you look at table on that AT&T page, last two rows (incoming/outgoing port #) is shows the info I listed previously, i.e., ports and ssl.
    Anyway, thanks for making me aware of the server (change -- change from my point of view anyway).

  • Server Connection TimeOut

    hi
    I am trying to do an FTP with the server.I am able to connect to the server however when i do other operations such as listing dir files,getting files...i get a message "connection time out". can anyone tell me what the problem is? I tried using enterprises package.i had same problem.in fact one can check this out...from the demo program given by enterprises(edtFTPj)in their file system.(C:\edtftpj-1.5.0\demo).Thanks in advance

    This is wat i get when i execute demo.java of the package:
    DEBUG [com.enterprisedt.net.ftp.FTPClient] 27 Jun 2005 17:36:07.355 : Connecting t
    o /164.164.26.68:21
    DEBUG [com.enterprisedt.net.ftp.FTPControlSocket] 27 Jun 2005 17:36:07.402 : 220 T
    eresa FTP server (Version 5.60) ready.
    INFO [Demo] 27 Jun 2005 17:36:07.449 : Logging in
    DEBUG [com.enterprisedt.net.ftp.FTPControlSocket] 27 Jun 2005 17:36:07.449 : --->
    USER root
    DEBUG [com.enterprisedt.net.ftp.FTPControlSocket] 27 Jun 2005 17:36:07.449 : 331 P
    assword required for root.
    DEBUG [com.enterprisedt.net.ftp.FTPControlSocket] 27 Jun 2005 17:36:07.449 : --->
    PASS ********
    DEBUG [com.enterprisedt.net.ftp.FTPControlSocket] 27 Jun 2005 17:36:07.949 : 230 U
    ser root logged in.
    DEBUG [Demo] 27 Jun 2005 17:36:07.949 : Setting up passive, ASCII transfers
    DEBUG [com.enterprisedt.net.ftp.FTPControlSocket] 27 Jun 2005 17:36:07.949 : --->
    TYPE I
    DEBUG [com.enterprisedt.net.ftp.FTPControlSocket] 27 Jun 2005 17:36:07.949 : 200 T
    ype set to I.
    DEBUG [Demo] 27 Jun 2005 17:36:07.949 : Directory before put:
    DEBUG [com.enterprisedt.net.ftp.FTPControlSocket] 27 Jun 2005 17:36:07.949 : --->
    PASV
    DEBUG [com.enterprisedt.net.ftp.FTPControlSocket] 27 Jun 2005 17:36:07.949 : 227 E
    ntering Passive Mode (164,164,26,68,128,27)
    ERROR [Demo] 27 Jun 2005 17:36:28.941 : Demo failed : Connection timed out: connec
    t
    java.net.ConnectException: Connection timed out: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(Unknown Source)
    at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at com.enterprisedt.net.ftp.FTPControlSocket.newPassiveDataSocket(FTPContr
    olSocket.java:568)
    at com.enterprisedt.net.ftp.FTPControlSocket.createDataSocketPASV(FTPContr
    olSocket.java:552)
    at com.enterprisedt.net.ftp.FTPControlSocket.createDataSocket(FTPControlSo
    cket.java:361)
    at com.enterprisedt.net.ftp.FTPClient.dir(FTPClient.java:1998)
    at Demo.main(Demo.java:116)
    C:\edtftpj-1.5.0\demo>

  • Testing for server connection timeout error 500

    I have two servers that house different applications and web pages. Periodically one of the servers will be down for maintenance or scheduled reboots.
    I want to set up some links so that they point to a page that checks to see if the server is up. (I have tried HttpURLConnection and get positive results, but do not get anything if the server is not connected). If the server is up, it gets the request, if the server is not up, the request is forwarded to another server.

    Sam
    You will probably want to do something with the
    h the input before you use
    parseInt.
    maybe something like
    double firstnum = 23.42;
    double secondnum = 12;
    int sumtotal = firstnum + secondnum;
    total = parseInt(sumtotal);
    This is not javaScript, but it should hold the same
    premise.Wrong thread?

  • Help on peculiar connection timeout

    I've recently been unable to connect to a site (www.bdm.nsw.gov.au) that I used to access all the time. Now I always get a connection timed out message.
    The problem is independent of the browser I try to connect with: firefox, chromium, w3m, lynx, all have the same problem.
    I have a second machine running debian (etch). Same problem there.
    I have a third machine running OSX 10.4. No problem connecting to the site with firefox or safari.
    I'm on a dialup connection. (Yes, arch on dialup. Don't let anybody tell you it can't be done.) Both the arch and the debian systems are pretty minimal. Can't ping the site from any of my machines.
    I'm out of ideas. Can anyone give me a clue as to what could be the problem? What's the mac handling that linux can't?

    Sin.citadel wrote:do you have any iptables rules set up? do you get a static ip with the dialup connection, have you tried to ping the site?
    No iptable rules. No, it's a dynamic ip. As I said, I can't ping the site from any of my machines (no response at all).
    It seems to me that something's changed on the site I'm trying to access. But what is odd is that I can still connect to the site with a mac, but not with either linux machine. All of them use the same dialup connection. My arch system is constantly updated, of course, but the debian system hasn't been updated for years.

  • How to Configure Remote Connections To SQL Server 2008 R2 Express

    Post written June 10, 2010 and pertains to:
    SQL Server 2008 R2 Express on both my server and local machines: SQLX_SRV,
    SQLX_LOC
    SQL Server 2008 R2 Management Studio on both my server and local machines:
    MS_SRV, MS_LOC
    Windows Server 2008 R2 Enterprise installed on a Hyper-V VPS: WS
    SQL Server Configuration Manager on both my server and local machines:
    CMGR_SRV, CMGR_LOC
    Server Manager: SMGR
    I am connecting to my hosting server via Remote Desktop Connection: RDC
    I installed SQLX_SRV and MS_SRV on my hosting server and SQLX_LOC and MS_LOC on my local development machine.  I am able to use MS_LOC to connect to SQLX_LOC and to use MS_SRV to connect to SQLX_SRV.  However I am not able to use MS_LOC to connect
    with SQLX_SRV.  Here's what I have done so far:
    SMGR -> Configuration -> Windows Firewall to turn off the Windows Firewall for Domain, Private and Public profiles.  Obviously I'll change this later, but until I can connect I want to remove as many variables as possible.
    CMGR_SRV -> SQL Server Services to confirm that both SQL Server (SQLEXPRESS) and SQL Server Browser services were running.
    CMGR_SRV -> SQL Server Network Configuration -> Protocols for SQLEXPRESS to ENABLE the Shared Memory, Named Pipes, and TCP/IP protocols and DISABLE the deprecated VIA protocol.
    CMGR_SRV -> SQL Server Network Configuration -> Protocols for SQLEXPRESS -> double click TCP/IP to open the TCP/IP properties dialogue.  On the Protocol tab Enabled: Yes, Keep Alive: 30000, changed Listen All to No.  I've tried it both
    ways, but I've got six IP addresses on my server and I wanted to configure SQLEXPRESS to listen to only the first and primary IP.  On the IP Addresses tab went to IPALL and cleared the TCP Dynamic Ports field and entered 1433 in the TCP Port field. 
    For my first and primary IP Address I made sure that Enabled was Yes, I cleared the TCP Dynamic Ports field, and entered 1433 in the TCP Port field.  For all other IP Addresses Enabled was set to No and I cleared both the TCP Dynamic Ports and TCP Port
    fields.
    CMGR_SRV -> SQL Server Services -> SQL Server (SQLEXPRESS) right click and Restart.  This of course stopped and restarted my instance of SQLX_SRV enabling the TCP/IP configuration in the previous step to take effect.
    On my server, SQLX_SRV is the only instance of SQL Server running and so it's easy to hard wire it to the default port 1433.
    The instance name for both SQLX_SRV and SQLX_LOC is the default "SQLEXPRESS".  My server machine name is "SERVER1" on the EnglishBrains.com domain.  So the proper local name (local within the context of my remote server as connected via RDC) for
    my instance of SQLX_SRV would be:
    SERVER1\SQLEXPRESS 
    Note the use of a backslash NOT a forward slash. 
    Of course to connect remotely from my development machine, which is not on the same domain as my hosting server, I would need to specify the domain as well, so the SQL Server name becomes:
    SERVER1.EnglishBrains.com\SQLEXPRESS
    I must also use SQL Server Authentication.  Before I can use such a remote connection, however, there are still several configuration steps required.  So on my server (connected via RDC) I used MS_SRV to connect to SQLX_SRV using SERVER1\SQLEXPRESS
    for the server name and Windows Authentication.  Once connected I performed the following steps:
    MS_SRV -> right click the connected parent SERVER1\SQLEXPRESS instance node at the top -> Properties -> Security -> Server authentication: select "SQL Server and Windows Authentication mode".  This will enable connections using either type
    of authentication.
    Next, leaving the Server Properties dialogue open, Connections -> check "Allow remote connections to this server" box.
    Click OK to save these changes and close the Server Properties dialogue.
    MS_SRV -> Security -> right click Logins and select "New Login...", the Login - New dialogue opens.
    On the General page Enter a name for your new login
    Select SQL Server Authorization
    Enter and confirm a password
    Uncheck Enforce password expiration
    Select the default Database and Language
    On the ServerRoles page Public will be checked, also check SysAdmin.  This is probably not a good idea and I'll uncheck this as soon as I can connect to the SQLX_SRV.
    On the User Mapping page select the databases you want your new Login to access and enter the Default Schema of "dbo".
    At the bottom of the User Mapping page you'll see the Database Roles table.  Public will be selected by default.  Also select db_Owner.  Again this is probably not a good idea, and I'll refine this once I can connect.
    On the Status page confirm that "Grant" is checked under "Permission to connect to database engine" and "Enable" is checked under "Login".
    Click OK to save all changes and close the Login - New dialogue.
    With these steps completed you should now be able to use MS_SRV to connect to SQLX_SRV using SQL Server Authentication by supplying the name and password for your new Login.  I tried this and it worked fine.  Next I tried to use this same login
    remotely, that is I went to my local development machine and used MS_LOC to try and connect to SQLX_SRV by using
    SERVER1.EnglishBrains.com\SQLEXPRESS
    and opting for SQL Server Authentication and supplying the name and password of my new login.
    THIS DID NOT WORK??  Instead I get the following error message:
    Cannot connect to SERVER1.EnglishBrains.com\SQLEXPRESS.
    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider:
    SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) (Microsoft SQL Server, Error: -1)
    For help, click:
    http://www.microsoft.com/products/ee/transform.aspx?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=-1
    If you follow the suggested help link, you are told:
    The SQL Server client cannot connect to the server.  This error could be caused by one of the following reasons:
    A specified SQL Server instance name is not valid.
    The TCP, or named pipes protocols are not enabled.
    The firewall on the server has refused the connection.
    The SQL Server Browser service (sqlbrowser) is not started.
    WRONG on all 4 counts!  The instance name IS valid.  Both TCP/IP and Named Pipes protocols are enabled.  The firewall has been shut down, so it is not relevant.  Finally the SQL Server Browser IS started.
    The next thing I tried was to circumvent discovery by the SQL Browser service by using the following syntax to specify the IP address and port directly when specifying the SQL Server name.
    tcp:68.71.134.186,1433
    Using this in the Server Name field I was able to use MS_SRV to successfully connect to SQLX_SRV (using SQL Server Authentication of course) with or without the SQL Browser service running. 
    However when I tried to connect from MS_LOC to SQLX_SRV using this same login (WITH SQL Browser service running just for good measure) it does not work??  I get the following error message:
    Cannot connect to tcp:68.71.134.186,1433.
    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider:
    TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.) (Microsoft SQL Server, Error: 10060)
    For help, click:
    http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=10060&LinkId=20476
    If you follow the help link you are told:
    "The SQL Server client cannot connect to the server. This error could occur because either the firewall on the server has refused the connection or the server is not configured to accept remote connections."
    However, the firewall has been shut down and the server HAS been configured to accept remote connections! 
    I confirmed that i could indeed Ping to 68.71.134.186  and running NetStat -a |find /i "listening" on the server shows that the server is indeed listening at 68.71.134.186 Port 1433 -- which is why I was able to connect to SQLX_SRV using MS_SRV with
    tcp:68.71.134.186,1433 .
    IN SUMMARY: Even though I can connect to my SQLEXPRESS instance multiple ways from the server itself, I cannot connect remotely from my development machine! 
    If anyone can help me figure out why I would be very, very grateful!

    My two cents to help you out on c# code example to configure the remote sql server express.
    Hope it helps. It works, but you have to be extra carefull to read it all and setup the server configuration and netsh commands; also the port fowarding on the router.
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Data.SqlClient;
    namespace sqlremoteconnection
    class Program
    static void Main(string[] args)
    // this is the local sql server connection
    // 192.168.1.101\SQLEXPRESS
    // now, the configuration for remote access:
    // activate SQL SERVER BROWSER - set it to start "automatic"; then START UP
    // SQL Server Configuration Manager
    // --> SQL SERVER BROWSER -> properties -> Service -> Start Mode -> automatic -> apply
    // --> Log On -> Start -> Ok
                // netsh firewall set portopening protocol = TCP port = 1433 name = SQLPort mode = ENABLE scope = all profile = CURRENT
                // netsh firewall set portopening protocol = UDP port = 1434 name = SQLPort mode = ENABLE scope = all profile = CURRENT
                // netsh advfirewall firewall add rule name = SQLPort dir = in protocol = tcp action = allow localport = 1433 remoteip = any profile = PUBLIC
                // netsh advfirewall firewall add rule name = SQLPort dir = in protocol = udp action = allow localport = 1434 remoteip = any profile = PUBLIC
    // VERY IMPORTANT FOR REMOTE ACCESS: you have to add the rules on port fowarding
    // on the router!!!
    // TCP: 1433
    // UDP: 1434
    // or just a personal port like TCP 31433/UDP 31434
    // read carefully the netsh commands above
    // server name: 123.132.24.177\SQLEXPRESS
    // server name: anyurl.myftp.org\SQLEXPRESS,1433 <<-- regular port
    // server name: anyurl.myftp.org\SQLEXPRESS
    // server name: anyurl.myftp.org\SQLEXPRESS,31433 <<-- WOW different PORT here!!!
    SqlConnection myConnection = new SqlConnection(
    "user id=sa;" +
    "password=password_goes_here!;" +
    "server=anyurl.myftp.org\\SQLEXPRESS,31433;" +
    //"Trusted_Connection=no;" +
    "database=database_name_here; " +
    "connection timeout=30");
    try
    myConnection.Open();
    catch (Exception e)
    Console.WriteLine(e.ToString());
    try
    SqlDataReader myReader = null;
    SqlCommand myCommand = new SqlCommand("select * from mytable", myConnection);
    myReader = myCommand.ExecuteReader();
    while (myReader.Read())
    Console.WriteLine(myReader["tab01_name"].ToString());
    Console.WriteLine(myReader["tab01_age"].ToString());
    catch (Exception e)
    Console.WriteLine(e.ToString());
    try
    myConnection.Close();
    catch (Exception e)
    Console.WriteLine(e.ToString());
    Adelino Araujo

  • Configuring JCo3 Connection Pool with single sign on on non SAP Java server

    Hi Everyone,
    i have configured a connection pool on JBoss as per JCo3 Documentation and is working great.
    Now I need help to configure this connection pool with single sign on so that RFc on SAP ECC systems are executed using end users credential rather than using single user name password used to configure JCo connection pool.
    On SAP Java stack I am sure its possible within Java WebDynpro    and i assume using JCA resource adapter. But what if we don't want to use SAP Java App server.
    Any help will be appreciated.
    Thanks,
    Divyakumar Jain

    Eason, 你好!
    I have exactly the same problem.  Did you find a solution to this problem?  If so, please let me know!

  • Need help to Configure FTPS connection for File Sender Adapter

    Hi,
    I want to Configure, FTPS connection (Secured Connection) for File Sender Adapter. Could anyone please guide me, what Information I require to configure. I just want to know what Information should I request the team inorder the configure FTPS so that it can be deployed properly.
    I have checked with [SAP Help Link|http://help.sap.com/saphelp_nw04/helpdata/EN/e3/94007075cae04f930cc4c034e411e1/content.htm] and while configuring the communication channel found that I need Keystore and the X.509 Certificate and Private Key.  which needs to be deployed on the J2EE server by using the Visual Administrator.
    Is there anything else, I need to configure.
    Any help would be appreciated in this regard.
    Thanks & Regards,
    Varun.K

    The basic things are Certificate/Keys which you already know. Usually it is enough for running a sceanrio.
    However, if you have additional requirements, like FTPS for "Connection Security" for encryption, then you may need additional details like commands. Rest all settings are same as FTP.
    Regards,
    Prateek

  • I am getting CONNECTION TIMEOUT error in my macbook(10.7.4).plzzz help me

    i am getting CONNECTION TIMEOUT error in my macbook(10.7.4).plzzz help me

    Thank you very much, i guess it will be the remote servers.
    Then i got this critical error on my local server
    Automatic mail message send from usa12 for SID USA on Fri Dec 15 15:00:01 EST 2006
    DONOT REPLY FOR THIS MESSAGE.....
    Please check the follwing files ( will exist if there was an error )
    /u01/app/oracle/admin/usa/bdump/alert_usa.log.121506.1500 ......
    /u01/app/oracle/product/8.1.7/network/log/listener.log.121506.1500 .....
    ORA-00600: internal error code, arguments: [17182], [27793076],
    I know i need to contact oracle , when i went to Metalink ,i needed to run their RDA it is like diagnostic report script and include it before u send to them.
    I needed some permissions from my Senior so i will do it on monday.
    do you have any suggestions????

  • SQL2012: Internal Error: The operation terminated unsuccessfully. The connection timeout was exceeded. Server: The operation has been cancelled

    When rendering a SSRS native mode report based on a query to SSAS the report with fail with the following error:
    An error has occurred during report processing. (rsProcessingAborted)  Cannot read the next data row for the dataset. (rsErrorReadingNextDataRow).  The connection either timed out or was lost.  Unable to read data from the transport connection:
    An existing connection was forcibly closed by the remote host.
    Putting a trace on the SSAS instance, I get an error:
    Internal error: The operation terminated unsuccessfully.  The connection timeout was exceeded. Server: The operation has been cancelled.
    I've modified the IIS (6) application pool timeouts, the SSRS rsreportserver.config timeouts, and the SSAS timeouts.  Restarted services, rebooted, and still I get this error.
    The report will render if I select a shorter time period (less data, shorter query time).
    Running SQL2012 (11.0.5058.0), SSAS and SSRS on separate servers, same subnet.
    Any help or suggested troubleshooting greatly appreciated.

    Please check the links below.
    http://www.symantec.com/business/support/index?page=content&id=TECH186577
    https://support.microsoft.com/kb/2200755?wa=wsignin1.0
    http://msdn.microsoft.com/en-IN/library/ms155782.aspx
    http://blogs.msdn.com/b/dynamicsaxbi/archive/2013/02/14/how-to-addressing-ssrs-session-timeouts.aspx

  • Verifying Server Connection in Configuration Manager

    I am trying to deploy ES3 on Weblogic 10.3.6 and am having a problem with Configuration Manager. When I Verify Server Connection, the CM spins for a bit then comes back with a ALC-LCM-100-011 error, Cannot Connect to Application Server.
    In the CM log there is this:
    com.adobe.livecycle.cdv.CDVInternalException[ALC-LCM-100-011]: Cannot connect to application server.
    Application server host or port may be invalid.
    Caused by: java.io.IOException: Unable to resolve 'weblogic.management.mbeanservers.domainruntime'. Resolved 'weblogic.management.mbeanservers'
    I know the info is correct, in fact when I intentionally use a wrong password or account the CM immediately returns that the info is wrong.
    My WL architecture has a WL domain with distributed development and staging managed servers (no clusters). The Admin server is standalone, as are the two managed servers. I am attempting to install on one of the managed servers.
    Any hints here? Thanks!

    See the link http://help.adobe.com/en_US/livecycle/10.0/PrepareInstallSingle/WS624e3cba99b79e1229e967b2 12eea97f932-7ffe.html . It has the below text :-
    Two primary startup scenarios are available for WebLogic:
    Using Node Manager and configuring through the Administration Server (recommended)
    Directly starting the Managed Servers with configurations in the StartManagedWebLogic scripts
    To use the automatic configuration features of Configuration Manager (the recommended option), you must use the Node Manager and configure through the Administration Server.
    If you are directly starting the Managed Servers, you can still use the automatic configuration features of Configuration Manager. However, you must manually enter the Configuration Manager changes into the StartManagedWebLogic scripts. For the appropriate steps, see Installing and Deploying LiveCycle for WebLogic .
    I think, if you want to use configuration manager for authomatically configuring the managed servers, you have to supply the admin server port while verifying the connection for weblogic server.

Maybe you are looking for

  • Battery Life and apps - specifically: Whatsapp, Gr...

    Experiment: Smartphone battery life and Web 2.0 applications Objective: To determine the battery life of a Nokia Symbian S60v3 {or ^3} phone under the use of web applications, the majority of which are social networking apps. Apparatus: Nokia S60v3 F

  • XML..: Problem getting the data in the XML-file..

    I'm developing a flash-file for my customer to use when displaying list of products he's selling. His list of products is inside a XML-file and he want me to display an overview of the products inside a datagrid, so when you click on the product you'

  • VF0640-NO MONITOR PICTURE

    Greetings This is my fist visit to this forum. PC Details WIN XP PRO SP3 - Fully updated/patched Pentium 4 3.2 GPR - nVidia 6800 GT I purchased the Socialize VF0640 in May this year. Install and setup no problem at all. Last night, I did a Skype and

  • Replicating OIM 10g environment

    OIM Gurus What is the best strategy to replicate an existing OIM 10g environment e.g. for OIM 9102 on Websphere with Oracle Database. What can be the different ways of doing this.

  • There is on situation of re usability of code ,for which i am using sp.

    Hi,       Please suggest , can any thing else can be used for reusablility and performance. I am using stored poc for reusablility of code. CREATE TABLE @acb( id, name) INSERT INTO @acb  EXEC [GETSP] @id Select * From xyz a join @acb on a.id=b.id you