[EJB 3.0] - Loading different versions of same jar in ear application
by rrkulkarni
Env: JBoss 4.2.2 GA EJB 3 JDK 1.5.0.15
I have a jar with version 0 inside ear in lib folder. It is available to all the web and ejb modules. If I want to use higher version in web module I simple put new jar in WEB-INF/lib folder and it works fine. I am unable to do the same for ejb module. If I put a different version of jar inside ejb module it will not be loaded by jboss. It will use the jar in ear/lib folder only. It loads jar in ejb module fine if I delete the jar in ear/lib folder.
Is there a way I can use one version of jar in ear/lib folder and another version inside ejb module?
I like the class loading scheme for web modules. It loads web module specific jars first without worrying about already loaded jars and if not found then it will look to the parent. Makes perfect sense. Web module can choose to use already existing version or use a new updated one with no effect on other modules.
This does not work for ejb modules. It will first check if a jar is already loaded and use the same if alreday loaded. If it is not loaded then it will check if it exists in ejb module itself. It is forced to use the jar if it is loaded by classloader. It cannot use a better/different version of jar if it wants. So basically all ejb modules are forced to use the jar version in ear/lib folder.
Is there a work around or am I simply missing something.
Thanks a lot
Ravi
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4180396#4180396
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4180396
17 years, 9 months
[JBoss jBPM] - Re: createTaskInstance() nullpointer exception
by AJanz
yes of course.
but Pi and TaskMgmtInstance is not null
the process definition is
| <?xml version="1.0" encoding="UTF-8"?>
| <process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="ad-hoc">
| <start-state name="Start">
| <transition to="in Bearbeitung" name="beginnen"></transition>
| </start-state>
| <task-node name="in Bearbeitung" signal="never">
| <transition to="Ende" name="beenden" ></transition>
| <transition to="in Bearbeitung" name="nicht zuständig, weitergeleitet"></transition>
| <transition to="in Bearbeitung" name="beantwortet"></transition>
| <transition to="in Bearbeitung" name="nicht zuständig, zurück an Initiator"></transition>
| </task-node>
| <end-state name="Ende"></end-state>
|
| </process-definition>
|
the process is signaled to node "in Bearbeitung"
and the a task should be created.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4180393#4180393
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4180393
17 years, 9 months
[JBoss jBPM] - task node with dynamic created tasks
by AJanz
i got a simple workflow. with only one task node. the tasks on this node are created by code, if the user takes a transition other then end on this node.
but at first the task node has no tasks and when the workflow enters the node it seems to be automatically to take the transition end.
so a task node with no tasks is automatically set to the next node? no interaction is needed?
the definition is
|
|
| <?xml version="1.0" encoding="UTF-8"?>
| <process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="ad-hoc">
| <start-state name="Start">
| <transition to="in Bearbeitung" name="beginnen"></transition>
| </start-state>
| <task-node name="in Bearbeitung">
| <transition to="Ende" name="beenden" ></transition>
| <transition to="in Bearbeitung" name="nicht zuständig, weitergeleitet"></transition>
| <transition to="in Bearbeitung" name="beantwortet"></transition>
| <transition to="in Bearbeitung" name="nicht zuständig, zurück an Initiator"></transition>
| </task-node>
| <end-state name="Ende"></end-state>
| </process-definition>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4180386#4180386
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4180386
17 years, 9 months