Hi,
I'm just starting with J2EE (I come from Microsoft DNA arquitecture).
The question is, what's the difference between using <useBean> (in my
JSP) to instantiate a Java Bean, and something like this to instantiate
anEnterprise Java Bean:
/**** snip *****/
Context context = new InitialContext();
LinkManagerHome home = (LinkManagerHome)
PortableRemoteObject.narrow(context.lookup("LinkManager"),
LinkManagerHome.class);
LinkManagerRemote bean = home.create();
/**************/
I haven't seen a single sample calling a EJB, all the samples use
<useBean>. If I want to use EJB (not just a java class, but anEnterprise
component, with transactions, security, etc..) shouldn't I instantiate
it like that ?.
Thanks,
Andres.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists