wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes sending an object form client (Swing) to sever (EJB3) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "sending an object form client (Swing) to sever (EJB3)" Watch "sending an object form client (Swing) to sever (EJB3)" New topic
Author

sending an object form client (Swing) to sever (EJB3)

babak azarmi
Greenhorn

Joined: Oct 23, 2008
Posts: 6
hello friends i've been trying to send an object from client my (Swing) application to my server (EJB3 remote session bean)
please take a look at my codes and guide me where did do i wrong.
thanks for your helps

Server side in my EJB3 Container (My web application is glassfish)





after i compiled this code i made a jar file and deploy it
my container deployed this jar file without any problem.
also i add this jar file to my classpath in client side till the swing application has had access to this jar file

In my client site (Swing application)





when i want to pass the String or int Object my program works good and without problem but wen i want to send an object
i encountered to this exception


my main question is how can i send an object from client side to sever side with ejb3 please give an example code
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30116
    
150

Babak,
Welcome to JavaRanch!

Does your object implement the java.io.Serializable interface? If not, it can't be passed to an EJB.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
Don't get me started about those stupid light bulbs.
 
subject: sending an object form client (Swing) to sever (EJB3)
 
Similar Threads
several ears, GF3, EJB 3 and JPA
WARNING: "IOP00810257: (MARSHAL) Could not load class ultimatesoft.Main$1"
EJb3 Glassfish and Netbeans help with entity being passed to remote method
IOP00810257: (MARSHAL) Could not load class <Class Name>
Exception when calling java global JNDI