-
Notifications
You must be signed in to change notification settings - Fork 24
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
Deploy on a specific Server. #17
Comments
By using the Container Configuration option 'target' you should be able to target the deployment to any server.
Unless this somehow got lost in the implementation? |
Il 19/01/2015 17:25, Aslak Knutsen ha scritto:
|
Aah, ic. Missed the use of configuration.getTarget in your sample code there. So right.. the actual implementation of target got lost in implementation.. :) Would you mind sending this as a pullrequest? |
Done.
|
Some days ago I wrote a changes to deploy an archive on a specified server because the current implementation deploys on all server managed by the AdminServer. See the code below for WebLogicJMXClient. Can be useful?
private void doDeploy(String deploymentName, File deploymentArchive) throws DeploymentException {
try {
String serverName = configuration.getTarget();
String[] targets = new String[]{serverName};
ObjectName domainRuntime = (ObjectName) connection.getAttribute(domainRuntimeService, "DomainRuntime");
ObjectName deploymentManager = (ObjectName) connection.getAttribute(domainRuntime, "DeploymentManager");
The text was updated successfully, but these errors were encountered: