Hi all,
I use Axis with Hibernate, and use 2 handlers, one for the requstflow,
where I start a transaction, and one for the responseflow where I commit
the changes and close the hibernate session (and the db connection).
my wsdd:
<deployment xmlns........
<service name="MainService" provider="java:RPC">
<requestFlow>
<handler name="transactionBeginHandler"
type="java:com.etixpert.zagreus
.server.axis.TransactionBeginHandler"/>
</requestFlow>
<responseFlow>
<handler name="transactionEndHandler"
type="java:com.etixpert.zagreus.server.axis.TransactionEndHandler"/>
</responsFlow>
....
<beanMapping qname="data:AccountDefinition"
languageSpecificType="java:com.etixpert.zagreus.server.data.AccountDefinition"
xmlns:data="urn:server.zagreus.com/data"/>
...
And I have a webMethod:
AccountDefinition getAccount(Integer id);
The problem is that AccountDefinition has a function getGroups, that is
read lazily that means, it will be read from the database at the fist
call. But if I don't call it, then the serializer will call it first, but
as I see, the serializer will work only after executing all handler in the
responseflow, so the db connection will be closed, when the serializer
tries to call the function getGroups.
Can I tell the axis in the wsdd somehow, that the handler should be
executed after serializing all objects. Or should I solve in an other way?
Thnx for the answers in advance
George
--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]