Connecting to the Datasource in ColdFusion 8 vs CF 6

Hi all,
I have a CF6 application that is running well. However, I'm
in the process of upgrading to CF8, and some of the code no longer
works. I've scoured the documentation and haven't found information
on the replacement code.
My old code gets a datasource, acquires a database
connection, uses the connection, and then closes the datasource.
variables.dsService = CreateObject("java",
"coldfusion.server.ServiceFactory").DataSourceService;
variables.dsManager = dsService.getDman();
variables.dataSource =
variables.dsManager.getDataSource(<data source name goes
here>);
variables.dbConnection =
variables.dataSource.getConnection();
<code to use the db connection goes here>
variables.dbConnection.close();
Under CF8, the error message is "The getDman method was not
found." So I've been unable to find any code that will let me get
access to an object that implements DataSource, so that I can use
my connections.
Any advice would be appreciated.
Mike K.

not sure if these help:
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=basiconfig_37.html
http://localhost/CFIDE/adminapi/datasource.cfc
Ken Ford
Adobe Community Expert - Dreamweaver/ColdFusion
Fordwebs, LLC
http://www.fordwebs.com
"MKK2" <[email protected]> wrote in message
news:g6d5sa$s0q$[email protected]..
> Hi all,
>
> I have a CF6 application that is running well. However,
I'm in the process of
> upgrading to CF8, and some of the code no longer works.
I've scoured the
> documentation and haven't found information on the
replacement code.
>
> My old code gets a datasource, acquires a database
connection, uses the
> connection, and then closes the datasource.
>
>
> variables.dsService = CreateObject("java",
> "coldfusion.server.ServiceFactory").DataSourceService;
> variables.dsManager = dsService.getDman();
> variables.dataSource =
variables.dsManager.getDataSource(<data source
> name goes here>);
> variables.dbConnection =
variables.dataSource.getConnection();
> <code to use the db connection goes here>
> variables.dbConnection.close();
>
> Under CF8, the error message is "The getDman method was
not found." So I've
> been unable to find any code that will let me get access
to an object that
> implements DataSource, so that I can use my connections.
>
> Any advice would be appreciated.
>
> Mike K.
>

