|
|
|
|
|
|
(no subject) [message #687935 is a reply to message #687925] |
Thu, 23 June 2011 14:22 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Thanks Ronald, I see that you also entered a bugzilla for it.
gr. Martin
On 06/23/2011 04:15 PM, Ronald Krijgsheld wrote:
>
>
> Yes, then I expect that it the timeout on the server. On the server the same timeout on the SignalProtocol exists.
> However it is not yet configurable. I worked around it by writing an IAppExtension. With the following implementation
> below.
>
> I saw in previous mails on the newsgroup that you already have server side code. So if you have a way to get the session
> on the server you can just get the protocol and set the timeout there.
>
> It reminds me that I promised Eike to create an bugzilla for this.
>
> - Ronald
>
>
>
> public class TestAppExtension implements IAppExtension {
>
> @Override
> public void start(File configFile) throws Exception {
> IRepository repository = CDOServerUtil.getRepository(IPluginContainer.INSTANCE, "test");
> repository.getSessionManager().addListener(new IListener() {
>
> @Override
> public void notifyEvent(IEvent event) {
> if (event instanceof SingleDeltaContainerEvent<?>) {
> SingleDeltaContainerEvent<?> e = (SingleDeltaContainerEvent<?>) event;
> if (e.getSource() instanceof InternalSessionManager && e.getDeltaKind() == IContainerDelta.Kind.ADDED) {
> InternalSession s = (InternalSession) e.getDelta().getElement();
> ((SignalProtocol<?>) s.getProtocol()).setTimeout(60 * 1000L);
> }
> }
> }
> });
> }
>
> @Override
> public void stop() throws Exception {
> }
> }
>
>
> On 23-6-2011 15:59, Martin Taal wrote:
>> Hmm, that timeout setting did not influence the behavior. Need to check
>> further.
>>
>> gr. Martin
>>
>> On 06/23/2011 02:17 PM, Ronald Krijgsheld wrote:
>>>
>>> After looking at the stacktrace I am not so sure anymore.
>>>
>>> look at the thread:
>>> [CDO] TimeoutException on server , what could cause this?
>>>
>>> I implemented an CDO server extension that sets the timeout, before
>>> Eike suggested how to do this. I did not have time
>>> to try it that way.
>>>
>>> - Ronald
>>>
>>
>>
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Powered by
FUDForum. Page generated in 0.03632 seconds