We really don't want to mix in proprietary code in the pieces of 
XDoclet that are supposed to be portable (like the util.j template).

Why do you have to use proprietary classes in your code? Won't it work 
with InitialContext?

Aslak

----- Original Message -----
From: Binod Pokharel <[EMAIL PROTECTED]>
Date: Monday, June 10, 2002 8:45 pm
Subject: [Xdoclet-user] what are the place that requires changes for 
this

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


_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

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

Reply via email to