Raible's Wiki

Raible Designs
Wiki Home
News
Recent Changes

AppFuse

Homepage
  - Korean
  - Chinese
  - Italian
  - Japanese

QuickStart Guide
  - Chinese
  - French
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish
  - Japanese

User Guide
  - Korean
  - Chinese

Tutorials
  - Chinese
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish

FAQ
  - Korean

Latest Downloads

Other Applications

Struts Resume
Security Example
Struts Menu

Set your name in
UserPreferences


Referenced by
AppFuseSupport
Articles
Articles_de
Articles_pt




JSPWiki v2.2.33

[RSS]


Hide Menu

AppFuseWithSQLServer


This is version 3. It is not the current version, and thus it cannot be edited.
[Back to current version]   [Restore this version]


2005.07.27 - AppFuse 1.8 with Microsoft SQLServer 2000

1] download JDTS jar

jdts jar and copy them to directory "appfuselib/jdts"

2] Add this to "lib/lib.properties"

\# \# MS SQL SERVER \# http://jasigch.princeton edu:9000/display/UPC/MSSQL+with+the+JTDS+JDBC+Driver
mssql.version=1.1 mssql.dir=${lib.dir}/jtds mssql.jar=${mssql.dir}/jtds-${mssql.version}.jar

3] in "properties.xml" change this lines:

4] in build.xml change to

2003.11.21 - Microsoft SQLServer 2000 & AutoCommit

I had problems with MSSQL and automatic transactions, the solution I have found:
Use manual transaction!
Set auto-commit=false and control yourself the commit and rollback, closing all resources that you've used, including the Connection, preventing dead-lock in database and saving pooled connections. If you'll execute a single query, do the same, manual transaction.

2003.11.19 - AppFuse 0.9 with Microsoft SQLServer 2000

I (D33nar) am having trouble running Appfuse 0.9 as well as struts resume. After successfully compiling and building Appfuse, I can start the application on tomcat and get it running, logon with tomcat/tomcat. The problem arises whenever I try modifying data, the JDBC connection performing the update never finishes and all subsequent JDBC connections are blocked by the update connection. I tried using Microsoft and weblogic drivers for JDBC, but face the same problem.. I have spent significant time and am continuing to debug the problem, but would like to hear from anyone out there who has got Appfuse or struts-resume running on SQLServer.

UPDATE: I have traced the problem to JDBC auto-commit. I put a trace on the SQL sent to the server. A transaction is begun, but never committed, sometimes the driver/pool rolls it back with something like

IF @@TRANCOUNT>0 ROLLBACK TRAN BEGIN TRAN

I am not sure if it is

  • the driver implementation (unlikely as I tried 3 different ones bea, ms and inet)
  • something do the connection pool used
  • transaction semantics in the hibernate
  • or the appfuse code

I also found that everthing works fine with auto-commit=true, which is not a solution



Go to top   More info...   Attach file...
This particular version was published on 06-Nov-2006 13:52:27 MST by RadimBurget.