Jamie,

Sorry you didn't get a response.  I'm happy to confirm that this is the
correct list for your question.  There is no well-beaten path for running
NiFi in another process, NiFi assumes that it is deployed as it's own
process.  NiFi contains a number of features for classloader isolation,
thread management, and performance monitoring that may mean something
different in another process, although I can't say for sure they will break.

Hopefully, some others can chime in on the pitfalls.

Thanks,

James

On Wed, Apr 5, 2017 at 2:25 PM, Jamie Wang <jam...@opentext.com> wrote:

> Hi,
>
> I sent the message below to the user group and unfortunately I didn't get
> any response. I am forwarding the message to this list and am hoping to get
> some feedback. If this is the wrong list for this message, I apologize and
> please let me know the right place to post. Thank you in advance.
>
> Jamie
>
> From: Jamie Wang [mailto:jam...@opentext.com]
> Sent: Tuesday, April 04, 2017 12:53 PM
> To: us...@nifi.apache.org
> Subject: [EXTERNAL] - Loading nifi server within a Java process
>
> I have a situation where we have constraint on the number of processes we
> can use and hence, is it possible to load nifi server within another Java
> process? Looking at the org.apache.nifi.bootstrap.RunNiFi.java, it seems
> that I can create a Java object that does most of what
> org.apache.nifi.bootstrap.RunNiFi.main() do. Any thoughts if this will
> work? What are some of the things I need to watch out? And is there another
> better way to do this or an example? Thank you for your time.
>
> Jamie
>

Reply via email to