On Today at 4:40pm, S=>SubuA <[EMAIL PROTECTED]> wrote: S> S> Hi Haroon, S> hmm I didnt get that singleton exception like you mentioned. As mentioned I S> just copied the orginal xdt definiton and replace the header with the S> definition with what I want and it worked. S> here is what I did: S> <springxml S> templateFile="${basedir}/src/main/webapp/WEB-INF/template/abc-servlet-template.xdt" S> destinationfile="abc-servlet.xml" /> S> so I am not sure how you got that excpetion? S> Cheers, S> Subu S>
Hey Subu, I got it because most of my classes are annotated with xdoclet tags that look something like: * @spring.bean id="monitorAction" singleton="true" (I know singleton="true" is redundant but just using it for clarification purposes here) or * @spring.bean id="addressAction" singleton="false" If you don't use the singleton="?" attribute in your xdoclet tag, then your generated <bean> tag won't have it either (which as a consequence means that your beans will be singletons). With my latest proposed changes to the .xdt file you would be making your design future-proof in case you ever wanted to use singleton="false" (which will get translated to scope="prototype"). I have also added code in there which will take the scope param in the xdoclet tag and put it directly in the <bean> tag as well (giving you the option to specify other scopes like session, request, globalSession, etc.) So, to recap the generated <bean> tag will have the following behavior: * if singleton is not specified in the xdoclet tag, nothing needs to be changed (<bean> tag won't have a scope or singleton attribute). * if singleton is specified, then a scope attribute will be added to the <bean> tag with the following translation: singleton="false" -> scope="prototype" singleton="true" -> scope="singleton" * if scope is specified, it will get added straight as an attribute to the <bean> tag. Cheers, -- Haroon Rafique <[EMAIL PROTECTED]> ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ xdoclet-user mailing list xdoclet-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-user