Re: [xmlblaster] use of setReconnectSameClientOnly
I use this feature to assure, that only one client with this session-id is connected. i only wondered that the exception did not occure with the connect. Best regards and thanks Jürgen P.S. What about my problem with OSF/Motif timmers ? Marcel Ruff wrote: Dear Jürgen, the details of this feature are described here: http://www.xmlblaster.org/xmlBlaster/doc/requirements/client.configuration.html (search Assuring a client singleton there) First you should set maxSessions='1' in your use case! You get the exception errorCode=user.configuration.identicalClient and Only the creator of session /node/ZBAA_/client/[EMAIL PROTECTED]/99 may reconnect, access denied. The reason is most likely that a login session of [EMAIL PROTECTED] exists already please use the jconsole to check. best regards Marcel Jürgen Prinz wrote: To prevent identical users , i use setReconnectSameClientOnly(true) in SessionQos. It works, but the error is a bit confusing (see below) The connect is ok, but the following get has a exception. Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#1)[24414]: [EMAIL PROTECTED] connecting to xmlBlaster. Connect qos: Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#2)[24414]: qos Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#3)[24414]: securityService type=htpasswd version=1.0 Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#4)[24414]: ![CDATA[ Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#5)[24414]: user[EMAIL PROTECTED]/99/user Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#6)[24414]: passwdbeijing/passwd Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#7)[24414]:]] Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#8)[24414]: /securityService Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#9)[24414]: ptptrue/ptp Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#10)[24414]: instanceId/instanceId/119070820156172/instanceId Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#11)[24414]: session name='client/[EMAIL PROTECTED]/99' timeout='8640' maxSessions='10' clearSessions='true' reconnectSameClientOnly='true'/ Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#12)[24414]: Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#13)[24414]: !-- QueuePropertyBase -- Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#14)[24414]: queue relating='connection' type='RAM' maxEntries='1000' storeSwapLevel='1468006' storeSwapBytes='524288' reloadSwapLevel='629145' reloadSwapBytes='524288' Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#15)[24414]: address type='SOCKET' bootstrapHostname='127.0.0.1' bootstrapPort='0' dispatchPlugin='undef' Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#16)[24414]: socket://127.0.0.1 Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#17)[24414]: /address Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#18)[24414]: /queue Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#19)[24414]: !-- QueuePropertyBase -- Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#20)[24414]: queue relating='callback' storeSwapLevel='1468006' storeSwapBytes='524288' reloadSwapLevel='629145' reloadSwapBytes='524288' Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#21)[24414]: callback type='SOCKET' bootstrapHostname='127.0.0.1' dispatchPlugin='undef' Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#22)[24414]: socket://127.0.0.1:3412 Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#23)[24414]: /callback Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#24)[24414]: /queue Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#25)[24414]: /qos INFO XmlBlasterAccess-client/[EMAIL PROTECTED]/99 Callback settings: type=CACHE onOverflow=deadMessage onFailure=deadMessage maxEntries=1000 type=SOCKET oneway=false burstMode.collectTime=0 WARN ConnectionsHandler-1190708201563105000 Got exception when connecting, polling now: errorCode=user.configuration.identicalClient message=XmlBlasterException errorCode=[user.configuration.identicalClient] serverSideException=true location=[Authenticate.connect()] message=[#exportiert Only the creator of session /node/ZBAA_/client/[EMAIL PROTECTED]/99 may reconnect, access denied. : ] [See URL http://www.xmlblaster.org/xmlBlaster/doc/requirements/admin.errorcodes.listing.html#user.configuration.identicalClient] INFO RamQueuePlugin Created queue [RAM][1.0] Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#1)[24414]: [EMAIL PROTECTED] successfully connected to xmlBlaster. Return qos: Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#2)[24414]: qos Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#3)[24414]: securityService type=htpasswd version=1.0 Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#4)[24414]: ![CDATA[ Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#5)[24414]: user[EMAIL PROTECTED]/99/user Sep 25 10:16:41 vpngateway
Re: [xmlblaster] use of setReconnectSameClientOnly
Jürgen Prinz wrote: I use this feature to assure, that only one client with this session-id is connected. i only wondered that the exception did not occure with the connect. It happens on connect, but you are notified asynchronously as you are in fail safe mode. Note that you can max log in once for the user (loginName) and NOT for the session. To have more such 'singleton' clients you need to use different login names. Best regards and thanks Jürgen P.S. What about my problem with OSF/Motif timmers ? As said in my posting from 2007-09-10 you should check your multi threading approach, probably it is necessary to dispatch the code to the X-Window main loop thread, best regards Marcel Marcel Ruff wrote: Dear Jürgen, the details of this feature are described here: http://www.xmlblaster.org/xmlBlaster/doc/requirements/client.configuration.html (search Assuring a client singleton there) First you should set maxSessions='1' in your use case! You get the exception errorCode=user.configuration.identicalClient and Only the creator of session /node/ZBAA_/client/[EMAIL PROTECTED]/99 may reconnect, access denied. The reason is most likely that a login session of [EMAIL PROTECTED] exists already please use the jconsole to check. best regards Marcel Jürgen Prinz wrote: To prevent identical users , i use setReconnectSameClientOnly(true) in SessionQos. It works, but the error is a bit confusing (see below) The connect is ok, but the following get has a exception. Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#1)[24414]: [EMAIL PROTECTED] connecting to xmlBlaster. Connect qos: Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#2)[24414]: qos Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#3)[24414]: securityService type=htpasswd version=1.0 Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#4)[24414]: ![CDATA[ Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#5)[24414]: user[EMAIL PROTECTED]/99/user Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#6)[24414]: passwdbeijing/passwd Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#7)[24414]:]] Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#8)[24414]: /securityService Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#9)[24414]: ptptrue/ptp Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#10)[24414]: instanceId/instanceId/119070820156172/instanceId Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#11)[24414]: session name='client/[EMAIL PROTECTED]/99' timeout='8640' maxSessions='10' clearSessions='true' reconnectSameClientOnly='true'/ Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#12)[24414]: Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#13)[24414]: !-- QueuePropertyBase -- Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#14)[24414]: queue relating='connection' type='RAM' maxEntries='1000' storeSwapLevel='1468006' storeSwapBytes='524288' reloadSwapLevel='629145' reloadSwapBytes='524288' Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#15)[24414]: address type='SOCKET' bootstrapHostname='127.0.0.1' bootstrapPort='0' dispatchPlugin='undef' Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#16)[24414]: socket://127.0.0.1 Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#17)[24414]: /address Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#18)[24414]: /queue Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#19)[24414]: !-- QueuePropertyBase -- Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#20)[24414]: queue relating='callback' storeSwapLevel='1468006' storeSwapBytes='524288' reloadSwapLevel='629145' reloadSwapBytes='524288' Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#21)[24414]: callback type='SOCKET' bootstrapHostname='127.0.0.1' dispatchPlugin='undef' Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#22)[24414]: socket://127.0.0.1:3412 Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#23)[24414]: /callback Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#24)[24414]: /queue Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#25)[24414]: /qos INFO XmlBlasterAccess-client/[EMAIL PROTECTED]/99 Callback settings: type=CACHE onOverflow=deadMessage onFailure=deadMessage maxEntries=1000 type=SOCKET oneway=false burstMode.collectTime=0 WARN ConnectionsHandler-1190708201563105000 Got exception when connecting, polling now: errorCode=user.configuration.identicalClient message=XmlBlasterException errorCode=[user.configuration.identicalClient] serverSideException=true location=[Authenticate.connect()] message=[#exportiert Only the creator of session /node/ZBAA_/client/[EMAIL PROTECTED]/99 may reconnect, access denied. : ] [See URL http://www.xmlblaster.org/xmlBlaster/doc/requirements/admin.errorcodes.listing.html#user.configuration.identicalClient] INFO RamQueuePlugin Created queue [RAM][1.0] Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#1)[24414]: