The xDoclet template could do that to set the scope to Session (for a stateful session bean), however if there was some call to use the bean with an application it wouldn't work.
My solution was to modify the template to accept a scope attribute to the @jboss-net.web-service tag: @jboss-net.web-service urn="Login" scope="Session" <- this doesn't do any checking to ensure you used Request | Session | Application so its best to get it right. expose-all="true" -jason On Wednesday, September 25, 2002, at 04:57 AM, Jung , Dr. Christoph wrote: > Kevin, > > We have subclassed the Axis EJBProvider to only depend on the JNDIName > (and > the Scope as it seems). > > Unfortunately, EJBMetaData is only accessible from EJBHome and not from > EJBLocalHome (which makes sense when designing an application that > just uses > in-VM RMI communication and out-VM SOAP). I hesitate building two > separate > Providers, especially since the automatic scoping behaviour would be > only > available for one of them. Hmm. But what about having the xdoclet > template caring about that scope issue? > > CGJ > > > > -----Ursprüngliche Nachricht----- > Von: Kevin Conner [mailto:[EMAIL PROTECTED]] > Gesendet: Mittwoch, 25. September 2002 11:32 > An: '[EMAIL PROTECTED]' > Betreff: RE: AW: [JBoss-user] jboss.net and persistence > > >>> after doing some research (trial and error mostly) it seems >> that I also >>> need to add: >>> <parameter name="scope" value="Session"/> >>> to the service element of my web-service.xml file to get >> jboss.net to >>> remember I want to maintain a session. >> >> Have to recheck that, I´m not sure where the ejb reference is >> put by axis, >> but it is a good >> hint. > > The default scope in Axis is 'Request'. If you do not change this > then the > service will be created and destroyed every time a request is serviced. > 'Session' and 'Application' are the others. > > I don't know if JBoss.net has a different EJB provider, we're bundling > Axis > within our ear file, but the Axis provider requires you to specify a > number > of options that can be determined from the EJBMetaData :-( > > Kev > > Kevin Conner > Orchard Information Systems Limited > Newcastle Technopole, Kings Manor > Newcastle Upon Tyne, NE1 6PA. United Kingdom > Registered in England, Number 1900078 > Tel: +44 (0) 191-2032536 Fax: +44 (0) 191 2302515 > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ########################################### > > This message has been scanned by F-Secure Anti-Virus for Microsoft > Exchange. > For more information, connect to http://www.F-Secure.com/ > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user