Discussion:
[jade-develop] Launching Jade InProcess - specifying the properties
Maatari Daniel Okouya
2014-08-14 01:37:10 UTC
Permalink
Hi,

I would like to launch Jade in process. Is there any examples of how to do it. In particular i would like to know how to set properties such as an MTP that i have implemented. 

Many thanks,

Maatari
-- 
Maatari Daniel Okouya
Sent with Airmail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jade.tilab.com/pipermail/jade-develop/attachments/20140814/35194379/attachment.html>
Caire Giovanni
2014-08-16 09:46:19 UTC
Permalink
Hi,

You can set parameters to a Profile (or ProfileImpl) object by means of the setParameter(key, value) method.
In particular the Profile.MTPS constant is the key to set which MTPs to install. The value for this parameter has the form
<MTP-class>(listening-URL);<MTP-class>(listening-URL)...
The listening-URL is optional: if not specified, the MTP is expected to select a free port.

For instance
Profile p = new ProfileImpl(true);
p.setParameter(Profile.MTPS, “jade.mtp.http.MessageTransportProtocol(http://localhost:1234)”);
...
has the effect of starting the usual JADE HTTP MTP listening on port 1234.

Bye,

Giovanni

Da: jade-develop [mailto:jade-develop-bounces at avalon.tilab.com] Per conto di Maatari Daniel Okouya
Inviato: giovedì 14 agosto 2014 03:37
A: jade-develop at avalon.tilab.com
Oggetto: [jade-develop] Launching Jade InProcess - specifying the properties


Hi,

I would like to launch Jade in process. Is there any examples of how to do it. In particular i would like to know how to set properties such as an MTP that i have implemented.

Many thanks,

Maatari
--
Maatari Daniel Okouya
Sent with Airmail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jade.tilab.com/pipermail/jade-develop/attachments/20140816/2d3048c5/attachment-0001.html>
Loading...