It's all about the answers!

Ask a question

How to get a JDBC connection in to our plug-in extensions


SEC Servizi (97123860) | asked Nov 04 '14, 7:57 a.m.
edited Nov 04 '14, 8:00 a.m.
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



permanent link
Martha (Ruby) Andrews (3.0k44351) | answered Nov 17 '14, 12:35 p.m.
JAZZ DEVELOPER
 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. 


permanent link
Martha (Ruby) Andrews (3.0k44351) | answered Nov 13 '14, 4:47 p.m.
JAZZ DEVELOPER
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


Register or to post 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.