IDP_DS datasource name

105 views
Skip to first unread message

Parth Pandya

unread,
Apr 9, 2009, 1:10:24 AM4/9/09
to Adobe LiveCycle Developers

Hi Guys,
LC JNDI data source name has always been IDP_DS.

1. Has anyone opt to use another name other than IDP_DS ?
2. What is involved (in terms of config changes etc) if i want
something else other than IDP_DS for the datasource name for
livecycle?

Thanks in advance.
Parth

Bob Bailey

unread,
Apr 9, 2009, 8:26:31 AM4/9/09
to Adobe LiveCycle Developers
Here is what I have done assuming JBoss/MySQL install.

1. Create a new MySQL database. I'll assume DB name is lc100.

2. Create a new datasource configuration file. Datasource
configuration files end with the suffix -ds.xml. Assume I create a
file lc-ds.xml. Contents might have something like:
<?xml version="1.0" encoding="UTF-8" ?>
<datasources>
<local-tx-datasource>
<jndi-name>LC100</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/lc100</connection-
url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>root</user-name>
<password>password</password>
<min-pool-size>10</min-pool-size>
<max-pool-size>30</max-pool-size>
<blocking-timeout-millis>20000</blocking-timeout-millis>
<idle-timeout-minutes>10</idle-timeout-minutes>
<prepared-statement-cache-size>100</prepared-statement-cache-
size>
<transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-
isolation>
</local-tx-datasource>
</datasources>

You can actually copy the above text from the LC datasource file
located at C:\Adobe\LiveCycle8.2\jboss\server\all\deploy\adobe-ds.xml
and make the appropriate changes for your DB.

3. Copy this datasource configuration file (lc-ds.xml) to the JBoss
deploy directory (C:\Adobe\LiveCycle8.2\jboss\server\all\deploy).

4. Now when I use an operation that needs the datasource name for the
lc100 DB, I would use java:/LC100 as the datasource name.


Bob
Reply all
Reply to author
Forward
0 new messages