[Design the new POJO MicroContainer] - Re: NPE in DeployersImpl
by alesj
It looks like some sort of synch issue:
| if (deploy != null && deploy.isEmpty() == false)
| {
| // Create the controller contexts
| for (DeploymentContext context : deploy)
| {
| checkShutdown();
|
| DeploymentControllerContext deploymentControllerContext = new DeploymentControllerContext(context, this);
| (A) context.getTransientAttachments().addAttachment(ControllerContext.class, deploymentControllerContext);
| try
| {
| controller.install(deploymentControllerContext);
| context.setState(DeploymentState.DEPLOYING);
| log.debug("Deploying " + context.getName());
| if (scopeBuilder != null)
| context.getTransientAttachments().addAttachment(ScopeBuilder.class, scopeBuilder);
| if (repository != null)
| context.getTransientAttachments().addAttachment(MutableMetaDataRepository.class, repository);
| }
| catch (Throwable t)
| {
| // Set the error on the parent
| context.setState(DeploymentState.ERROR);
| context.setProblem(t);
| // Set the children to not deployed
| setState(context, DeploymentState.UNDEPLOYED, DeploymentState.DEPLOYING);
| }
| }
|
| // Go through the states in order
| ControllerStateModel states = controller.getStates();
| for (ControllerState state : states)
| {
| for (DeploymentContext context : deploy)
| {
| DeploymentControllerContext deploymentControllerContext = context.getTransientAttachments().getAttachment(ControllerContext.class.getName(), DeploymentControllerContext.class);
| (B) ControllerState current = deploymentControllerContext.getState();
|
The last line here is the 621 line in DeployerImpl.
It looks like some other process 'cleaned' out the context between from (A) to (B) marks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4176757#4176757
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4176757
17 years, 6 months
[Design of Clustering on JBoss] - Re: Removing SFSB in HttpSessionListener
by pete.muir@jboss.org
"brian" wrote : If the Seam guys can provide any input on when they do and don't want notifications, that would be great. From JBAS-5778, it seems a sessionDestroyed() callback on undeploy is not good; any other cases I should know about?
Seam uses the sessionDestroyed callback to implement session cleanup. This includes going through and calling destroy on all objects in the session (which leads to the SFSB's remove method being called unless you explicitly ask it not to). As an undeploy does this anyway, I think you are right.
I can't immediately see any other cases.
Also, it's worth noting that in JBoss 5 we have the ability to automatically insert classes into a Seam apps classpath, allowing us to plugin alternative behaviour - this might be helpful here (Seam currently doesn't provide for plugability here, but it could if needed).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4176755#4176755
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4176755
17 years, 6 months
[Design of JBoss jBPM] - Re: Multiple 1PC resources in enterprise
by alex.guizar@jboss.com
anonymous wrote : on the migration to ejb3: i don't think that is appropriate on jBPM 3. we can consider this on jBPM 4.
+3.1415926
ejb3 is definitely a proposal for jbpm 4. I volunteer for that.
anonymous wrote : i would guess the whole purpose of an appserver is to take care of making a global transaction out of XA transactional resources, no ? even if we would use different DSs.
managing a global/distributed transaction is the app server's business indeed, except that (1) some databases such as HSQL and (correct me if I'm wrong) MySQL do not provide XA data sources and (2) the EJB timer service's support for 2PC relies on its underlying data source, which affects the EntitySchedulerService. JMS's 2PC support does not rely on the underlying data source's XA capability and therefore the JmsMessageService is unaffected.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4176743#4176743
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4176743
17 years, 6 months