GithubHelp home page GithubHelp logo

ntex-amqp's People

Contributors

avranju avatar dzvon avatar fafhrd91 avatar johntitor avatar kolbma avatar massand avatar myagley avatar nayato avatar wpbrown avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ntex-amqp's Issues

fail to make client to connect to ActiveMq broker

fail to make client to connect to ActiveMq broker throw AMQP 1.0 I use the following example
but it give me run time exception for connection result
thread 'main' panicked at 'called Result::unwrap() on an Err value: Connect(Resolver(ResolveError { kind: NoRecordsFound { query: Query { name: Name { is_fqdn: false, labels: [ampq] }, query_type: AAAA, query_class: IN }, valid_until: Some(Instant { t: 389237.4048147s }) }, backtrack: None }))', src\main.rs:12:10
stack backtrace:
and in activemq log it gives me that
WARN | Transport Connection to: tcp://127.0.0.1:57964 failed: org.apache.activemq.transport.amqp.AmqpProtocolException: Connection from client using unsupported AMQP attempted

use ntex_amqp::client;

#[ntex::main]
async fn main() -> std::io::Result<()> {
    std::env::set_var("RUST_LOG", "ntex=trace,ntex_amqp=trace,basic=trace");


    let driver = client::Connector::new()
        .connect("ampq://127.0.0.1:5672")
        .await
        .unwrap();
    let sink = driver.sink();

    ntex::rt::spawn(driver.start_default());

    let _session = sink.open_session().await.unwrap();

    Ok(())
}

Add some usage examples

Hello, Iā€™m very interested in your crate, but cannot get a simple client working.

Can you provide some examples, or maybe howtos how to work with your framework?

Iā€™m very newbie to rust and actix at all, but want to play with it and maybe can I do some help?

AMQP disconnect

This is rather a question, than an issue.

image

As seen in the image above, I get a random disconnect on my SenderLink. How can I retrieve the state described in the trace, to for example, refresh the sender link?

Something like if sender is detached do this.

Current code:

image

A more complete example

Hi everyone, I loved this project and thanks for taking the time to do it. But I understood very little about the character of the project itself.
I didn't understand the Server example and what the Server is intended for in this project.
Would it be possible to specify queues and topics and receive messages through these? If so, would you have a more complete example?

Thanks

ConnectError::Sasl

On trying to connect with Azure Iot hub, I get the Sasl exception: SaslCode::Sys
What does this error code mean?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.