views:

32

answers:

2

Hi all, all my test fails ... so is possible send an @entity using a TCP socket?

UPDATE

Problem is related at this post http://stackoverflow.com/questions/3097269/hibernate-send-entity-through-tcp-lose-persistentbagor-not-update-it

Thanks.

+1  A: 

I guess you should be able to send any object that is Serializable through a socket. The @Entity annotation has probably nothing to do with it.

Could you however refine your exact problem and what you are trying to do? As it is now, it doesn't make much sense.

ewernli
However it might be more convenient to use RMI if allowed in your infrastructure.
Redlab
Hi, my major prob is explained in this post http://stackoverflow.com/questions/3097269/hibernate-send-entity-through-tcp-lose-persistentbagor-not-update-it
blow
A: 

You can send everything that fits into an array of bytes.

Andreas_D