Digital Developer Conference: a FREE half-day online conference focused on AI & Cloud – North America: Nov 2 – India: Nov 9 – Europe: Nov 14 – Asia Nov 23 Register now

Close outline
  • United States
IBM?
  • Site map
IBM?
  • Marketplace

  • Close
    Search
  • Sign in
    • Sign in
    • Register
  • IBM Navigation
IBM Developer Answers
  • Spaces
    • Blockchain
    • IBM Cloud platform
    • Internet of Things
    • Predictive Analytics
    • Watson
    • See all spaces
  • Tags
  • Users
  • Badges
  • FAQ
  • Help
Close

Name

Community

  • Learn
  • Develop
  • Connect

Discover IBM

  • ConnectMarketplace
  • Products
  • Services
  • Industries
  • Careers
  • Partners
  • Support
10.190.13.195

Refine your search by using the following advanced search options.

Criteria Usage
Questions with keyword1 or keyword2 keyword1 keyword2
Questions with a mandatory word, e.g. keyword2 keyword1 +keyword2
Questions excluding a word, e.g. keyword2 keyword1 -keyword2
Questions with keyword(s) and a specific tag keyword1 [tag1]
Questions with keyword(s) and either of two or more specific tags keyword1 [tag1] [tag2]
To search for all posts by a user or all posts with a specific tag, start typing and choose from the suggestion list. Do not use a plus or minus sign with a tag, e.g., +[tag1].
  • Ask a question

Preferred way to get SQL DB (DB2) drivers in a BlueMix java build pack

270003B4FB gravatar image
Question by Driss Amri  (78) | Jan 05, 2015 at 03:50 PM javasqldbibmcloudbuildpack

The Liberty buildpack has DB2 drivers preinstalled, but what if I want to deploy a Spring Boot/Play!/... application that uses an embedded container?

1) I can get the DB2 jars in a private repository, but I'd like to avoid this scenario this time 2) Try to create a custom buildpack that also include the DB2 jars already? 3) As far as I know there is no public maven repository for DB2 drivers? 4) Any other options?

lmsurprenant

People who like this

  1
Comment
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

1 reply

  • Sort: 
270000XYBA gravatar image

Answer by Ram Vennam (2928) | Jan 05, 2015 at 04:00 PM

If you want to package your own DB2 drivers, I recommend you download them from: http://www-01.ibm.com/support/docview.wss?uid=swg21363866

Sorry, not available in a maven repo :(

Next, you can tell Liberty buildpack to not provide these DB2 jars for you (avoid conflicts) by opting out of the auto-configuration feature: https://www.ng.bluemix.net/docs/#starters/liberty/index.html#automaticconfigurationofboundservices

Read the section: Opting out of service auto-configuration

Comment

People who like this

  0   Show 2   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
270003B4FB gravatar image Driss Amri (78)   Jan 06, 2015 at 02:26 AM 0
Share

I'm not using Liberty buildpack though, I want to use plain old java build pack like https://github.com/cloudfoundry/java-buildpack.

Are there any plans in the future to get these jars in a public (IBM?) maven repo? If that's not the case it would be nice to have a custom java-db2-buildpack to encourage users to start with DB2 on Bluemix. Just like there is for other languages: https://github.com/ibmdb

270001DNFS gravatar image Mario Briggs (800) Driss Amri (78)   Jan 06, 2015 at 12:13 PM 0
Share

Hi Driss, I thought Ram's first para was suggesting to bundle the jcc jars with your app in the cf push. Any particular reason u can't do that.

i myself contributed many of the buildpacks on https://github.com/ibmdb, but a buildpack is overkill when you can push a 4 MB jcc.jar along with the app. And btw i too dont like no maven support

Follow this question

37 people are following this question.

Answers

Answers & comments

Related questions

What buildpacks support SQLDB (DB2) with PHP for bluemix? 1 Answer

How to connect to DB2 from the Liberty runtime in Bluemix (using Web IDE)? 4 Answers

Liberty Auto Configuration for SQL Using SSL? 1 Answer

How does the Bluemix Java SQLDB boilerplate work 1 Answer

Package com.ibm.db2.jcc does not exis 1 Answer

  • Contact
  • Privacy
  • IBM Developer Terms of use
  • Accessibility
  • Report Abuse
  • Cookie Preferences

Powered by AnswerHub

Authentication check. Please ignore.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • API Connect
  • Analytic Hybrid Cloud Core
  • Application Performance Management
  • Appsecdev
  • BPM
  • Blockchain
  • Business Transaction Intelligence
  • CAPI
  • CAPI SNAP
  • CICS
  • Cloud Analytics
  • Cloud Automation
  • Cloud Object Storage
  • Cloud marketplace
  • Collaboration
  • Content Services (ECM)
  • Continuous Testing
  • Courses
  • Customer Experience Analytics
  • DB2 LUW
  • Data and AI
  • DataPower
  • Decision Optimization
  • DevOps Build
  • DevOps Services
  • Developers IBM MX
  • Digital Commerce
  • Digital Experience
  • Finance
  • Global Entrepreneur Program
  • Hadoop
  • Hybrid Cloud Core
  • Hyper Protect
  • IBM Cloud platform
  • IBM Design
  • IBM Forms Experience Builder
  • IBM Maximo Developer
  • IBM StoredIQ
  • IBM StoredIQ-Cartridges
  • IIDR
  • ITOA
  • InformationServer
  • Integration Bus
  • Internet of Things
  • Kenexa
  • Linux on Power
  • LinuxONE
  • MDM
  • Mainframe
  • Messaging
  • Node.js
  • ODM
  • Open
  • PartnerWorld Developer Support
  • PowerAI
  • PowerVC
  • Predictive Analytics
  • Product Insights
  • PureData for Analytics
  • Push
  • QRadar App Development
  • Run Book Automation
  • Search Insights
  • Security Core
  • Storage
  • Storage Core
  • Streamsdev
  • Supply Chain Business Network
  • Supply Chain Insights
  • Swift
  • UBX Capture
  • Universal Behavior Exchange
  • UrbanCode
  • WASdev
  • WSRR
  • Watson
  • Watson Campaign Automation
  • Watson Content Hub
  • Watson Marketing Insights
  • dW Answers Help
  • dW Premium
  • developerWorks Sandbox
  • developerWorks Team
  • Watson Health
  • More
  • Tags
  • Questions
  • Users
  • Badges