Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attaching OfficeManager to already running Process #203

Closed
riteshbhambhani opened this issue Apr 23, 2020 · 2 comments
Closed

Attaching OfficeManager to already running Process #203

riteshbhambhani opened this issue Apr 23, 2020 · 2 comments
Assignees

Comments

@riteshbhambhani
Copy link

Hi,

I have a Java application which starts the OfficeManager on few ports. I want other Java applications to use these processes that have already started. Is there a way to attach a new LocalOfficeManager to the already running process.

I tried to use the ExternalOfficeManager but it can only take a single port and can attach it to the Office process running on that port. This question is to see if I am missing something.

@sbraconnier sbraconnier self-assigned this Apr 23, 2020
@sbraconnier
Copy link
Member

It is not possible at the moment, but I'm working on it. It will be in the next release.

@sbraconnier
Copy link
Member

You can now (in the next release) use the ExternalOfficeManager to connect to multiple ports (it uses a connection pool):

final OfficeManager manager =
    ExternalOfficeManager.builder()
        .portNumbers(2002,2003)
        .build();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants