You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by ericlin <li...@qq.com> on 2012/05/21 14:30:22 UTC

how to "Switch to the hibernate DAO layer"

Thanks for your answer!!
 I want to know more about how to "Switch to the hibernate DAO layer".
  
 by the way, my real goal is to receive the detail information of ODE's log.
 eg. when an instance creates and works, which events(that means which WebService) have been invoked,and I need to receive the detail information of the events.
 would you give me some adivces?
 as you know I am fresher, please tell me detail or offer some blog. Thank you! :)

Re: how to "Switch to the hibernate DAO layer"

Posted by Waruna Ranasinghe <wa...@gmail.com>.
You can find the table of available events from [1]. I think
activityLifecycle events will help you to figure out which webservice you
are invoking (at least the partnerlink). You can find a sample
eventListener at [3], if you require to act to the events at runtime as
when an event occurs.

To use the hibernate persistence layer instead of OpenJPA, refer - [2]
Note:you need to set "ode-axis2.dao.factory" and "ode-axis2.db.emb.name" in
ode-axis2.properties file

ode-axis2.dao.factory=org.apache.ode.daohib.bpel.BpelDAOConnectionFactoryImpl
ode-axis2.db.emb.name=hibdb


[1] - http://ode.apache.org/ode-execution-events.html
[2] - http://ode.apache.org/ode-jbi-and-axis2-properties-overview.html
[3] -
https://svn.wso2.org/repos/wso2/carbon/platform/trunk/products/bps/modules/samples/product/bpel-eventlistener/src/main/java/org/wso2/bps/samples/eventlistener/CustomEventListener.java

HTH
Thanks,
Waruna
On 21 May 2012 18:00, ericlin <li...@qq.com> wrote:

> Thanks for your answer!!
>  I want to know more about how to "Switch to the hibernate DAO layer".
>
>  by the way, my real goal is to receive the detail information of ODE's
> log.
>  eg. when an instance creates and works, which events(that means which
> WebService) have been invoked,and I need to receive the detail information
> of the events.
>  would you give me some adivces?
>  as you know I am fresher, please tell me detail or offer some blog. Thank
> you! :)




-- 
-----------------------------------------------------
Regards,
Waruna Ranasinghe

www.wso2.com - "Lean . Enterprise . Middleware"

blog: http://warunapw.blogspot.com
twitter: http://twitter.com/warunapww
http://lk.linkedin.com/in/waruna
www.facebook.com/waruna.ranasinghe