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

Connection start - io+ssl factory attribute doesn't match type with AttributeType #9

Open
Ryujose opened this issue Jun 26, 2020 · 0 comments

Comments

@Ryujose
Copy link

Ryujose commented Jun 26, 2020

Main issue

We're trying to use "failover:(nio+ssl)" on our connection string, but when we execute the connection start the "FactoryAttribute" it isn't validated well, the results is always "false" with "AttributeType"

Possible solution

If I compare it with an "is" validation with "Attribute" class then the result is "true"

Location

Happens on Apache.NMS.ActiveMQ.Util namespace, class FactoryFinder, line 108 "if (attribute is AttributeType)"

https://github.com/wdcossey/Apache.NMS.ActiveMQ.NetStd/blob/master/src/Util/FactoryFinder.cs#L108

Current implementation

[Factory("nio+ssl")]
public class ConfigurationFactoryIdentifier
{
}

Full connection string: failover:(nio+ssl://host1:port1,nio+ssl://host2:port2)

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

1 participant