You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by gerardl <ge...@gmail.com> on 2015/10/14 17:39:37 UTC
com.sun.messaging.ConnectionFactory and ActiveMQ
Can I use the com.sun.messaging.ConnectionFactory to connect through JMS to
ActiveMQ?
When attempting this I get the following error:
[C4003]: Error occurred on connection creation [localhost:61616]. - cause:
java.lang.NumberFormatException: For input string: " ?☺ActiveMQ
Are there specific settings to be configured on
com.sun.messaging.ConnectionFactory before it will communicate properly with
ActiveMQ?
Thanks,
Ger.
--
View this message in context: http://activemq.2283324.n4.nabble.com/com-sun-messaging-ConnectionFactory-and-ActiveMQ-tp4702958.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
Re: com.sun.messaging.ConnectionFactory and ActiveMQ
Posted by Christopher Shannon <ch...@gmail.com>.
JMS is just an API, not a wire protocol. Every message broker has its own
implementation of a connection factory and
com.sun.messaging.ConnectionFactory is for Glassfish and won't work with
ActiveMQ, or any other message broker. ActiveMQ uses the OpenWire protocol
so you need a connection factory that will send OpenWire commands.
On Thu, Oct 15, 2015 at 10:48 AM, gerardl <ge...@gmail.com> wrote:
> Thanks Christopher.
>
> Can you indicate why the com.sun.messaging.ConnectionFactory will not work
> against ActiveMQ?
>
> I see it try to create a connection to active MQ and on the ActiveMQ side
> is
> shows a corresponding error:
>
> Transport Connection to: tcp://127.0.0.1:58473 failed:
> java.io.IOException:
> Frame size of 787 MB larger than max allowed 100 MB
>
> In this context I have tried to send a short string across the wire. Seems
> like ActiveMQ is getting confused and cannot potentially interpret the
> incoming message?
>
> Thanks,
> Ger.
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/com-sun-messaging-ConnectionFactory-and-ActiveMQ-tp4702958p4703001.html
> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
>
Re: com.sun.messaging.ConnectionFactory and ActiveMQ
Posted by gerardl <ge...@gmail.com>.
Thanks Christopher.
Can you indicate why the com.sun.messaging.ConnectionFactory will not work
against ActiveMQ?
I see it try to create a connection to active MQ and on the ActiveMQ side is
shows a corresponding error:
Transport Connection to: tcp://127.0.0.1:58473 failed: java.io.IOException:
Frame size of 787 MB larger than max allowed 100 MB
In this context I have tried to send a short string across the wire. Seems
like ActiveMQ is getting confused and cannot potentially interpret the
incoming message?
Thanks,
Ger.
--
View this message in context: http://activemq.2283324.n4.nabble.com/com-sun-messaging-ConnectionFactory-and-ActiveMQ-tp4702958p4703001.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
Re: com.sun.messaging.ConnectionFactory and ActiveMQ
Posted by Christopher Shannon <ch...@gmail.com>.
That connection factory won't work with ActiveMQ, you need to use the
ActiveMQConnectionFactory. See
http://activemq.apache.org/maven/apidocs/org/apache/activemq/ActiveMQConnectionFactory.html
You can see an example of its usage here
http://activemq.apache.org/hello-world.html.
On Wed, Oct 14, 2015 at 11:39 AM, gerardl <ge...@gmail.com> wrote:
> Can I use the com.sun.messaging.ConnectionFactory to connect through JMS to
> ActiveMQ?
>
> When attempting this I get the following error:
>
> [C4003]: Error occurred on connection creation [localhost:61616]. - cause:
> java.lang.NumberFormatException: For input string: " ?☺ActiveMQ
>
> Are there specific settings to be configured on
> com.sun.messaging.ConnectionFactory before it will communicate properly
> with
> ActiveMQ?
>
> Thanks,
> Ger.
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/com-sun-messaging-ConnectionFactory-and-ActiveMQ-tp4702958.html
> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
>