Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes EJB and other Java EE Technologies and the fly likes Classes used in EJB - how to use them in backing bean? 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 "Classes used in EJB - how to use them in backing bean?" Watch "Classes used in EJB - how to use them in backing bean?" New topic
Author

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

Hein Lunken
Greenhorn

Joined: May 31, 2011
Posts: 1
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!

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Classes used in EJB - how to use them in backing bean?
 
Similar Threads
Application-Managed Transaction without joining
Autowiring of fields failed; nested exception is org.springframework.beans.factory.BeanCreationExcep
Extended PersistenceContext on SFSB
ManagedBean with SessionBean?
Extended persistence context