[jboss-user] [JBoss Seam] - Re: Getting JBPM to use the seam managed persistence context

2007-11-29 Thread jcruise
Ok. 


  |public static Object getInstance(Class clazz, ScopeType scope, 
boolean create)
  |{
  |   return getInstance( getComponentName(clazz), scope, create );
  |}
  | 


I can see that the static instance() call does ultimately result in retrieving 
the component by name.

Consider me educated now :)

Cheers
J


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108903#4108903

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108903
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Getting JBPM to use the seam managed persistence context

2007-11-29 Thread jcruise
OK. I assumed, perhaps erroneously, that the component overriding rules would 
only work if you looked up the component by name. I believed that this code 
would always return an instance of ManagedJbpmContext. 


  |public static JbpmContext instance()
  |{
  |   if ( !Contexts.isEventContextActive() )
  |   {
  |  throw new IllegalStateException("no active event context");
  |   }
  |   return (JbpmContext) Component.getInstance(ManagedJbpmContext.class, 
ScopeType.EVENT);
  |}
  | 


Are you saying that I can install my own replacement for ManagedJbpmContext and 
that the ManagedJBpmContext.instance() call shown above would return my 
component?

Cheers
J

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108817#4108817

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108817
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Getting JBPM to use the seam managed persistence context

2007-11-24 Thread [EMAIL PROTECTED]
"jcruise" wrote : Note that the current managed JbpmContext has a hard 
dependency on the default jbpm implementation because of code like this: 
  | 
  | 
  |   | jbpmContext = 
Jbpm.instance().getJbpmConfiguration().createJbpmContext();
  |   | 

I don't understand this statement - yes, it requires that 
Jbpm.instance().getJbpmConfiguration() returns an instance of 
org.jbpm.JbpmConfiguration - but that is the public API of the jbpm component 
(and I don't see a way around that), but there is no hard dependency to Jbpm 
there at all.

anonymous wrote : You can't just set the session context manually after getting 
the ManagedJbpmContext, nor can you replace the default implementation of 
ManagedJbpmContext without patching Seam because of code like this:
  | 
  | 
  |   | ProcessInstance process = 
ManagedJbpmContext.instance().newProcessInstanceForUpdate(processDefinitionName);
  |   | 

Again, why not?

(I think you haven't fully understand the precedence and component overriding 
rules of Seam).

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107535#4107535

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107535
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Getting JBPM to use the seam managed persistence context

2007-11-16 Thread jcruise
Ok. Do you have any interest in a patch to allow us to do something like this 
in components.xml:


  | 
  | 
  | 
  | 

where jbpmConfiguration would a reference to either config1 or config2

Note that the current managed JbpmContext has a hard dependency on the default 
jbpm implementation because of code like this: 


  | jbpmContext = Jbpm.instance().getJbpmConfiguration().createJbpmContext();
  | 

You can't just set the session context manually after getting the 
ManagedJbpmContext, nor can you replace the default implementation of 
ManagedJbpmContext without patching Seam because of code like this:


  | ProcessInstance process = 
ManagedJbpmContext.instance().newProcessInstanceForUpdate(processDefinitionName);
  | 

in the classes in org.jboss.seam.bpm.

Thoughts appreciated.

Cheers
J

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105382#4105382

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105382
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Getting JBPM to use the seam managed persistence context

2007-11-15 Thread [EMAIL PROTECTED]
IIRC jbpm still uses hibernate directly rather than using JPA. With this in 
mind I think you can't use persistence.xml, but maybe you can use a Seam 
managed session.  Perhaps ask on the jbpm forum as I don't know if this is 
possible.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105254#4105254

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105254
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user