• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Classes used in EJB - how to use them in backing bean?

 
Hein Lunken
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

I'm new to this forum and to JAVA EE in general.

My problem is, that I'm using non-POJO Objects in EJBs, which are transfered through a EJB Client to my backing bean.
For example:

EJB Code:



EJB Client:



backing bean:




So, the customer-class is my own generated class.
But the client und backing bean "don't know" the customer class, because it's used in the EJB, if I copy the customer.class-Filee to the backingbean-project or ejbclient-project it results in "not the same class" error.
So how do I make these class known to all my projects? Is there an easy way? With POJOs only it works like a charm.
Am I only allowed to use POJOs in EJBs?

Thanks for your help!

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic