I looked into this a bit:
Using hibernate, I see the same thing as you, the Management MBean is
not loaded, which I don't understand yet.
That is not the case however, when I use jpa. But with jpa,
listAllProcesses works fine, but when I call listAllInstances the
following error is generated.
<openjpa-0.0.0-rnull nonfatal user error>
org.apache.openjpa.persistence.ArgumentException: An error occurred
while parsing the query filter "select pi from ProcessInstanceDAOImpl as
pi left join fetch pi._fault". Error message: The name
"ProcessInstanceDAOImpl" is not a recognized entity or identifier. Known
entity names: []
I've tested the jpa case with both 1.3.4 and the current trunk, and see
the same behavior.
Is anyone able to shed any light on these issues?
On 10/27/2010 03:08 AM, Andriotto Massimiliano wrote:
I think there was a problem with the attached images:
With ode 1.3.3, inside jconsole there is this MBean:
org.apacheservicemix
-> Component
OdeBpleEngine
+ LifeCycle
+ Management
-> Operations
...
listAllInstances
listAllProcesses
end so on
Inside the laraf console there are these commands;
ode:list
ode:terminate
With ode 1.3.4 inside jconsole there is this MBean:
org.apacheservicemix
-> Component
OdeBpleEngine
+ LifeCycle
-> Attributes
|-> Name
|-> ...
|-> ExtensionMBeanName
Extension MBean Name has these Attribute
Name=ExtensionMBeanName
Value=g.apache.servicemix:Type=Component,Name=OdeBpelEngine,SubType=Management
MBeanAttributeInfo:
Name=ExtensionMBeanName
Description: Attribute exposed for management
Readable: true
Writable: false
Is: false
Type: javax.management.ObjectName
How to access thie MBean and retrieve the list of all processes and of all
instances?
Thank you
Massimiliano
-----Messaggio originale-----
Da: Andriotto Massimiliano [mailto:massimiliano.andrio...@necsy.it]
Inviato: mercoledì 27 ottobre 2010 09:50
A: dev@ode.apache.org
Oggetto: R: problems with ode karaf commands
In previous release of ode 1.3.3 fuse, deployed inside SMX, there was a karaf
command line option that permits to list and to terminate processes.
The screenshot is in commands.png.
These commands are implemented in jbi-karaf-command project and they uses the
JMX interface of ODE. If you try to connect jconsole to ode 1.3.3 you will find
the situation presented in jconsole133.png.
If you do the same with ode 1.3.4, in JConsole you will see jconsole134.png.
I'd like to adapt jbi-karaf-command module to ode 1.3.4. To do this I need to
access the ExtensionMBean and invoke the methods like listAllProcesses and so
on but I don't know ho to do this.
Can you help me?
Thank you
Massimiliano
-----Messaggio originale-----
Da: Guillaume Nodet [mailto:gno...@gmail.com]
Inviato: mercoledì 27 ottobre 2010 09:17
A: dev@ode.apache.org
Oggetto: Re: problems with ode karaf commands
What's the relationship with karaf commands?
It looks you're just trying to access through JMX.
Have you opened a jconsole to see what the mbean exact names are?
On Mon, Oct 18, 2010 at 09:47, Andriotto Massimiliano
<massimiliano.andrio...@necsy.it> wrote:
Hi,
in smx4.2 i want to manage ODE 1.3.4 using karaf console.
If I use this definition:
ObjectName mbeanName = new ObjectName((String)
"org.apache.servicemix:Type=Component,Name=OdeBpelEngine,SubType=Managem
ent");
and I invoke:
processInfoList = (ProcessInfoListDocument) mbsc.invoke(mbeanName,
"listAllProcesses", null, null);
I receive this error:
org.apache.servicemix:Type=Component,Name=OdeBpelEngine,SubType=Manageme
nt
javax.management.InstanceNotFoundException:
org.apache.servicemix:Type=Component,Name=OdeBpelEngine,SubType=Manageme
nt
Where can I found an example with the description of how to access the
management bean and retrieve the process list?
Thank you
Massimiliano Andriotto