web stats
Deploy channel from javascript - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 01-28-2020, 11:29 PM
Breme Breme is offline
OBX.1 Kenobi
 
Join Date: Mar 2012
Posts: 49
Breme is on a distinguished road
Question Deploy channel from javascript

Hi to all,
is possible deploy a channel from javascript?

I see this old post:
https://www.mirthcorp.com/community/forums/showpost.php?p=27914&postcount=2


I add this code:
var controllerFactory = com.mirth.connect.server.controllers.DefaultContro llerFactory.getFactory();
var engineController = controllerFactory.createEngineController();

what is the method for deploy a channel?

Many thanks!!
Reply With Quote
  #2  
Old 01-29-2020, 12:19 AM
odo odo is offline
OBX.3 Kenobi
 
Join Date: Feb 2017
Location: Luxembourg
Posts: 157
odo is on a distinguished road
Default

You can simply use ChannelUtil

Code:
ChannelUtil.deployChannel(<Channel id or name>);
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 05:19 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Mirth Corporation