🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: ibm.software.websphere.application-server
Article #4

Re: Newbie - EJB question

#4
From: Mark Space
Date: Sun, 02 Nov 2008 01:22
23 lines
2443 bytes
ZalekBloom@hotmail.com wrote:
> I am just learning EJB. It says EJB has 2 interfaces - home and
> component interface - but don't see where this interfaces are
> implemented. A book example (EJB in 21 days) shows a code how a client
> looks for interface using JNDI - but how this home interface was
> instantiented?

I never had any luck with the "in 21 days" series.  Could be more 
specific about your question?  According to Sun's tutorial, it's just a 
regular old Java class.

   import javax.ejb.EntityBean;

   public class CustomerBean
                implements EntityBean {
   //...
   }

<http://java.sun.com/developer/onlineTraining/EJBIntro/EJBIntro.html>

But with out a little more knowledge about what your doing it's kinda 
hard to fill in details.  I assume that the compiled bean class is then 
deployed to the EJB Container somehow.
Technical Details
Message-ID: <geivd1$ede$1@registered.motzarella.org>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder.news-service.com!85.214.105.209.MISMATCH!news.eternal-september.org!news.motzarella.org!motzarella.org!not-for-mail
References: <gdvpg4l307lt4ssk5g05vuj02l9opcvass@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1090f0,4b27603d32b9799d
X-Google-Thread: fcfb6,4b27603d32b9799d
X-Google-Thread: f7ed6,4b27603d32b9799d
X-Google-Thread: 10a146,4b27603d32b9799d
X-Google-Attributes: gid1090f0,gidfcfb6,gidf7ed6,gid10a146,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder.news-service.com!85.214.105.209.MISMATCH!news.eternal-september.org!news.motzarella.org!motzarella.org!not-for-mail
From: Mark Space <markspace@sbcglobal.net>
Newsgroups: ibm.software.websphere.application-server,weblogic.developer.interest.ejb,borland.public.jbuilder.enterprise,comp.lang.java.programmer
Subject: Re: Newbie - EJB question
Date: Sat, 01 Nov 2008 18:22:27 -0700
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <geivd1$ede$1@registered.motzarella.org>
References: <gdvpg4l307lt4ssk5g05vuj02l9opcvass@4ax.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.eternal-september.org U2FsdGVkX19Fr1qaH2NKMAdk82W67XSzgdWFPaixHkMi6hY7phE6Ig9q6rQOF8UysOccJgCgfJAvLfCX3zrLgdlNbbuInWIa2soJH2gkCRWJ7cssACec0XZUoBIoDa9jwloFQpFfaGrye2wL+owIyA==
X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers
NNTP-Posting-Date: Sun, 2 Nov 2008 01:22:41 +0000 (UTC)
In-Reply-To: <gdvpg4l307lt4ssk5g05vuj02l9opcvass@4ax.com>
X-Auth-Sender: U2FsdGVkX1965/yDCZfmBY36JsvehhBnp96NZg1e2sgf8hGb4KTyOA==
Cancel-Lock: sha1:R5tBhQJDemftntXJP5rDwzgIlro=
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)