Sending messages to gtalk via jabber4r

Discussion in 'Ruby' started by Anatol Pomozov, Aug 2, 2006.

  1. Hi, all.

    I am trying to use jabber4r in my application to send messages via GTalk
    server, which is usual Jabber server.

    But I cant do it - I suppose due to incorrect configuration properties

    Here is my properties

    jid: /Cerberus
    port: 5223
    password: somepass
    digest: false
    recipients:

    In fact this properties are parsed and used for initializing Jabber4r
    instance. Anyway after running my code I have deadlock in following
    files. Could anybody help me and show how to use Jabber4r with GTalk.

    c:/progra~1/ruby/lib/ruby/gems/1.8/gems/jabber4r-0.8.0/lib/jabber4r/session.rb:283:in
    `stop'
    c:/progra~1/ruby/lib/ruby/gems/1.8/gems/jabber4r-0.8.0/lib/jabber4r/session.rb:283:in
    `authenticate'
    c:/progra~1/ruby/lib/ruby/gems/1.8/gems/jabber4r-0.8.0/lib/jabber4r/session.rb:141:in
    `bind'
    c:/progra~1/ruby/lib/ruby/gems/1.8/gems/cerberus-0.2.0/lib/cerberus/publisher/jabber.rb:10:in
    `notify'
    c:/progra~1/ruby/lib/ruby/gems/1.8/gems/cerberus-0.2.0/lib/cerberus/manager.rb:114:in
    `run'
    c:/progra~1/ruby/lib/ruby/gems/1.8/gems/cerberus-0.2.0/lib/cerberus/manager.rb:112:in
    `run'
    c:/progra~1/ruby/lib/ruby/gems/1.8/gems/cerberus-0.2.0/lib/cerberus/cli.rb:30:in
    `initialize'
    c:/progra~1/ruby/lib/ruby/gems/1.8/gems/cerberus-0.2.0/bin/cerberus:3
    c:/progra~1/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140:in
    `load'
    c:/PROGRA~1/ruby/bin/cerberus:18
     
    Anatol Pomozov, Aug 2, 2006
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.