Hello B4A Family.
I have taken a leap to try to understand the JavaObject in B4a
I have read Erels' tutorial for the JavaObject using Picasso over and over.
Now I know the leap i've taken is probably huge but I want to see if I can integrate the RabbitMQ
with a project I have. So here is my question.
I got all the Jars' in B4A - tested all sorts of invocations and objects and JavaObjects just to get myself a bit more confused. If I could just get an example of how the below could be done in B4A I would appreciate it IMMENSELY !
The javadoc is located at :
http://www.rabbitmq.com/releases/rabbitmq-java-client/v3.4.3/rabbitmq-java-client-javadoc-3.4.3/com/rabbitmq/client/ConnectionFactory.html
Again to anybody that could give me boost i would be so greatful!
Kindest regards
JEFFD
I have taken a leap to try to understand the JavaObject in B4a
I have read Erels' tutorial for the JavaObject using Picasso over and over.
Now I know the leap i've taken is probably huge but I want to see if I can integrate the RabbitMQ
with a project I have. So here is my question.
I got all the Jars' in B4A - tested all sorts of invocations and objects and JavaObjects just to get myself a bit more confused. If I could just get an example of how the below could be done in B4A I would appreciate it IMMENSELY !
ConnectionFactory factory = new ConnectionFactory();
factory.setUsername(userName);
factory.setPassword(password);
factory.setVirtualHost(virtualHost);
factory.setHost(hostName);
factory.setPort(portNumber);
Connection conn = factory.newConnection();
Preferably i like to usefactory.setUsername(userName);
factory.setPassword(password);
factory.setVirtualHost(virtualHost);
factory.setHost(hostName);
factory.setPort(portNumber);
Connection conn = factory.newConnection();
ConnectionFactory factory = new ConnectionFactory();
factory.setUri("amqp://userNameassword@hostNameortNumber/virtualHost");
Connection conn = factory.newConnection();
Im able to get the "class" initializedStatic but when I try to run any of the methods to set the properties i get the errorfactory.setUri("amqp://userNameassword@hostNameortNumber/virtualHost");
Connection conn = factory.newConnection();
java.lang.IllegalArgumentException: expected receiver of type com.rabbitmq.client.ConnectionFactory, but got java.lang.Class<com.rabbitmq.client.ConnectionFactory>
It goes without saying I am not a Java person - but what better way to learn than to jump in the deep end.
The javadoc is located at :
http://www.rabbitmq.com/releases/rabbitmq-java-client/v3.4.3/rabbitmq-java-client-javadoc-3.4.3/com/rabbitmq/client/ConnectionFactory.html
Again to anybody that could give me boost i would be so greatful!
Kindest regards
JEFFD