[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [xmlblaster] use of setReconnectSameClientOnly
Marcel Ruff wrote:
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,
How to dispatch the code to the main lop thread ? I asked around
locally,, but got no ideas:
Thanks
Jürgen
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/#OBJSERV at TEST_OBJS/99 may reconnect, access denied."
The reason is most likely that a login session of
"#OBJSERV at TEST_OBJS" 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]:
#OBJSERV at TEST_OBJS 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>#OBJSERV at TEST_OBJS/99</user>
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#6)[24414]:
<passwd>beijing</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]:
<ptp>true</ptp>
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#10)[24414]:
<instanceId>/instanceId/1190708201561720000</instanceId>
Sep 25 10:16:41 vpngateway Objserv(2007,650,INFO,,,#11)[24414]:
<session name='client/#OBJSERV at TEST_OBJS/99' timeout='86400000'
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='10000000'
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/#OBJSERV at TEST_OBJS/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/#OBJSERV at TEST_OBJS/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]:
#OBJSERV at TEST_OBJS 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>#OBJSERV at TEST_OBJS/99</user>
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#6)[24414]:
<passwd>beijing</passwd>
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#7)[24414]: ]]>
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#8)[24414]:
</securityService>
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#9)[24414]:
<ptp>true</ptp>
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#10)[24414]:
<instanceId>client/#OBJSERV at TEST_OBJS/99/instanceId/1190708201659905000</instanceId>
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#11)[24414]:
<session name='client/#OBJSERV at TEST_OBJS/99' timeout='86400000'
maxSessions='10' clearSessions='true' reconnectSameClientOnly='true'/>
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#12)[24414]:
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#13)[24414]:
<!-- QueuePropertyBase -->
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#14)[24414]:
<queue relating='connection' type='RAM' maxEntries='10000000'
storeSwapLevel='1468006' storeSwapBytes='524288'
reloadSwapLevel='629145' reloadSwapBytes='524288'>
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#15)[24414]:
<address type='SOCKET' bootstrapHostname='127.0.0.1'
bootstrapPort='0' dispatchPlugin='undef'>
Sep 25 10:16:41 vpngateway
Objserv(2007,920,INFO,,,#16)[24414]: socket://127.0.0.1
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#17)[24414]:
</address>
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#18)[24414]:
</queue>
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#19)[24414]:
<!-- QueuePropertyBase -->
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#20)[24414]:
<queue relating='callback' storeSwapLevel='1468006'
storeSwapBytes='524288' reloadSwapLevel='629145'
reloadSwapBytes='524288'>
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#21)[24414]:
<callback type='SOCKET' bootstrapHostname='127.0.0.1'
dispatchPlugin='undef'>
Sep 25 10:16:41 vpngateway
Objserv(2007,920,INFO,,,#22)[24414]: socket://172.27.1.1:46880
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#23)[24414]:
</callback>
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#24)[24414]:
</queue>
Sep 25 10:16:41 vpngateway Objserv(2007,920,INFO,,,#25)[24414]:
</qos>
.
.
.
.
Sep 25 10:16:42 vpngateway Objserv(2007,357,ERROR,,,#1)[24414]:
Exception after get to xmlBlaster with <exception
errorCode='communication.noConnection.polling'>
Sep 25 10:16:42 vpngateway Objserv(2007,357,ERROR,,,#2)[24414]:
<node>ConnectionsHandler-1190708201563105000</node>
Sep 25 10:16:42 vpngateway Objserv(2007,357,ERROR,,,#3)[24414]:
<message><![CDATA[The remote connection is not established and we
are currently polling for it.]]></message>
Sep 25 10:16:42 vpngateway Objserv(2007,357,ERROR,,,#4)[24414]:
<versionInfo>1.6.1 #exportiert</versionInfo>
Sep 25 10:16:42 vpngateway Objserv(2007,357,ERROR,,,#5)[24414]:
<timestamp>1190708202357573000</timestamp>
Sep 25 10:16:42 vpngateway Objserv(2007,357,ERROR,,,#6)[24414]:
<embeddedMessage><![CDATA[get]]></embeddedMessage>
Sep 25 10:16:42 vpngateway Objserv(2007,357,ERROR,,,#7)[24414]:
</exception>
Sep 25 10:16:42 vpngateway Objserv(2007,359,PANIC,,,#1)[24414]:
#OBJSERV at TEST_OBJS #. Exception from xmlBlaster2
--
Jürgen Prinz
Phone: +49 (0) 7531 / 696-355
Fax: +49 (0) 7531 / 696-315
E-mail: juergen.prinz at avitech-ag.com
---------------------------------------------
Avitech AG
Principal Office: Bahnhofplatz 1 | 88045 Friedrichshafen | Germany
T: +49 7541 282-0 | F: +49 7541 282-199
Court Registration: Amtsgericht Ulm | HRB 631948
Vorstand/CEO: Michael Zips
Chairman of the Supervisory Board: Max Ruëff
VAT No.: DE223719716
www.avitech-ag.com
This message may contain confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.