Java, Android Client to EventBus using TCP

347 views
Skip to first unread message

Mumuney Abdlquadri

unread,
Dec 22, 2015, 6:36:55 PM12/22/15
to ve...@googlegroups.com
Hi all,

I wrote a Java Client to the EventBus using the new https://github.com/vert-x3/vertx-tcp-eventbus-bridge.

The code is here https://github.com/abdlquadri/vertx-eventbus-java. It is really a port of the JS client using Netty. It has same unit tests as in original. Comments and pull requests are highly welcome. This is really my first production interaction with direct Netty API so review is needed.

I wrote an Android Client to prove it works on Android. https://github.com/abdlquadri/VertxEventBusChat . Tested on Android 4.4.2 only.



Normal ./gradlew shadowJar to build. Then 'java -jar build/libs/vertx-tcp-bridged-chat-server-3.2.0-fat.jar' to run.

Please let me know if you run into any issues.

I will make some clean up and updates as time permits, but works.

Thanks.

Mumuney Abdlquadri

unread,
Dec 23, 2015, 1:38:02 AM12/23/15
to ve...@googlegroups.com
Hi all,

I tested the app on android 2.3.7. But got  Caused by: java.lang.NoClassDefFoundError: io.netty.channel.nio.NioEventLoopGroup

I rolled back netty to 4.0.33.Final from 5.0.0.Alpha2. I don't know why this happens.

It is really interesting that Netty works fine on android 2.3. Great work! But 4.0.33.Final for now.

Regards.

Paulo Lopes

unread,
Dec 23, 2015, 3:59:17 AM12/23/15
to vert.x
+1 :)

bilou Joe

unread,
Feb 20, 2017, 3:59:29 AM2/20/17
to vert.x
Hi,

It tried to make it works with android 4 with no success... the websocket is losing connection to server when it's sending message (maybe interrupted by the server). I created a server with openshift and Vert. x 3.

Do you think it is possible to make it work with newer android version?
Do you know a good alternative to create a simple chat app on android?


Thanks



On Wednesday, December 23, 2015 at 12:36:55 AM UTC+1, Mumuney Abdlquadri wrote:

Mumuney Abdlquadri

unread,
Feb 20, 2017, 4:07:18 AM2/20/17
to ve...@googlegroups.com
Hi bilou,

Could you create an issue against the project. With details of how to reproduce.

Please include links to your git repos of android app and vertx server.

Also add full android OS version and environment.

--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/5afd303e-a073-43c5-bad5-ae4395c6bae0%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Mumuney Abdlquadri

unread,
Feb 20, 2017, 4:22:54 AM2/20/17
to ve...@googlegroups.com

bilou Joe

unread,
Feb 20, 2017, 4:33:36 AM2/20/17
to vert.x
ok, I will do that.
But just want to know if public static void connect(String host, int port, final ConnectHandler connectHandler)
is working with this kind of remote host (with shared ip) demo-fran38.rhcloud.com ? or do I have to use an IP adress?
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.

Mumuney Abdlquadri

unread,
Mar 8, 2017, 1:14:42 AM3/8/17
to ve...@googlegroups.com
Yeah, Domain names work.

To unsubscribe from this group and stop receiving emails from it, send an email to vertx+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages