You are viewing a plain text version of this content. The canonical link for it is here.
Posted to stonehenge-dev@incubator.apache.org by "Ben Dewey (JIRA)" <ji...@apache.org> on 2009/04/21 01:46:47 UTC

[jira] Created: (STONEHENGE-23) There is not property available for an Instance Name in WSAS db-properties.

There is not property available for an Instance Name in WSAS db-properties.
---------------------------------------------------------------------------

                 Key: STONEHENGE-23
                 URL: https://issues.apache.org/jira/browse/STONEHENGE-23
             Project: Stonehenge
          Issue Type: Bug
          Components: WSAS_BS
            Reporter: Ben Dewey
            Priority: Minor


A ran into another anomaly with the Named Instance of SQL Express.  The jtds faq had this link that helped me find a solution http://jtds.sourceforge.net/faq.html#instanceName.  What I did is very much an injection hack (notice the db property),  I think we should Add a JIRA ticket for this optional parameter.

org.wso2.stocktrader.mssql.MSSQLDAOFactory.host=localhost
org.wso2.stocktrader.mssql.MSSQLDAOFactory.port=1433
org.wso2.stocktrader.mssql.MSSQLDAOFactory.db=StockTraderDB;Instance=SQLExpress
org.wso2.stocktrader.mssql.MSSQLDAOFactory.user=trade
org.wso2.stocktrader.mssql.MSSQLDAOFactory.password=trade


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (STONEHENGE-23) There is not property available for an Instance Name in WSAS db-properties.

Posted by "Ben Dewey (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STONEHENGE-23?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ben Dewey closed STONEHENGE-23.
-------------------------------

       Resolution: Invalid
    Fix Version/s:     (was: M1)

Each instance in SQL Server gets its own port number.  As long as the port number for the SQLExpress instance is accurate it should work okay.

> There is not property available for an Instance Name in WSAS db-properties.
> ---------------------------------------------------------------------------
>
>                 Key: STONEHENGE-23
>                 URL: https://issues.apache.org/jira/browse/STONEHENGE-23
>             Project: Stonehenge
>          Issue Type: Bug
>          Components: WSAS_BS
>            Reporter: Ben Dewey
>            Assignee: S.Uthaiyashankar
>            Priority: Minor
>
> A ran into another anomaly with the Named Instance of SQL Express.  The jtds faq had this link that helped me find a solution http://jtds.sourceforge.net/faq.html#instanceName.  What I did is very much an injection hack (notice the db property),  I think we should Add a JIRA ticket for this optional parameter.
> org.wso2.stocktrader.mssql.MSSQLDAOFactory.host=localhost
> org.wso2.stocktrader.mssql.MSSQLDAOFactory.port=1433
> org.wso2.stocktrader.mssql.MSSQLDAOFactory.db=StockTraderDB;Instance=SQLExpress
> org.wso2.stocktrader.mssql.MSSQLDAOFactory.user=trade
> org.wso2.stocktrader.mssql.MSSQLDAOFactory.password=trade

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (STONEHENGE-23) There is not property available for an Instance Name in WSAS db-properties.

Posted by "S.Uthaiyashankar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STONEHENGE-23?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

S.Uthaiyashankar updated STONEHENGE-23:
---------------------------------------

    Fix Version/s: M1
         Assignee: S.Uthaiyashankar

> There is not property available for an Instance Name in WSAS db-properties.
> ---------------------------------------------------------------------------
>
>                 Key: STONEHENGE-23
>                 URL: https://issues.apache.org/jira/browse/STONEHENGE-23
>             Project: Stonehenge
>          Issue Type: Bug
>          Components: WSAS_BS
>            Reporter: Ben Dewey
>            Assignee: S.Uthaiyashankar
>            Priority: Minor
>             Fix For: M1
>
>
> A ran into another anomaly with the Named Instance of SQL Express.  The jtds faq had this link that helped me find a solution http://jtds.sourceforge.net/faq.html#instanceName.  What I did is very much an injection hack (notice the db property),  I think we should Add a JIRA ticket for this optional parameter.
> org.wso2.stocktrader.mssql.MSSQLDAOFactory.host=localhost
> org.wso2.stocktrader.mssql.MSSQLDAOFactory.port=1433
> org.wso2.stocktrader.mssql.MSSQLDAOFactory.db=StockTraderDB;Instance=SQLExpress
> org.wso2.stocktrader.mssql.MSSQLDAOFactory.user=trade
> org.wso2.stocktrader.mssql.MSSQLDAOFactory.password=trade

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (STONEHENGE-23) There is not property available for an Instance Name in WSAS db-properties.

