You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Facundo Wasinger (Jira)" <ji...@apache.org> on 2021/06/26 03:19:00 UTC

[jira] [Commented] (AMQNET-664) No IConnectionFactory implementation found

    [ https://issues.apache.org/jira/browse/AMQNET-664?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17369792#comment-17369792 ] 

Facundo Wasinger commented on AMQNET-664:
-----------------------------------------

Hi [~ruhr42] and [~Ouranos] !

Your solution works fine for me, but, I research it because this happened in the first place.
 Internal to Apache.NMS version 2.0.0 in NMSConnectionFactory use the URL to find the adapter to use (ActiveMQ, stomp, etc) and then with reflection generate the specific factory with
{code:java}
factoryType = assembly.GetType(factoryClassName, true, true);{code}
(factoryClassName value for ActiveMQ is Apache.NMS.ActiveMQ.ConnectionFactory) and this throw a exception...

Why? because in Apache.NMS 2.0.0 change many interfaces and lasted (1.8) Apache.NMS.ActiveMQ use interfaces of Apache.NMS 1.8

The correct solution I believe is to create a check, here maybe?
{code:java}
private static Type NMSConnectionFactory.GetTypeForScheme(string scheme){code}

> No IConnectionFactory implementation found
> ------------------------------------------
>
>                 Key: AMQNET-664
>                 URL: https://issues.apache.org/jira/browse/AMQNET-664
>             Project: ActiveMQ .Net
>          Issue Type: Bug
>          Components: ActiveMQ
>    Affects Versions: OpenWire-1.8.0
>            Reporter: Vagelis
>            Priority: Major
>
> When I try to create the connection factory I get the error "No IConnectionFactory implementation found".
> I followed this example:
>  [https://activemq.apache.org/components/nms/examples/nms-simple-asynchronous-consumer-example]
> I also tried with "new ActiveMQ.ConnectionFactory(uri)" with the same result.
> I use the below packages:
>  Apache.NMS -Version 2.0.0
>  Apache.NMS.ActiveMQ -Version 1.8.0
> Is this required? Is there a sample config file?
>   
>  {{// NOTE: ensure the nmsprovider-activemq.config file exists in the executable folder.}}
> {{Edit: I use nuget packages}}
> {{The full message:}}
> {{Apache.NMS.NMSConnectionException: 'Could not create the IConnectionFactory implementation: Method 'CreateConnectionAsync' in type 'Apache.NMS.ActiveMQ.ConnectionFactory' from assembly 'Apache.NMS.ActiveMQ, Version=1.8.0.0, Culture=neutral, PublicKeyToken=82756feee3957618' does not have an implementation.'}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)