Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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.

0 votes



2 answers

Permanent link
 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 


1 vote

Comments
Thanks Martha, this "walkthrough" https://jazz.net/wiki/bin/view/Main/JazzTalkWalkthrough was helpful.

Cheers. 


Permanent link
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. 


0 votes

Comments

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 log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,943
× 12

Question asked: Nov 04 '14, 7:57 a.m.

Question was seen: 4,598 times

Last updated: Nov 18 '14, 4:33 a.m.

Confirmation Cancel Confirm