APIAccessorImpl in external jar

1
0
-1

Hi,

I am building a jar which I would like to use in Bonita. I would like to use APIAccessor inside my jar so I could make reusable code in convenient way. What is preferable method to do it?

One way to do it is by passing apiAccessor given in Bonita groovy script as a paremeter for a method or an object. I don't see any dangers in this method, but it's a little troublesome.

Second way to do it is by creating an APIAccessorImpl() inside a method/object executed from Bonita groovy script. Does this action implicate any drawbacks? 1. Is another connection taken from connection pool? 2. Is nested transaction executed? 3. Is there any significant overhead involved? 4. Is it safe to use it?

No answers yet.
Notifications