Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ios Queues only Exclusive #17

Open
hmunoz opened this issue May 17, 2019 · 6 comments
Open

ios Queues only Exclusive #17

hmunoz opened this issue May 17, 2019 · 6 comments

Comments

@hmunoz
Copy link

hmunoz commented May 17, 2019

In the Queues are always created in exclusive mode.
In Android this does not happen, that is, it takes well the value of the configuration

@hmunoz
Copy link
Author

hmunoz commented May 17, 2019

In the Queues are always created in exclusive mode.
In Android this does not happen, that is, it takes well the value of the configuration

Error with connection, after reconnect:
{code: "405", type: "channel", description: "RESOURCE_LOCKED - cannot obtain exclusive access t…A857FCE-A952-4F42-8B7A-xxxx' in vhost '/'", name: "error"}

@hmunoz
Copy link
Author

hmunoz commented May 18, 2019

In RabbitMqQueue.m in line 46 add follow code
self.options = RMQQueueDeclareAutoDelete;

This is a mi solution, now Queue not define Exclu, i need in AD mode.

the solution to generate should be that you can take the configuration from the React-native code

@timhonders
Copy link
Contributor

You can set exclusive & autoDelete:

if ([config objectForKey:@"autoDelete"] != nil && [[config objectForKey:@"autoDelete"] boolValue]){ self.options = self.options | RMQExchangeDeclareAutoDelete; }

if ([config objectForKey:@"NoWait"] != nil && [[config objectForKey:@"NoWait"] boolValue]){ self.options = self.options | RMQQueueDeclareNoWait; }

@hmunoz
Copy link
Author

hmunoz commented May 20, 2019

if ([config objectForKey:@"autoDelete"] != nil && [[config objectForKey:@"autoDelete"] boolValue]){ self.options = self.options | RMQExchangeDeclareAutoDelete; }

if ([config objectForKey:@"NoWait"] != nil && [[config objectForKey:@"NoWait"] boolValue]){ self.options = self.options | RMQQueueDeclareNoWait; }

This code is in the library, but it does not work.
conditions must be wrong.

@timhonders
Copy link
Contributor

Ok i will check it out

@hmunoz
Copy link
Author

hmunoz commented May 23, 2019

Ok i will check it out
Ok, thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants