Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to Configur NFeed to access SQL Server data

Gerard Teng November 28, 2012

Trying to configure NFeed to access SQL Server data.. Instruction mention regarding JNDI resources in JIRA's context file and also database drivers. Are there more concise instrutions anywhere specifically for SQL Server?

3 answers

0 votes
Cyrille Martin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 24, 2013

Thank you Tim for the support.

I will watch more closely the answers forum now, to answer the question on nFeed.

Regards

Cyrille

0 votes
C_ Faysal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 5, 2012
I only tried connecting to jiras own DB. Nothing has to be configured. It just works. Later on i'm going to try an external DB then i'll post my result for you here.... If nobody else does before
twong_atlassian
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 5, 2012

For jira's own database, the plugin autodetects. If you need another db, you'll have to set up a JNDI datasource.

0 votes
twong_atlassian
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 5, 2012

Disclaimer: I don't work for Valiantsys, and I couldn't find documentation for this either, but they state here that it's just a JNDI datasource.

Using some historical JIRA docs (we do everything with the cool spiffy configurator we supply now), you'd add this to your server.xml or jira.xml (depending how you deployed jira)

<Engine name="Catalina" defaultHost="localhost">
      <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">
 
        <Context path="" docBase="${catalina.home}/atlassian-jira" reloadable="false">
          <Resource name="jdbc/myDS" auth="Container" type="javax.sql.DataSource"
            username="[enter db username]"
            password="[enter db password]"
            driverClassName="net.sourceforge.jtds.jdbc.Driver"
            url="jdbc:jtds:sqlserver://yourhost:1433/yourdb"
            maxActive="20"

            />

Of note is the Resource name part. You'd need to add a new resource for each datasource you want.

Gerard Teng December 9, 2012

Hi Tim,

Thanks for your response. What configurator is that? I would love to see how it works.

twong_atlassian
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 9, 2012

It's nothing too crazy. Take a look in the bin folder: config.[bat|sh] (depending on windows/linux). You type in some db config, and it autopopulates in the conf/server.xml. This only works for the JIRAdb datasource config: it won't help you do the configuration of more datasources.

Gerard Teng December 10, 2012

Hi Tim,

I have stand alone Jira deployed on SQL Server with JIRA Database on the same server. So which file should I be using? Also, I have gone into the server.xml file and see the ..

<Engine name="Catalina" defaultHost="localhost">
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">
<Context path="" docBase="${catalina.home}/atlassian-jira" reloadable="false">
<Resource name="jdbc/myDS" auth="Container" type="javax.sql.DataSource"
username="[enter db username]"
password="[enter db password]"
driverClassName="net.sourceforge.jtds.jdbc.Driver"
url="jdbc:jtds:sqlserver://yourhost:1433/yourdb"
maxActive="20"
/>

but where do I add the second source? I need to add a second datasource to another SQL server database.

Your help with this is much appreciated.

twong_atlassian
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 11, 2012

You would use the server.xml file, and declare a second datasource right under the one that exists:

&lt;Engine name="Catalina" defaultHost="localhost"&gt;
&lt;Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true"&gt;
&lt;Context path="" docBase="${catalina.home}/atlassian-jira" reloadable="false"&gt;
&lt;Resource name="jdbc/myDS" auth="Container" type="javax.sql.DataSource"
username="[enter db username]"
password="[enter db password]"
driverClassName="net.sourceforge.jtds.jdbc.Driver"
url="jdbc:jtds:sqlserver://yourhost:1433/yourdb"
maxActive="20"
/&gt;
&lt;!--Second Datasource begins here --&gt;
&lt;Resource name="jdbc/myOtherOtherDatasource" auth="Container" type="javax.sql.DataSource"
username="[enter db username]"
password="[enter db password]"
driverClassName="net.sourceforge.jtds.jdbc.Driver"
url="jdbc:jtds:sqlserver://yourhost:1433/yourOtherOtherDatasource"
maxActive="20"
/&gt;

<!-- End Second Data Source -->

<!-- Begin possible 3rd data source ... etc -->

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events