The template file - util.j of the xdoclet source has the following code:-
public class <XDtClass:classOf><XDtEjbUtilObj:utilClass/></XDtClass:classOf>
{
// <XDtI18n:getString bundle="xdoclet.ejb.Messages" resource="util_home_lookups"/>
<XDtEjbIntf:ifRemoteEjb>
/**
* <XDtI18n:getString bundle="xdoclet.ejb.Messages" resource="util_obtain_home_def_ic"/>
* @return <XDtI18n:getString bundle="xdoclet.ejb.Messages" resource="home_interface_for" arguments="<XDtEjb:ejbName/>,<XDtEjbUtilObj:lookupKind/>"/>
*/
public static <XDtEjbHome:homeInterface type="remote"/> getHome() throws NamingException
{
InitialContext initialContext = new InitialContext();
try {
java.lang.Object objRef = initialContext.lookup(<XDtEjbHome:homeInterface type="remote"/>.<XDtEjbUtilObj:lookupKind/>);
<XDtEjbHome:homeInterface type="remote"/> home = (<XDtEjbHome:homeInterface type="remote"/>)PortableRemoteObject.narrow(objRef, <XDtEjbHome:homeInterface type="remote"/>.class);
return home;
} finally {
initialContext.close();
}
}
Depending upon the situation like : - XDtEjbIntf:ifWebsphere i have to write
MVCInitialContext initialContext = new MVCInitialContext();
or else
InitialContext initialContext = new InitialContext();
What are the places in the source I have to make for this change. Also tell me how to incorporate that 'ifwebsphere' thing.
Thank you
Binod
Do You Yahoo!?
Sign-up for Video Highlights of 2002 FIFA World Cup
