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. > 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. 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
