HI Nathan, Brandon, Steve,
Look in the **working** EJB examples given to you. The specific projects
are as follows:
* Example-EJB-Session-Entity. This project implements the session and
entity beans
* Example-EJB-Servlet. This project uses a servlet that uses the
session and entity beans implemented above.
Instructions for how to get this working are here:
https://sites.google.com/site/cse523420123fall/project-description.
Rajiv
On 11/4/12 7:30 PM, Nathan Blackstone wrote:
> Hi Rajiv,
>
> I realize this is a little late in the game to ask about this, but I'll go
> ahead and give it a shot :)
>
> We are currently trying to implement a session bean for logins. Right now,
> we have created these classes:
>
> public interface LoginHome extends EJBHome
> public interface Login extends Remote, EJBObject
> public class LoginBean implements SessionBean
>
> I guess the question is how LoginHome's "create" method maps to LoginBean's
> "ejbCreate" method. Do we have to actually implement the LoginHome
> interface? We have been scouring Google and looked into your EJB lecture
> slides, but it's not quite clear. The example we were using was:
>
http://docstore.mik.ua/orelly/java-ent/jenut/ch07_05.htm
>
> However, the ellipses below, which is the client-side code, confused us on
> this matter. "ProfileHome" in the code segment below is essentially what
> our "LoginHome" is. We noticed that your slides have a similar example with
> ellipses here, too, so just wondering if you might be able to explain.
>
> // Get the Profile bean's home interface
> ProfileHome pHome = ...
> // Create a profile for a person
> System.out.println("Creating profile for " + name);
> Profile profile = pHome.create(name);
>
> Thank you!
>
> Nathan
>
--
Dr. Rajiv Ramnath
ram...@cse.ohio-state.edu
Director of Practice, C.E.T.I.
http://www.ceti.cse.ohio-state.edu
Associate Director, I.S.S.
http://www.iss.osu.edu
Associate Professor of Practice Dept. of Computer Science and Engineering
The Ohio State University 291 Dreese Laboratories
2015 Neil Ave. Columbus, OH 43210
Office:
(614)-292-9358 Cell:
(614)-330-7617