• Post Reply Bookmark Topic Watch Topic
  • New Topic

swing-ejb

 
kalyan v
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using a vector in my swing prg. How can I send the vector to EJB.
 
Mark Spritzler
ranger
Sheriff
Posts: 17290
9
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just as you pass any argument to a method on an EJB, you can also pass a Vector. You can pass any object as an argument, as long as the Object is Serializable. which means it already is like the Vector, or because the class implements the Serializable interface.
One suggestion though is to change the Vector to an ArrayList. ArrayList is a newer collection that is supposed to be used instead of the Synchronized Vector, which tends to run slower.
Mark
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!