• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

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

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
author & internet detective
Posts: 41967
911
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Babak,
Welcome to JavaRanch!

Does your object implement the java.io.Serializable interface? If not, it can't be passed to an EJB.
 
And when my army is complete, I will rule the world! But, for now, I'm going to be happy with this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic