-
Sep 4th, 2010, 01:19 AM
#31
-
Sep 4th, 2010, 01:39 AM
#32
Thanks. It appears to work with Sybase. I checked the change in Git ID f8877afdc79aa7ae9665a0171d635ec48d73509d. Would you all please test this with MS SQL?
-
Sep 4th, 2010, 08:05 AM
#33
Thanks Alan. I have tested with MSSQL Server 2008.
-Mdu
-
Sep 5th, 2010, 10:45 PM
#34
dbre introspect (MSSQL) successful
Nice sleuthing, mduduzik. Alan, I've verified your fix here too. Thank you both.
com.blah roo> database introspect --schema dbo
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<database name="Test" schema="dbo">
<table name="A_TEST_TABLE">
...
-
Sep 5th, 2010, 11:06 PM
#35
Yes mduduzik - nice work.
I'll mark the bug as resolved as it also works with Sybase.
-
Sep 7th, 2010, 10:52 AM
#36
not working on db2
I'm getting
roo> database introspect --schema vap
No Spring Roo add-ons were found that offer a similar JDBC driver
JDBC driver not available for 'com.ibm.db2.jcc.DB2Driver'
roo>
I looked at my pom and it has this entry
<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<configuration>
<instructions>
<Import-Package>*,net.sourceforge.jtds;resolution:=optiona l,com.mysql.jdbc;resolution:=optional,org.apache.d erby.jdbc;resolution:=optional,oracle.jdbc;resolut ion:=optional,org.h2;resolution:=optional,org.hsql db;resolution:=optional,org.postgresql;resolution: =optional</Import-Package>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
will the new pom fix my problem with db2 also?
-
Sep 7th, 2010, 11:59 AM
#37
Resolution of the issue in this thread addresses using JTDS driver (supports MSSQL and Sybase). I'm sure if DB2 is readily supported by Roo - i.e. if there's an addon for DB2 jdbc driver.
If not, you'd have to 1) obtain DB2 driver (see http://numberformat.wordpress.com/20...-jdbc-drivers/ for a guide on this) and 2) Get it wrapped for OSGI container.
-
Sep 7th, 2010, 01:23 PM
#38
db2 support
I have a roo application currently running against my legacy database. For what I wanted it's work as is so far. But now I need to begin adding my databases tables to my app that have multiple column primary keys. I was hoping to generate those entities. So I have it working and talking to db2 for almost two months now. I have the db2 jdbc jars.
Wrapping them in OSGI, that I don't know how to do. Is there documentation on this some where.
-
Sep 7th, 2010, 04:15 PM
#39
I believe there are at least two DB2 jars to wrap - db2jcc.jar and db2jcc_license_cu.jar. An example can be found in the Roo wrapping directory if you get the code from Git. We also can't host the wrapped jars in any of SpringSource's public Maven repos, as DB2 is a licensed product. Of course you won't find any of the DB2 jars in any public Maven repo either.
DB2 was always going to be the most difficult to support due to their licensing restrictions and the number of jars required. I will try to get the community edition and see about wrapping the jars and if successful, will post the procedure here or in a blog. Also, if you have a support contract with IBM perhaps you can get them to provide OSGi-enabled jars - IBM are one of the OSGi member companies afterall !
-
Oct 9th, 2010, 06:19 PM
#40
I am working daily with Oracle "full version" databases. Believe me, you are allowed to download and use any Oracle product for evaluation and development purposes. Please read the "OTN Developer Licence Terms".
Last edited by xgrigoriadis; Oct 10th, 2010 at 04:01 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules