How to get a JDBC connection in to our plug-in extensions
We would be able to reuse the same JDBC driver for Jazz Team Server (see steps 5.b-c from http://www-01.ibm.com/support/knowledgecenter/?lang=en#!/SSCP65_2.0.0.2/com.ibm.jazz.install.doc/topics/t_s_server_installation_setup_oracle.html) to obtain a database connection in to our plug-in extensions. It would be even better if we could reuse the same database connection utils from com.ibm.team.repository.service. Is that possibile?
Thanks in advice.
|
2 answers
I do not know of a way to get the database connection directly.
These two (older) articles on jazz.net might be helpful to you:
https://jazz.net/library/content/docs/hello-jazz/
https://jazz.net/wiki/bin/view/Main/JazzTalkWalkthrough
The first talks about defining a service and client library (needed if using the Eclipse client). The second talks about defining new types that are stored in the repository. Neither describes exactly what you are trying to do: access the database directly.
Ruby
Comments
SEC Servizi
commented Nov 18 '14, 4:33 a.m.
Thanks Martha, this "walkthrough" https://jazz.net/wiki/bin/view/Main/JazzTalkWalkthrough was helpful.
Cheers. |
Connecting to the database directly from your plug-ins should not be necessary if you are using the Java API. You can use the ITeamRepository interface to connect to the repository gives access to the items in the database.
Comments
SEC Servizi
commented Nov 17 '14, 9:07 a.m.
We created new tables to extend the default items and store more information in to the repository. We would be able to obtain a database connection through Jazz API to inquiry these new records.
Is that possibile if they are in the same database/schema?
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.