> -----Original Message----- > From: Praveen Lal [mailto:[EMAIL PROTECTED]] > Sent: 22. januar 2003 06:03 > To: Aslak Helles�y > Subject: Re: [Xdoclet-user] how to generate weblogic.xml > > > Hi Aslak, > Thanks for help. Actually I want to know about @weblogic tags. as in the > document only three tags are written. For jboss there are more. So how to > generate correct weblogic.xml? How to generate ejb-ref-jndi tag and others > like datasource name. > I am sending my servlet. Please send the comment asap.
Never ask developers privately to do stuff for you asap. Never send private email. Problem solving is an open process. It should be shared. Nobody likes to answer the same questions over and over again. Search the mailing lists. In this mail you'll find a recipe to help yourself answer the question. Please read it carefully. Aslak > thanks > Praveen > > ackage examples.test.web; > > import javax.servlet.ServletException; > import javax.servlet.http.HttpServlet; > import javax.servlet.http.HttpServletRequest; > import javax.servlet.http.HttpServletResponse; > import java.io.IOException; > import java.io.PrintWriter; > import java.rmi.RemoteException; > import javax.rmi.PortableRemoteObject; > import javax.ejb.*; > import javax.naming.*; > import examples.test.interfaces.*; > > /** > * @web.servlet > * display-name="Hello Servlet" > * load-on-startup="1" > * name="HelloServlet" > * > * @web.servlet-init-param > * name="param1" > * value="value1" > * > * @web.servlet-init-param > * name="param2" > * value="value2" > * > * @web.ejb-ref > * name="HelloBean" > * description="A test reference to the HelloBean EJB" > * home="examples.test.interfaces.HelloBeanHome" > * link="HelloBean" > * remote="examples.test.interfaces.HelloBean" > * type="Session" > * > * @jboss.ejb-ref-jndi > * jndi-name="test_hello" > * ref-name="HelloBean" > * > * @weblogic.ejb-ref-jndi > * jndi-name="test_hello" > * ref-name="HelloBean" > * > * @author <a > href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a> > *weblogic-enterprise-bean > */ > > public class HelloServlet extends HttpServlet { > > public void doGet(HttpServletRequest request, HttpServletResponse > response) > throws IOException, ServletException { > PrintWriter out = response.getWriter(); > try { > Context ctx = new InitialContext(); > Object ref = ctx.lookup("test_hello"); > HelloBeanHome home = > (HelloBeanHome)PortableRemoteObject.narrow(ref,HelloBeanHome.class); > HelloBean hl = home.create(); > out.println(hl.sayHello("Praveen")); > }catch(Exception e){ > out.println(e.getMessage()); > } > > } > public void doPost(HttpServletRequest request, HttpServletResponse > response) > throws IOException, ServletException { > // just print Hi! > response.getWriter().println("Hi! There"); > } > } > > ----- Original Message ----- > From: "Aslak Helles�y" <[EMAIL PROTECTED]> > To: "Praveen Lal" <[EMAIL PROTECTED]>; > <[EMAIL PROTECTED]> > Sent: Wednesday, January 22, 2003 1:39 AM > Subject: RE: [Xdoclet-user] how to generate weblogic.xml > > > > For weblogic.xml use the webdoclet task > > > http://xdoclet.sourceforge.net/ant/xdoclet/modules/web/WebDocletTask.html > > and a weblogicwebxml subtask > > > http://xdoclet.sourceforge.net/ant/xdoclet/modules/bea/wls/web/Web logicWebXm > lSubTask.html > > You can't generate appliaction.xml with XDoclet. If you think about where > XDoclet get's its information from (java classes and @tags) you'll > understand that this is not the information you need to generate > application.xml. XDoclet just isn't the right tool for that. > > (Please send plain text mail to the list if you can) > > HTH, > Aslak > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Praveen Lal > Sent: 21. januar 2003 16:16 > To: [EMAIL PROTECTED] > Subject: [Xdoclet-user] how to generate weblogic.xml > > > Pls let me know hoe I can generate weblogic.xml, application.xml from > xDoclets tags. I am using xDoclet-1.2b. It is generating correct descriptors > for jboss. > thanking you all, > Praveen ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp _______________________________________________ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
