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

While working with RTC Extension, if a small change in code is required to my provisioned plugin what steps should be followed? Do we need to restart the server always?

I'm trying to build some custom RTC extensions (Operations advisors and Participants). I have gone through the examples and they are working fine. Now if I need to make a small change to the implementation class like writing System.out.println(), I have to go through a whole lot of steps:
1) Update site.
2) stop server
3) Clean the work directory in tomcat
4) start server

Is there a faster way for this?

0 votes


Accepted answer

Permanent link
Under development follow https://jazz.net/library/article/1000 and use Jetty to develop. This avoids having to to redeploy and having to restart the server always. At least minor changes to the extension code can be done without always restarting the test jetty server.
anup Gaur selected this answer as the correct answer

0 votes

Comments

Development environment is always easy!

The question was "like writing System.out.println(), I have to go through a whole lot of steps"... You don't just add one System.out in a production plugin.

true. I missed that point..

Hi Ralph,

I think I am going to try it with Jetty. This looks to be the best case for my requirement.
If I can test it on Jetty without deploying it on Production, without a restart that will save a whole lot of wait time. Thank you.

Hi Ralph,
I configured the Jetty and it works like a charm. In fact the code changes are like hot patches.
No server restart required!! Just change the code and test in the client.
Thanks a lot.!!


2 other answers

Permanent link
up can change 3, to use the web request

1. update site
2. https://server:port/ccm/admin/requestReset
3. stop server
4. start server

3 erases the builton.txt file in the work directory which causes the work directory to be rebuilt on next start

no way I know of to speed up the cycle.

0 votes

Comments

The server start and stop cycles clearly is an overload for every little line change in code. As this can be a minimum 10 - 20 minutes for one cycle. If we only knew where the code is deployed after the provisioning , we can simply replace it with the new jar and rename it or something. This would not take more than 30 secs.

Thanks so much!!


Permanent link
the OSGI console 'might' provide a mechanism, but I don't know how to attach a console to a running server.

because of the overhead, I always recommend to create a schedule for publishing code changes, and test prior on parallel systems. 

that schedule could be daily, depends on what your organization can handle

0 votes

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,953

Question asked: Feb 24 '15, 7:29 p.m.

Question was seen: 3,197 times

Last updated: Feb 26 '15, 1:08 p.m.

Confirmation Cancel Confirm