【问题标题】:Bluemix Services: Configuring WebSphere Application to use dashDB for AnalyticsBluemix Services:配置 WebSphere Application 以使用 dashDB for Analytics
【发布时间】:2017-07-09 21:58:40
【问题描述】:

我正在使用 dashDB for Anayltics 作为我的 Bluemix 的服务,我还添加了所需的 SQL 和数据。但是当我尝试启动应用程序时,我无法登录。 Bluemix 似乎找不到 dashDB...
我的问题是,当您向 Bluemix 应用程序添加服务时,它会自动配置以使应用程序能够使用“dashDB for Analytic”等服务,还是我必须手动配置某些东西。

附加:
我正在尝试将使用的数据库从 DB2 更改为 dashDB...我已将数据库名称、密码、用户、端口号、驱动程序类型更改为我在环境变量中看到的那些。

<applicationMonitor updateTrigger="mbean"/>
<jdbcDriver id="DB2JCC" libraryRef="DB2Library">
</jdbcDriver>
<dataSource id="jdbc/defaultDS" jndiName="jdbc/defaultDS" jdbcDriverRef="DB2JCC" statementCacheSize="60" type="javax.sql.ConnectionPoolDataSource" transactional="true">
    <properties databaseName="database_name" password="{xor}ZmdpOztrPT5oaDtp" user="username" serverName="host_name" portNumber="port_number" driverType="4"/>
</dataSource> 


<!-- <variable name="" value=""/> -->
<library id="DB2Library">
    <fileset dir="C:\Program Files\IBM\SQLLIB\java" includes="db2jcc4.jar, db2jcc_license_cu.jar"/>
</library>

【问题讨论】:

    标签: websphere ibm-cloud dashdb


    【解决方案1】:

    我假设应用程序指的是 Bluemix 云代工应用程序。

    当您将应用程序配置为使用服务时,应用程序会从服务中注入环境变量,但由您编写代码以使用这些环境变量连接到数据库。

    更多信息请看这里:https://console.bluemix.net/docs/cli/vcapsvc.html

    【讨论】:

    • 我明白了。我可以使用这个环境变量来配置 WebSphere 应用程序吗?
    猜你喜欢
    • 1970-01-01
    • 2012-04-04
    • 1970-01-01
    • 2011-05-02
    • 1970-01-01
    • 1970-01-01
    • 2015-12-19
    • 2016-12-09
    • 1970-01-01
    相关资源
    最近更新 更多