Similar Messages

  • Why does it take over 2 minutes to get a database connection from the DataSource?

    Hello,
    It is taking over 2 minutes for my application to get a connection from a registered DataSource in iAS 6.0 sp4 on Solaris. The proper results are returned it just takes 2 minutes to establish the connection. The DataSource is an Oracle 9i database. I have the 9i drivers in the classpath. I also have a registered datasource that is an Oracle 8 database and have no problems establishing a connection quickly to that database. As an aside I have setup this application on JBOSS and both datasource's return a connection very quickly. If anyone has any ideas about what might be going on please respond. This issue is holding up a production release.
    Here is the code:
    try {
    log.debug("getting a new initial context");
    ctx = new InitialContext();
    ds = (DataSource) ctx.lookup(bundle.getString("IW_DATASOURCE"));
    log.debug("after looking up datasource from initial context");
    } catch (NamingException e) {
    log.error(e);
    throw new FinstarException
    (bundle.getString("E-0001"));
    try {
    log.debug("about to get connection");
    conn = ds.getConnection();
    log.debug("after getting connection");
    Produces this in the logs:
    2002-05-29 08:55:12,859 DEBUG org.mitre.mii.project.finstar.FinancialSummary - about to get connection
    2002-05-29 08:57:24,963 DEBUG org.mitre.mii.project.finstar.FinancialSummary - after getting connection
    Here is the datasource registration file:
    <ias-resource>
    <resource>
    <jndi-name>jdbc/pdc/IWDataSource</jndi-name>
    <jdbc>
    <database-url>jdbc:oracle:thin:@xxx.xxx.org:1521:acisdb</database-url>
    <datasource>jdbc/pdc/IWDataSource</datasource>
    <username>XXXXX</username>
    <password>XXXXX</password>
    <driver-type>OracleThinDriver</driver-type>
    </jdbc>
    </resource>
    </ias-resource>

    Have you tried to eliminate everything extraneous. In other words, do you experience the same delays with a simple Java program (no lookups, JNDI) that loads the drivermanager and creates a connection.
    Do you have access to a traciong JVM or some program that captures run-time execution timing information? Even without the source, this will tell you the specific class::methos where time is spent so you can better determine where the delay is ocurring.

  • There are still no BW systems  connected to the Datasource

    Hi All,
    We are currently implementing BW retail project and trying to retrieve POS data using IDOCs through PIPE but we are facing a problem when we try to process idoc from POS workbench (/POSDW/MON0).We are  sending idocs(WBUPON- POS interface: Upload sales docs (receipts) non-aggregated)  using transaction we19 and then when we go to the POS workbench and try to process related idocs choosing supply bw immediately ...etc option after this we are getting the following error with a message class RSQU and message no 10.
    <b>There are still no BW systems  connected to the Datasource</b> I am working on BW  side with datasources such as  2LIS_43_poscas and 2LIS_44_posrec.
    Our system is SAP BI 7.0 with support package level 12.Can you please suggest something on this problem
    Is there anyone who has experienced  this kind of problem.Could you please give a look and share your solutions with me OR can somenone show how to transfer pos data into BW system.
    Waiting for rewarding points for good answers.
    Thanks in Advance,
    Regards,
    #Bill J.

    Satish ,
    Thank you very much for the answer but my r3 system is ecc 5.0 so this note is suitable for it ? What else can you suggest related to this problem ?
    Thanks & Regards,
    #Bill J.

  • Problems defining the datasource with coldfusion 9

    I just upgraded Macromedia MX7 with coldfusion 9. The local host was http://localhost:8500/ows. I am not sure if this address is the same for coldfusion 9. When I try to define the datasource, I still see Macromedia MX7 instead of coldfusion 9 in administor and I cannot proceed to Login because of the URL "http://127.0.0.1:8500/CFIDE/administrator/index.cfm", and a I get a message "the page cannot be displayed" Please HELP. Thanks, Conabre

    It sounds to me like you might have done a parallel install rather than an upgrade?
    Is there anything in your filesystem that looks like a CF9 install?
    What steps did you follow to perform the upgrade?
    If it's just a local machine, it might be quicker to not bother to work out what happened, and just install CF9 and migrate your stuff across to it, rather than doing an inline upgrade.  I have to concede I had such poor luck trying to upgrade CF in the past I abandoned it as a practice and always did a deinstall / resinstall rather than an upgrade.
    Adam

  • Unable to connect to the datasource in Endeca Studio

    Hi,
    I created a data domain using Endeca Integrator and created the corresponding data source in Endeca Studio. When I'm try to validate the data source configuration in studio it displays the following information "Data source definition format is valid but unable to connect.". But when I leave the studio on for some time and test the connection once again, it works.
    Any insight regarding this problem would be appreciated.
    Thanks,
    Shashank

    I believe you are using a machine with not a lot of RAM, that's correct?
    Maybe sometimes you need to know how many RAM you have available when you create a new One Source
    And also you need to know which Data Sources are enable...
    IN A CMD
    Cd C:\Oracle\Middleware\EndecaServer7.5.1_1\endeca-cmd
    endeca-cmd list-dd-profiles
    For more information check this...
    http://docs.oracle.com/cd/E37502_01/server.751/AdminGuide.pdf
    Let me know if this help you...
    EBrauerP

  • Limit of Concurrent Connection to a Datasource

    I have an env to generate report concurrently.
    The datasource is a SQLServer2008.
    Can I limit the numbers of Concurrent Connection to the datasource in SSRS?

    Hi Jiulidaji,
    Thank you for your question.
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated.
    Thank you for your understanding and support.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Database connection encryption and integrity with ColdFusion and Oracle thin client

    As ColdFusion datasource we are using the Oracle thin client to  connect with the database. So, basically we are using a JDBC URL such as  jdbc:oracle:thin:@... and as Driver Class oracle.jdbc.OracleDriver. This works successfully however we would like to set encryption and  integrity parameters as well. In Java this is done similarly by setting a  Properties object prior to getting a connection as follows:
    Properties prop = new Properties();
    prop.put("oracle.net.encryption_client", "REQUIRED");
    prop.put("oracle.net.encryption_types_client", "( DES40 )");
    prop.put("oracle.net.crypto_checksum_client", "REQUESTED");
    prop.put("oracle.net.crypto_checksum_types_client", "( MD5 )");
    OracleDataSource ods = new OracleDataSource();
    ods.setProperties(prop);
    ods.setURL("jdbc:oracle:thin:@localhost:1521:main");
    Connection conn = ods.getConnection();
    Is there a way that I can pass these parameters to the ColdFusion  datasource. Ideally, I would love to do this centrally in such way that a  change to all the cfquery or cfstoredproc is not needed.
    I also know that in application servers such as Oracle AS there is an  option when creating a datasource which says "Add Properties". In there  you can add such properties. So, I was thinking of maybe creating a  JNDI DS in the app. server and then magically connecting to it but this  may have some impacts on the app.
    Besides this I was also thinking of communicating with the CF  datasource through the CF admin API (cfide.adminapi.administrator) and  also the option of extending the Oracle driver so that when CF connects  with it these params are already set.
    I would love to have your professional opinion and suggestions on this.

    I believe the thin driver actually needs the IP address (not the DNS name). Also, is "java" the name of the Oracle instance to which you are trying to connect?
    Try the following:String driver = "jdbc:oracle:thin";
    String dbIP = "W2RZ1NXG01's IP address";
    String dbPort = "1530";
    String dbSid = "java";
    String dbUser = "Admin";
    String dbPswd = "apassword";
    String cnctStr = driver + ":@" + dbIP + ":" + port + ":" + dbSid;
    try
        Class.forName("oracle.jdbc.driver.OracleDriver");
        con = DriverManager.getConnection( cnctStr, dbUser, dbPswd );
        stmt = con.createStatement();
        stmt.executeUpdate(createString);
        stmt.close();
        con.close();
    catch(SQLException ex)
        System.err.println( "The following SQLException occurred: " + ex );
        System.err.println( "Message: " + ex.getMessage() );

  • Connecting database in dreamweaver to coldfusion

    i did access database. i created site with all the files and
    images. i did the connection from coldfusion to the database in
    dreamweaver through the "datasources " in the coldfusion
    administrator, but when i try to make the page appear by clicking
    view - live data i get this message: "dreamweaver couldn't convert
    properly the live page from the server". can someone help me ?

    here are the codes:
    <cfquery name="artwork" datasource="cftutorial">
    SELECT FIRSTNAME, LASTNAME, ARTNAME, DESCRIPTION, PRICE,
    LARGEIMAGE, ISSOLD, MEDIATYPE
    FROM ARTISTS, ART, MEDIA
    WHERE ARTISTS.ARTISTID = ART.ARTISTID
    AND ART.MEDIAID = MEDIA.MEDIAID
    </cfquery>
    <cfdump var="#artwork#">
    and then:
    <table border="0" cellpadding="15" cellspacing="0"
    bgcolor="#FFFFFF">
    <cfoutput query="artwork">
    <cfif artwork.currentrow mod 3 eq 1>
    <tr>
    </cfif>
    <td valign="top" align="center" width="200">
    <img src="images/#artwork.largeImage#" width="200"
    height="200"><br>
    <strong>#artwork.artName#</strong><br>
    Artist: #artwork.firstName# #artwork.lastName#<br>
    Price: #artwork.price#<br>
    #artwork.mediaType# - #artwork.description#<br>
    <font color="##FF0000">#artwork.isSold#</font>
    </td>
    <cfif artwork.currentrow mod 3 eq 0>
    </tr>
    </cfif>
    </cfoutput>
    </table>
    thank you in advance

  • Database connection timeouts and datasource errors

    Connections in the pool randomly die overnight. Stack traces show that for some reason, the evermind driver is being used even though the MySql connection pool is specified.
    Also, the evermind connection pool is saying connections aren't being closed, and the stack trace shows they're being allocated by entity beans that are definitely not left hanging around.
    Sometimes we get non-serializable errors when trying to retrieve the datasource (this is only after the other errors start). Some connections returned from the pool are still good, so the application limps along.
    EJBs and DAOs both use jdbc/SQLServerDSCore.
    Has anyone seen this problem?
    <data-sources>
         <data-source
              class="com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource"
              name="SQLServerDSCore"
              location="jdbc/SQLServerDSCore"
              xa-location="jdbc/xa/SQLServerXACore"
              ejb-location="jdbc/SQLServerDSCore"
              connection-driver="com.mysql.jdbc.Driver"
              min-connections="5"
              username="xxx"
              password="xxx"
              staleness-timeout="3600"
              alive-poll-query="SELECT 1 FROM medispan"
              url="jdbc:mysql://1.2.3.4:3306/dbo?autoReconnect=true&autoReconnectForPools=true&cachePrepStmts=true&is-connection-validation-required=true"
              inactivity-timeout="30"
         >
              <property name="autoReconnect" value="true"/>
              <property name="autoReconnectForPools" value="true"/>
              <property name="is-connection-validation-required" value="true"/>
              <property name="cachePrepStmts" value="true"/>
         </data-source>
    </data-sources>

    Rick,
    OC4J 9.0.4.0.0 - BTW, do you know of any patches?As far as I know, there are no patches for the 9.0.4
    production version of OC4J stand-alone.
    I'm using container managed persistence,It was not clear to me, from your previous post, that you
    are using CMP entity beans.
    I found staleness-timeout and alive-poll-query
    somewhere on a website when trying to track this
    down. Here's four sources:Those sources refer to OrionServer -- and an older version, too, it seems.
    Like all other Oracle products that start out as somebody
    else's -- including, for example, JBuilder (that became "JDeveloper"), Apache Web Server (that became "Oracle HTTP Server") and TopLink -- their development paths diverge, until, eventually, there is absolutely no similarity between them at all. Hence, the latest versions of OC4J and "OrionServer" are so different, that you cannot be sure that something that works for "OrionServer" will work for OC4J.
    I recall reading something, somewhere, sometime about configuring OC4J to use different databases (other than Oracle), but I really don't remember any details (since it was not relevant to me, because we only use Oracle database). In any case, it is possible to use a non-Oracle database with OC4J.
    Good Luck,
    Avi.

  • Refresh of Webi in BI Launch Pad : "Failed to connect to the olap source"

    Dear all,
    I have a Web Intelligence document based on a BEx Query (BICS connectivity via an OLAP Connection configured with SSO)
    Behaviour :
    in Web Intelligence Rich Client (2 tier and 3 tier) : refresh is OK
    in BI Launch Pad : refresh is not OK :
    What can be the reason ? In my opinion SSO to BW is working fine because :
    refresh in Web Intelligence Rich Client is OK
    refresh of an Analysis Application (Design Studio) based on the same OLAP connection is working fine in Design Studio and in BI Launch Pad
    Do I miss something at server level ?
    In the log file of the APS running the DSLBridge Service, I found :
    |BFCA5F821928450BBBE73F2614F437D5134|2013 03 07 16:59:43.174|+0100|Error|Error|>>|E| |aps_SIA_I_DEV.APS_DSL| 3712|796189|Transport:Shared-8074/34| |1542|0|2|0|Webi SDK.CorbaServerImpl.doProcess()|IDIRBLOCKAP010V:2960:207.7025:1|webiserver_SIA_I_DEV.WebIntelligenceProcessingServer.openDocumentMDP|localhost:12164:11488.145650:1|.doIt|IDIRBLOCKAP010V:3712:796189.292728:1|Ci8H06XT2kMZvL7KIxC6cuQ1b23|||||||||||Exception caught in SL Service: Cannot connect to the olap source
    com.businessobjects.mds.services.helpers.OlapUniverseHelperException$ConnectionToOlapSourceFailedException: Cannot connect to the olap source
    at com.sap.sl.edp.dataprovider.olap.AbstractOlapDataProvider.createOlapClient(AbstractOlapDataProvider.java:490)
    at com.sap.sl.edp.dataprovider.olap.DirectOlapAccessDataProvider.generateProtoUniverse(DirectOlapAccessDataProvider.java:216)
    at com.sap.sl.edp.dataprovider.olap.DirectOlapAccessDataProviderBuilder.generateProtoUniverse(DirectOlapAccessDataProviderBuilder.java:91)
    at com.businessobjects.dsl.services.universe.impl.UniverseServiceImpl.provideProtoUniverse(UniverseServiceImpl.java:291)
    at com.businessobjects.dsl.services.universe.impl.UniverseServiceImpl.getProtoUniverse(UniverseServiceImpl.java:181)
    at com.businessobjects.dsl.services.datasource.impl.DataSourceServiceImpl.getDataSourceHeader(DataSourceServiceImpl.java:182)
    at com.businessobjects.dsl.services.datasource.impl.DataSourceServiceImpl.getDataSourceHeader(DataSourceServiceImpl.java:130)
    at com.sap.sl.proxyconsumption.services.datasourceservice.DataSourceServiceImpl.getDataSourceHeader(DataSourceServiceImpl.java:516)
    at com.sap.sl.proxyconsumption.services.datasourceservice.DataSourceServiceImpl.getDataSourceHeader(DataSourceServiceImpl.java:480)
    at com.sap.sl.proxyconsumption.protobuf.rpc.DatasourceRpc$dataSource.callMethod(DatasourceRpc.java:207)
    at com.sap.sl.proxyconsumption.services.server.DSLBridge.callService(DSLBridge.java:236)
    at com.sap.sl.proxyconsumption.services.server.DSLBridge.doIt(DSLBridge.java:161)
    at com.businessobjects.cdz_ext.slproxybridge.corba.ServerServant.doIt(ServerServant.java:119)
    at sun.reflect.GeneratedMethodAccessor168.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.businessobjects.framework.servers.platform.adapters.ebus.orb.CommonTransportInterceptor.invokeHelper(CommonTransportInterceptor.java:118)
    at com.businessobjects.framework.servers.platform.adapters.ebus.orb.CommonTransportInterceptor.invoke(CommonTransportInterceptor.java:87)
    at com.businessobjects.framework.servers.common.proxy.cglib.MethodInterceptorChain.intercept(MethodInterceptorChain.java:136)
    at com.crystaldecisions.enterprise.ocaframework.idl.OCA.OCAcdz.slproxybridge.serverPOA$$EnhancerByCGLIB$$66b9c148.doIt(<generated>)
    at com.crystaldecisions.enterprise.ocaframework.idl.OCA.OCAcdz.slproxybridge.serverPOA._OB_op_doIt(serverPOA.java:107)
    at com.crystaldecisions.enterprise.ocaframework.idl.OCA.OCAcdz.slproxybridge.serverPOA._invoke(serverPOA.java:83)
    at com.crystaldecisions.thirdparty.com.ooc.OBPortableServer.ServantDispatcher.dispatch(ServantDispatcher.java:234)
    at com.crystaldecisions.thirdparty.com.ooc.OBPortableServer.POA_impl._do_OB_dispatch(POA_impl.java:1977)
    at com.crystaldecisions.thirdparty.com.ooc.OBPortableServer.POA_impl._OB_dispatch(POA_impl.java:1913)
    at com.crystaldecisions.thirdparty.com.ooc.OB.DispatchRequest_impl.invoke(DispatchRequest_impl.java:75)
    at com.businessobjects.framework.servers.platform.adapters.ebus.orb.ThreadPoolDispatchStrategy$Dispatcher.run(ThreadPoolDispatchStrategy.java:271)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:743)
    Caused by: com.businessobjects.mds.olap.OlapException: [Internal] SSO token or User password is empty.
    at com.businessobjects.mds.olap.protocol.sap.jco.JCOConnection.connect(JCOConnection.java:259)
    at com.businessobjects.mds.olap.protocol.bics.internal.BICSClientImpl.initialize(BICSClientImpl.java:407)
    at com.businessobjects.mds.olap.OlapClientFactory.Create(OlapClientFactory.java:93)
    at com.businessobjects.mds.services.helpers.OlapClientHelper.createOlapClient(OlapClientHelper.java:409)
    at com.businessobjects.mds.services.helpers.OlapClientHelper.createNamedOlapClient(OlapClientHelper.java:361)
    at com.businessobjects.mds.services.helpers.OlapClientHelper.createNamedOlapClient(OlapClientHelper.java:234)
    at com.sap.sl.edp.dataprovider.olap.AbstractOlapDataProvider.createOlapClient(AbstractOlapDataProvider.java:487)
    ... 32 more
    Many thanks for your help
    Hans

    Many thanks for the update, but a little bit troubling.
    On which SPs/Patch level is your SAP BI BusObjects System as well as SAP BW running?

  • The -dataSource parameter in assemble a web service from a PL/SQL package

    When I use Web Service Assembler to assemble a Web Service from a PL/SQL package, I need to specify the dataSource parameter, e.g.:
    java -jar wsa.jar -plsqlAssemble -sql pkgname -dataSource jdbc/MyDS -dbConnection ... -dbUser scott/tiger ....
    The dataSource also needs to be pre-configured in the data-sources.xml in OC4J.
    I am wondering why dataSource is needed here because the database connection information is already specified on the commandline ( dbConnection and dbUser).
    If I have to specify dataSource, how do I configure data-sources.xml dynamically at run-time (e.g., adding entries)?
    Thanks,
    Jim

    The -dataSource parameter specifies the data-sources.xml entry used at runtime. The database connection info is only for design time use. Typically you make sure data-sources.xml contains an entry with jndi-location of the same name you specifies for -dataSource. To configure data-sources.xml at runtime, it is out of the scope of web services. Please refer to OC4J admin guide. You can probably modify the data-sources.xml file and force OC4J to reconfigure based on the new data-sources.xml file.

  • Unable to connect to the OracleForms application through a J2EE application

    Hi there,
    I have deployed a custom J2EE application in Middleware instance of my Oracle 10g AS 10.1.2
    The application is sso enabled . Once a user logs in the application he is able to see a jsp in which i display hyperlinks for him to access.
    One of these hyperlinks is pointing to the forms application.
    the url is http://psc-pc0592:7778/forms/frmservlet?config=abs_deploy[b]
    Once i click on the URL the forms applet begins to load but as the applet opens up i get the database logon screen.This should not happen
    I am already logged and have been verified by sso.
    Also the forms configuration is associated with a datasource.
    I am not able to get as to why i get that screen when it shoud directly connect to the forms application.
    Any help on this is appreciated.
    Thanks & Regards,
    Madhur Pant

    when you go through your carrier provider, there is an additional step in the SSL tunnel. Not sure how this transcribes, but it is possible that your carrier does not use the same port as the one you want it to use.
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • Changing the datasource of a Crystal Report to a Oracle DB using TNS

    I have a problem trying to change the datasource of a crystal report. In the new connection I want to connect to a Oracle DB using TNS.
    Without TNS it's finally working flawlessly with the following code:
         private static void switch_tables(DatabaseController databaseController) throws ReportSDKException {
              // Declare the new connection properties that report's datasource will be switched to.
              final String DBUSERNAME = "user";
              final String DBPASSWORD = "secret";
              final String SERVERNAME = "jdbc:oracle:thin:@1.1.1.1:mysid";
              final String URI = "!oracle.jdbc.OracleDriver!jdbc:oracle:thin:{userid}/{password}@1.1.1.1:mysid";
              final String DATABASE_NAME = "mysid";
              final String DATABASE_DLL = "crdb_jdbc.dll";
              final String SCHEMA_NAME = "SCHEMA.";
              // Obtain collection of tables from this database controller.
              Tables tables = databaseController.getDatabase().getTables();
              // Set the datasource for all main report tables.
              for (int i = 0; i < tables.size(); i++) {
                   ITable table = tables.getTable(i);
                   // Keep existing name and alias.
                   table.setName(table.getName());
                   table.setAlias(table.getAlias());
                   // Change properties that are different from the original datasource.
                   table.setQualifiedName(SCHEMA_NAME + table.getName());
                   // Change connection information properties.
                   IConnectionInfo connectionInfo = table.getConnectionInfo();
                   // Set new table connection property attributes.
                   PropertyBag propertyBag = new PropertyBag();
                   propertyBag.put("Trusted_Connection", "false");
                   propertyBag.put("Server Name", SERVERNAME); //Optional property.
                   propertyBag.put("Connection String", URI);
                   propertyBag.put("Database Name", DATABASE_NAME);
                   propertyBag.put("Server Type", "JDBC (JNDI)");
                   propertyBag.put("URI", URI);
                   propertyBag.put("Use JDBC", "true");
                   propertyBag.put("Database DLL", DATABASE_DLL);
                   connectionInfo.setAttributes(propertyBag);
                   // Set database username and password.
                   // NOTE: Even if these the username and password properties don't change when switching databases, the
                   // database password is not saved in the report and must be set at runtime if the database is secured.
                   connectionInfo.setUserName(DBUSERNAME);
                   connectionInfo.setPassword(DBPASSWORD);
                   connectionInfo.setKind(ConnectionInfoKind.SQL);
                   table.setConnectionInfo(connectionInfo);
                   // Update old table in the report with the new table.
                   databaseController.setTableLocation(table, tables.getTable(i));
    I just call this method with the DatabaseController from a ReportClientDocument instance.
    How do I need to change the connectionInfo to do the connection using TNS?

    Please re-post if this is still an issue but first update to CR4E 2 and retest

  • Error while connecting to an OData Feed from Excel 2013 PowerPivot . Error: Failed to connect to the server. Reason: The payload kind 'BinaryValue' of the given data feed is not supported

    I am trying to connect to a Odata Data feed from Excel 2013 Power Pivot
    The datasource is in sharepoint site eg: https://sitename/Shared%20Documents/datafeed.atomsvc
    getting below error
    Error message:
    Failed to connect to the server. Reason: The payload kind 'BinaryValue' of the given data feed is not supported.
    ============================
    Call Stack:
    ============================
       at Microsoft.Data.DataFeedClient.DataFeedODataReader.ValidatePayloadKind(ODataPayloadKind payloadKind, ODataMessageReader odataMessageReader)
       at Microsoft.Data.DataFeedClient.DataFeedODataReader.InterceptODataException(Action action)
       at Microsoft.Data.DataFeedClient.DataFeedODataReader..ctor(IODataResponseMessage responseMessage, Int64 maxReceivedMessageSize)
       at Microsoft.Data.DataFeedClient.DataFeedODataReader.CreateReader(IWebResponse webResponse, Int64 maxReceivedMessageSize, Boolean applySlashUpdatingBaseUriResolver)
       at Microsoft.Data.DataFeedClient.ODataHelper.GetCollectionsFromServiceDocumentUrl(Uri serviceDocumentUrl, DataFeedConnection connection)
       at Microsoft.Data.DataFeedClient.DataFeedConnection.Open()
       at Microsoft.AnalysisServices.BackEnd.RelationalDataSourceConnection.InitializeConnectionObject(String connectionIdentifier)
       at Microsoft.AnalysisServices.BackEnd.RelationalDataSourceConnection.InitializeConnectionObject(String connectionIdentifier)
       at Microsoft.AnalysisServices.BackEnd.RelationalDataSourceConnection.Open(String& connectionIdentifier)
       at Microsoft.AnalysisServices.BackEnd.RelationalDataSourceConnection.Open()
       at Microsoft.AnalysisServices.Common.DataSourceBasic.ClickTestConnection(Object progressControl)
    Appreciate suggestions/answers
    NOTE: The error is showing only while using Excel 2013 powerpivot
    its working good with Excel 2010 powerpivot

    Anita,
    Please look into using Power Query to use OData as a source in Power Pivot.
    Thanks!
    Ed Price, Power BI & SQL Server Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • Connection pool and datasource

    In WL 7, we need to configure a datasource and a connection pool in order for the application to get a connection to the database. How is the datasource and connection pool related?
    In WL 9.2, there is no option to configure the connection pool, there is only the option to configure the data source. Where did the connection pool go in WL 9.2?

    gerald lee wrote:
    In WL 7, we need to configure a datasource and a connection pool
    in order for the application to get a connection to the database.
    How is the datasource and connection pool related?
    It depends on the WLS version. pre-9.X, there can be more than one datasource pointing to a given pool,
    but you do need a datasource typically to use a pool.
    In WL 9.2, there is no option to configure the connection pool, there is only
    the option to configure the data source. Where did the connection pool go in WL 9.2?In 9.X and beyond the relationship is one-to-one, and you will create both at the
    same time when creating a datasource.
    Joe

Maybe you are looking for