Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

add a new email service without restarting jira

Bruno BLAISE November 4, 2011

Hi all,

As explained within https://developer.atlassian.com/display/JIRADEV/Adding+your+own+email+handling+classes , a new pop3 MessageHandler implementation implies a modification of services/com/atlassian/jira/service/services/pop/popservice.xml and a jira restart.

I'm interested to know if it is possible to implement a hot injection of a new service without a jira restart when a plugin is installed/activated within jira ? Like it is the case when a plugin is plugged with osgi within jira.

Do you see any managers, controllers, ... to do this hot injection? or a piece of code to see how investigate it?

Thanks,

Bruno

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Andy Brook [Plugin People]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 5, 2011

There is currently a blood-brain barrier between P1 and P2 plugins, they simply can't communicate at a java level. IF you make necessary file changes and deploy p1 mail handlers as described in the linked page, it may be possible to programatically generate the necessary entries but....

JIRA 5 will offer p2 based module type for mail handlers that will enable plugins like JEMH to be loaded without manual tweaks, install or a restart (finally!)

The best way to get a handle on this stuff is through the JIRA source code. Copious use of grep, starting with any action, mapping back to classes and onward usually reveals the necessary code

TAGS
AUG Leaders

Atlassian Community Events