[AG-DEV] Issue communicating with Event Channel

krishna chandu krishna.chandu at iiitb.net
Tue May 25 07:14:02 CDT 2010


Hi,

We are facing issue when we are trying to send event Events.Event.OPEN_APP
to the application event channel using an external application. We are
getting AccessGrid.GroupMsgDefines.NotConnectedException   at
vec.send(….)when we run the following code.  Please help us to understand
what is the root cause.



------------------- Code snippet  BEGIN-------------------------

    clientProfile = GetClientProfile()

    name = *'Shared Browser'*

    description = *'Started by XXXX'*

    uri = *'
https://localhost:8000/Venues/c0a801020ff01df9cc9ce0badeb550b5/apps/0a44b942054c2ab5eac872caed001a03
'*

    oid = *'0a44b942054c2ab5eac872caed001a03'*

    mimetype=*'application/x-ag-shared-browser'*

    startable = *'1'*

    appDesc = ApplicationDescription(oid, name, description, uri, mimetype,
startable)

    verb=*'Open'*

    cmd=None

    data = ApplicationCmdDescription(appDesc, verb, cmd, clientProfile)



    location = (*'localhost'*, 8002)  # venue server running on same machine

    conid = *'0a44b9421ebc2e3de5fe168afc2c1b44'*   # getting connection id
of the client from the venue state

    chnl = *‘c0a801020ff01df9cc9ce0badeb550b5’    *# hardcoded after looking
into logs

    groupMsgClientClassList = GetFormatList()



    *vec = SecureVenueEventClient(**location=location, privateId=conid,
channel=chnl)   *



*    vec.Send(Events.Event.OPEN_APP, data)*

    vec.Start()

    reactor.run()

------------------- Code snippet  END-------------------------




 Thanks for the help.

Regards,
Chandu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/ag-dev/attachments/20100525/f3855cc1/attachment.htm>


More information about the ag-dev mailing list