Dim,

----- Original Message -----
From: "Dmitri Colebatch" <[EMAIL PROTECTED]>
Date: Friday, February 15, 2002 0:02 am
Subject: Re: Re: [Xdoclet-user] JNDI names for JBoss 3

> Aslak,
> 
> > Pardon me for asking, but I didn't know there was such a thing 
> as local session
> > beans, or does the ejb 2.0 spec say that you can ejb-link them 
> and access them
> > as local ones? in that case, does it make sense to try-catch 
> RemoteExceptions in
> > the web tier if they're local?
> 
> the local interfaces dont throw RemoteExceptions... but yes, you 
> can have local interfaces for sessions just as you can for
> entities.
> 

-Yes of course. Stupid me. In case anybody thought I was an EJB expert: 
No, it seems not ;-)

> > If you were planning to access the entities directly from your 
> web tier be aware
> > that you're locking in business logic in the web tier, making it 
> impossible to
> > reuse it in other environments like client apps. There are more 
> reasons not to
> > do this in the "Session wraps Entity" pattern that can be found 
> at Sun and TSS.
> >
> > -But maybe this wasn't your intention. In that case, could you 
> elaborate what
> > you mean by "make local lookups from the web tier" (to the 
> Session Bean), as I
> > don't understand how that is possible (with respect to the EJB 
> spec).
> your understanding is spot on.  I'm not going to go into the 
> debate of whether its a better way to do things etc (o:  but it is
> something that's allowed by the j2ee1.3 spec, but something I've 
> never figured out how to get working in jboss.
> 

Then I guess the question is: "Does JBoss claim to support it?".

> I suppose one option - although I'm not sure how it'd go - is to 
> replicate your ejb server with colocated web tiers, across several
> machines....
> 
> cheesr
> dim
> 
> 
> 
> 
> 


_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to