Issue Details (XML | Word | Printable)

Key: DERBY-4276
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Lily Wei
Reporter: Lily Wei
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Derby

Update demo's to remove references to com.ibm.db2.jcc.DB2Driver

Created: 16/Jun/09 03:48 PM   Updated: 16/Jul/09 09:24 PM
Component/s: Demos/Scripts
Affects Version/s: 10.5.1.1
Fix Version/s: 10.5.2.0, 10.6.0.0

Time Tracking:
Original Estimate: 24h
Original Estimate - 24h
Remaining Estimate: 24h
Remaining Estimate - 24h
Time Spent: Not Specified
Remaining Estimate - 24h

File Attachments:
  Size
Text File Licensed for inclusion in ASF works derby-4276-derbyuser_diff.txt 2009-06-20 03:39 AM Lily Wei 21 kB
Text File Licensed for inclusion in ASF works derby-4276-derbyuser_diff.txt 2009-06-18 09:59 PM Lily Wei 11 kB
Text File Licensed for inclusion in ASF works derby-4276_diff.txt 2009-06-18 06:11 AM Lily Wei 20 kB
Text File Licensed for inclusion in ASF works derby-4276_diff.txt 2009-06-16 10:35 PM Lily Wei 2 kB

Urgency: Normal
Resolution Date: 24/Jun/09 08:04 PM
Labels:


 Description  « Hide
SimpleApp.java is still refering to DB2 JDBC driver. I think it should be take out to reflect DB2 driver is no longer supported.

There are also some typos in SimpleApp.java. i.e. noone, retreiving, etc.

example.html that should be updated as well.

Kathey mention nserverdemo also has references to the DB2 driver. This issue will address that as well.


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Lily Wei added a comment - 16/Jun/09 10:35 PM
I take out the support for DB2 driver in SimpleApp.java including refer to jccjdbcclient as an option of JDBC connection framework.

There are also some typos in SimpleApp.java. i.e. noone, retreiving, etc. Should I open a new issue for typo issue? I just thought I mention it here too.

Lily Wei made changes - 16/Jun/09 10:35 PM
Field Original Value New Value
Attachment derby-4276_diff.txt [ 12410861 ]
Kathey Marsden added a comment - 16/Jun/09 11:01 PM
Thank you Lily for looking at this issue.
- There is also a file example.html that should be updated.
- Regarding the typo's I normally say don't combine changes, but I think this is fine to sneak in.
- I noticed nserverdemo also has references to the DB2 driver. Would you like to remove those as well? If so, I think it would be ok to change the summary of this issue to be something more general like "Update demo's to remove references to com.ibm.db2.jcc.DB2Driver" and make those changes under the same issue.

Kathey Marsden made changes - 16/Jun/09 11:01 PM
Derby Categories [Deviation from standard]
Lily Wei made changes - 16/Jun/09 11:14 PM
Summary SimpleApp.java should not refer to com.ibm.db2.jcc.DB2Driver for future support issue Update demo's to remove references to com.ibm.db2.jcc.DB2Driver
Description SimpleApp.java is still refering to DB2 JDBC driver. I think it should be take out to reflect DB2 driver is no longer supported. SimpleApp.java is still refering to DB2 JDBC driver. I think it should be take out to reflect DB2 driver is no longer supported.

There are also some typos in SimpleApp.java. i.e. noone, retreiving, etc.

example.html that should be updated as well.

Kathey mention nserverdemo also has references to the DB2 driver. This issue will address that as well.
Lily Wei added a comment - 18/Jun/09 06:11 AM
I recompile and run demo for SimpleApp and nserverdemo.
The change for this attempt:
1. Take out all the code and comment relate to DB2 JDBC driver
2. simple/example.html also takes sout reference to DB2 JDBC driver
3. Take out reference to DB2 JDBC driver in nserverdemo/NsSample.java, SimpleNetworkClientSample.java, and nserverdemo/simpleserversample.html,nserverdemo.html
4. Take out reference for NsSampleWork.class from nserverdemo.html

Both simple and nserverdemo has comment refer to jcc for username and password. I am not sure the history with it. I am welcome for any good suggestion.

