[jboss-user] [JBoss Tools] - Driver Definition/JDBC driver

Brian Fitzpatrick do-not-reply at jboss.com
Tue Jul 13 17:43:12 EDT 2010


Brian Fitzpatrick [http://community.jboss.org/people/bfitzpat] replied to the discussion

"Driver Definition/JDBC driver"

To view the discussion, visit: http://community.jboss.org/message/552417#552417

--------------------------------------------------------------
Easiest way to get the particular values you're looking for is to look at the enablement plug-ins for those databases...

For MySQL, look at org.eclipse.datatools.enablement.mysql in the plugin.xml for the "org.eclipse.datatools.connectivity.driverExtension" extension point. You'll see there are actually multiple driver definitions listed... one per version... 4.0, 4.1, 5.0, 5.1.

In the 5.1 case, the "special sauce" you're looking for is the driver template ID - org.eclipse.datatools.enablement.mysql.5_1.driverTemplate. The rest stays the same like the Derby case.

For MS SQL, look at the org.eclipse.datatools.enablement.msft.sqlserver plug-in.

For postgres, look at org.eclipse.datatools.enablement.postgresql...

And so on.

You'll have to override all the templates you're interested in (including the various vendor/version combinations) to include appropriate jars where they're needed.

Hope that helps!

--Fitz

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/552417#552417]

Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100713/611006a0/attachment.html 


More information about the jboss-user mailing list