[JBoss JIRA] (WFCORE-1912) Redeploy deployment if all missing dependencies for deployment are corrected
by Brian Stansberry (JIRA)
[ https://issues.jboss.org/browse/WFCORE-1912?page=com.atlassian.jira.plugi... ]
Brian Stansberry commented on WFCORE-1912:
------------------------------------------
The rollback behavior of the deployment scanner is configurable via the runtime-failure-causes-rollback attribute and the standard setting in our config files is 'false'.
It's not practical to control this behavior from a descriptor, as the MSC services involved in deployment do not have access to any mechanism to control the decisions of the management layer about rollback. It's also not possible to control rollback based on an individual resource's configuration. Rollback behavior is per overall request, and a request can involve multiple resources. Boot basically implemented as a single request and a composite op is a single request potentially involving multiple resources. An individual resource should not be able to dictate the rollback behavior of a request that involves other resources.
> Redeploy deployment if all missing dependencies for deployment are corrected
> -----------------------------------------------------------------------------
>
> Key: WFCORE-1912
> URL: https://issues.jboss.org/browse/WFCORE-1912
> Project: WildFly Core
> Issue Type: Enhancement
> Components: Server
> Reporter: Miroslav Novak
> Assignee: Jason Greene
> Labels: user_experience
>
> If deployment failed to deploy and later all missing dependencies for deployment are corrected then deployment would redeploy automatically. This behavior could be configurable.
> For example if you deploy EJB which injects queue like:
> {code}
> @Resource(mappedName = "java:/jms/queue/OutQueue")
> private Queue outQueue;
> {code}
> and administrator deploys queue later then EJB would automatically get redeployed.
--
This message was sent by Atlassian JIRA
(v7.2.2#72004)
9 years, 8 months
[JBoss JIRA] (WFCORE-1912) Redeploy deployment if all missing dependencies for deployment are corrected
by Miroslav Novak (JIRA)
[ https://issues.jboss.org/browse/WFCORE-1912?page=com.atlassian.jira.plugi... ]
Miroslav Novak edited comment on WFCORE-1912 at 11/1/16 10:28 AM:
------------------------------------------------------------------
Correct, just tried it myself. Is it possible to configure it globally so it's applied on to all deployments or directly in deployment using deployment descriptor.
The idea is that if developer simply copies jar/war/ear to deployments directory and set {{rollback-on-runtime-failure=false}} for this deployment then it's no need call {code}deploy ~/tmp/luckywinner.ear --unmanaged --headers={rollback-on-runtime-failure=false}{code}
was (Author: mnovak):
Correct, just tried it myself. Is it possible to configure it globally so it's applied on to all deployments or directly in deployment using deployment descriptor.
The idea is that if developer simply copies jar/war/ear to deployments directory then he can set {{rollback-on-runtime-failure=false}} for this deployment without need to call {code}deploy ~/tmp/luckywinner.ear --unmanaged --headers={rollback-on-runtime-failure=false}{code}
> Redeploy deployment if all missing dependencies for deployment are corrected
> -----------------------------------------------------------------------------
>
> Key: WFCORE-1912
> URL: https://issues.jboss.org/browse/WFCORE-1912
> Project: WildFly Core
> Issue Type: Enhancement
> Components: Server
> Reporter: Miroslav Novak
> Assignee: Jason Greene
> Labels: user_experience
>
> If deployment failed to deploy and later all missing dependencies for deployment are corrected then deployment would redeploy automatically. This behavior could be configurable.
> For example if you deploy EJB which injects queue like:
> {code}
> @Resource(mappedName = "java:/jms/queue/OutQueue")
> private Queue outQueue;
> {code}
> and administrator deploys queue later then EJB would automatically get redeployed.
--
This message was sent by Atlassian JIRA
(v7.2.2#72004)
9 years, 8 months
[JBoss JIRA] (WFCORE-1912) Redeploy deployment if all missing dependencies for deployment are corrected
by Miroslav Novak (JIRA)
[ https://issues.jboss.org/browse/WFCORE-1912?page=com.atlassian.jira.plugi... ]
Miroslav Novak commented on WFCORE-1912:
----------------------------------------
Correct, just tried it myself. Is it possible to configure it globally so it's applied on to all deployments or directly in deployment using deployment descriptor.
The idea is that if developer simply copies jar/war/ear to deployments directory then he can set {{rollback-on-runtime-failure=false}} for this deployment without need to call {code}deploy ~/tmp/luckywinner.ear --unmanaged --headers={rollback-on-runtime-failure=false}{code}
> Redeploy deployment if all missing dependencies for deployment are corrected
> -----------------------------------------------------------------------------
>
> Key: WFCORE-1912
> URL: https://issues.jboss.org/browse/WFCORE-1912
> Project: WildFly Core
> Issue Type: Enhancement
> Components: Server
> Reporter: Miroslav Novak
> Assignee: Jason Greene
> Labels: user_experience
>
> If deployment failed to deploy and later all missing dependencies for deployment are corrected then deployment would redeploy automatically. This behavior could be configurable.
> For example if you deploy EJB which injects queue like:
> {code}
> @Resource(mappedName = "java:/jms/queue/OutQueue")
> private Queue outQueue;
> {code}
> and administrator deploys queue later then EJB would automatically get redeployed.
--
This message was sent by Atlassian JIRA
(v7.2.2#72004)
9 years, 8 months
[JBoss JIRA] (WFCORE-1912) Redeploy deployment if all missing dependencies for deployment are corrected
by Brian Stansberry (JIRA)
[ https://issues.jboss.org/browse/WFCORE-1912?page=com.atlassian.jira.plugi... ]
Brian Stansberry edited comment on WFCORE-1912 at 11/1/16 10:09 AM:
--------------------------------------------------------------------
I won't reject this because it's a valid request, but I'd be surprised if any activity happens on it for a long time as it's not clear at all how to do such a thing. The data structures that record all this dependency state are tied to the objects that are created as part of deployment and are discarded on undeploy or rollback. Keeping all that data around somehow and then being able to make use of it later would be complex.
I'm not clear though on why the existing rollback-on-runtime-failure=false behavior doesn't suffice. The behavior at boot is to not roll back. I'll play a bit to see if I can understand the problem; perhaps some detail has changed that I've forgotten about.
was (Author: brian.stansberry):
I won't reject this because it's a valid request, but I'd be surprised if any activity happens on it for a long time as it's not clear at all how to do such a thing. The data structures that record all this dependency state are tied to the objects that are created as part of deployment and are discarded on undeploy. Keeping all that data around somehow and then being able to make use of it later would be complex.
I'm not clear though on why the existing rollback-on-runtime-failure=false behavior doesn't suffice. The behavior at boot is to not roll back. I'll play a bit to see if I can understand the problem; perhaps some detail has changed that I've forgotten about.
> Redeploy deployment if all missing dependencies for deployment are corrected
> -----------------------------------------------------------------------------
>
> Key: WFCORE-1912
> URL: https://issues.jboss.org/browse/WFCORE-1912
> Project: WildFly Core
> Issue Type: Enhancement
> Components: Server
> Reporter: Miroslav Novak
> Assignee: Jason Greene
> Labels: user_experience
>
> If deployment failed to deploy and later all missing dependencies for deployment are corrected then deployment would redeploy automatically. This behavior could be configurable.
> For example if you deploy EJB which injects queue like:
> {code}
> @Resource(mappedName = "java:/jms/queue/OutQueue")
> private Queue outQueue;
> {code}
> and administrator deploys queue later then EJB would automatically get redeployed.
--
This message was sent by Atlassian JIRA
(v7.2.2#72004)
9 years, 8 months