Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB 3 -- Working with remote objects  RSS feed

 
Adam Asham
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, here's another newbie fooling around with EJB..

Description:
What I am trying do accomplish is to deploy my EJB on JBOSS app.server and working with its beans from Tomcat.
I'm trying to write a simple and _very_ basic userbank so that I can get a basic understanding on how EJB works. Each user have some user info (name, username, password), an address and an email address (classes).

The Problem:
The problem I am having is how to write the code so that my EJB client, a webb.app on Tomcat, can work with the User object. How can I fetch a User object from the the EJB server to my webb.app - I need to have a User class in the webb.app as well, no?

If I am to create a User at the EJB CLIENT side, I need to have a user object, don't I? And wouldn't that class just be a duplicate?

I've seen EJB examples of how to invoke some method, ie calculate() or helloMessage() at the EJB, but I am yet to see an example on how to work with remote Objects on the client side. They've also had the ejb client and server on the same EJB container, and in the same package structure as well.

As you can see, I'm a little confused.

Many thanks,

Regards
Adam
 
Adam Asham
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nevermind, I get it now.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!