JNDI connection creation timeouts

Hi,
I've a question concerning connection creation timeouts. The Tutorial (http://java.sun.com/products/jndi/tutorial/ldap/connect/create.html) says "By default, this timeout period is the network (TCP) timeout value, which is in the order of a few minutes. " But which exact tcp-value is it? tcp_keepalive_time? I need to know the default value of this.
Thanx for any hints.
Regards,
Ingo

Hi,
Please let me know if you found the answer. I have the same query. Also, is there any way using JNDI to avoid closing the connection due to TCP timeout as a firewall may time-out after a specified period of inactivity.? That is, If a long-running query is established with LDAP server, can the application keep the session active by sending a keep-alive across the connection?
Thanks in advance.

Similar Messages

  • How to setup BPEL JNDI connection on the application server

    Hi
    Can anyone tell me how to write a JNDI connection for my BPEL process? Currently we are invoking all my BPEL processes from a property file, but i need to call my BPEL process thru JNDI connection. Is it possible? If yes then How?
    Has anyone got any idea? Please let me know
    BTW, you need more clarification on the question, let me know please.
    Thanks.
    Deepak

    Hi Grafl,
    Chk this link
    Folder creation in AL11 using ABAP program
    try this code.This works on UNIX servers
    data: unixcom like   rlgrap-filename.
    data: begin of tabl occurs 500,       
            line(400),    
          end of tabl.
    dir = unixcom = 'mkdir mydir'. "command to create dir
    "to execute the unix command 
    call 'SYSTEM' id 'COMMAND' field unixcom
                      id 'TAB' field tabl[].
    <b>Reward Points if Useful</b>
    Regards
    Gokul

  • Cannot connect MS SQL Server2005 by using JDBC(JNDI) connection

    Hi all,
    I met a problem when I was trying to create a JDBC(JNDI) connection in crystal report 2008, the following error dialog shows up, it said:
    Database Connector Error: 'SQL Exceptions: [SQL State:] S1000 [Error Message:] [Microsoft][SQL Native Client]Connection is busy with results for another command'
    here is the steps how to reproduce this problem:
    1) create a DSN(Data source name) in ODBC Data Source Administrator dialog, suppose the DSN is test
        (and the DSN test show it works well)
    2) start up Crystal Report 2008, click New to create a new report, the Standard Report Creation Wizard show up
    3) expand Create New Connection node, then double click JDBC(JNDI) note
    4) the JDBC (JNDI) dialog shows up, chooose JDBC Connection in the dialog, and fill the empty fields with:
       Connection URL: jdbc:odbc:test
       Database Classname:sun.jdbc.odbc.JdbcOdbcDriver
    5) click next, it comes to the next pannel, and fill the empty fields with:
        Database: MyTestDB
        UserID: sa
        Password: sa
    6) then click Finish buttion.
    7) a new connection is created, but when I expand the new created connection, an error dialog shows up
      Database Connector Error: 'SQL Exceptions: [SQL State:] S1000 [Error Message:] [Microsoft][SQL Native Client]Connection is busy with results for another command'
    does anyone knows what's wrong with my setting? any help would be appreciated.
    Best Regards
    Tian-liang

    Hi Tian-liang,
    Try using Microsofts JDBC driver rather than Suns. Also search these forums, other have run into the same issue.
    Thank you
    Don

  • JNDI connection error - page not rendered properly

    Dear All.
    Always when I go to my application url I have er: "JBO-26061: Error while opening JDBC connection"
    and a page is displayed only partially (not fully rendered).
    In my case i have 5 development enviroments where I'm deploying my application.
    On 3 envs app works prefectly but on 2 not. The only main difference (that i found) between thoese
    servers is a timezone. Env: 1,2,3 has GMT+1 last two GMT. I didn't set up those machines, but from
    far as I was told, configuration is the same. Weblogic version: 10.3.6.0
    Does anybody now how to fix it? Before I will change a time, I would like to get familiar if a time difference could be an issue.
    Regards.
    Robert.
    supposed error in log:
    [ServletContext@556457299[app:iPlatform_v module:app_v.01-ViewController-context-root path:/app_v.01-ViewController-context-root spec-version:2.5]] Servlet failed with Exception
    oracle.jbo.DMLException: JBO-29114 ADFContext is not setup to process messages for this exception. Use the exception stack trace and error code to investigate the root cause of this exception. Root cause error code is JBO-26061.
    at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:1034)
    at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1174)
    at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6826)
    at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:304)
    at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:335)...
    Edited by: user623575 on 20-Jun-2012 01:30

    update:
    always when I run my application in weblogic console (Summary of JDBC Data Sources->Monitoring) JDBC DataSource Runtime Statistics show
    state overloaded.
    Active Connections Average Count, Active Connections Current Count, Active Connections High Count = 15.
    I receive this information only on 2 enviroments from 5. Strange case because JNDI connection is configuret exactly the same.
    Any solutions guys?
    Regards.

  • An error occurred within the report server database. This may be due to a connection failure, timeout or low disk condition within the database. mail will not be sent.

    Hii all,
    I have a subscription which used to send report email daily 10 am morning 
    now today it does not sent an email the status i s showing above error message ..
    why this occurs ?? at the time of subscription running time ??
    i have checked there is not error of subscription it runs fine ..
    only today errored ..
    Kindly , help me
    Dilip Patil..

    Hi Dilip,
    Based on the error message "An error occurred within the report server database. This may be due to a connection failure, timeout or low disk condition within the database." it seems the issue is caused by the Report Server catalog databases are
    corrupted.
    To fix this issue, I suggest that you use the Reporting Services Configuration Manager to recreate the Report Server catalog databases. In addition, please make sure report server instance can connect to the report server database. For more details about Configure
    a Report Server Database Connection (SSRS Configuration Manager), please see the following document:
    http://msdn.microsoft.com/en-IN/library/ms159133.aspx
    Besides, if the issue is caused by the connection to the SQL Server Reporting Services Report Server catalog database is timeout. Please refer to the following thread:
    http://social.technet.microsoft.com/Forums/en-US/db4ca6c2-5445-4ff9-9f63-e20f3859cc70/error-throwing-microsoftreportingservicesdiagnosticsutilitiesreportserverstorageexception-an?forum=sqlreportingservices
    If the problem is still existed, I would appreciate it if you could give us detailed error log, it will help us move more quickly toward a solution.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Crystal Reports 2008 - Eclipse and JNDI connection.

    I am evaluting Crystal Reports 2008 .
    I want to use JNDI connection that is defined within my app server by Crystal reports so that I'll have better control of the properties defined.
    How do I set up JNDI data source connection in Crystal Reports 2008 ?
    I defined the following parameters u2026
                    JNDI Provider URL : jnp://localhost:1099
                    Initla Context as :  org.jnp.interfaces.NamingContextFactory
    And user name / password  as defined in JBoss setup
    I also have  u201Cjboss\client\jbossall-client.jaru201D in the classpath .     
    But I am getting Cannot instantiate class exception .
    Thanks in Advance for the help.

    Mr. Ted, We can expose JNDI connections from the appserver. Infact the database connection pool resoures are exposed as JNDI resources, JMS factory and connections are exposed as JNDI etc.
    In fact, JNDI is a means of securely exposing the resources managed by the app server to be used by trusted clients.
    We have achieved this on weblogic (8.1 - JDK 1.4.2) but we would like to replicate the same in glassfish app server ver 3.1.2 and would require the proper factory placed inside the rpt as well as the CRConfig.xml.
    Otherwise, (if we are using conventional URL string) when we ship the rpt files, we need to place this only as localhost. This mandates the presence of rpt files to be in the same server as database server and database. We want to avaoid this by creating a JNDI and use that database access resource inside the rpt files.

  • CR4E - New JDBC (JNDI) connection at runtime

    Is it possible to create a new JDBC (JNDI) connection at runtime using the propertyBag to set the attributes?  I tried this but received error message stating "error finding jndi name".

    Are you specifying a JDBC or JNDI connection?
    If JDBC, did you set the (Optional) JNDI Connection property?
    If you set the JNDI property for the JDBC connection, it'll try connecting to the JNDI.
    The JDBC has the optional JNDI property, so that you can design a report against JDBC, then use the JNDI when deployed to a J2EE.
    Sincerely,
    Ted Ueda

  • TOMCAT 5.0  - JNDI Connection Fails

    Hey guys,!
    Just wanted to test a JNDI datasource I created through the Tomcat administrator with a simple code in a Servlet, here's the snipped code:
                   System.out.println("Starting initial context");
                   Context initCtx = new InitialContext();
                   Context envCtx = (Context) initCtx.lookup("java:comp/env");
                   DataSource ds = (DataSource)
                   envCtx.lookup("jdbc/OFI4");
                   Connection conn = ds.getConnection();
                   //... use this connection to access the database ...
                   conn.close();
    The thing is, I'm getting an error that I've google for the las couple of days and have not found any helpful answers about it, the error message is:
    org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'
         at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:780)
         at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
         at test2.doGet(test2.java:68)
    Caused by: java.sql.SQLException: No suitable driver
         at java.sql.DriverManager.getDriver(DriverManager.java:243)
         at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:773)
    thank u people, any hel will be greatly appreciated.!
    Regards,
    Esteban

    Hey guys....!
    I figured out the way to make the JNDI connection work and I can tell you, it DOES work. Apparently, there are some troubles when creating the JNDI datasource by using the Tomcat Administration tool.
    Follow this steps to sort this issue out:
    1. Delete any of the datasources u've created by using the Tomcat Administrator make sure that no tags regarding these datasources remains in the server.xml file
    2. Include the Resource tag in your application web.xml, as follows:
         <resource-ref>
         <description>DB Connection</description>
    <res-ref-name>jdbc/OFICDB</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
         </resource-ref>
    3. Create a xml file named exact as your application (i.e app1, testApp...) and place it at CATALINAHOME/conf/Catalina/localhost. The document content must be as the following (please note that you must change values such as database name, username, password). This files is associated to an application called testCR3
    <?xml version='1.0' encoding='utf-8'?>
    <Context path="/testCR3" docBase="testCR3" debug="5" reloadable="true" crossContext="true" workDir="work\Catalina\localhost\testCR3">>
    <Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_textCR3_log." suffix=".txt" timestamp="true"/>
    <Resource name="jdbc/OFICDB" auth="Container" type="javax.sql.DataSource"/>
    <ResourceParams name="jdbc/OFICDB">
    <parameter>
    <name>factory</name>
    <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
    </parameter>
    <parameter>
    <name>driverClassName</name>
    <value>oracle.jdbc.driver.OracleDriver</value>
    </parameter>
    <parameter>
    <name>url</name>
    <value>jdbc:oracle:thin:@12.145.12.134:1521:OFICDB</value>
    </parameter>
    <parameter>
    <name>username</name>
    <value>user1value>
    </parameter>
    <parameter>
    <name>password</name>
    <value>pwd1</value>
    </parameter>
    <parameter>
    <name>maxActive</name>
    <value>20</value>
    </parameter>
    <parameter>
    <name>maxIdle</name>
    <value>10</value>
    </parameter>
    <parameter>
    <name>maxWait</name>
    <value>-1</value>
    </parameter>
    </ResourceParams>
    </Context>
    If u have any additional troubles, do not hesitate to let me know.
    Best regards,
    E10
    Message was edited by:
    E10

  • A bug in creator when creating jdbc jndi connection

    Hi,
    I am using sun java studio creator for jdbc jndi connection. The syntax is
    Context ctx = new InitialContext();
    DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/mydb");
    conn = ds.getConnection();
    It's failed. Once I change to ctx.lookup("jdbc/mydb") and the connection is created.
    Once deployed to tomcat, it seems only java:comp/env/jdbc/mydb is working.
    The full path(java:comp/env/jdbc/mydb) seems right from my google search.
    Why creator using jdbc/mydb? Is it a bug to creator?
    Thanks,
    Jie

    I mean a resource reference in web.xml file that looks like this:
         <resource-ref id="ResourceRef_1103225373500">
              <res-ref-name>DBConnection</res-ref-name>
              <res-type>javax.sql.DataSource</res-type>
              <res-auth>Application</res-auth>
              <res-sharing-scope>Shareable</res-sharing-scope>
         </resource-ref>
    where DBConnection is the resource alias I mentioned before:
    DataSource ds = (DataSource)ctx.lookup("java:comp/env/DBConnection");
    Using WebSphere a binding between this above defined ResourceRef and JNDI mapping must be defined in a file called ibm-web-bnd.xmi. The content of this file will look like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <webappbnd:WebAppBinding xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:webappbnd="webappbnd.xmi" xmi:id="WebAppBinding_1" virtualHostName="default_host">
    <webapp href="WEB-INF/web.xml#WebApp"/>
    <resRefBindings xmi:id="ResourceRefBinding_1103225373500" jndiName="jdbc/mydb">
    <bindingResourceRef href="WEB-INF/web.xml#ResourceRef_1103225373500"/>
    </resRefBindings>
    </webappbnd:WebAppBinding>
    Obviously using WSAD all of that could be done using IDE. In your case and using Sun IDE, I am not sure. But this is basically the concept of needed mapping in order to reference your JNDI without getting an error. At least this is how we resolved the error you are encountering.
    Hope that helps!

  • SSRS 2008: connection failure, timeout or low disk condition within the database. (rsReportServerDatabaseError)

    Hi,
    I have started getting this error since a week now when I try to schedule a report or change a schedule of a report. 
    An error occurred within the report server database. This may be due to a connection failure, timeout or low disk condition within the database. (rsReportServerDatabaseError) Get Online Help For more information about this error navigate to the report
    server on the local server machine, or enable remote errors 
    We have SQL Server 2008 installed along with SSRS running on the server. I have never seen this happening before for almost a year now but suddenly it appeared.  Along with this, report subscription is also messed up and some report are not been
    emailed as they have a error like:
    Failure sending mail: An error occurred within the report server database. This may be due to a connection failure, timeout or low disk condition within the database.Mail will not be resent. 
    I am not sure what caused this but if anyone has any idea of what is going on it will be great. 
    Thanks you for your help. 
    Please reply soooon !!!

    Rich, hi, sorry for my english but I speak spanish...
    Well, I was tried to recreate this issue and is really hard to recreate, however and as a rain from the sky, one of my customers receive the same error that you have, reviewing Windows Logs and SQL Traces there is nothing.
    Just for discard security issues I decide to change permissions in my server.
    1. Go to SQL Server Reporting Services Configuration Manager
    2. Go to Databases
    3. Verify the credentials used to connect to the database server
    4. Go to your database server
    5. Look for the login or user that is being used to connect to the database server from SSRS
    6. Change the role of that user and convert it to Sysadmin (Relax, this is not the final solution)
    7. Try again (Is not necesary to restart ANYTHING)
    8. Now, your SSRS and Subscriptions must work fine
    9. If your SSRS and subscriptions are working ok, you have to give some permissions to the user
    10. Grant execute permissions on
    master.dbo.xp_sqlagent_notify
    master.dbo.xp_sqlagent_enum_jobs
    master.dbo.xp_sqlagent_is_starting
    msdb.dbo.sp_help_category
    msdb.dbo.sp_add_category
    msdb.dbo.sp_add_job
    msdb.dbo.sp_add_jobserver
    msdb.dbo.sp_add_jobstep
    msdb.dbo.sp_add_jobschedule
    msdb.dbo.sp_help_job
    msdb.dbo.sp_delete_job
    msdb.dbo.sp_help_jobschedule
    msdb.dbo.sp_verify_job_identifiers
    11. Grant select permissions on
    msdb.dbo.sysjobs
    msdb.dbo.syscategories
    12. Grant public role to the user in the MSDB and Master DB
    13. Remove the Sysadmin role to the user
    14. Try again, now, your SSRS is ready to work
    Regards
    Pls let me know if work for you
    Regards | John Bocachica | jboca.blogspot.com

  • How to configure jdbc/jndi connection in crystal report 10

    Post Author: effy
    CA Forum: Data Connectivity and SQL
    i have tried to configure jdbc/jndi connection , i have both
    drivers  data base side and  crystal report side but i
    can't  configure it.  so please help if u know
    something. 

    Sorry, but I'm not on a home pc, I'm working on a virtualized pc with a long chain of permissions ... so I cannot simply download and run an utility...
    Instead... I think (I WAS thinking) someone from SAP can tell me this info ... Probably I'll buy a paid assistance ticket... But really it's a strange thing that a simply connection from a (so) paid software need a so difficult problem solving routine..
    I edited my environment variales: JAVA, PATH; CLASSPATH; JAVA_DIR, and a long list of others ... to ALL point to ALL of directory containing used jars...
    .. I asked my SysAdmin to edit CrConfig.xml and it's done ... classpath are rights, jdbc infos are also ok, ...
    .. but none ...

  • Please Help.  How can you monitor a directory using jndi connection to a ldap server?

    How can you monitor a directory using jndi connection to a ldap server? I
    want the ldap server to monitor the content change in a file system
    directory on another computer on the network. Can someone please help.
    Thanks
    Fred

    Hi,
    Why do you want to use LDAP for Hard disk monitoring..???
    U can do this by creating a MD5 checksum for all the files existing in some
    perticular
    directory and every hour or any configurable period u can recalculate the
    checksum
    to find out the change in the content.
    I guess all u need is to get the code for "updatedb" utility of Linux and
    instrument it for ur needs..
    Hope it helps...
    -aseem
    mr wrote:
    How can you monitor a directory using jndi connection to a ldap server? I
    want the ldap server to monitor the content change in a file system
    directory on another computer on the network. Can someone please help.
    Thanks
    Fred

  • Failover and Load Balancing with JNDI Connection Pools

    Hi,
    I am trying to figure out how would JNDI Connection Pooling work along with failover or DNS Load Balancing.
    Would connections be distributed equally among the list?
    Would the pool work with multiple heterogeneous connections (i.e. connections to different but equivalent servers ), or do all the connections in the pool have to be homogeneous (i.e. to the same server)?
    Thanks,
    Sergio

    Hi,
    I am trying to figure out how would JNDI Connection Pooling work along with failover or DNS Load Balancing.
    Would connections be distributed equally among the list?
    Would the pool work with multiple heterogeneous connections (i.e. connections to different but equivalent servers ), or do all the connections in the pool have to be homogeneous (i.e. to the same server)?
    Thanks,
    Sergio

  • How do we create a jndi connection in crystal reports XI

    how do we create a jndi connection in crystal reports XI when the data soiurce is configured on websphere 6.1

    You need to use WLST online. I am not sure what your exact requirements are but one good way of working this is to have a WLST script that deletes all your WL customisations, like connection pools, JMS Servers etc and then creates it. That way you can run the same script repeatedly and it will get everything up to date for you. However you have to remember that everytime you add something new you need to update your delete section. Also your deleting should not fail if the item does not exist. I hope that makes sense!
    As to the specifics of WLST examples to do this then check out the WLST examples in CodeShare.
    If you are still having issues then post another message.
    Geoff

  • Different weblogic JNDI Connections sharing the same dbms session

    Hi,
    we have setup JDBC Datasource on the weblogic server. Creating connection using JNDI lookup is sharing the same session across different connections, which is causing invalid data generation in global temp tables. The data in the global temp table is accessed accross db sessions.
    I have created a test case, using JDBC connection, the global temp table data is not accessible across session (this is correct behavior).
    where as using JNDI connection the data from the temp table is accessed across different connections. (This is not expected behavior)
    I tried setting statement cache = 0, Remove Infected Connections Enabled = true / false but no use.
    is there any other setup in the weblogic to avoid db session sharing across connections??
    Thank you,
    Ranga

    I am using a single thread, This can be easily reproducible on any machines.
    @ Sequence to follow
    @ public static void main(String[] args) {
    @ for (int i =0; i < 3; i++)
    @ try{
    @ conn = getJNDIConnection();
    @ printSessionDetials();
    @ insertValuesToTempTable();
    @ QueryRecordsFromTempTable();
    @ }finally
    @ conn.close();
    @ Test Results:
    @ JNDI connection found: jdbc/xdo120DBDS
    @ V$Session Details....
    @ SessionId:299:serial#:909:Seq#:31:dbmsSessionId:012B038D0001
    @ Number of Records:1
    @ connection is closed.....
    @ =====================================
    @ JNDI connection found: jdbc/xdo120DBDS
    @ V$Session Details....
    @ SessionId:299:serial#:909:Seq#:38:dbmsSessionId:012B038D0001
    @ Number of Records:2
    @ connection is closed.....
    @ =====================================
    @ JNDI connection found: jdbc/xdo120DBDS
    @ V$Session Details....
    @ SessionId:299:serial#:909:Seq#:45:dbmsSessionId:012B038D0001
    @ Number of Records:3
    @ connection is closed.....
    @ Process exited with exit code 0.

Maybe you are looking for