0

I've created a gameserver containing an ArrayList of players (Player). However, as far as i've been able to read, Kryonet can't send objects with a constructor in it to the client (Player have that), so i need to find an alternate way of transferring the ArrayList.

What would be a proper way to accomplish this?

Cameron Fredman
  • 1,259
  • 11
  • 24
Patrick Reck
  • 303
  • 1
  • 10
  • 24

2 Answers2

1

You could use JMS implementation (in my case it ActiveMq) and send a Object message.

someone
  • 6,577
  • 7
  • 37
  • 60
0

You just need to make the object have a default constructor with no arguments. you can still create the object with a constructor that takes in parameters.

  • I would not use ActiveMQ unless the current release is much better than version 5.0 which I found to be very buggy. – jrobertsz66 Jun 01 '14 at 06:40