From: "Shi Jinghai" <[email protected]>
The error message said you're trying to use default delegator. Obviously
you're trying to use a server side method which needs a delegator to
access OFBiz database.

You should write your own client side methods to request OFBiz through
RMI. And you should also extend the server side services to response the
request.

Please reference our implements:
http://www.langhua.cn/viewvc/svn/ofbiz-components/OFBiz-RMIClient/
http://www.langhua.cn/viewvc/svn/ofbiz-components/OFBiz-RMIService/

I was to look at it, but why is the manual directory closed ?

Jacques

Good luck,

Shi Jinghai/Beijing Langhua Ltd.

在 2009-03-28六的 10:58 -0500,Cimballi写道:
Hi,

I'm trying to use OFBiz and RMI. I configured it using the SUN RMI
implementation to not have to deal with certificates stuff.

My connection is working but I have a problem when I retrieve data.
I'm using the performFindList method, and the problem is, when I iterate
over the returned objects and I call a getXxx method, I have this stack
trace :
java.lang.IllegalStateException: [GenericEntity.getDelegator] could not find
delegator with name default
...

The thing that looks strange to me is that, as returned entities are of type
GenericEntity, it needs all the framework environment to use them.
If there something I do wrong in my RMI call, or is there a way to get
simple beans as return entities, to not have to deal with the framework
stuff ?

For the same reason I have to embed ofbiz-base.jar, ofbiz-entity.jar and
ofbiz-service.jar in my client.

Thanks,

Cimballi



Reply via email to