Posted by "Ben Dewey (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STONEHENGE-23?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12701015#action_12701015 ] 

Ben Dewey commented on STONEHENGE-23:
-------------------------------------

From my initial testing I think the following lines need to be added to (trunk\stocktrader\wsas\common\src\org\wso2\stocktrader\mssql\MSSQLDAOFactory.java)

(43) public static final String PROP_MSSQL_DB_INSTANCE = "org.wso2.stocktrader.mssql.MSSQLDAOFactory.instance";

(145) if (prop.getProperty(PROP_MSSQL_DB_INSTANCE) != null) {
  // I'm rusty with java so != null or != "" whatever getProperty would return
  buf.append(";Instance=" + prop.getProperty(PROP_MSSQL_DB_INSTANCE));
}

And the respective property should be added to the mssql-db.properties

> There is not property available for an Instance Name in WSAS db-properties.
> ---------------------------------------------------------------------------
>
>                 Key: STONEHENGE-23
>                 URL: https://issues.apache.org/jira/browse/STONEHENGE-23
>             Project: Stonehenge
>          Issue Type: Bug
>          Components: WSAS_BS
>            Reporter: Ben Dewey
>            Priority: Minor
>
> A ran into another anomaly with the Named Instance of SQL Express.  The jtds faq had this link that helped me find a solution http://jtds.sourceforge.net/faq.html#instanceName.  What I did is very much an injection hack (notice the db property),  I think we should Add a JIRA ticket for this optional parameter.
> org.wso2.stocktrader.mssql.MSSQLDAOFactory.host=localhost
> org.wso2.stocktrader.mssql.MSSQLDAOFactory.port=1433
> org.wso2.stocktrader.mssql.MSSQLDAOFactory.db=StockTraderDB;Instance=SQLExpress
> org.wso2.stocktrader.mssql.MSSQLDAOFactory.user=trade
> org.wso2.stocktrader.mssql.MSSQLDAOFactory.password=trade

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (STONEHENGE-23) There is not property available for an Instance Name in WSAS db-properties.

Posted by "S.Uthaiyashankar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STONEHENGE-23?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12701042#action_12701042 ] 

S.Uthaiyashankar commented on STONEHENGE-23:
--------------------------------------------

org.wso2.stocktrader.mssql.MSSQLDAOFactory.host=localhost
org.wso2.stocktrader.mssql.MSSQLDAOFactory.port=1433

should work for SQLExpress as well. If you have SQLServer and SQLExpress together, then SQLExpress might listen on a different port? Can you try it and let me know? (It worked for me, but I am using SQLExpress 2005). If it is not working, we'll add it. Will you be able to provide a patch in that case? 

> There is not property available for an Instance Name in WSAS db-properties.
> ---------------------------------------------------------------------------
>
>                 Key: STONEHENGE-23
>                 URL: https://issues.apache.org/jira/browse/STONEHENGE-23
>             Project: Stonehenge
>          Issue Type: Bug
>          Components: WSAS_BS
>            Reporter: Ben Dewey
>            Assignee: S.Uthaiyashankar
>            Priority: Minor
>             Fix For: M1
>
>
> A ran into another anomaly with the Named Instance of SQL Express.  The jtds faq had this link that helped me find a solution http://jtds.sourceforge.net/faq.html#instanceName.  What I did is very much an injection hack (notice the db property),  I think we should Add a JIRA ticket for this optional parameter.
> org.wso2.stocktrader.mssql.MSSQLDAOFactory.host=localhost
> org.wso2.stocktrader.mssql.MSSQLDAOFactory.port=1433
> org.wso2.stocktrader.mssql.MSSQLDAOFactory.db=StockTraderDB;Instance=SQLExpress
> org.wso2.stocktrader.mssql.MSSQLDAOFactory.user=trade
> org.wso2.stocktrader.mssql.MSSQLDAOFactory.password=trade

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.