Lily Wei made changes - 18/Jun/09 06:11 AM
Attachment derby-4276_diff.txt [ 12411030 ]
Lily Wei made changes - 18/Jun/09 06:12 AM
Status Open [ 1 ] In Progress [ 3 ]
Kathey Marsden added a comment - 18/Jun/09 08:26 PM
Thank you Lily for the patch. Below are some comments
NsSample.java:
- take out line 45 (default is the derby client JDBC driver) since there is now only one driver possible.
- I think we can just remove parseArguments() since we always run with derby client.
- This is not related to DB2 but would be a good change to make and I think ok to bundle
  user/password from cloud/scape to something like derbyuser/pass

SimpleApp
-noone should be changed to no one or nobody instead of none.
-You changed generics to generic but generics was correct.

SimpleNetworkClientSample
- remove parseArguments since there is just one driver option.
 
example.html
- line 351 remove the word "both"

Regarding the user and password. It would be good to just use something consistent for all the tests like derbyuser/pass.

Lily Wei added a comment - 18/Jun/09 09:59 PM
Thank Kathey for all the good points. I am happy to be part of Derby.

NsSample.java
1. Take out line 45
2. Use user "derbyuser" password "pass"

SimpleNetworkClientSample
1. Remove parseArguments
2. Use user "derbyall" password "pass"

SimpleApp
1. noone is now no one
2. generics it is. English can be so strange to me from time to time. Hope you are smiling now.

examle.html
1. Line 351 does not have both now.

I am not looking at othe demo yet. I will definitely use "derbyuser/pass" on demo.

I rerun both SimpleApp and nserverdemo example. They behave like before. Should I run suites.all and derbyall for this patch?

Lily Wei made changes - 18/Jun/09 09:59 PM
Attachment derby-4276-derbyuser_diff.txt [ 12411146 ]
Lily Wei added a comment - 19/Jun/09 02:45 PM
I just run derbyall and suits.all tests against trunk after the patch. No failure on both suites.

Lily Wei added a comment - 20/Jun/09 03:39 AM
Kathey was so nice to point out I did not do diff from the top. One more try. This one I run test derbyall and suites.all. No failure.

Lily Wei made changes - 20/Jun/09 03:39 AM
Attachment derby-4276-derbyuser_diff.txt [ 12411299 ]
Repository Revision Date User Message
ASF #788105 Wed Jun 24 18:23:11 UTC 2009 kmarsden DERBY-4276 Update demo's to remove references to com.ibm.db2.jcc.DB2Driver

Contributed by Lily Wei (lilywei at yahoo dot com)
Files Changed
MODIFY /db/derby/code/trunk/java/demo/nserverdemo/nserverdemo.html
MODIFY /db/derby/code/trunk/java/demo/nserverdemo/NsSample.java
MODIFY /db/derby/code/trunk/java/demo/simple/example.html
MODIFY /db/derby/code/trunk/java/demo/simple/SimpleApp.java
MODIFY /db/derby/code/trunk/java/demo/nserverdemo/simpleserversample.html
MODIFY /db/derby/code/trunk/java/demo/nserverdemo/SimpleNetworkClientSample.java

Repository Revision Date User Message
ASF #788163 Wed Jun 24 20:01:55 UTC 2009 kmarsden DERBY-4276 Update demo's to remove references to com.ibm.db2.jcc.DB2Driver

Contributed by Lily Wei (lilywei at yahoo dot com)
Files Changed
MODIFY /db/derby/code/branches/10.5/java/demo/nserverdemo/nserverdemo.html
MODIFY /db/derby/code/branches/10.5/java/demo/nserverdemo/NsSample.java
MODIFY /db/derby/code/branches/10.5/java/demo/simple/example.html
MODIFY /db/derby/code/branches/10.5/java/demo/simple/SimpleApp.java
MODIFY /db/derby/code/branches/10.5/java/demo/nserverdemo/SimpleNetworkClientSample.java
MODIFY /db/derby/code/branches/10.5/java/demo/nserverdemo/simpleserversample.html

Kathey Marsden added a comment - 24/Jun/09 08:04 PM
Thanks Lily for the patch. I committed to trunk and 10.5.

Kathey Marsden made changes - 24/Jun/09 08:04 PM
Status In Progress [ 3 ] Resolved [ 5 ]
Fix Version/s 10.5.1.2 [ 12313870 ]
Fix Version/s 10.6.0.0 [ 12313727 ]
Resolution Fixed [ 1 ]
Kathey Marsden made changes - 16/Jul/09 09:24 PM
Fix Version/s 10.5.2.0 [ 12314116 ]
Fix Version/s 10.5.1.2 [ 12313870 ]