You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by Antoine Galataud <an...@gmail.com> on 2006/03/09 15:23:35 UTC

Application, Session or Request scope

Hi !

does Axis 1.6x handle scope ? I tried to add a scope="Application" in
my service declaration in server.wsdd, but it doesn't seem to work...

Thanks
--
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen

Re: Application, Session or Request scope

Posted by Antoine Galataud <an...@gmail.com>.
Yes, it's a great idea and it will probably solve my problem. But if I do
so, performance of my application will seriously decrease. I must keep
Apache running with different processes.
As session scope is correctly running, I think I will keep this solution,
initializing my business object on first call to the service.

Thanks for all your answers.

2006/3/28, John Hawkins <HA...@uk.ibm.com>:
>
>
> I think the issue is because Apache starts up multiple processes so, you
> might be getting different processes on different calls. Have you tried
> Apache with a single process?
>
>
>
>  *"Antoine Galataud" <an...@gmail.com>*
>
> 28/03/2006 16:06
>  Please respond to
> "Apache AXIS C User List" <ax...@ws.apache.org>
>
>   To
> "Apache AXIS C User List" <ax...@ws.apache.org>  cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
> apache 1.3
>
> 2006/3/28, John Hawkins <*HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com>>:
>
> To confirm: On what server are you trying this ?
>
>
>
>   *"Antoine Galataud" <**...@gmail.com>
> *>*
>
> 28/03/2006 15:04
>   Please respond to
>
>
> "Apache AXIS C User List" <*a...@ws.apache.org>
> >
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>
> >  cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
> I am certainly doing something wrong, so I will try to give more details.
>
> I developped a web service called IAdminConfiguration, with 2 methods:
> initService(char* propFile)
> notifyDictionaryReinit()
>
> The generated files are
> AxisServiceException.cpp
> AxisServiceException.hpp
> IAdminConfiguration.cpp
> IAdminConfiguration.hpp
> IAdminConfigurationService.cpp
> IAdminConfigurationWrapper.cpp
> IAdminConfigurationWrapper.hpp
>
> My implementation is located in IAdminConfiguration.cpp. initService()
> method does the business part initializiation, as I said in previous mails.
>
> Here is the constructor of my service:
>
> IAdminConfiguration::IAdminConfiguration()
> {
>   cerr << "IAdminConfiguration()" << endl;
> }
>
>
> Here is the implementation of my service :
>
> void IAdminConfiguration::initService(xsd__string Value0)
> {
>   cerr << "***** IAdminConfiguration::initService" << endl;
>   char * tab[1];
>   tab[0] = Value0;
>   server_.run(1,tab);
>   cerr << "***** IAdminConfiguration::initService end" << endl;
> }
>
> void IAdminConfiguration::notifyDictionaryReinit()
> {
>   cerr << "***** IAdminConfiguration::notifyDictionaryReinit" << endl;
>   ConfigurationManagerService* service_ =
>  (ConfigurationManagerService*)server_.getBusinessService();
>   cerr << "***** service" << endl;
>   service_->notifyDictionaryReinit();
>   cerr << "***** service->" << endl;
> }
>
> So, if I call initService, then notifyDictionaryReinit() in the same
> client (session), I get no exception by notifyDictionaryReinit() and the
> business method ConfigurationManagerService::notifyDictionaryReinit() is
> sucessfully called.
> Now, if I call initService() in a client, then notifyDictionaryReinit() in
> another client, I get an error, because the backend
> ConfigurationManagerService is NULL.
> It means that the underlying service is not initialized.
>
> I've just tested what you said with a log output in the service
> constructor, it doesn't work, I see the constructor call each time I call a
> method.
>
> Here is the correspondant part of my server.wsdd:
> <service name="IAdminConfiguration" provider="CPP:RPC"
> description="IAdminConfiguration Web Services">
>       <parameter name="allowedMethods" value="notifyDictionaryReinit
> initService"/>
>       <parameter name="scope" value="application"/>
>       <parameter name="className"
> value="/home/antgalat/apache/webservices/libiadminconfig.so"/>
> </service>
>
> Here is my client.wsdd:
> <service name="IAdminConfiguration" provider="CPP:RPC"
> description="IAdminConfiguration">
>       <parameter name="scope" value="application"/>
> </service>
>
> I must also say that I don't use the generated deploy.wsdd file. I
> directly define services in server.wsdd and client.wsdd.
>
> That's where I am ! Thanks for help !
>
> 2006/3/28, John Hawkins <*HAWKINSJ@uk.ibm.com * <HA...@uk.ibm.com>>:
>
> I'm confused !
>
> I tested this on simple_axis server and apache 2 and it does what I
> thought it would do.....
> i.e. On repeated calls to the service the constructor of my service gets
> called once and once only.
>
> So, why can't you put your logic into the constructor of your service? Are
> you sure that you've seen the constructor being called more than once?
>
> cheers,
> John.
>
>   *"Antoine Galataud" <**antoine.galataud@gmail.com** *<an...@gmail.com>
> *>*
>
> 27/03/2006 15:39
>
>
>   Please respond to
> "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>>
> cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
> Ok, thanks for your answer,
>
> You talked about cookies, but I think it's not my solution. My problem is
> not keeping a session between client and server, cause business objects on
> server side are user independant. My problem is that my service
> initalization is very long : I need to instanciate several C++ classes, open
> DB connections, make several requests, start some other communication
> channels with different layers... It takes several seconds to get an answer
> to any webservice method.
>
> Do you have any other idea to do that ?
>
> Thanks a lot
>
> 2006/3/27, John Hawkins <*HAWKINSJ@uk.ibm.com * <HA...@uk.ibm.com>>:
>
> It is not in the roadmap at the moment.
>
>   *"Antoine Galataud" <**antoine.galataud@gmail.com** *<an...@gmail.com>
> *>*
>
> 27/03/2006 12:26
>
>
>   Please respond to
> "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>>
> cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
>
>
> Ok I see. Is it in the Axis C++ roadmap to implement such feature ? It is
> currently well implemented by Axis Java, with this famous scope
> (application/session/request) parameter defined in the deploy.wsdd file...
> It works very well, and it keeps all the web service objects up during all
> the application life (when setting in application scope)
>
> Thanks
>
> 2006/3/27, John Hawkins <*HAWKINSJ@uk.ibm.com * <HA...@uk.ibm.com>>:
>
> Now you're talking about maintaining a session.
>
> There is now way to do this "for-free". You could do it by setting cookies
> in the server-code. These cookies could be used to retrieve state from a db
> next call.
>
> Cookies are supported, at some level, in the client but not the server -
> to my knowledge. (they are just transport properties) You might have to add
> some minimal logic into the server-code to do it.
>
>
>   *"Antoine Galataud" <**antoine.galataud@gmail.com** *<an...@gmail.com>
> *>*
>
> 24/03/2006 13:48
>
>
>   Please respond to
> "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>>
> cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Ok, so how can I retrieve previously loaded object of my library ? For the
> moment, when I call initService(), I initialize a business object. If I call
> my second web service method notifyDictionary() in the same process (the
> main of my client call this 2 methods), it works (like a session scope). Now
> if call only initService(), then stop my client, then call
> notifyDictionary() in a different client, it fails, because the business
> object has been destroyed.
>
> How can I work around this ? Isn't it the feature "application scope" must
> provide ? Because the only thing I see, is that every server side objects
> are destroyed when the client is destroyed.
>
> 2006/3/24, John Hawkins <*HAWKINSJ@uk.ibm.com * <HA...@uk.ibm.com>>:
>
> The *dlopen* subroutine loads the module specified by *FilePath *into the
> executing process's address space. Dependents of the module are
> automatically loaded as well. If the module is already loaded, i t is not
> loaded again, but a new, unique value will be returned by the *dlopen *subroutine.
>
>   *"Antoine Galataud" <**antoine.galataud@gmail.com** *<an...@gmail.com>
> *>*
>
> 24/03/2006 13:14
>
>
>   Please respond to
> "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>>
> cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> First call to the method initService() is in log-1.txt, the second call
> (exactly the same, some seconds later) is in log-2.txt.
> I tried with <parameter name="scope" value="application"> of server.wsddfile in some other tests, it didn't change anything.
>
> Thanks
>
> 2006/3/24, John Hawkins <*HAWKINSJ@uk.ibm.com * <HA...@uk.ibm.com>>:
>
> Could you send me the trace pls.  *"Antoine Galataud" <**
> antoine.galataud@gmail.com** * <an...@gmail.com>*>*
>
> 24/03/2006 11:31
>
>
>   Please respond to
> "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>>
> cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> The logs are clear : it does a loadlib each time a method is called
>
> 2006/3/24, John Hawkins <*HAWKINSJ@uk.ibm.com * <HA...@uk.ibm.com>>:
>
> I've not got time to look into this problem but it should not load the
> libs but it might be creating new instances of the objects. Can you confirm
> which?  *"Antoine Galataud" <**antoine.galataud@gmail.com** *<an...@gmail.com>
> *>*
>
> 24/03/2006 10:33
>
>
>   Please respond to
> "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>>
> cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Hi,
>
> Could you confirm that it is a normal behavior that axis engine load libs
> each time a method is called on ? Or is it a mistake in my configuration ?
>
> Thanks
>
> 2006/3/23, Antoine Galataud < *antoine.galataud@gmail.com *<an...@gmail.com>>:
>
> Yes that's it.
>
>
> 2006/3/23, John Hawkins <* HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com>>:
>
> OK,
>
> so let me repeat it back to you so we're clear.
>
> You tested and found that the library is loaded and unloaded on every
> method call?  *"Antoine Galataud" <**antoine.galataud@gmail.com** *<an...@gmail.com>
> *>*
>
> 23/03/2006 09:14
>
>
>   Please respond to
> "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>>
> cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> No, I didn't test it yet. But I realized, reading again Adrian mail and
> looking at wrapper class that it can't be my solution (or just a part of).
> What I'm saying is that the wrapper class is contained in the web service
> library, and is used to initialize and stop the web service with init and
> fini methods. But this doesn't resolve my problem: I want the library loaded
> and run until server shuts down. So what I need is the scope parameter of
> server.wsdd file correctly handled (I tested that it doesn't work), so the
> library is loaded at first request and stays up.
>
> 2006/3/23, John Hawkins <* HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com>>:
>
> Sorry, I'm not clear what you are saying - are you saying that you have
> tested this and the library is loaded each time the service is requested?
> *"Antoine Galataud" <**antoine.galataud@gmail.com** *<an...@gmail.com>
> *>*
>
> 22/03/2006 17:18
>
>
>   Please respond to
> "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>>
> cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Hi,
>
> this a very great manner to initialize my business objects before
> getting a request, but does this help to have the web service library
> loaded once and not unloaded when method returns ?
> I mean, for the moment I can't call a method without having Axis
> loading the web service library (at each call). I need it to load at
> first time, then be up until server (apache) shuts down.
> What you are saying is that library is loaded at first invocation and
> unloaded when server shuts down. But in my case, library is loaded
> each time the service is requested !
>
> Thanks
> 2006/3/21, Adrian Dick <*adrian.dick@uk.ibm.com** *<ad...@uk.ibm.com>
> >:
> > Hi,
> >
> > There is already a mechanism in place to do this.
> >
> > As part of WrapperClassHandler, from which the generated wrapper class
> is
> > inherited, there are the init and fini methods.
> > These methods are called respectively as the service library is loaded
> (ie:
> > first invocation of service) and unloaded (ie: server shutdown).
> >
> > As these methods are virtual, you can override these within the
> generated
> > wrapper class, to do the initialization and clearup activities you
> require.
> >
> >
> > One word of warning, although this has been designed to work in this
> > manner, it hasn't (so far) been tested.
> >
> > Please let us know how you get on with trying this.
> >
> > Regards,
> > Adrian
> > _______________________________________
> > Adrian Dick (*adrian.dick@uk.ibm.com* <ad...@uk.ibm.com> )
> >
> >
> > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>>
> wrote on 21/03/2006
> > 12:43:45:
> >
> > >
> > > Sorry, I haven't been really clear with what I wanted to do. I'll
> > > try to clarify my thoughts a little :
> > >
> > > I get a web service library, that handles the web service technical
> > > part and access to business objects. But my business part is heavy
> > > to initialize, and I want to do it only once, so when a first
> > > request come to the web service, the back end service starts and
> > > replys, then any other request doesn't involve a back end service
> start.
> > >
> > > So what I want to do is, as axis java does, define an application
> > > scope for the web service and get the service running until container
> > stops.
> >
> > > 2006/3/21, John Hawkins < *HAWKINSJ@uk.ibm.com** *<HA...@uk.ibm.com>
> >:
> > >
> > > Antoine,
> > >
> > > Can I clarify what you're trying to do here? Are you trying to have
> > > a stateful session with a particular instance of a service i.e. the
> > > same service gets called twice? Or pass context across the-wire on
> > > subsequent uses of the same stub?
> > >
> > > thanks,
> > > John.
> > >
> > >
> > >
> >
> > >
> > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>
> >
> > > 21/03/2006 09:27
> > >
> > > Please respond to
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Re: Application, Session or Request scope
> > >
> > >
> > >
> > >
> > > Hi !
> > >
> > > I've found no way to solve my scope issue for the moment, I'm still
> > > looking for a way to do this (application scope, not handlers).
> > >
> > > Thanks for any idea !
> > >
> > > 2006/3/16, Antoine Galataud < *antoine.galataud@gmail.com *<an...@gmail.com>
> >:
> > > It doesn't work :
> > >
> > > in fact, I succeeded in getting a session scope, e.g I request the
> > > service 2 times in the same main() client, but I can't have an
> > > application scope. But I don't get the error I described in my
> > > earlier mail, now it gives me nothing. And I'm talking about service
> > > scope, I don't use any handler.
> > >
> > > Thanks for your answer
> > >
> > > 2006/3/16, John Hawkins <*HAWKINSJ@uk.ibm.com** *<HA...@uk.ibm.com>
> >:
> > >
> > > I've just looked at this again and I'm not sure I understand your
> > > question now!
> > >
> > >
> > > If I look at your wsdd file it doesn't look correct to my thoughts
> > > (is it the complete wsdd file?) e.g. this is a client sample wsdd file
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > >
> > > <deployment xmlns="*http://xml.apache.org/axis/wsdd/ *<http://xml.apache.org/axis/wsdd/>"
> xlmns:
> > > C="http//xml.apache.org.axis/wsdd/providers/c">
> > >
> > >  <service name="Handler" provider="CPP:DOCUMENT"
> description="Handler">
> > >
> > >  <requestFlow>
> > >
> > >  <handler name="myClientHandlerReq"
> > > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > > name="myClientHandlerReq"
> > > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> > >
> > >  </handler>
> > >
> > >  </requestFlow>
> > >
> > >  <responseFlow>
> > >
> > >  <handler name="myClientHandlerRes"
> > > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > > name="myClientHandlerRes"
> > > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> > >
> > >  </handler>
> > >
> > >  </responseFlow>
> > >
> > >  </service>
> > >
> > >  </deployment>
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> > >
> > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>
> >
> > > 16/03/2006 12:57
> > >
> > > Please respond to
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Re: Application, Session or Request scope
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > > yes, i'm referring to the service scope. I saw in the doc that I
> > > could set a scope for handlers in response/reauest flows, but I
> > > didn't see anything about service.
> > >
> > > I'll try to set the scope also in client.wsdd, maybe it's what I'm
> > missing.
> > >
> > > Thanks for any further comments/suggestions.
> > >
> > > 2006/3/16, James Jose <*jamejose@in.ibm.com** * <ja...@in.ibm.com>
> >:
> > >
> > > Hi,
> > >
> > >  We are running HandlerTest01 to HandlerTest10.  But here Antoine is
> > > referring the scope of the service ..?
> > >
> > >
> > > Regards
> > > James
> > > --------------------------------------------------
> > > James Jose
> > > Messaging Clients Team, WMQDDC
> > > IBM Software Labs, India
> > > Direct: 91-80- 25094331  Ext :2331
> > > E-mail: *jamejose@in.ibm.com* <ja...@in.ibm.com>
> > >
> >
> > >
> > > John Hawkins < *HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com> >
> > > 03/16/2006 17:50
> > >
> > > Please respond to
> > > "Apache AXIS C User List"
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Re: Application, Session or Request scope
> > >
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Well, service and global handlers should work for the client and I'm
> > > surprised they aren't working for the server. Can you try it in the
> > > client and see if you get the same results. James - what tests do we
> > > run on handlers nowadays?
> >
> > >
> > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>
> >
> > > 16/03/2006 11:38
> > >
> > > Please respond to
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Re: Application, Session or Request scope
> > >
> > >
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > So, is there any work around to get this feature working ?
> > >
> > > Thanks for your answer
> > >
> > > 2006/3/15, Antoine Galataud <*antoine.galataud@gmail.com *<an...@gmail.com>
> >:
> > > Hum, seems scope is not yet correctly implemented (or tested) in 1.
> > > 6a.n (solaris) release. Here is my server.wsdd :
> > >
> > > <service name="IAdminConfiguration" provider="CPP:RPC"
> > > description="IAdminConfiguration Web Services">
> > >     <parameter name="allowedMethods" value="notifyDictionaryReinit
> > > initService"/>
> > >     <parameter name="scope" value="application">
> > >     <parameter name="className"
> > > value="/home/antgalat/apache/webservices/libiadminconfig.so"/>
> > > </service>
> > >
> > > If I do that I get this in the init logs :
> > >
> > > [15/03/2006 13:40:42:387 MET] 1 WSDDHandler > setScope
> > @11cec8,"application"
> > >
> > > But if I invoke the service, it fails with :
> > >
> > > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > > AxisWsddException @ff0da988,7, <null>
> > > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > > getMessageForExceptionCode @ff0da988,7
> > > [15/03/2006 13:40:49:216 MET] 1 AxisWsddException <
> > > getMessageForExceptionCode @ff0da988,"AxisWsddException:Requested
> > > service not found"
> > >
> > > I also tested with request and session scopes, it failed too.
> > >
> > > 2006/3/9, John Hawkins < *HAWKINSJ@uk.ibm.com** *<HA...@uk.ibm.com>
> >:
> > >
> > > I'll put it this way - it's not tested.
> >
> > >
> > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>
> >
> > > 09/03/2006 14:23
> > >
> > > Please respond to
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Application, Session or Request scope
> > >
> > >
> > >
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Hi !
> > >
> > > does Axis 1.6x handle scope ? I tried to add a scope="Application" in
> > > my service declaration in server.wsdd, but it doesn't seem to work...
> > >
> > > Thanks
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > >
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > >
> > > --
> > >
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>


--
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen

Re: Application, Session or Request scope

Posted by John Hawkins <HA...@uk.ibm.com>.
I think the issue is because Apache starts up multiple processes so, you 
might be getting different processes on different calls. Have you tried 
Apache with a single process?




"Antoine Galataud" <an...@gmail.com> 
28/03/2006 16:06
Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>


To
"Apache AXIS C User List" <ax...@ws.apache.org>
cc

Subject
Re: Application, Session or Request scope






apache 1.3

2006/3/28, John Hawkins <HA...@uk.ibm.com>:

To confirm: On what server are you trying this ? 





"Antoine Galataud" <an...@gmail.com> 
28/03/2006 15:04 

Please respond to

"Apache AXIS C User List" <ax...@ws.apache.org>


To
"Apache AXIS C User List" <ax...@ws.apache.org> 
cc

Subject
Re: Application, Session or Request scope








I am certainly doing something wrong, so I will try to give more details.

I developped a web service called IAdminConfiguration, with 2 methods: 
initService(char* propFile)
notifyDictionaryReinit()

The generated files are 
AxisServiceException.cpp
AxisServiceException.hpp
IAdminConfiguration.cpp
IAdminConfiguration.hpp
IAdminConfigurationService.cpp
IAdminConfigurationWrapper.cpp
IAdminConfigurationWrapper.hpp

My implementation is located in IAdminConfiguration.cpp. initService() 
method does the business part initializiation, as I said in previous 
mails.

Here is the constructor of my service:

IAdminConfiguration::IAdminConfiguration()
{
   cerr << "IAdminConfiguration()" << endl; 
}


Here is the implementation of my service :

void IAdminConfiguration::initService(xsd__string Value0) 
{
   cerr << "***** IAdminConfiguration::initService" << endl;
   char * tab[1];
   tab[0] = Value0;
   server_.run(1,tab);
   cerr << "***** IAdminConfiguration::initService end" << endl;
}

void IAdminConfiguration::notifyDictionaryReinit() 
{
   cerr << "***** IAdminConfiguration::notifyDictionaryReinit" << endl;
   ConfigurationManagerService* service_ = 
(ConfigurationManagerService*)server_.getBusinessService();
   cerr << "***** service" << endl; 
   service_->notifyDictionaryReinit();
   cerr << "***** service->" << endl;
}

So, if I call initService, then notifyDictionaryReinit() in the same 
client (session), I get no exception by notifyDictionaryReinit() and the 
business method ConfigurationManagerService::notifyDictionaryReinit() is 
sucessfully called. 
Now, if I call initService() in a client, then notifyDictionaryReinit() in 
another client, I get an error, because the backend 
ConfigurationManagerService is NULL.
It means that the underlying service is not initialized. 

I've just tested what you said with a log output in the service 
constructor, it doesn't work, I see the constructor call each time I call 
a method.

Here is the correspondant part of my server.wsdd:
<service name="IAdminConfiguration" provider="CPP:RPC" 
description="IAdminConfiguration Web Services"> 
       <parameter name="allowedMethods" value="notifyDictionaryReinit 
initService"/>
       <parameter name="scope" value="application"/>
       <parameter name="className" 
value="/home/antgalat/apache/webservices/libiadminconfig.so"/> 
</service> 

Here is my client.wsdd:
<service name="IAdminConfiguration" provider="CPP:RPC" 
description="IAdminConfiguration">
       <parameter name="scope" value="application"/> 
</service>

I must also say that I don't use the generated deploy.wsdd file. I 
directly define services in server.wsdd and client.wsdd.

That's where I am ! Thanks for help !

2006/3/28, John Hawkins <HAWKINSJ@uk.ibm.com >: 

I'm confused ! 

I tested this on simple_axis server and apache 2 and it does what I 
thought it would do..... 
i.e. On repeated calls to the service the constructor of my service gets 
called once and once only. 

So, why can't you put your logic into the constructor of your service? Are 
you sure that you've seen the constructor being called more than once? 

cheers, 
John. 



"Antoine Galataud" <antoine.galataud@gmail.com > 
27/03/2006 15:39 


Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org >



To
"Apache AXIS C User List" <axis-c-user@ws.apache.org > 
cc

Subject
Re: Application, Session or Request scope










Ok, thanks for your answer,

You talked about cookies, but I think it's not my solution. My problem is 
not keeping a session between client and server, cause business objects on 
server side are user independant. My problem is that my service 
initalization is very long : I need to instanciate several C++ classes, 
open DB connections, make several requests, start some other communication 
channels with different layers... It takes several seconds to get an 
answer to any webservice method. 

Do you have any other idea to do that ?

Thanks a lot

2006/3/27, John Hawkins <HAWKINSJ@uk.ibm.com >: 

It is not in the roadmap at the moment. 



"Antoine Galataud" <antoine.galataud@gmail.com > 
27/03/2006 12:26 


Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org >



To
"Apache AXIS C User List" <axis-c-user@ws.apache.org > 
cc

Subject
Re: Application, Session or Request scope












Ok I see. Is it in the Axis C++ roadmap to implement such feature ? It is 
currently well implemented by Axis Java, with this famous scope 
(application/session/request) parameter defined in the deploy.wsdd file... 
It works very well, and it keeps all the web service objects up during all 
the application life (when setting in application scope) 

Thanks

2006/3/27, John Hawkins <HAWKINSJ@uk.ibm.com >: 

Now you're talking about maintaining a session. 

There is now way to do this "for-free". You could do it by setting cookies 
in the server-code. These cookies could be used to retrieve state from a 
db next call. 

Cookies are supported, at some level, in the client but not the server - 
to my knowledge. (they are just transport properties) You might have to 
add some minimal logic into the server-code to do it. 




"Antoine Galataud" <antoine.galataud@gmail.com > 
24/03/2006 13:48 


Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org >



To
"Apache AXIS C User List" <axis-c-user@ws.apache.org > 
cc

Subject
Re: Application, Session or Request scope














Ok, so how can I retrieve previously loaded object of my library ? For the 
moment, when I call initService(), I initialize a business object. If I 
call my second web service method notifyDictionary() in the same process 
(the main of my client call this 2 methods), it works (like a session 
scope). Now if call only initService(), then stop my client, then call 
notifyDictionary() in a different client, it fails, because the business 
object has been destroyed. 

How can I work around this ? Isn't it the feature "application scope" must 
provide ? Because the only thing I see, is that every server side objects 
are destroyed when the client is destroyed.

2006/3/24, John Hawkins <HAWKINSJ@uk.ibm.com >: 

The dlopen subroutine loads the module specified by FilePath into the 
executing process's address space. Dependents of the module are 
automatically loaded as well. If the module is already loaded, i t is not 
loaded again, but a new, unique value will be returned by the dlopen 
subroutine. 

"Antoine Galataud" <antoine.galataud@gmail.com > 
24/03/2006 13:14 


Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org >



To
"Apache AXIS C User List" <axis-c-user@ws.apache.org > 
cc

Subject
Re: Application, Session or Request scope
















First call to the method initService() is in log-1.txt, the second call 
(exactly the same, some seconds later) is in log-2.txt.
I tried with <parameter name="scope" value="application"> of server.wsdd 
file in some other tests, it didn't change anything.

Thanks

2006/3/24, John Hawkins <HAWKINSJ@uk.ibm.com >: 

Could you send me the trace pls. 
"Antoine Galataud" <antoine.galataud@gmail.com > 
24/03/2006 11:31 


Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org >



To
"Apache AXIS C User List" <axis-c-user@ws.apache.org > 
cc

Subject
Re: Application, Session or Request scope


















The logs are clear : it does a loadlib each time a method is called

2006/3/24, John Hawkins <HAWKINSJ@uk.ibm.com >: 

I've not got time to look into this problem but it should not load the 
libs but it might be creating new instances of the objects. Can you 
confirm which? 
"Antoine Galataud" <antoine.galataud@gmail.com > 
24/03/2006 10:33 


Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org >



To
"Apache AXIS C User List" <axis-c-user@ws.apache.org > 
cc

Subject
Re: Application, Session or Request scope




















Hi,

Could you confirm that it is a normal behavior that axis engine load libs 
each time a method is called on ? Or is it a mistake in my configuration ?

Thanks

2006/3/23, Antoine Galataud < antoine.galataud@gmail.com >: 
Yes that's it. 


2006/3/23, John Hawkins < HAWKINSJ@uk.ibm.com>: 

OK, 

so let me repeat it back to you so we're clear. 

You tested and found that the library is loaded and unloaded on every 
method call? 
"Antoine Galataud" <antoine.galataud@gmail.com > 
23/03/2006 09:14 


Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org >



To
"Apache AXIS C User List" <axis-c-user@ws.apache.org > 
cc

Subject
Re: Application, Session or Request scope






















No, I didn't test it yet. But I realized, reading again Adrian mail and 
looking at wrapper class that it can't be my solution (or just a part of). 
What I'm saying is that the wrapper class is contained in the web service 
library, and is used to initialize and stop the web service with init and 
fini methods. But this doesn't resolve my problem: I want the library 
loaded and run until server shuts down. So what I need is the scope 
parameter of server.wsdd file correctly handled (I tested that it doesn't 
work), so the library is loaded at first request and stays up.

2006/3/23, John Hawkins < HAWKINSJ@uk.ibm.com>: 

Sorry, I'm not clear what you are saying - are you saying that you have 
tested this and the library is loaded each time the service is requested? 
"Antoine Galataud" <antoine.galataud@gmail.com > 
22/03/2006 17:18 


Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org >



To
"Apache AXIS C User List" <axis-c-user@ws.apache.org > 
cc

Subject
Re: Application, Session or Request scope
























Hi,

this a very great manner to initialize my business objects before
getting a request, but does this help to have the web service library
loaded once and not unloaded when method returns ?
I mean, for the moment I can't call a method without having Axis
loading the web service library (at each call). I need it to load at
first time, then be up until server (apache) shuts down.
What you are saying is that library is loaded at first invocation and
unloaded when server shuts down. But in my case, library is loaded
each time the service is requested !

Thanks
2006/3/21, Adrian Dick <adrian.dick@uk.ibm.com >:
> Hi,
>
> There is already a mechanism in place to do this.
>
> As part of WrapperClassHandler, from which the generated wrapper class 
is
> inherited, there are the init and fini methods.
> These methods are called respectively as the service library is loaded 
(ie:
> first invocation of service) and unloaded (ie: server shutdown).
>
> As these methods are virtual, you can override these within the 
generated
> wrapper class, to do the initialization and clearup activities you 
require.
>
>
> One word of warning, although this has been designed to work in this
> manner, it hasn't (so far) been tested.
>
> Please let us know how you get on with trying this.
>
> Regards,
> Adrian
> _______________________________________
> Adrian Dick (adrian.dick@uk.ibm.com )
>
>
> "Antoine Galataud" <antoine.galataud@gmail.com > wrote on 21/03/2006
> 12:43:45:
>
> >
> > Sorry, I haven't been really clear with what I wanted to do. I'll
> > try to clarify my thoughts a little :
> >
> > I get a web service library, that handles the web service technical
> > part and access to business objects. But my business part is heavy
> > to initialize, and I want to do it only once, so when a first
> > request come to the web service, the back end service starts and
> > replys, then any other request doesn't involve a back end service 
start.
> >
> > So what I want to do is, as axis java does, define an application
> > scope for the web service and get the service running until container
> stops.
>
> > 2006/3/21, John Hawkins < HAWKINSJ@uk.ibm.com >:
> >
> > Antoine,
> >
> > Can I clarify what you're trying to do here? Are you trying to have
> > a stateful session with a particular instance of a service i.e. the
> > same service gets called twice? Or pass context across the-wire on
> > subsequent uses of the same stub?
> >
> > thanks,
> > John.
> >
> >
> >
>
> >
> > "Antoine Galataud" <antoine.galataud@gmail.com >
> > 21/03/2006 09:27
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
> >
> >
> > Hi !
> >
> > I've found no way to solve my scope issue for the moment, I'm still
> > looking for a way to do this (application scope, not handlers).
> >
> > Thanks for any idea !
> >
> > 2006/3/16, Antoine Galataud < antoine.galataud@gmail.com >:
> > It doesn't work :
> >
> > in fact, I succeeded in getting a session scope, e.g I request the
> > service 2 times in the same main() client, but I can't have an
> > application scope. But I don't get the error I described in my
> > earlier mail, now it gives me nothing. And I'm talking about service
> > scope, I don't use any handler.
> >
> > Thanks for your answer
> >
> > 2006/3/16, John Hawkins <HAWKINSJ@uk.ibm.com >:
> >
> > I've just looked at this again and I'm not sure I understand your
> > question now!
> >
> >
> > If I look at your wsdd file it doesn't look correct to my thoughts
> > (is it the complete wsdd file?) e.g. this is a client sample wsdd file
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> >
> > <deployment xmlns="http://xml.apache.org/axis/wsdd/ " xlmns:
> > C="http//xml.apache.org.axis/wsdd/providers/c">
> >
> >  <service name="Handler" provider="CPP:DOCUMENT" 
description="Handler">
> >
> >  <requestFlow>
> >
> >  <handler name="myClientHandlerReq"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > name="myClientHandlerReq"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> >
> >  </handler>
> >
> >  </requestFlow>
> >
> >  <responseFlow>
> >
> >  <handler name="myClientHandlerRes"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > name="myClientHandlerRes"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> >
> >  </handler>
> >
> >  </responseFlow>
> >
> >  </service>
> >
> >  </deployment>
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
> >
> > "Antoine Galataud" <antoine.galataud@gmail.com >
> > 16/03/2006 12:57
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
>
> >
> >
> >
> >
> >
> > yes, i'm referring to the service scope. I saw in the doc that I
> > could set a scope for handlers in response/reauest flows, but I
> > didn't see anything about service.
> >
> > I'll try to set the scope also in client.wsdd, maybe it's what I'm
> missing.
> >
> > Thanks for any further comments/suggestions.
> >
> > 2006/3/16, James Jose <jamejose@in.ibm.com >:
> >
> > Hi,
> >
> >  We are running HandlerTest01 to HandlerTest10.  But here Antoine is
> > referring the scope of the service ..?
> >
> >
> > Regards
> > James
> > --------------------------------------------------
> > James Jose
> > Messaging Clients Team, WMQDDC
> > IBM Software Labs, India
> > Direct: 91-80- 25094331  Ext :2331
> > E-mail: jamejose@in.ibm.com 
> >
>
> >
> > John Hawkins < HAWKINSJ@uk.ibm.com >
> > 03/16/2006 17:50
> >
> > Please respond to
> > "Apache AXIS C User List"
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
> >
>
> >
> >
> >
> >
> >
> >
> >
> > Well, service and global handlers should work for the client and I'm
> > surprised they aren't working for the server. Can you try it in the
> > client and see if you get the same results. James - what tests do we
> > run on handlers nowadays?
>
> >
> > "Antoine Galataud" <antoine.galataud@gmail.com >
> > 16/03/2006 11:38
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
> >
> >
>
> >
> >
> >
> >
> >
> >
> >
> > So, is there any work around to get this feature working ?
> >
> > Thanks for your answer
> >
> > 2006/3/15, Antoine Galataud <antoine.galataud@gmail.com >:
> > Hum, seems scope is not yet correctly implemented (or tested) in 1.
> > 6a.n (solaris) release. Here is my server.wsdd :
> >
> > <service name="IAdminConfiguration" provider="CPP:RPC"
> > description="IAdminConfiguration Web Services">
> >     <parameter name="allowedMethods" value="notifyDictionaryReinit
> > initService"/>
> >     <parameter name="scope" value="application">
> >     <parameter name="className"
> > value="/home/antgalat/apache/webservices/libiadminconfig.so"/>
> > </service>
> >
> > If I do that I get this in the init logs :
> >
> > [15/03/2006 13:40:42:387 MET] 1 WSDDHandler > setScope
> @11cec8,"application"
> >
> > But if I invoke the service, it fails with :
> >
> > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > AxisWsddException @ff0da988,7, <null>
> > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > getMessageForExceptionCode @ff0da988,7
> > [15/03/2006 13:40:49:216 MET] 1 AxisWsddException <
> > getMessageForExceptionCode @ff0da988,"AxisWsddException:Requested
> > service not found"
> >
> > I also tested with request and session scopes, it failed too.
> >
> > 2006/3/9, John Hawkins < HAWKINSJ@uk.ibm.com >:
> >
> > I'll put it this way - it's not tested.
>
> >
> > "Antoine Galataud" <antoine.galataud@gmail.com >
> > 09/03/2006 14:23
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Application, Session or Request scope
> >
> >
> >
> >
> >
>
> >
> >
> >
> >
> >
> >
> >
> >
> > Hi !
> >
> > does Axis 1.6x handle scope ? I tried to add a scope="Application" in
> > my service declaration in server.wsdd, but it doesn't seem to work...
> >
> > Thanks
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> >
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> >
> > --
> >
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen


--
Antoine Galataud
antoine.galataud@gmail.com 
D?partement Architecture des Syst?mes d'Information
INSA - Rouen




-- 
Antoine Galataud
antoine.galataud@gmail.com
D?partement Architecture des Syst?mes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com 
D?partement Architecture des Syst?mes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com
D?partement Architecture des Syst?mes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com
D?partement Architecture des Syst?mes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com
D?partement Architecture des Syst?mes d'Information
INSA - Rouen 




-- 
Antoine Galataud
antoine.galataud@gmail.com
D?partement Architecture des Syst?mes d'Information 
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com
D?partement Architecture des Syst?mes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com
D?partement Architecture des Syst?mes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com
D?partement Architecture des Syst?mes d'Information 
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information 
INSA - Rouen 

Re: Application, Session or Request scope

Posted by Antoine Galataud <an...@gmail.com>.
apache 1.3

2006/3/28, John Hawkins <HA...@uk.ibm.com>:
>
>
> To confirm: On what server are you trying this ?
>
>
>
>
>  *"Antoine Galataud" <an...@gmail.com>*
>
> 28/03/2006 15:04  Please respond to
>
> "Apache AXIS C User List" <ax...@ws.apache.org>
>
>   To
> "Apache AXIS C User List" <ax...@ws.apache.org>  cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
> I am certainly doing something wrong, so I will try to give more details.
>
> I developped a web service called IAdminConfiguration, with 2 methods:
> initService(char* propFile)
> notifyDictionaryReinit()
>
> The generated files are
> AxisServiceException.cpp
> AxisServiceException.hpp
> IAdminConfiguration.cpp
> IAdminConfiguration.hpp
> IAdminConfigurationService.cpp
> IAdminConfigurationWrapper.cpp
> IAdminConfigurationWrapper.hpp
>
> My implementation is located in IAdminConfiguration.cpp. initService()
> method does the business part initializiation, as I said in previous mails.
>
> Here is the constructor of my service:
>
> IAdminConfiguration::IAdminConfiguration()
> {
>    cerr << "IAdminConfiguration()" << endl;
> }
>
>
> Here is the implementation of my service :
>
> void IAdminConfiguration::initService(xsd__string Value0)
> {
>    cerr << "***** IAdminConfiguration::initService" << endl;
>    char * tab[1];
>    tab[0] = Value0;
>    server_.run(1,tab);
>    cerr << "***** IAdminConfiguration::initService end" << endl;
> }
>
> void IAdminConfiguration::notifyDictionaryReinit()
> {
>    cerr << "***** IAdminConfiguration::notifyDictionaryReinit" << endl;
>    ConfigurationManagerService* service_ =
>  (ConfigurationManagerService*)server_.getBusinessService();
>    cerr << "***** service" << endl;
>    service_->notifyDictionaryReinit();
>    cerr << "***** service->" << endl;
> }
>
> So, if I call initService, then notifyDictionaryReinit() in the same
> client (session), I get no exception by notifyDictionaryReinit() and the
> business method ConfigurationManagerService::notifyDictionaryReinit() is
> sucessfully called.
> Now, if I call initService() in a client, then notifyDictionaryReinit() in
> another client, I get an error, because the backend
> ConfigurationManagerService is NULL.
> It means that the underlying service is not initialized.
>
> I've just tested what you said with a log output in the service
> constructor, it doesn't work, I see the constructor call each time I call a
> method.
>
> Here is the correspondant part of my server.wsdd:
> <service name="IAdminConfiguration" provider="CPP:RPC"
> description="IAdminConfiguration Web Services">
>        <parameter name="allowedMethods" value="notifyDictionaryReinit
> initService"/>
>        <parameter name="scope" value="application"/>
>        <parameter name="className"
> value="/home/antgalat/apache/webservices/libiadminconfig.so"/>
> </service>
>
> Here is my client.wsdd:
> <service name="IAdminConfiguration" provider="CPP:RPC"
> description="IAdminConfiguration">
>        <parameter name="scope" value="application"/>
> </service>
>
> I must also say that I don't use the generated deploy.wsdd file. I
> directly define services in server.wsdd and client.wsdd.
>
> That's where I am ! Thanks for help !
>
> 2006/3/28, John Hawkins <*HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com>>:
>
> I'm confused !
>
> I tested this on simple_axis server and apache 2 and it does what I
> thought it would do.....
> i.e. On repeated calls to the service the constructor of my service gets
> called once and once only.
>
> So, why can't you put your logic into the constructor of your service? Are
> you sure that you've seen the constructor being called more than once?
>
> cheers,
> John.
>
>
>   *"Antoine Galataud" <**...@gmail.com>
> *>*
>
> 27/03/2006 15:39
>
>
>   Please respond to
> "Apache AXIS C User List" <*a...@ws.apache.org>
> >
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>
> >  cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
> Ok, thanks for your answer,
>
> You talked about cookies, but I think it's not my solution. My problem is
> not keeping a session between client and server, cause business objects on
> server side are user independant. My problem is that my service
> initalization is very long : I need to instanciate several C++ classes, open
> DB connections, make several requests, start some other communication
> channels with different layers... It takes several seconds to get an answer
> to any webservice method.
>
> Do you have any other idea to do that ?
>
> Thanks a lot
>
> 2006/3/27, John Hawkins <*HAWKINSJ@uk.ibm.com * <HA...@uk.ibm.com>>:
>
> It is not in the roadmap at the moment.
>
>
>   *"Antoine Galataud" <**antoine.galataud@gmail.com** *<an...@gmail.com>
> *>*
>
> 27/03/2006 12:26
>
>
>   Please respond to
> "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>>
> cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
> Ok I see. Is it in the Axis C++ roadmap to implement such feature ? It is
> currently well implemented by Axis Java, with this famous scope
> (application/session/request) parameter defined in the deploy.wsdd file...
> It works very well, and it keeps all the web service objects up during all
> the application life (when setting in application scope)
>
> Thanks
>
> 2006/3/27, John Hawkins <*HAWKINSJ@uk.ibm.com * <HA...@uk.ibm.com>>:
>
> Now you're talking about maintaining a session.
>
> There is now way to do this "for-free". You could do it by setting cookies
> in the server-code. These cookies could be used to retrieve state from a db
> next call.
>
> Cookies are supported, at some level, in the client but not the server -
> to my knowledge. (they are just transport properties) You might have to add
> some minimal logic into the server-code to do it.
>
>
>
>   *"Antoine Galataud" <**antoine.galataud@gmail.com** *<an...@gmail.com>
> *>*
>
> 24/03/2006 13:48
>
>
>   Please respond to
> "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>>
> cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
>
>
> Ok, so how can I retrieve previously loaded object of my library ? For the
> moment, when I call initService(), I initialize a business object. If I call
> my second web service method notifyDictionary() in the same process (the
> main of my client call this 2 methods), it works (like a session scope). Now
> if call only initService(), then stop my client, then call
> notifyDictionary() in a different client, it fails, because the business
> object has been destroyed.
>
> How can I work around this ? Isn't it the feature "application scope" must
> provide ? Because the only thing I see, is that every server side objects
> are destroyed when the client is destroyed.
>
> 2006/3/24, John Hawkins <*HAWKINSJ@uk.ibm.com * <HA...@uk.ibm.com>>:
>
> The *dlopen* subroutine loads the module specified by *FilePath *into the
> executing process's address space. Dependents of the module are
> automatically loaded as well. If the module is already loaded, i t is not
> loaded again, but a new, unique value will be returned by the *dlopen *subroutine.
>
>
>   *"Antoine Galataud" <**antoine.galataud@gmail.com** *<an...@gmail.com>
> *>*
>
> 24/03/2006 13:14
>
>
>   Please respond to
> "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>>
> cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> First call to the method initService() is in log-1.txt, the second call
> (exactly the same, some seconds later) is in log-2.txt.
> I tried with <parameter name="scope" value="application"> of server.wsddfile in some other tests, it didn't change anything.
>
> Thanks
>
> 2006/3/24, John Hawkins <*HAWKINSJ@uk.ibm.com * <HA...@uk.ibm.com>>:
>
> Could you send me the trace pls.  *"Antoine Galataud" <**
> antoine.galataud@gmail.com** * <an...@gmail.com>*>*
>
> 24/03/2006 11:31
>
>
>   Please respond to
> "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>>
> cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> The logs are clear : it does a loadlib each time a method is called
>
> 2006/3/24, John Hawkins <*HAWKINSJ@uk.ibm.com * <HA...@uk.ibm.com>>:
>
> I've not got time to look into this problem but it should not load the
> libs but it might be creating new instances of the objects. Can you confirm
> which?  *"Antoine Galataud" <**antoine.galataud@gmail.com** *<an...@gmail.com>
> *>*
>
> 24/03/2006 10:33
>
>
>   Please respond to
> "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>>
> cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Hi,
>
> Could you confirm that it is a normal behavior that axis engine load libs
> each time a method is called on ? Or is it a mistake in my configuration ?
>
> Thanks
>
> 2006/3/23, Antoine Galataud < *antoine.galataud@gmail.com *<an...@gmail.com>>:
>
> Yes that's it.
>
>
> 2006/3/23, John Hawkins <* HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com>>:
>
> OK,
>
> so let me repeat it back to you so we're clear.
>
> You tested and found that the library is loaded and unloaded on every
> method call?  *"Antoine Galataud" <**antoine.galataud@gmail.com** *<an...@gmail.com>
> *>*
>
> 23/03/2006 09:14
>
>
>   Please respond to
> "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>>
> cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> No, I didn't test it yet. But I realized, reading again Adrian mail and
> looking at wrapper class that it can't be my solution (or just a part of).
> What I'm saying is that the wrapper class is contained in the web service
> library, and is used to initialize and stop the web service with init and
> fini methods. But this doesn't resolve my problem: I want the library loaded
> and run until server shuts down. So what I need is the scope parameter of
> server.wsdd file correctly handled (I tested that it doesn't work), so the
> library is loaded at first request and stays up.
>
> 2006/3/23, John Hawkins <* HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com>>:
>
> Sorry, I'm not clear what you are saying - are you saying that you have
> tested this and the library is loaded each time the service is requested?
> *"Antoine Galataud" <**antoine.galataud@gmail.com** *<an...@gmail.com>
> *>*
>
> 22/03/2006 17:18
>
>
>   Please respond to
> "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>>
> cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Hi,
>
> this a very great manner to initialize my business objects before
> getting a request, but does this help to have the web service library
> loaded once and not unloaded when method returns ?
> I mean, for the moment I can't call a method without having Axis
> loading the web service library (at each call). I need it to load at
> first time, then be up until server (apache) shuts down.
> What you are saying is that library is loaded at first invocation and
> unloaded when server shuts down. But in my case, library is loaded
> each time the service is requested !
>
> Thanks
> 2006/3/21, Adrian Dick <*adrian.dick@uk.ibm.com** *<ad...@uk.ibm.com>
> >:
> > Hi,
> >
> > There is already a mechanism in place to do this.
> >
> > As part of WrapperClassHandler, from which the generated wrapper class
> is
> > inherited, there are the init and fini methods.
> > These methods are called respectively as the service library is loaded
> (ie:
> > first invocation of service) and unloaded (ie: server shutdown).
> >
> > As these methods are virtual, you can override these within the
> generated
> > wrapper class, to do the initialization and clearup activities you
> require.
> >
> >
> > One word of warning, although this has been designed to work in this
> > manner, it hasn't (so far) been tested.
> >
> > Please let us know how you get on with trying this.
> >
> > Regards,
> > Adrian
> > _______________________________________
> > Adrian Dick (*adrian.dick@uk.ibm.com* <ad...@uk.ibm.com> )
> >
> >
> > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>>
> wrote on 21/03/2006
> > 12:43:45:
> >
> > >
> > > Sorry, I haven't been really clear with what I wanted to do. I'll
> > > try to clarify my thoughts a little :
> > >
> > > I get a web service library, that handles the web service technical
> > > part and access to business objects. But my business part is heavy
> > > to initialize, and I want to do it only once, so when a first
> > > request come to the web service, the back end service starts and
> > > replys, then any other request doesn't involve a back end service
> start.
> > >
> > > So what I want to do is, as axis java does, define an application
> > > scope for the web service and get the service running until container
> > stops.
> >
> > > 2006/3/21, John Hawkins < *HAWKINSJ@uk.ibm.com** *<HA...@uk.ibm.com>
> >:
> > >
> > > Antoine,
> > >
> > > Can I clarify what you're trying to do here? Are you trying to have
> > > a stateful session with a particular instance of a service i.e. the
> > > same service gets called twice? Or pass context across the-wire on
> > > subsequent uses of the same stub?
> > >
> > > thanks,
> > > John.
> > >
> > >
> > >
> >
> > >
> > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>
> >
> > > 21/03/2006 09:27
> > >
> > > Please respond to
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Re: Application, Session or Request scope
> > >
> > >
> > >
> > >
> > > Hi !
> > >
> > > I've found no way to solve my scope issue for the moment, I'm still
> > > looking for a way to do this (application scope, not handlers).
> > >
> > > Thanks for any idea !
> > >
> > > 2006/3/16, Antoine Galataud < *antoine.galataud@gmail.com *<an...@gmail.com>
> >:
> > > It doesn't work :
> > >
> > > in fact, I succeeded in getting a session scope, e.g I request the
> > > service 2 times in the same main() client, but I can't have an
> > > application scope. But I don't get the error I described in my
> > > earlier mail, now it gives me nothing. And I'm talking about service
> > > scope, I don't use any handler.
> > >
> > > Thanks for your answer
> > >
> > > 2006/3/16, John Hawkins <*HAWKINSJ@uk.ibm.com** *<HA...@uk.ibm.com>
> >:
> > >
> > > I've just looked at this again and I'm not sure I understand your
> > > question now!
> > >
> > >
> > > If I look at your wsdd file it doesn't look correct to my thoughts
> > > (is it the complete wsdd file?) e.g. this is a client sample wsdd file
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > >
> > > <deployment xmlns="*http://xml.apache.org/axis/wsdd/ *<http://xml.apache.org/axis/wsdd/>"
> xlmns:
> > > C="http//xml.apache.org.axis/wsdd/providers/c">
> > >
> > >  <service name="Handler" provider="CPP:DOCUMENT"
> description="Handler">
> > >
> > >  <requestFlow>
> > >
> > >  <handler name="myClientHandlerReq"
> > > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > > name="myClientHandlerReq"
> > > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> > >
> > >  </handler>
> > >
> > >  </requestFlow>
> > >
> > >  <responseFlow>
> > >
> > >  <handler name="myClientHandlerRes"
> > > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > > name="myClientHandlerRes"
> > > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> > >
> > >  </handler>
> > >
> > >  </responseFlow>
> > >
> > >  </service>
> > >
> > >  </deployment>
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> > >
> > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>
> >
> > > 16/03/2006 12:57
> > >
> > > Please respond to
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Re: Application, Session or Request scope
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > > yes, i'm referring to the service scope. I saw in the doc that I
> > > could set a scope for handlers in response/reauest flows, but I
> > > didn't see anything about service.
> > >
> > > I'll try to set the scope also in client.wsdd, maybe it's what I'm
> > missing.
> > >
> > > Thanks for any further comments/suggestions.
> > >
> > > 2006/3/16, James Jose <*jamejose@in.ibm.com** * <ja...@in.ibm.com>
> >:
> > >
> > > Hi,
> > >
> > >  We are running HandlerTest01 to HandlerTest10.  But here Antoine is
> > > referring the scope of the service ..?
> > >
> > >
> > > Regards
> > > James
> > > --------------------------------------------------
> > > James Jose
> > > Messaging Clients Team, WMQDDC
> > > IBM Software Labs, India
> > > Direct: 91-80- 25094331  Ext :2331
> > > E-mail: *jamejose@in.ibm.com* <ja...@in.ibm.com>
> > >
> >
> > >
> > > John Hawkins < *HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com> >
> > > 03/16/2006 17:50
> > >
> > > Please respond to
> > > "Apache AXIS C User List"
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Re: Application, Session or Request scope
> > >
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Well, service and global handlers should work for the client and I'm
> > > surprised they aren't working for the server. Can you try it in the
> > > client and see if you get the same results. James - what tests do we
> > > run on handlers nowadays?
> >
> > >
> > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>
> >
> > > 16/03/2006 11:38
> > >
> > > Please respond to
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Re: Application, Session or Request scope
> > >
> > >
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > So, is there any work around to get this feature working ?
> > >
> > > Thanks for your answer
> > >
> > > 2006/3/15, Antoine Galataud <*antoine.galataud@gmail.com *<an...@gmail.com>
> >:
> > > Hum, seems scope is not yet correctly implemented (or tested) in 1.
> > > 6a.n (solaris) release. Here is my server.wsdd :
> > >
> > > <service name="IAdminConfiguration" provider="CPP:RPC"
> > > description="IAdminConfiguration Web Services">
> > >     <parameter name="allowedMethods" value="notifyDictionaryReinit
> > > initService"/>
> > >     <parameter name="scope" value="application">
> > >     <parameter name="className"
> > > value="/home/antgalat/apache/webservices/libiadminconfig.so"/>
> > > </service>
> > >
> > > If I do that I get this in the init logs :
> > >
> > > [15/03/2006 13:40:42:387 MET] 1 WSDDHandler > setScope
> > @11cec8,"application"
> > >
> > > But if I invoke the service, it fails with :
> > >
> > > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > > AxisWsddException @ff0da988,7, <null>
> > > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > > getMessageForExceptionCode @ff0da988,7
> > > [15/03/2006 13:40:49:216 MET] 1 AxisWsddException <
> > > getMessageForExceptionCode @ff0da988,"AxisWsddException:Requested
> > > service not found"
> > >
> > > I also tested with request and session scopes, it failed too.
> > >
> > > 2006/3/9, John Hawkins < *HAWKINSJ@uk.ibm.com** *<HA...@uk.ibm.com>
> >:
> > >
> > > I'll put it this way - it's not tested.
> >
> > >
> > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>
> >
> > > 09/03/2006 14:23
> > >
> > > Please respond to
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Application, Session or Request scope
> > >
> > >
> > >
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Hi !
> > >
> > > does Axis 1.6x handle scope ? I tried to add a scope="Application" in
> > > my service declaration in server.wsdd, but it doesn't seem to work...
> > >
> > > Thanks
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > >
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > >
> > > --
> > >
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>


--
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen

Re: Application, Session or Request scope

Posted by John Hawkins <HA...@uk.ibm.com>.
To confirm: On what server are you trying this ?





"Antoine Galataud" <an...@gmail.com> 
28/03/2006 15:04
Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>


To
"Apache AXIS C User List" <ax...@ws.apache.org>
cc

Subject
Re: Application, Session or Request scope






I am certainly doing something wrong, so I will try to give more details.

I developped a web service called IAdminConfiguration, with 2 methods: 
initService(char* propFile)
notifyDictionaryReinit()

The generated files are 
AxisServiceException.cpp
AxisServiceException.hpp
IAdminConfiguration.cpp
IAdminConfiguration.hpp
IAdminConfigurationService.cpp
IAdminConfigurationWrapper.cpp
IAdminConfigurationWrapper.hpp

My implementation is located in IAdminConfiguration.cpp. initService() 
method does the business part initializiation, as I said in previous 
mails.

Here is the constructor of my service:

IAdminConfiguration::IAdminConfiguration()
{
    cerr << "IAdminConfiguration()" << endl; 
}


Here is the implementation of my service :

void IAdminConfiguration::initService(xsd__string Value0) 
{
    cerr << "***** IAdminConfiguration::initService" << endl;
    char * tab[1];
    tab[0] = Value0;
    server_.run(1,tab);
    cerr << "***** IAdminConfiguration::initService end" << endl;
}

void IAdminConfiguration::notifyDictionaryReinit() 
{
    cerr << "***** IAdminConfiguration::notifyDictionaryReinit" << endl;
    ConfigurationManagerService* service_ = 
(ConfigurationManagerService*)server_.getBusinessService();
    cerr << "***** service" << endl; 
    service_->notifyDictionaryReinit();
    cerr << "***** service->" << endl;
}

So, if I call initService, then notifyDictionaryReinit() in the same 
client (session), I get no exception by notifyDictionaryReinit() and the 
business method ConfigurationManagerService::notifyDictionaryReinit() is 
sucessfully called. 
Now, if I call initService() in a client, then notifyDictionaryReinit() in 
another client, I get an error, because the backend 
ConfigurationManagerService is NULL.
It means that the underlying service is not initialized. 

I've just tested what you said with a log output in the service 
constructor, it doesn't work, I see the constructor call each time I call 
a method.

Here is the correspondant part of my server.wsdd:
<service name="IAdminConfiguration" provider="CPP:RPC" 
description="IAdminConfiguration Web Services"> 
        <parameter name="allowedMethods" value="notifyDictionaryReinit 
initService"/>
        <parameter name="scope" value="application"/>
        <parameter name="className" 
value="/home/antgalat/apache/webservices/libiadminconfig.so"/> 
</service> 

Here is my client.wsdd:
<service name="IAdminConfiguration" provider="CPP:RPC" 
description="IAdminConfiguration">
        <parameter name="scope" value="application"/> 
</service>

I must also say that I don't use the generated deploy.wsdd file. I 
directly define services in server.wsdd and client.wsdd.

That's where I am ! Thanks for help !

2006/3/28, John Hawkins <HA...@uk.ibm.com>:

I'm confused ! 

I tested this on simple_axis server and apache 2 and it does what I 
thought it would do..... 
i.e. On repeated calls to the service the constructor of my service gets 
called once and once only. 

So, why can't you put your logic into the constructor of your service? Are 
you sure that you've seen the constructor being called more than once? 

cheers, 
John. 




"Antoine Galataud" <an...@gmail.com> 
27/03/2006 15:39 


Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>


To
"Apache AXIS C User List" <ax...@ws.apache.org> 
cc

Subject
Re: Application, Session or Request scope








Ok, thanks for your answer,

You talked about cookies, but I think it's not my solution. My problem is 
not keeping a session between client and server, cause business objects on 
server side are user independant. My problem is that my service 
initalization is very long : I need to instanciate several C++ classes, 
open DB connections, make several requests, start some other communication 
channels with different layers... It takes several seconds to get an 
answer to any webservice method. 

Do you have any other idea to do that ?

Thanks a lot

2006/3/27, John Hawkins <HAWKINSJ@uk.ibm.com >: 

It is not in the roadmap at the moment. 




"Antoine Galataud" <antoine.galataud@gmail.com > 
27/03/2006 12:26 


Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org >



To
"Apache AXIS C User List" <axis-c-user@ws.apache.org > 
cc

Subject
Re: Application, Session or Request scope










Ok I see. Is it in the Axis C++ roadmap to implement such feature ? It is 
currently well implemented by Axis Java, with this famous scope 
(application/session/request) parameter defined in the deploy.wsdd file... 
It works very well, and it keeps all the web service objects up during all 
the application life (when setting in application scope) 

Thanks

2006/3/27, John Hawkins <HAWKINSJ@uk.ibm.com >: 

Now you're talking about maintaining a session. 

There is now way to do this "for-free". You could do it by setting cookies 
in the server-code. These cookies could be used to retrieve state from a 
db next call. 

Cookies are supported, at some level, in the client but not the server - 
to my knowledge. (they are just transport properties) You might have to 
add some minimal logic into the server-code to do it. 





"Antoine Galataud" <antoine.galataud@gmail.com > 
24/03/2006 13:48 


Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org >



To
"Apache AXIS C User List" <axis-c-user@ws.apache.org > 
cc

Subject
Re: Application, Session or Request scope












Ok, so how can I retrieve previously loaded object of my library ? For the 
moment, when I call initService(), I initialize a business object. If I 
call my second web service method notifyDictionary() in the same process 
(the main of my client call this 2 methods), it works (like a session 
scope). Now if call only initService(), then stop my client, then call 
notifyDictionary() in a different client, it fails, because the business 
object has been destroyed. 

How can I work around this ? Isn't it the feature "application scope" must 
provide ? Because the only thing I see, is that every server side objects 
are destroyed when the client is destroyed.

2006/3/24, John Hawkins <HAWKINSJ@uk.ibm.com >: 

The dlopen subroutine loads the module specified by FilePath into the 
executing process's address space. Dependents of the module are 
automatically loaded as well. If the module is already loaded, i t is not 
loaded again, but a new, unique value will be returned by the dlopen 
subroutine. 


"Antoine Galataud" <antoine.galataud@gmail.com > 
24/03/2006 13:14 


Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org >



To
"Apache AXIS C User List" <axis-c-user@ws.apache.org > 
cc

Subject
Re: Application, Session or Request scope














First call to the method initService() is in log-1.txt, the second call 
(exactly the same, some seconds later) is in log-2.txt.
I tried with <parameter name="scope" value="application"> of server.wsdd 
file in some other tests, it didn't change anything.

Thanks

2006/3/24, John Hawkins <HAWKINSJ@uk.ibm.com >: 

Could you send me the trace pls. 
"Antoine Galataud" <antoine.galataud@gmail.com > 
24/03/2006 11:31 


Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org >



To
"Apache AXIS C User List" <axis-c-user@ws.apache.org > 
cc

Subject
Re: Application, Session or Request scope
















The logs are clear : it does a loadlib each time a method is called

2006/3/24, John Hawkins <HAWKINSJ@uk.ibm.com >: 

I've not got time to look into this problem but it should not load the 
libs but it might be creating new instances of the objects. Can you 
confirm which? 
"Antoine Galataud" <antoine.galataud@gmail.com > 
24/03/2006 10:33 


Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org >



To
"Apache AXIS C User List" <axis-c-user@ws.apache.org > 
cc

Subject
Re: Application, Session or Request scope


















Hi,

Could you confirm that it is a normal behavior that axis engine load libs 
each time a method is called on ? Or is it a mistake in my configuration ?

Thanks

2006/3/23, Antoine Galataud < antoine.galataud@gmail.com >: 
Yes that's it. 


2006/3/23, John Hawkins < HAWKINSJ@uk.ibm.com>: 

OK, 

so let me repeat it back to you so we're clear. 

You tested and found that the library is loaded and unloaded on every 
method call? 
"Antoine Galataud" <antoine.galataud@gmail.com > 
23/03/2006 09:14 


Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org >



To
"Apache AXIS C User List" <axis-c-user@ws.apache.org > 
cc

Subject
Re: Application, Session or Request scope




















No, I didn't test it yet. But I realized, reading again Adrian mail and 
looking at wrapper class that it can't be my solution (or just a part of). 
What I'm saying is that the wrapper class is contained in the web service 
library, and is used to initialize and stop the web service with init and 
fini methods. But this doesn't resolve my problem: I want the library 
loaded and run until server shuts down. So what I need is the scope 
parameter of server.wsdd file correctly handled (I tested that it doesn't 
work), so the library is loaded at first request and stays up.

2006/3/23, John Hawkins < HAWKINSJ@uk.ibm.com>: 

Sorry, I'm not clear what you are saying - are you saying that you have 
tested this and the library is loaded each time the service is requested? 
"Antoine Galataud" <antoine.galataud@gmail.com > 
22/03/2006 17:18 


Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org >



To
"Apache AXIS C User List" <axis-c-user@ws.apache.org > 
cc

Subject
Re: Application, Session or Request scope






















Hi,

this a very great manner to initialize my business objects before
getting a request, but does this help to have the web service library
loaded once and not unloaded when method returns ?
I mean, for the moment I can't call a method without having Axis
loading the web service library (at each call). I need it to load at
first time, then be up until server (apache) shuts down.
What you are saying is that library is loaded at first invocation and
unloaded when server shuts down. But in my case, library is loaded
each time the service is requested !

Thanks
2006/3/21, Adrian Dick <adrian.dick@uk.ibm.com >:
> Hi,
>
> There is already a mechanism in place to do this.
>
> As part of WrapperClassHandler, from which the generated wrapper class 
is
> inherited, there are the init and fini methods.
> These methods are called respectively as the service library is loaded 
(ie:
> first invocation of service) and unloaded (ie: server shutdown).
>
> As these methods are virtual, you can override these within the 
generated
> wrapper class, to do the initialization and clearup activities you 
require.
>
>
> One word of warning, although this has been designed to work in this
> manner, it hasn't (so far) been tested.
>
> Please let us know how you get on with trying this.
>
> Regards,
> Adrian
> _______________________________________
> Adrian Dick (adrian.dick@uk.ibm.com )
>
>
> "Antoine Galataud" <antoine.galataud@gmail.com > wrote on 21/03/2006
> 12:43:45:
>
> >
> > Sorry, I haven't been really clear with what I wanted to do. I'll
> > try to clarify my thoughts a little :
> >
> > I get a web service library, that handles the web service technical
> > part and access to business objects. But my business part is heavy
> > to initialize, and I want to do it only once, so when a first
> > request come to the web service, the back end service starts and
> > replys, then any other request doesn't involve a back end service 
start.
> >
> > So what I want to do is, as axis java does, define an application
> > scope for the web service and get the service running until container
> stops.
>
> > 2006/3/21, John Hawkins < HAWKINSJ@uk.ibm.com >:
> >
> > Antoine,
> >
> > Can I clarify what you're trying to do here? Are you trying to have
> > a stateful session with a particular instance of a service i.e. the
> > same service gets called twice? Or pass context across the-wire on
> > subsequent uses of the same stub?
> >
> > thanks,
> > John.
> >
> >
> >
>
> >
> > "Antoine Galataud" <antoine.galataud@gmail.com >
> > 21/03/2006 09:27
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
> >
> >
> > Hi !
> >
> > I've found no way to solve my scope issue for the moment, I'm still
> > looking for a way to do this (application scope, not handlers).
> >
> > Thanks for any idea !
> >
> > 2006/3/16, Antoine Galataud < antoine.galataud@gmail.com >:
> > It doesn't work :
> >
> > in fact, I succeeded in getting a session scope, e.g I request the
> > service 2 times in the same main() client, but I can't have an
> > application scope. But I don't get the error I described in my
> > earlier mail, now it gives me nothing. And I'm talking about service
> > scope, I don't use any handler.
> >
> > Thanks for your answer
> >
> > 2006/3/16, John Hawkins <HAWKINSJ@uk.ibm.com >:
> >
> > I've just looked at this again and I'm not sure I understand your
> > question now!
> >
> >
> > If I look at your wsdd file it doesn't look correct to my thoughts
> > (is it the complete wsdd file?) e.g. this is a client sample wsdd file
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> >
> > <deployment xmlns="http://xml.apache.org/axis/wsdd/ " xlmns:
> > C="http//xml.apache.org.axis/wsdd/providers/c">
> >
> >  <service name="Handler" provider="CPP:DOCUMENT" 
description="Handler">
> >
> >  <requestFlow>
> >
> >  <handler name="myClientHandlerReq"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > name="myClientHandlerReq"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> >
> >  </handler>
> >
> >  </requestFlow>
> >
> >  <responseFlow>
> >
> >  <handler name="myClientHandlerRes"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > name="myClientHandlerRes"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> >
> >  </handler>
> >
> >  </responseFlow>
> >
> >  </service>
> >
> >  </deployment>
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
> >
> > "Antoine Galataud" <antoine.galataud@gmail.com >
> > 16/03/2006 12:57
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
>
> >
> >
> >
> >
> >
> > yes, i'm referring to the service scope. I saw in the doc that I
> > could set a scope for handlers in response/reauest flows, but I
> > didn't see anything about service.
> >
> > I'll try to set the scope also in client.wsdd, maybe it's what I'm
> missing.
> >
> > Thanks for any further comments/suggestions.
> >
> > 2006/3/16, James Jose <jamejose@in.ibm.com >:
> >
> > Hi,
> >
> >  We are running HandlerTest01 to HandlerTest10.  But here Antoine is
> > referring the scope of the service ..?
> >
> >
> > Regards
> > James
> > --------------------------------------------------
> > James Jose
> > Messaging Clients Team, WMQDDC
> > IBM Software Labs, India
> > Direct: 91-80- 25094331  Ext :2331
> > E-mail: jamejose@in.ibm.com 
> >
>
> >
> > John Hawkins < HAWKINSJ@uk.ibm.com >
> > 03/16/2006 17:50
> >
> > Please respond to
> > "Apache AXIS C User List"
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
> >
>
> >
> >
> >
> >
> >
> >
> >
> > Well, service and global handlers should work for the client and I'm
> > surprised they aren't working for the server. Can you try it in the
> > client and see if you get the same results. James - what tests do we
> > run on handlers nowadays?
>
> >
> > "Antoine Galataud" <antoine.galataud@gmail.com >
> > 16/03/2006 11:38
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
> >
> >
>
> >
> >
> >
> >
> >
> >
> >
> > So, is there any work around to get this feature working ?
> >
> > Thanks for your answer
> >
> > 2006/3/15, Antoine Galataud <antoine.galataud@gmail.com >:
> > Hum, seems scope is not yet correctly implemented (or tested) in 1.
> > 6a.n (solaris) release. Here is my server.wsdd :
> >
> > <service name="IAdminConfiguration" provider="CPP:RPC"
> > description="IAdminConfiguration Web Services">
> >     <parameter name="allowedMethods" value="notifyDictionaryReinit
> > initService"/>
> >     <parameter name="scope" value="application">
> >     <parameter name="className"
> > value="/home/antgalat/apache/webservices/libiadminconfig.so"/>
> > </service>
> >
> > If I do that I get this in the init logs :
> >
> > [15/03/2006 13:40:42:387 MET] 1 WSDDHandler > setScope
> @11cec8,"application"
> >
> > But if I invoke the service, it fails with :
> >
> > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > AxisWsddException @ff0da988,7, <null>
> > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > getMessageForExceptionCode @ff0da988,7
> > [15/03/2006 13:40:49:216 MET] 1 AxisWsddException <
> > getMessageForExceptionCode @ff0da988,"AxisWsddException:Requested
> > service not found"
> >
> > I also tested with request and session scopes, it failed too.
> >
> > 2006/3/9, John Hawkins < HAWKINSJ@uk.ibm.com >:
> >
> > I'll put it this way - it's not tested.
>
> >
> > "Antoine Galataud" <antoine.galataud@gmail.com >
> > 09/03/2006 14:23
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Application, Session or Request scope
> >
> >
> >
> >
> >
>
> >
> >
> >
> >
> >
> >
> >
> >
> > Hi !
> >
> > does Axis 1.6x handle scope ? I tried to add a scope="Application" in
> > my service declaration in server.wsdd, but it doesn't seem to work...
> >
> > Thanks
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> >
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> >
> > --
> >
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen


--
Antoine Galataud
antoine.galataud@gmail.com 
D?partement Architecture des Syst?mes d'Information
INSA - Rouen




-- 
Antoine Galataud
antoine.galataud@gmail.com
D?partement Architecture des Syst?mes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com 
D?partement Architecture des Syst?mes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com
D?partement Architecture des Syst?mes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com
D?partement Architecture des Syst?mes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com
D?partement Architecture des Syst?mes d'Information
INSA - Rouen 




-- 
Antoine Galataud
antoine.galataud@gmail.com
D?partement Architecture des Syst?mes d'Information 
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com
D?partement Architecture des Syst?mes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com
D?partement Architecture des Syst?mes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information 
INSA - Rouen 

Re: Application, Session or Request scope

Posted by Antoine Galataud <an...@gmail.com>.
I am certainly doing something wrong, so I will try to give more details.

I developped a web service called IAdminConfiguration, with 2 methods:
initService(char* propFile)
notifyDictionaryReinit()

The generated files are
AxisServiceException.cpp
AxisServiceException.hpp
IAdminConfiguration.cpp
IAdminConfiguration.hpp
IAdminConfigurationService.cpp
IAdminConfigurationWrapper.cpp
IAdminConfigurationWrapper.hpp

My implementation is located in IAdminConfiguration.cpp. initService()
method does the business part initializiation, as I said in previous mails.

Here is the constructor of my service:

IAdminConfiguration::IAdminConfiguration()
{
    cerr << "IAdminConfiguration()" << endl;
}


Here is the implementation of my service :

void IAdminConfiguration::initService(xsd__string Value0)
{
    cerr << "***** IAdminConfiguration::initService" << endl;
    char * tab[1];
    tab[0] = Value0;
    server_.run(1,tab);
    cerr << "***** IAdminConfiguration::initService end" << endl;
}

void IAdminConfiguration::notifyDictionaryReinit()
{
    cerr << "***** IAdminConfiguration::notifyDictionaryReinit" << endl;
    ConfigurationManagerService* service_ =
(ConfigurationManagerService*)server_.getBusinessService();
    cerr << "***** service" << endl;
    service_->notifyDictionaryReinit();
    cerr << "***** service->" << endl;
}

So, if I call initService, then notifyDictionaryReinit() in the same client
(session), I get no exception by notifyDictionaryReinit() and the business
method ConfigurationManagerService::notifyDictionaryReinit() is sucessfully
called.
Now, if I call initService() in a client, then notifyDictionaryReinit() in
another client, I get an error, because the backend
ConfigurationManagerService is NULL.
It means that the underlying service is not initialized.

I've just tested what you said with a log output in the service constructor,
it doesn't work, I see the constructor call each time I call a method.

Here is the correspondant part of my server.wsdd:
<service name="IAdminConfiguration" provider="CPP:RPC"
description="IAdminConfiguration Web Services">
        <parameter name="allowedMethods" value="notifyDictionaryReinit
initService"/>
        <parameter name="scope" value="application"/>
        <parameter name="className"
value="/home/antgalat/apache/webservices/libiadminconfig.so"/>
</service>

Here is my client.wsdd:
<service name="IAdminConfiguration" provider="CPP:RPC"
description="IAdminConfiguration">
        <parameter name="scope" value="application"/>
</service>

I must also say that I don't use the generated deploy.wsdd file. I directly
define services in server.wsdd and client.wsdd.

That's where I am ! Thanks for help !

2006/3/28, John Hawkins <HA...@uk.ibm.com>:
>
>
> I'm confused !
>
> I tested this on simple_axis server and apache 2 and it does what I
> thought it would do.....
> i.e. On repeated calls to the service the constructor of my service gets
> called once and once only.
>
> So, why can't you put your logic into the constructor of your service? Are
> you sure that you've seen the constructor being called more than once?
>
> cheers,
> John.
>
>
>
>  *"Antoine Galataud" <an...@gmail.com>*
>
> 27/03/2006 15:39
>  Please respond to
> "Apache AXIS C User List" <ax...@ws.apache.org>
>
>   To
> "Apache AXIS C User List" <ax...@ws.apache.org>  cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
> Ok, thanks for your answer,
>
> You talked about cookies, but I think it's not my solution. My problem is
> not keeping a session between client and server, cause business objects on
> server side are user independant. My problem is that my service
> initalization is very long : I need to instanciate several C++ classes, open
> DB connections, make several requests, start some other communication
> channels with different layers... It takes several seconds to get an answer
> to any webservice method.
>
> Do you have any other idea to do that ?
>
> Thanks a lot
>
> 2006/3/27, John Hawkins <*HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com>>:
>
> It is not in the roadmap at the moment.
>
>
>
>   *"Antoine Galataud" <**...@gmail.com>
> *>*
>
> 27/03/2006 12:26
>
>
>   Please respond to
> "Apache AXIS C User List" <*a...@ws.apache.org>
> >
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>
> >  cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
> Ok I see. Is it in the Axis C++ roadmap to implement such feature ? It is
> currently well implemented by Axis Java, with this famous scope
> (application/session/request) parameter defined in the deploy.wsdd file...
> It works very well, and it keeps all the web service objects up during all
> the application life (when setting in application scope)
>
> Thanks
>
> 2006/3/27, John Hawkins <*HAWKINSJ@uk.ibm.com * <HA...@uk.ibm.com>>:
>
> Now you're talking about maintaining a session.
>
> There is now way to do this "for-free". You could do it by setting cookies
> in the server-code. These cookies could be used to retrieve state from a db
> next call.
>
> Cookies are supported, at some level, in the client but not the server -
> to my knowledge. (they are just transport properties) You might have to add
> some minimal logic into the server-code to do it.
>
>
>
>
>   *"Antoine Galataud" <**antoine.galataud@gmail.com** *<an...@gmail.com>
> *>*
>
> 24/03/2006 13:48
>
>
>   Please respond to
> "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>>
> cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
> Ok, so how can I retrieve previously loaded object of my library ? For the
> moment, when I call initService(), I initialize a business object. If I call
> my second web service method notifyDictionary() in the same process (the
> main of my client call this 2 methods), it works (like a session scope). Now
> if call only initService(), then stop my client, then call
> notifyDictionary() in a different client, it fails, because the business
> object has been destroyed.
>
> How can I work around this ? Isn't it the feature "application scope" must
> provide ? Because the only thing I see, is that every server side objects
> are destroyed when the client is destroyed.
>
> 2006/3/24, John Hawkins <*HAWKINSJ@uk.ibm.com * <HA...@uk.ibm.com>>:
>
> The *dlopen* subroutine loads the module specified by *FilePath *into the
> executing process's address space. Dependents of the module are
> automatically loaded as well. If the module is already loaded, i t is not
> loaded again, but a new, unique value will be returned by the *dlopen *subroutine.
>
>
>
>   *"Antoine Galataud" <**antoine.galataud@gmail.com** *<an...@gmail.com>
> *>*
>
> 24/03/2006 13:14
>
>
>   Please respond to
> "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>>
> cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
>
>
> First call to the method initService() is in log-1.txt, the second call
> (exactly the same, some seconds later) is in log-2.txt.
> I tried with <parameter name="scope" value="application"> of server.wsddfile in some other tests, it didn't change anything.
>
> Thanks
>
> 2006/3/24, John Hawkins <*HAWKINSJ@uk.ibm.com * <HA...@uk.ibm.com>>:
>
> Could you send me the trace pls.
>   *"Antoine Galataud" <**antoine.galataud@gmail.com** *<an...@gmail.com>
> *>*
>
> 24/03/2006 11:31
>
>
>   Please respond to
> "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>>
> cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> The logs are clear : it does a loadlib each time a method is called
>
> 2006/3/24, John Hawkins <*HAWKINSJ@uk.ibm.com * <HA...@uk.ibm.com>>:
>
> I've not got time to look into this problem but it should not load the
> libs but it might be creating new instances of the objects. Can you confirm
> which?  *"Antoine Galataud" <**antoine.galataud@gmail.com** *<an...@gmail.com>
> *>*
>
> 24/03/2006 10:33
>
>
>   Please respond to
> "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>>
> cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Hi,
>
> Could you confirm that it is a normal behavior that axis engine load libs
> each time a method is called on ? Or is it a mistake in my configuration ?
>
> Thanks
>
> 2006/3/23, Antoine Galataud < *antoine.galataud@gmail.com *<an...@gmail.com>>:
>
> Yes that's it.
>
>
> 2006/3/23, John Hawkins <* HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com>>:
>
> OK,
>
> so let me repeat it back to you so we're clear.
>
> You tested and found that the library is loaded and unloaded on every
> method call?  *"Antoine Galataud" <**antoine.galataud@gmail.com** *<an...@gmail.com>
> *>*
>
> 23/03/2006 09:14
>
>
>   Please respond to
> "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>>
> cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> No, I didn't test it yet. But I realized, reading again Adrian mail and
> looking at wrapper class that it can't be my solution (or just a part of).
> What I'm saying is that the wrapper class is contained in the web service
> library, and is used to initialize and stop the web service with init and
> fini methods. But this doesn't resolve my problem: I want the library loaded
> and run until server shuts down. So what I need is the scope parameter of
> server.wsdd file correctly handled (I tested that it doesn't work), so the
> library is loaded at first request and stays up.
>
> 2006/3/23, John Hawkins <* HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com>>:
>
> Sorry, I'm not clear what you are saying - are you saying that you have
> tested this and the library is loaded each time the service is requested?
> *"Antoine Galataud" <**antoine.galataud@gmail.com** *<an...@gmail.com>
> *>*
>
> 22/03/2006 17:18
>
>
>   Please respond to
> "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>>
> cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Hi,
>
> this a very great manner to initialize my business objects before
> getting a request, but does this help to have the web service library
> loaded once and not unloaded when method returns ?
> I mean, for the moment I can't call a method without having Axis
> loading the web service library (at each call). I need it to load at
> first time, then be up until server (apache) shuts down.
> What you are saying is that library is loaded at first invocation and
> unloaded when server shuts down. But in my case, library is loaded
> each time the service is requested !
>
> Thanks
> 2006/3/21, Adrian Dick <*adrian.dick@uk.ibm.com** *<ad...@uk.ibm.com>
> >:
> > Hi,
> >
> > There is already a mechanism in place to do this.
> >
> > As part of WrapperClassHandler, from which the generated wrapper class
> is
> > inherited, there are the init and fini methods.
> > These methods are called respectively as the service library is loaded
> (ie:
> > first invocation of service) and unloaded (ie: server shutdown).
> >
> > As these methods are virtual, you can override these within the
> generated
> > wrapper class, to do the initialization and clearup activities you
> require.
> >
> >
> > One word of warning, although this has been designed to work in this
> > manner, it hasn't (so far) been tested.
> >
> > Please let us know how you get on with trying this.
> >
> > Regards,
> > Adrian
> > _______________________________________
> > Adrian Dick (*adrian.dick@uk.ibm.com* <ad...@uk.ibm.com> )
> >
> >
> > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>>
> wrote on 21/03/2006
> > 12:43:45:
> >
> > >
> > > Sorry, I haven't been really clear with what I wanted to do. I'll
> > > try to clarify my thoughts a little :
> > >
> > > I get a web service library, that handles the web service technical
> > > part and access to business objects. But my business part is heavy
> > > to initialize, and I want to do it only once, so when a first
> > > request come to the web service, the back end service starts and
> > > replys, then any other request doesn't involve a back end service
> start.
> > >
> > > So what I want to do is, as axis java does, define an application
> > > scope for the web service and get the service running until container
> > stops.
> >
> > > 2006/3/21, John Hawkins < *HAWKINSJ@uk.ibm.com** *<HA...@uk.ibm.com>
> >:
> > >
> > > Antoine,
> > >
> > > Can I clarify what you're trying to do here? Are you trying to have
> > > a stateful session with a particular instance of a service i.e. the
> > > same service gets called twice? Or pass context across the-wire on
> > > subsequent uses of the same stub?
> > >
> > > thanks,
> > > John.
> > >
> > >
> > >
> >
> > >
> > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>
> >
> > > 21/03/2006 09:27
> > >
> > > Please respond to
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Re: Application, Session or Request scope
> > >
> > >
> > >
> > >
> > > Hi !
> > >
> > > I've found no way to solve my scope issue for the moment, I'm still
> > > looking for a way to do this (application scope, not handlers).
> > >
> > > Thanks for any idea !
> > >
> > > 2006/3/16, Antoine Galataud < *antoine.galataud@gmail.com *<an...@gmail.com>
> >:
> > > It doesn't work :
> > >
> > > in fact, I succeeded in getting a session scope, e.g I request the
> > > service 2 times in the same main() client, but I can't have an
> > > application scope. But I don't get the error I described in my
> > > earlier mail, now it gives me nothing. And I'm talking about service
> > > scope, I don't use any handler.
> > >
> > > Thanks for your answer
> > >
> > > 2006/3/16, John Hawkins <*HAWKINSJ@uk.ibm.com** *<HA...@uk.ibm.com>
> >:
> > >
> > > I've just looked at this again and I'm not sure I understand your
> > > question now!
> > >
> > >
> > > If I look at your wsdd file it doesn't look correct to my thoughts
> > > (is it the complete wsdd file?) e.g. this is a client sample wsdd file
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > >
> > > <deployment xmlns="*http://xml.apache.org/axis/wsdd/ *<http://xml.apache.org/axis/wsdd/>"
> xlmns:
> > > C="http//xml.apache.org.axis/wsdd/providers/c">
> > >
> > >  <service name="Handler" provider="CPP:DOCUMENT"
> description="Handler">
> > >
> > >  <requestFlow>
> > >
> > >  <handler name="myClientHandlerReq"
> > > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > > name="myClientHandlerReq"
> > > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> > >
> > >  </handler>
> > >
> > >  </requestFlow>
> > >
> > >  <responseFlow>
> > >
> > >  <handler name="myClientHandlerRes"
> > > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > > name="myClientHandlerRes"
> > > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> > >
> > >  </handler>
> > >
> > >  </responseFlow>
> > >
> > >  </service>
> > >
> > >  </deployment>
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> > >
> > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>
> >
> > > 16/03/2006 12:57
> > >
> > > Please respond to
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Re: Application, Session or Request scope
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > > yes, i'm referring to the service scope. I saw in the doc that I
> > > could set a scope for handlers in response/reauest flows, but I
> > > didn't see anything about service.
> > >
> > > I'll try to set the scope also in client.wsdd, maybe it's what I'm
> > missing.
> > >
> > > Thanks for any further comments/suggestions.
> > >
> > > 2006/3/16, James Jose <*jamejose@in.ibm.com** * <ja...@in.ibm.com>
> >:
> > >
> > > Hi,
> > >
> > >  We are running HandlerTest01 to HandlerTest10.  But here Antoine is
> > > referring the scope of the service ..?
> > >
> > >
> > > Regards
> > > James
> > > --------------------------------------------------
> > > James Jose
> > > Messaging Clients Team, WMQDDC
> > > IBM Software Labs, India
> > > Direct: 91-80- 25094331  Ext :2331
> > > E-mail: *jamejose@in.ibm.com* <ja...@in.ibm.com>
> > >
> >
> > >
> > > John Hawkins < *HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com> >
> > > 03/16/2006 17:50
> > >
> > > Please respond to
> > > "Apache AXIS C User List"
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Re: Application, Session or Request scope
> > >
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Well, service and global handlers should work for the client and I'm
> > > surprised they aren't working for the server. Can you try it in the
> > > client and see if you get the same results. James - what tests do we
> > > run on handlers nowadays?
> >
> > >
> > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>
> >
> > > 16/03/2006 11:38
> > >
> > > Please respond to
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Re: Application, Session or Request scope
> > >
> > >
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > So, is there any work around to get this feature working ?
> > >
> > > Thanks for your answer
> > >
> > > 2006/3/15, Antoine Galataud <*antoine.galataud@gmail.com *<an...@gmail.com>
> >:
> > > Hum, seems scope is not yet correctly implemented (or tested) in 1.
> > > 6a.n (solaris) release. Here is my server.wsdd :
> > >
> > > <service name="IAdminConfiguration" provider="CPP:RPC"
> > > description="IAdminConfiguration Web Services">
> > >     <parameter name="allowedMethods" value="notifyDictionaryReinit
> > > initService"/>
> > >     <parameter name="scope" value="application">
> > >     <parameter name="className"
> > > value="/home/antgalat/apache/webservices/libiadminconfig.so"/>
> > > </service>
> > >
> > > If I do that I get this in the init logs :
> > >
> > > [15/03/2006 13:40:42:387 MET] 1 WSDDHandler > setScope
> > @11cec8,"application"
> > >
> > > But if I invoke the service, it fails with :
> > >
> > > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > > AxisWsddException @ff0da988,7, <null>
> > > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > > getMessageForExceptionCode @ff0da988,7
> > > [15/03/2006 13:40:49:216 MET] 1 AxisWsddException <
> > > getMessageForExceptionCode @ff0da988,"AxisWsddException:Requested
> > > service not found"
> > >
> > > I also tested with request and session scopes, it failed too.
> > >
> > > 2006/3/9, John Hawkins < *HAWKINSJ@uk.ibm.com** *<HA...@uk.ibm.com>
> >:
> > >
> > > I'll put it this way - it's not tested.
> >
> > >
> > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>
> >
> > > 09/03/2006 14:23
> > >
> > > Please respond to
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Application, Session or Request scope
> > >
> > >
> > >
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Hi !
> > >
> > > does Axis 1.6x handle scope ? I tried to add a scope="Application" in
> > > my service declaration in server.wsdd, but it doesn't seem to work...
> > >
> > > Thanks
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > >
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > >
> > > --
> > >
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>


--
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen

Re: Application, Session or Request scope

Posted by John Hawkins <HA...@uk.ibm.com>.
I'm confused !

I tested this on simple_axis server and apache 2 and it does what I 
thought it would do.....
i.e. On repeated calls to the service the constructor of my service gets 
called once and once only.

So, why can't you put your logic into the constructor of your service? Are 
you sure that you've seen the constructor being called more than once?

cheers,
John.




"Antoine Galataud" <an...@gmail.com> 
27/03/2006 15:39
Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>


To
"Apache AXIS C User List" <ax...@ws.apache.org>
cc

Subject
Re: Application, Session or Request scope






Ok, thanks for your answer,

You talked about cookies, but I think it's not my solution. My problem is 
not keeping a session between client and server, cause business objects on 
server side are user independant. My problem is that my service 
initalization is very long : I need to instanciate several C++ classes, 
open DB connections, make several requests, start some other communication 
channels with different layers... It takes several seconds to get an 
answer to any webservice method. 

Do you have any other idea to do that ?

Thanks a lot

2006/3/27, John Hawkins <HA...@uk.ibm.com>:

It is not in the roadmap at the moment. 





"Antoine Galataud" <an...@gmail.com> 
27/03/2006 12:26 


Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>


To
"Apache AXIS C User List" <ax...@ws.apache.org> 
cc

Subject
Re: Application, Session or Request scope








Ok I see. Is it in the Axis C++ roadmap to implement such feature ? It is 
currently well implemented by Axis Java, with this famous scope 
(application/session/request) parameter defined in the deploy.wsdd file... 
It works very well, and it keeps all the web service objects up during all 
the application life (when setting in application scope) 

Thanks

2006/3/27, John Hawkins <HAWKINSJ@uk.ibm.com >: 

Now you're talking about maintaining a session. 

There is now way to do this "for-free". You could do it by setting cookies 
in the server-code. These cookies could be used to retrieve state from a 
db next call. 

Cookies are supported, at some level, in the client but not the server - 
to my knowledge. (they are just transport properties) You might have to 
add some minimal logic into the server-code to do it. 






"Antoine Galataud" <antoine.galataud@gmail.com > 
24/03/2006 13:48 


Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org >



To
"Apache AXIS C User List" <axis-c-user@ws.apache.org > 
cc

Subject
Re: Application, Session or Request scope










Ok, so how can I retrieve previously loaded object of my library ? For the 
moment, when I call initService(), I initialize a business object. If I 
call my second web service method notifyDictionary() in the same process 
(the main of my client call this 2 methods), it works (like a session 
scope). Now if call only initService(), then stop my client, then call 
notifyDictionary() in a different client, it fails, because the business 
object has been destroyed. 

How can I work around this ? Isn't it the feature "application scope" must 
provide ? Because the only thing I see, is that every server side objects 
are destroyed when the client is destroyed.

2006/3/24, John Hawkins <HAWKINSJ@uk.ibm.com >: 

The dlopen subroutine loads the module specified by FilePath into the 
executing process's address space. Dependents of the module are 
automatically loaded as well. If the module is already loaded, i t is not 
loaded again, but a new, unique value will be returned by the dlopen 
subroutine. 



"Antoine Galataud" <antoine.galataud@gmail.com > 
24/03/2006 13:14 


Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org >



To
"Apache AXIS C User List" <axis-c-user@ws.apache.org > 
cc

Subject
Re: Application, Session or Request scope












First call to the method initService() is in log-1.txt, the second call 
(exactly the same, some seconds later) is in log-2.txt.
I tried with <parameter name="scope" value="application"> of server.wsdd 
file in some other tests, it didn't change anything.

Thanks

2006/3/24, John Hawkins <HAWKINSJ@uk.ibm.com >: 

Could you send me the trace pls. 

"Antoine Galataud" <antoine.galataud@gmail.com > 
24/03/2006 11:31 


Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org >



To
"Apache AXIS C User List" <axis-c-user@ws.apache.org > 
cc

Subject
Re: Application, Session or Request scope














The logs are clear : it does a loadlib each time a method is called

2006/3/24, John Hawkins <HAWKINSJ@uk.ibm.com >: 

I've not got time to look into this problem but it should not load the 
libs but it might be creating new instances of the objects. Can you 
confirm which? 
"Antoine Galataud" <antoine.galataud@gmail.com > 
24/03/2006 10:33 


Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org >



To
"Apache AXIS C User List" <axis-c-user@ws.apache.org > 
cc

Subject
Re: Application, Session or Request scope
















Hi,

Could you confirm that it is a normal behavior that axis engine load libs 
each time a method is called on ? Or is it a mistake in my configuration ?

Thanks

2006/3/23, Antoine Galataud < antoine.galataud@gmail.com >: 
Yes that's it. 


2006/3/23, John Hawkins < HAWKINSJ@uk.ibm.com>: 

OK, 

so let me repeat it back to you so we're clear. 

You tested and found that the library is loaded and unloaded on every 
method call? 
"Antoine Galataud" <antoine.galataud@gmail.com > 
23/03/2006 09:14 


Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org >



To
"Apache AXIS C User List" <axis-c-user@ws.apache.org > 
cc

Subject
Re: Application, Session or Request scope


















No, I didn't test it yet. But I realized, reading again Adrian mail and 
looking at wrapper class that it can't be my solution (or just a part of). 
What I'm saying is that the wrapper class is contained in the web service 
library, and is used to initialize and stop the web service with init and 
fini methods. But this doesn't resolve my problem: I want the library 
loaded and run until server shuts down. So what I need is the scope 
parameter of server.wsdd file correctly handled (I tested that it doesn't 
work), so the library is loaded at first request and stays up.

2006/3/23, John Hawkins < HAWKINSJ@uk.ibm.com>: 

Sorry, I'm not clear what you are saying - are you saying that you have 
tested this and the library is loaded each time the service is requested? 
"Antoine Galataud" <antoine.galataud@gmail.com > 
22/03/2006 17:18 


Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org >



To
"Apache AXIS C User List" <axis-c-user@ws.apache.org > 
cc

Subject
Re: Application, Session or Request scope




















Hi,

this a very great manner to initialize my business objects before
getting a request, but does this help to have the web service library
loaded once and not unloaded when method returns ?
I mean, for the moment I can't call a method without having Axis
loading the web service library (at each call). I need it to load at
first time, then be up until server (apache) shuts down.
What you are saying is that library is loaded at first invocation and
unloaded when server shuts down. But in my case, library is loaded
each time the service is requested !

Thanks
2006/3/21, Adrian Dick <adrian.dick@uk.ibm.com >:
> Hi,
>
> There is already a mechanism in place to do this.
>
> As part of WrapperClassHandler, from which the generated wrapper class 
is
> inherited, there are the init and fini methods.
> These methods are called respectively as the service library is loaded 
(ie:
> first invocation of service) and unloaded (ie: server shutdown).
>
> As these methods are virtual, you can override these within the 
generated
> wrapper class, to do the initialization and clearup activities you 
require.
>
>
> One word of warning, although this has been designed to work in this
> manner, it hasn't (so far) been tested.
>
> Please let us know how you get on with trying this.
>
> Regards,
> Adrian
> _______________________________________
> Adrian Dick (adrian.dick@uk.ibm.com )
>
>
> "Antoine Galataud" <antoine.galataud@gmail.com > wrote on 21/03/2006
> 12:43:45:
>
> >
> > Sorry, I haven't been really clear with what I wanted to do. I'll
> > try to clarify my thoughts a little :
> >
> > I get a web service library, that handles the web service technical
> > part and access to business objects. But my business part is heavy
> > to initialize, and I want to do it only once, so when a first
> > request come to the web service, the back end service starts and
> > replys, then any other request doesn't involve a back end service 
start.
> >
> > So what I want to do is, as axis java does, define an application
> > scope for the web service and get the service running until container
> stops.
>
> > 2006/3/21, John Hawkins < HAWKINSJ@uk.ibm.com >:
> >
> > Antoine,
> >
> > Can I clarify what you're trying to do here? Are you trying to have
> > a stateful session with a particular instance of a service i.e. the
> > same service gets called twice? Or pass context across the-wire on
> > subsequent uses of the same stub?
> >
> > thanks,
> > John.
> >
> >
> >
>
> >
> > "Antoine Galataud" <antoine.galataud@gmail.com >
> > 21/03/2006 09:27
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
> >
> >
> > Hi !
> >
> > I've found no way to solve my scope issue for the moment, I'm still
> > looking for a way to do this (application scope, not handlers).
> >
> > Thanks for any idea !
> >
> > 2006/3/16, Antoine Galataud < antoine.galataud@gmail.com >:
> > It doesn't work :
> >
> > in fact, I succeeded in getting a session scope, e.g I request the
> > service 2 times in the same main() client, but I can't have an
> > application scope. But I don't get the error I described in my
> > earlier mail, now it gives me nothing. And I'm talking about service
> > scope, I don't use any handler.
> >
> > Thanks for your answer
> >
> > 2006/3/16, John Hawkins <HAWKINSJ@uk.ibm.com >:
> >
> > I've just looked at this again and I'm not sure I understand your
> > question now!
> >
> >
> > If I look at your wsdd file it doesn't look correct to my thoughts
> > (is it the complete wsdd file?) e.g. this is a client sample wsdd file
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> >
> > <deployment xmlns="http://xml.apache.org/axis/wsdd/ " xlmns:
> > C="http//xml.apache.org.axis/wsdd/providers/c">
> >
> >  <service name="Handler" provider="CPP:DOCUMENT" 
description="Handler">
> >
> >  <requestFlow>
> >
> >  <handler name="myClientHandlerReq"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > name="myClientHandlerReq"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> >
> >  </handler>
> >
> >  </requestFlow>
> >
> >  <responseFlow>
> >
> >  <handler name="myClientHandlerRes"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > name="myClientHandlerRes"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> >
> >  </handler>
> >
> >  </responseFlow>
> >
> >  </service>
> >
> >  </deployment>
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
> >
> > "Antoine Galataud" <antoine.galataud@gmail.com >
> > 16/03/2006 12:57
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
>
> >
> >
> >
> >
> >
> > yes, i'm referring to the service scope. I saw in the doc that I
> > could set a scope for handlers in response/reauest flows, but I
> > didn't see anything about service.
> >
> > I'll try to set the scope also in client.wsdd, maybe it's what I'm
> missing.
> >
> > Thanks for any further comments/suggestions.
> >
> > 2006/3/16, James Jose <jamejose@in.ibm.com >:
> >
> > Hi,
> >
> >  We are running HandlerTest01 to HandlerTest10.  But here Antoine is
> > referring the scope of the service ..?
> >
> >
> > Regards
> > James
> > --------------------------------------------------
> > James Jose
> > Messaging Clients Team, WMQDDC
> > IBM Software Labs, India
> > Direct: 91-80- 25094331  Ext :2331
> > E-mail: jamejose@in.ibm.com 
> >
>
> >
> > John Hawkins < HAWKINSJ@uk.ibm.com >
> > 03/16/2006 17:50
> >
> > Please respond to
> > "Apache AXIS C User List"
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
> >
>
> >
> >
> >
> >
> >
> >
> >
> > Well, service and global handlers should work for the client and I'm
> > surprised they aren't working for the server. Can you try it in the
> > client and see if you get the same results. James - what tests do we
> > run on handlers nowadays?
>
> >
> > "Antoine Galataud" <antoine.galataud@gmail.com >
> > 16/03/2006 11:38
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
> >
> >
>
> >
> >
> >
> >
> >
> >
> >
> > So, is there any work around to get this feature working ?
> >
> > Thanks for your answer
> >
> > 2006/3/15, Antoine Galataud <antoine.galataud@gmail.com >:
> > Hum, seems scope is not yet correctly implemented (or tested) in 1.
> > 6a.n (solaris) release. Here is my server.wsdd :
> >
> > <service name="IAdminConfiguration" provider="CPP:RPC"
> > description="IAdminConfiguration Web Services">
> >     <parameter name="allowedMethods" value="notifyDictionaryReinit
> > initService"/>
> >     <parameter name="scope" value="application">
> >     <parameter name="className"
> > value="/home/antgalat/apache/webservices/libiadminconfig.so"/>
> > </service>
> >
> > If I do that I get this in the init logs :
> >
> > [15/03/2006 13:40:42:387 MET] 1 WSDDHandler > setScope
> @11cec8,"application"
> >
> > But if I invoke the service, it fails with :
> >
> > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > AxisWsddException @ff0da988,7, <null>
> > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > getMessageForExceptionCode @ff0da988,7
> > [15/03/2006 13:40:49:216 MET] 1 AxisWsddException <
> > getMessageForExceptionCode @ff0da988,"AxisWsddException:Requested
> > service not found"
> >
> > I also tested with request and session scopes, it failed too.
> >
> > 2006/3/9, John Hawkins < HAWKINSJ@uk.ibm.com >:
> >
> > I'll put it this way - it's not tested.
>
> >
> > "Antoine Galataud" <antoine.galataud@gmail.com >
> > 09/03/2006 14:23
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Application, Session or Request scope
> >
> >
> >
> >
> >
>
> >
> >
> >
> >
> >
> >
> >
> >
> > Hi !
> >
> > does Axis 1.6x handle scope ? I tried to add a scope="Application" in
> > my service declaration in server.wsdd, but it doesn't seem to work...
> >
> > Thanks
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> >
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> >
> > --
> >
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen


--
Antoine Galataud
antoine.galataud@gmail.com 
D?partement Architecture des Syst?mes d'Information
INSA - Rouen




-- 
Antoine Galataud
antoine.galataud@gmail.com
D?partement Architecture des Syst?mes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com 
D?partement Architecture des Syst?mes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com
D?partement Architecture des Syst?mes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com
D?partement Architecture des Syst?mes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com
D?partement Architecture des Syst?mes d'Information
INSA - Rouen 




-- 
Antoine Galataud
antoine.galataud@gmail.com
D?partement Architecture des Syst?mes d'Information 
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com
D?partement Architecture des Syst?mes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen 

Re: Application, Session or Request scope

Posted by Antoine Galataud <an...@gmail.com>.
Ok, thanks for your answer,

You talked about cookies, but I think it's not my solution. My problem is
not keeping a session between client and server, cause business objects on
server side are user independant. My problem is that my service
initalization is very long : I need to instanciate several C++ classes, open
DB connections, make several requests, start some other communication
channels with different layers... It takes several seconds to get an answer
to any webservice method.

Do you have any other idea to do that ?

Thanks a lot

2006/3/27, John Hawkins <HA...@uk.ibm.com>:
>
>
> It is not in the roadmap at the moment.
>
>
>
>
>  *"Antoine Galataud" <an...@gmail.com>*
>
> 27/03/2006 12:26
>  Please respond to
> "Apache AXIS C User List" <ax...@ws.apache.org>
>
>   To
> "Apache AXIS C User List" <ax...@ws.apache.org>  cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
> Ok I see. Is it in the Axis C++ roadmap to implement such feature ? It is
> currently well implemented by Axis Java, with this famous scope
> (application/session/request) parameter defined in the deploy.wsdd file...
> It works very well, and it keeps all the web service objects up during all
> the application life (when setting in application scope)
>
> Thanks
>
> 2006/3/27, John Hawkins <*HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com>>:
>
> Now you're talking about maintaining a session.
>
> There is now way to do this "for-free". You could do it by setting cookies
> in the server-code. These cookies could be used to retrieve state from a db
> next call.
>
> Cookies are supported, at some level, in the client but not the server -
> to my knowledge. (they are just transport properties) You might have to add
> some minimal logic into the server-code to do it.
>
>
>
>
>
>   *"Antoine Galataud" <**...@gmail.com>
> *>*
>
> 24/03/2006 13:48
>
>
>   Please respond to
> "Apache AXIS C User List" <*a...@ws.apache.org>
> >
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>
> >  cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
> Ok, so how can I retrieve previously loaded object of my library ? For the
> moment, when I call initService(), I initialize a business object. If I call
> my second web service method notifyDictionary() in the same process (the
> main of my client call this 2 methods), it works (like a session scope). Now
> if call only initService(), then stop my client, then call
> notifyDictionary() in a different client, it fails, because the business
> object has been destroyed.
>
> How can I work around this ? Isn't it the feature "application scope" must
> provide ? Because the only thing I see, is that every server side objects
> are destroyed when the client is destroyed.
>
> 2006/3/24, John Hawkins <*HAWKINSJ@uk.ibm.com * <HA...@uk.ibm.com>>:
>
> The *dlopen* subroutine loads the module specified by *FilePath *into the
> executing process's address space. Dependents of the module are
> automatically loaded as well. If the module is already loaded, i t is not
> loaded again, but a new, unique value will be returned by the *dlopen *subroutine.
>
>
>
>
>   *"Antoine Galataud" <**antoine.galataud@gmail.com** *<an...@gmail.com>
> *>*
>
> 24/03/2006 13:14
>
>
>   Please respond to
> "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>>
> cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
> First call to the method initService() is in log-1.txt, the second call
> (exactly the same, some seconds later) is in log-2.txt.
> I tried with <parameter name="scope" value="application"> of server.wsddfile in some other tests, it didn't change anything.
>
> Thanks
>
> 2006/3/24, John Hawkins <*HAWKINSJ@uk.ibm.com * <HA...@uk.ibm.com>>:
>
> Could you send me the trace pls.
>
>   *"Antoine Galataud" <**antoine.galataud@gmail.com** *<an...@gmail.com>
> *>*
>
> 24/03/2006 11:31
>
>
>   Please respond to
> "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>>
> cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
>
>
> The logs are clear : it does a loadlib each time a method is called
>
> 2006/3/24, John Hawkins <*HAWKINSJ@uk.ibm.com * <HA...@uk.ibm.com>>:
>
> I've not got time to look into this problem but it should not load the
> libs but it might be creating new instances of the objects. Can you confirm
> which?  *"Antoine Galataud" <**antoine.galataud@gmail.com** *<an...@gmail.com>
> *>*
>
> 24/03/2006 10:33
>
>
>   Please respond to
> "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>>
> cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Hi,
>
> Could you confirm that it is a normal behavior that axis engine load libs
> each time a method is called on ? Or is it a mistake in my configuration ?
>
> Thanks
>
> 2006/3/23, Antoine Galataud < *antoine.galataud@gmail.com *<an...@gmail.com>>:
>
> Yes that's it.
>
>
> 2006/3/23, John Hawkins <* HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com>>:
>
> OK,
>
> so let me repeat it back to you so we're clear.
>
> You tested and found that the library is loaded and unloaded on every
> method call?  *"Antoine Galataud" <**antoine.galataud@gmail.com** *<an...@gmail.com>
> *>*
>
> 23/03/2006 09:14
>
>
>   Please respond to
> "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>>
> cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> No, I didn't test it yet. But I realized, reading again Adrian mail and
> looking at wrapper class that it can't be my solution (or just a part of).
> What I'm saying is that the wrapper class is contained in the web service
> library, and is used to initialize and stop the web service with init and
> fini methods. But this doesn't resolve my problem: I want the library loaded
> and run until server shuts down. So what I need is the scope parameter of
> server.wsdd file correctly handled (I tested that it doesn't work), so the
> library is loaded at first request and stays up.
>
> 2006/3/23, John Hawkins <* HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com>>:
>
> Sorry, I'm not clear what you are saying - are you saying that you have
> tested this and the library is loaded each time the service is requested?
> *"Antoine Galataud" <**antoine.galataud@gmail.com** *<an...@gmail.com>
> *>*
>
> 22/03/2006 17:18
>
>
>   Please respond to
> "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>>
> cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Hi,
>
> this a very great manner to initialize my business objects before
> getting a request, but does this help to have the web service library
> loaded once and not unloaded when method returns ?
> I mean, for the moment I can't call a method without having Axis
> loading the web service library (at each call). I need it to load at
> first time, then be up until server (apache) shuts down.
> What you are saying is that library is loaded at first invocation and
> unloaded when server shuts down. But in my case, library is loaded
> each time the service is requested !
>
> Thanks
> 2006/3/21, Adrian Dick <*adrian.dick@uk.ibm.com** *<ad...@uk.ibm.com>
> >:
> > Hi,
> >
> > There is already a mechanism in place to do this.
> >
> > As part of WrapperClassHandler, from which the generated wrapper class
> is
> > inherited, there are the init and fini methods.
> > These methods are called respectively as the service library is loaded
> (ie:
> > first invocation of service) and unloaded (ie: server shutdown).
> >
> > As these methods are virtual, you can override these within the
> generated
> > wrapper class, to do the initialization and clearup activities you
> require.
> >
> >
> > One word of warning, although this has been designed to work in this
> > manner, it hasn't (so far) been tested.
> >
> > Please let us know how you get on with trying this.
> >
> > Regards,
> > Adrian
> > _______________________________________
> > Adrian Dick (*adrian.dick@uk.ibm.com* <ad...@uk.ibm.com> )
> >
> >
> > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>>
> wrote on 21/03/2006
> > 12:43:45:
> >
> > >
> > > Sorry, I haven't been really clear with what I wanted to do. I'll
> > > try to clarify my thoughts a little :
> > >
> > > I get a web service library, that handles the web service technical
> > > part and access to business objects. But my business part is heavy
> > > to initialize, and I want to do it only once, so when a first
> > > request come to the web service, the back end service starts and
> > > replys, then any other request doesn't involve a back end service
> start.
> > >
> > > So what I want to do is, as axis java does, define an application
> > > scope for the web service and get the service running until container
> > stops.
> >
> > > 2006/3/21, John Hawkins < *HAWKINSJ@uk.ibm.com** *<HA...@uk.ibm.com>
> >:
> > >
> > > Antoine,
> > >
> > > Can I clarify what you're trying to do here? Are you trying to have
> > > a stateful session with a particular instance of a service i.e. the
> > > same service gets called twice? Or pass context across the-wire on
> > > subsequent uses of the same stub?
> > >
> > > thanks,
> > > John.
> > >
> > >
> > >
> >
> > >
> > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>
> >
> > > 21/03/2006 09:27
> > >
> > > Please respond to
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Re: Application, Session or Request scope
> > >
> > >
> > >
> > >
> > > Hi !
> > >
> > > I've found no way to solve my scope issue for the moment, I'm still
> > > looking for a way to do this (application scope, not handlers).
> > >
> > > Thanks for any idea !
> > >
> > > 2006/3/16, Antoine Galataud < *antoine.galataud@gmail.com *<an...@gmail.com>
> >:
> > > It doesn't work :
> > >
> > > in fact, I succeeded in getting a session scope, e.g I request the
> > > service 2 times in the same main() client, but I can't have an
> > > application scope. But I don't get the error I described in my
> > > earlier mail, now it gives me nothing. And I'm talking about service
> > > scope, I don't use any handler.
> > >
> > > Thanks for your answer
> > >
> > > 2006/3/16, John Hawkins <*HAWKINSJ@uk.ibm.com** *<HA...@uk.ibm.com>
> >:
> > >
> > > I've just looked at this again and I'm not sure I understand your
> > > question now!
> > >
> > >
> > > If I look at your wsdd file it doesn't look correct to my thoughts
> > > (is it the complete wsdd file?) e.g. this is a client sample wsdd file
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > >
> > > <deployment xmlns="*http://xml.apache.org/axis/wsdd/ *<http://xml.apache.org/axis/wsdd/>"
> xlmns:
> > > C="http//xml.apache.org.axis/wsdd/providers/c">
> > >
> > >  <service name="Handler" provider="CPP:DOCUMENT"
> description="Handler">
> > >
> > >  <requestFlow>
> > >
> > >  <handler name="myClientHandlerReq"
> > > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > > name="myClientHandlerReq"
> > > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> > >
> > >  </handler>
> > >
> > >  </requestFlow>
> > >
> > >  <responseFlow>
> > >
> > >  <handler name="myClientHandlerRes"
> > > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > > name="myClientHandlerRes"
> > > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> > >
> > >  </handler>
> > >
> > >  </responseFlow>
> > >
> > >  </service>
> > >
> > >  </deployment>
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> > >
> > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>
> >
> > > 16/03/2006 12:57
> > >
> > > Please respond to
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Re: Application, Session or Request scope
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > > yes, i'm referring to the service scope. I saw in the doc that I
> > > could set a scope for handlers in response/reauest flows, but I
> > > didn't see anything about service.
> > >
> > > I'll try to set the scope also in client.wsdd, maybe it's what I'm
> > missing.
> > >
> > > Thanks for any further comments/suggestions.
> > >
> > > 2006/3/16, James Jose <*jamejose@in.ibm.com** * <ja...@in.ibm.com>
> >:
> > >
> > > Hi,
> > >
> > >  We are running HandlerTest01 to HandlerTest10.  But here Antoine is
> > > referring the scope of the service ..?
> > >
> > >
> > > Regards
> > > James
> > > --------------------------------------------------
> > > James Jose
> > > Messaging Clients Team, WMQDDC
> > > IBM Software Labs, India
> > > Direct: 91-80- 25094331  Ext :2331
> > > E-mail: *jamejose@in.ibm.com* <ja...@in.ibm.com>
> > >
> >
> > >
> > > John Hawkins < *HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com> >
> > > 03/16/2006 17:50
> > >
> > > Please respond to
> > > "Apache AXIS C User List"
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Re: Application, Session or Request scope
> > >
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Well, service and global handlers should work for the client and I'm
> > > surprised they aren't working for the server. Can you try it in the
> > > client and see if you get the same results. James - what tests do we
> > > run on handlers nowadays?
> >
> > >
> > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>
> >
> > > 16/03/2006 11:38
> > >
> > > Please respond to
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Re: Application, Session or Request scope
> > >
> > >
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > So, is there any work around to get this feature working ?
> > >
> > > Thanks for your answer
> > >
> > > 2006/3/15, Antoine Galataud <*antoine.galataud@gmail.com *<an...@gmail.com>
> >:
> > > Hum, seems scope is not yet correctly implemented (or tested) in 1.
> > > 6a.n (solaris) release. Here is my server.wsdd :
> > >
> > > <service name="IAdminConfiguration" provider="CPP:RPC"
> > > description="IAdminConfiguration Web Services">
> > >     <parameter name="allowedMethods" value="notifyDictionaryReinit
> > > initService"/>
> > >     <parameter name="scope" value="application">
> > >     <parameter name="className"
> > > value="/home/antgalat/apache/webservices/libiadminconfig.so"/>
> > > </service>
> > >
> > > If I do that I get this in the init logs :
> > >
> > > [15/03/2006 13:40:42:387 MET] 1 WSDDHandler > setScope
> > @11cec8,"application"
> > >
> > > But if I invoke the service, it fails with :
> > >
> > > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > > AxisWsddException @ff0da988,7, <null>
> > > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > > getMessageForExceptionCode @ff0da988,7
> > > [15/03/2006 13:40:49:216 MET] 1 AxisWsddException <
> > > getMessageForExceptionCode @ff0da988,"AxisWsddException:Requested
> > > service not found"
> > >
> > > I also tested with request and session scopes, it failed too.
> > >
> > > 2006/3/9, John Hawkins < *HAWKINSJ@uk.ibm.com** *<HA...@uk.ibm.com>
> >:
> > >
> > > I'll put it this way - it's not tested.
> >
> > >
> > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>
> >
> > > 09/03/2006 14:23
> > >
> > > Please respond to
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Application, Session or Request scope
> > >
> > >
> > >
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Hi !
> > >
> > > does Axis 1.6x handle scope ? I tried to add a scope="Application" in
> > > my service declaration in server.wsdd, but it doesn't seem to work...
> > >
> > > Thanks
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > >
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > >
> > > --
> > >
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>



--
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen

Re: Application, Session or Request scope

Posted by Antoine Galataud <an...@gmail.com>.
I forgot : to my knowledge, the "scope" parameter is currently parsed by
axis c++ engine (I see it in the logs). What is it supposed to do ?

Thanks

2006/3/27, Antoine Galataud <an...@gmail.com>:
>
> Ok I see. Is it in the Axis C++ roadmap to implement such feature ? It is
> currently well implemented by Axis Java, with this famous scope
> (application/session/request) parameter defined in the deploy.wsdd file...
> It works very well, and it keeps all the web service objects up during all
> the application life (when setting in application scope)
>
> Thanks
>
> 2006/3/27, John Hawkins <HA...@uk.ibm.com>:
>
> >
> > Now you're talking about maintaining a session.
> >
> > There is now way to do this "for-free". You could do it by setting
> > cookies in the server-code. These cookies could be used to retrieve state
> > from a db next call.
> >
> > Cookies are supported, at some level, in the client but not the server -
> > to my knowledge. (they are just transport properties) You might have to add
> > some minimal logic into the server-code to do it.
> >
> >
> >
> >
> >
> >
> >  *"Antoine Galataud" <an...@gmail.com>*
> >
> > 24/03/2006 13:48
> >  Please respond to
> > "Apache AXIS C User List" <ax...@ws.apache.org>
> >
> >   To
> > "Apache AXIS C User List" <ax...@ws.apache.org>  cc
> >
> >  Subject
> > Re: Application, Session or Request scope
> >
> >
> >
> >
> >
> >
> > Ok, so how can I retrieve previously loaded object of my library ? For
> > the moment, when I call initService(), I initialize a business object. If I
> > call my second web service method notifyDictionary() in the same process
> > (the main of my client call this 2 methods), it works (like a session
> > scope). Now if call only initService(), then stop my client, then call
> > notifyDictionary() in a different client, it fails, because the business
> > object has been destroyed.
> >
> > How can I work around this ? Isn't it the feature "application scope"
> > must provide ? Because the only thing I see, is that every server side
> > objects are destroyed when the client is destroyed.
> >
> > 2006/3/24, John Hawkins <*HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com>>:
> >
> > The *dlopen* subroutine loads the module specified by *FilePath *into
> > the executing process's address space. Dependents of the module are
> > automatically loaded as well. If the module is already loaded, i t is not
> > loaded again, but a new, unique value will be returned by the *dlopen *subroutine.
> >
> >
> >
> >
> >
> >   *"Antoine Galataud" <**antoine.galataud@gmail.com*
> > <an...@gmail.com>*>*
> >
> > 24/03/2006 13:14
> >
> >
> >   Please respond to
> > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> > >
> >
> >   To
> > "Apache AXIS C User List" <*a...@ws.apache.org>>
> > cc
> >
> >  Subject
> > Re: Application, Session or Request scope
> >
> >
> >
> >
> >
> >
> >
> >
> > First call to the method initService() is in log-1.txt, the second call
> > (exactly the same, some seconds later) is in log-2.txt.
> > I tried with <parameter name="scope" value="application"> of server.wsddfile in some other tests, it didn't change anything.
> >
> > Thanks
> >
> > 2006/3/24, John Hawkins <*HAWKINSJ@uk.ibm.com * <HA...@uk.ibm.com>>:
> >
> > Could you send me the trace pls.
> >
> >
> >   *"Antoine Galataud" <**antoine.galataud@gmail.com* * *<an...@gmail.com>
> > *>*
> >
> > 24/03/2006 11:31
> >
> >
> >   Please respond to
> > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> > >
> >
> >
> >   To
> > "Apache AXIS C User List" <*a...@ws.apache.org>>
> > cc
> >
> >  Subject
> > Re: Application, Session or Request scope
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > The logs are clear : it does a loadlib each time a method is called
> >
> > 2006/3/24, John Hawkins <*HAWKINSJ@uk.ibm.com * <HA...@uk.ibm.com>>:
> >
> > I've not got time to look into this problem but it should not load the
> > libs but it might be creating new instances of the objects. Can you confirm
> > which?
> >   *"Antoine Galataud" <**antoine.galataud@gmail.com* * *<an...@gmail.com>
> > *>*
> >
> > 24/03/2006 10:33
> >
> >
> >   Please respond to
> > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> > >
> >
> >
> >   To
> > "Apache AXIS C User List" <*a...@ws.apache.org>>
> > cc
> >
> >  Subject
> > Re: Application, Session or Request scope
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Hi,
> >
> > Could you confirm that it is a normal behavior that axis engine load
> > libs each time a method is called on ? Or is it a mistake in my
> > configuration ?
> >
> > Thanks
> >
> > 2006/3/23, Antoine Galataud < *antoine.galataud@gmail.com *<an...@gmail.com>>:
> >
> > Yes that's it.
> >
> >
> > 2006/3/23, John Hawkins <* HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com>>:
> >
> > OK,
> >
> > so let me repeat it back to you so we're clear.
> >
> > You tested and found that the library is loaded and unloaded on every
> > method call?
> >   *"Antoine Galataud" <**antoine.galataud@gmail.com* * *<an...@gmail.com>
> > *>*
> >
> > 23/03/2006 09:14
> >
> >
> >   Please respond to
> > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> > >
> >
> >
> >   To
> > "Apache AXIS C User List" <*a...@ws.apache.org>>
> > cc
> >
> >  Subject
> > Re: Application, Session or Request scope
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > No, I didn't test it yet. But I realized, reading again Adrian mail and
> > looking at wrapper class that it can't be my solution (or just a part of).
> > What I'm saying is that the wrapper class is contained in the web service
> > library, and is used to initialize and stop the web service with init and
> > fini methods. But this doesn't resolve my problem: I want the library loaded
> > and run until server shuts down. So what I need is the scope parameter of
> > server.wsdd file correctly handled (I tested that it doesn't work), so
> > the library is loaded at first request and stays up.
> >
> > 2006/3/23, John Hawkins <* HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com>>:
> >
> > Sorry, I'm not clear what you are saying - are you saying that you have
> > tested this and the library is loaded each time the service is requested?
> > *"Antoine Galataud" <**antoine.galataud@gmail.com* * *<an...@gmail.com>
> > *>*
> >
> > 22/03/2006 17:18
> >
> >
> >   Please respond to
> > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> > >
> >
> >
> >   To
> > "Apache AXIS C User List" <*a...@ws.apache.org>>
> > cc
> >
> >  Subject
> > Re: Application, Session or Request scope
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Hi,
> >
> > this a very great manner to initialize my business objects before
> > getting a request, but does this help to have the web service library
> > loaded once and not unloaded when method returns ?
> > I mean, for the moment I can't call a method without having Axis
> > loading the web service library (at each call). I need it to load at
> > first time, then be up until server (apache) shuts down.
> > What you are saying is that library is loaded at first invocation and
> > unloaded when server shuts down. But in my case, library is loaded
> > each time the service is requested !
> >
> > Thanks
> > 2006/3/21, Adrian Dick <*adrian.dick@uk.ibm.com* * *<ad...@uk.ibm.com>
> > >:
> > > Hi,
> > >
> > > There is already a mechanism in place to do this.
> > >
> > > As part of WrapperClassHandler, from which the generated wrapper class
> > is
> > > inherited, there are the init and fini methods.
> > > These methods are called respectively as the service library is loaded
> > (ie:
> > > first invocation of service) and unloaded (ie: server shutdown).
> > >
> > > As these methods are virtual, you can override these within the
> > generated
> > > wrapper class, to do the initialization and clearup activities you
> > require.
> > >
> > >
> > > One word of warning, although this has been designed to work in this
> > > manner, it hasn't (so far) been tested.
> > >
> > > Please let us know how you get on with trying this.
> > >
> > > Regards,
> > > Adrian
> > > _______________________________________
> > > Adrian Dick (*adrian.dick@uk.ibm.com* <ad...@uk.ibm.com> )
> > >
> > >
> > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>>
> > wrote on 21/03/2006
> > > 12:43:45:
> > >
> > > >
> > > > Sorry, I haven't been really clear with what I wanted to do. I'll
> > > > try to clarify my thoughts a little :
> > > >
> > > > I get a web service library, that handles the web service technical
> > > > part and access to business objects. But my business part is heavy
> > > > to initialize, and I want to do it only once, so when a first
> > > > request come to the web service, the back end service starts and
> > > > replys, then any other request doesn't involve a back end service
> > start.
> > > >
> > > > So what I want to do is, as axis java does, define an application
> > > > scope for the web service and get the service running until
> > container
> > > stops.
> > >
> > > > 2006/3/21, John Hawkins < *HAWKINSJ@uk.ibm.com* * *<HA...@uk.ibm.com>
> > >:
> > > >
> > > > Antoine,
> > > >
> > > > Can I clarify what you're trying to do here? Are you trying to have
> > > > a stateful session with a particular instance of a service i.e. the
> > > > same service gets called twice? Or pass context across the-wire on
> > > > subsequent uses of the same stub?
> > > >
> > > > thanks,
> > > > John.
> > > >
> > > >
> > > >
> > >
> > > >
> > > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>
> > >
> > > > 21/03/2006 09:27
> > > >
> > > > Please respond to
> > > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> > >
> > > >
> > > > To
> > > >
> > > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> > >
> > > >
> > > > cc
> > > >
> > > > Subject
> > > >
> > > > Re: Application, Session or Request scope
> > > >
> > > >
> > > >
> > > >
> > > > Hi !
> > > >
> > > > I've found no way to solve my scope issue for the moment, I'm still
> > > > looking for a way to do this (application scope, not handlers).
> > > >
> > > > Thanks for any idea !
> > > >
> > > > 2006/3/16, Antoine Galataud < *antoine.galataud@gmail.com *<an...@gmail.com>
> > >:
> > > > It doesn't work :
> > > >
> > > > in fact, I succeeded in getting a session scope, e.g I request the
> > > > service 2 times in the same main() client, but I can't have an
> > > > application scope. But I don't get the error I described in my
> > > > earlier mail, now it gives me nothing. And I'm talking about service
> > > > scope, I don't use any handler.
> > > >
> > > > Thanks for your answer
> > > >
> > > > 2006/3/16, John Hawkins <*HAWKINSJ@uk.ibm.com* * *<HA...@uk.ibm.com>
> > >:
> > > >
> > > > I've just looked at this again and I'm not sure I understand your
> > > > question now!
> > > >
> > > >
> > > > If I look at your wsdd file it doesn't look correct to my thoughts
> > > > (is it the complete wsdd file?) e.g. this is a client sample wsdd
> > file
> > > >
> > > > <?xml version="1.0" encoding="UTF-8"?>
> > > >
> > > > <deployment xmlns="*http://xml.apache.org/axis/wsdd/ *<http://xml.apache.org/axis/wsdd/>"
> > xlmns:
> > > > C="http//xml.apache.org.axis/wsdd/providers/c">
> > > >
> > > >  <service name="Handler" provider="CPP:DOCUMENT"
> > description="Handler">
> > > >
> > > >  <requestFlow>
> > > >
> > > >  <handler name="myClientHandlerReq"
> > > > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > > > name="myClientHandlerReq"
> > > > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> > > >
> > > >  </handler>
> > > >
> > > >  </requestFlow>
> > > >
> > > >  <responseFlow>
> > > >
> > > >  <handler name="myClientHandlerRes"
> > > > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > > > name="myClientHandlerRes"
> > > > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> > > >
> > > >  </handler>
> > > >
> > > >  </responseFlow>
> > > >
> > > >  </service>
> > > >
> > > >  </deployment>
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > > >
> > > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>
> > >
> > > > 16/03/2006 12:57
> > > >
> > > > Please respond to
> > > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> > >
> > > >
> > > > To
> > > >
> > > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> > >
> > > >
> > > > cc
> > > >
> > > > Subject
> > > >
> > > > Re: Application, Session or Request scope
> > > >
> > > >
> > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > yes, i'm referring to the service scope. I saw in the doc that I
> > > > could set a scope for handlers in response/reauest flows, but I
> > > > didn't see anything about service.
> > > >
> > > > I'll try to set the scope also in client.wsdd, maybe it's what I'm
> > > missing.
> > > >
> > > > Thanks for any further comments/suggestions.
> > > >
> > > > 2006/3/16, James Jose <*jamejose@in.ibm.com* * *<ja...@in.ibm.com>
> > >:
> > > >
> > > > Hi,
> > > >
> > > >  We are running HandlerTest01 to HandlerTest10.  But here Antoine is
> > > > referring the scope of the service ..?
> > > >
> > > >
> > > > Regards
> > > > James
> > > > --------------------------------------------------
> > > > James Jose
> > > > Messaging Clients Team, WMQDDC
> > > > IBM Software Labs, India
> > > > Direct: 91-80- 25094331  Ext :2331
> > > > E-mail: *jamejose@in.ibm.com* <ja...@in.ibm.com>
> > > >
> > >
> > > >
> > > > John Hawkins < *HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com> >
> > > > 03/16/2006 17:50
> > > >
> > > > Please respond to
> > > > "Apache AXIS C User List"
> > > >
> > > > To
> > > >
> > > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> > >
> > > >
> > > > cc
> > > >
> > > > Subject
> > > >
> > > > Re: Application, Session or Request scope
> > > >
> > > >
> > > >
> > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Well, service and global handlers should work for the client and I'm
> > > > surprised they aren't working for the server. Can you try it in the
> > > > client and see if you get the same results. James - what tests do we
> > > > run on handlers nowadays?
> > >
> > > >
> > > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>
> > >
> > > > 16/03/2006 11:38
> > > >
> > > > Please respond to
> > > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> > >
> > > >
> > > > To
> > > >
> > > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> > >
> > > >
> > > > cc
> > > >
> > > > Subject
> > > >
> > > > Re: Application, Session or Request scope
> > > >
> > > >
> > > >
> > > >
> > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > So, is there any work around to get this feature working ?
> > > >
> > > > Thanks for your answer
> > > >
> > > > 2006/3/15, Antoine Galataud <*antoine.galataud@gmail.com *<an...@gmail.com>
> > >:
> > > > Hum, seems scope is not yet correctly implemented (or tested) in 1.
> > > > 6a.n (solaris) release. Here is my server.wsdd :
> > > >
> > > > <service name="IAdminConfiguration" provider="CPP:RPC"
> > > > description="IAdminConfiguration Web Services">
> > > >     <parameter name="allowedMethods" value="notifyDictionaryReinit
> > > > initService"/>
> > > >     <parameter name="scope" value="application">
> > > >     <parameter name="className"
> > > > value="/home/antgalat/apache/webservices/libiadminconfig.so"/>
> > > > </service>
> > > >
> > > > If I do that I get this in the init logs :
> > > >
> > > > [15/03/2006 13:40:42:387 MET] 1 WSDDHandler > setScope
> > > @11cec8,"application"
> > > >
> > > > But if I invoke the service, it fails with :
> > > >
> > > > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > > > AxisWsddException @ff0da988,7, <null>
> > > > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > > > getMessageForExceptionCode @ff0da988,7
> > > > [15/03/2006 13:40:49:216 MET] 1 AxisWsddException <
> > > > getMessageForExceptionCode @ff0da988,"AxisWsddException:Requested
> > > > service not found"
> > > >
> > > > I also tested with request and session scopes, it failed too.
> > > >
> > > > 2006/3/9, John Hawkins < *HAWKINSJ@uk.ibm.com* * *<HA...@uk.ibm.com>
> > >:
> > > >
> > > > I'll put it this way - it's not tested.
> > >
> > > >
> > > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>
> > >
> > > > 09/03/2006 14:23
> > > >
> > > > Please respond to
> > > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> > >
> > > >
> > > > To
> > > >
> > > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> > >
> > > >
> > > > cc
> > > >
> > > > Subject
> > > >
> > > > Application, Session or Request scope
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Hi !
> > > >
> > > > does Axis 1.6x handle scope ? I tried to add a scope="Application"
> > in
> > > > my service declaration in server.wsdd, but it doesn't seem to
> > work...
> > > >
> > > > Thanks
> > > > --
> > > > Antoine Galataud
> > > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > >
> > > > D�partement Architecture des Syst�mes d'Information
> > > > INSA - Rouen
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > >
> > > > Antoine Galataud
> > > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > > D�partement Architecture des Syst�mes d'Information
> > > > INSA - Rouen
> > > >
> > > >
> > > >
> > > > --
> > > > Antoine Galataud
> > > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > > D�partement Architecture des Syst�mes d'Information
> > > > INSA - Rouen
> > > >
> > > >
> > > >
> > > > --
> > > > Antoine Galataud
> > > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > > D�partement Architecture des Syst�mes d'Information
> > > > INSA - Rouen
> > > >
> > > >
> > > >
> > > > --
> > > > Antoine Galataud
> > > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > > D�partement Architecture des Syst�mes d'Information
> > > > INSA - Rouen
> > > >
> > > >
> > > >
> > > > --
> > > > Antoine Galataud
> > > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > > D�partement Architecture des Syst�mes d'Information
> > > > INSA - Rouen
> > > >
> > > >
> > > >
> > > > --
> > > > Antoine Galataud
> > > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > > D�partement Architecture des Syst�mes d'Information
> > > > INSA - Rouen
> >
> >
> > --
> > Antoine Galataud*
> > **antoine.galataud@gmail.com* <an...@gmail.com>
> > D�partement Architecture des Syst�mes d'Information
> > INSA - Rouen
> >
> >
> >
> >
> > --
> > Antoine Galataud*
> > **antoine.galataud@gmail.com* <an...@gmail.com>
> > D�partement Architecture des Syst�mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud*
> > **antoine.galataud@gmail.com* <an...@gmail.com>
> > D�partement Architecture des Syst�mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud*
> > **antoine.galataud@gmail.com* <an...@gmail.com>
> > D�partement Architecture des Syst�mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud*
> > **antoine.galataud@gmail.com* <an...@gmail.com>
> > D�partement Architecture des Syst�mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud*
> > **antoine.galataud@gmail.com* <an...@gmail.com>
> > D�partement Architecture des Syst�mes d'Information
> > INSA - Rouen
> >
> >
> >
> >
> > --
> > Antoine Galataud*
> > **antoine.galataud@gmail.com* <an...@gmail.com>
> > D�partement Architecture des Syst�mes d'Information
> > INSA - Rouen
> >
>
>
>
> --
>
> Antoine Galataud
> antoine.galataud@gmail.com
> Département Architecture des Systèmes d'Information
> INSA - Rouen
>



--
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen

Re: Application, Session or Request scope

Posted by John Hawkins <HA...@uk.ibm.com>.
It is not in the roadmap at the moment.





"Antoine Galataud" <an...@gmail.com> 
27/03/2006 12:26
Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>


To
"Apache AXIS C User List" <ax...@ws.apache.org>
cc

Subject
Re: Application, Session or Request scope






Ok I see. Is it in the Axis C++ roadmap to implement such feature ? It is 
currently well implemented by Axis Java, with this famous scope 
(application/session/request) parameter defined in the deploy.wsdd file... 
It works very well, and it keeps all the web service objects up during all 
the application life (when setting in application scope) 

Thanks

2006/3/27, John Hawkins <HA...@uk.ibm.com>:

Now you're talking about maintaining a session. 

There is now way to do this "for-free". You could do it by setting cookies 
in the server-code. These cookies could be used to retrieve state from a 
db next call. 

Cookies are supported, at some level, in the client but not the server - 
to my knowledge. (they are just transport properties) You might have to 
add some minimal logic into the server-code to do it. 







"Antoine Galataud" <an...@gmail.com> 
24/03/2006 13:48 


Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>


To
"Apache AXIS C User List" <ax...@ws.apache.org> 
cc

Subject
Re: Application, Session or Request scope








Ok, so how can I retrieve previously loaded object of my library ? For the 
moment, when I call initService(), I initialize a business object. If I 
call my second web service method notifyDictionary() in the same process 
(the main of my client call this 2 methods), it works (like a session 
scope). Now if call only initService(), then stop my client, then call 
notifyDictionary() in a different client, it fails, because the business 
object has been destroyed. 

How can I work around this ? Isn't it the feature "application scope" must 
provide ? Because the only thing I see, is that every server side objects 
are destroyed when the client is destroyed.

2006/3/24, John Hawkins <HAWKINSJ@uk.ibm.com >: 

The dlopen subroutine loads the module specified by FilePath into the 
executing process's address space. Dependents of the module are 
automatically loaded as well. If the module is already loaded, i t is not 
loaded again, but a new, unique value will be returned by the dlopen 
subroutine. 




"Antoine Galataud" <antoine.galataud@gmail.com > 
24/03/2006 13:14 


Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org >



To
"Apache AXIS C User List" <axis-c-user@ws.apache.org > 
cc

Subject
Re: Application, Session or Request scope










First call to the method initService() is in log-1.txt, the second call 
(exactly the same, some seconds later) is in log-2.txt.
I tried with <parameter name="scope" value="application"> of server.wsdd 
file in some other tests, it didn't change anything.

Thanks

2006/3/24, John Hawkins <HAWKINSJ@uk.ibm.com >: 

Could you send me the trace pls. 


"Antoine Galataud" <antoine.galataud@gmail.com > 
24/03/2006 11:31 


Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org >



To
"Apache AXIS C User List" <axis-c-user@ws.apache.org > 
cc

Subject
Re: Application, Session or Request scope












The logs are clear : it does a loadlib each time a method is called

2006/3/24, John Hawkins <HAWKINSJ@uk.ibm.com >: 

I've not got time to look into this problem but it should not load the 
libs but it might be creating new instances of the objects. Can you 
confirm which? 
"Antoine Galataud" <antoine.galataud@gmail.com > 
24/03/2006 10:33 


Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org >



To
"Apache AXIS C User List" <axis-c-user@ws.apache.org > 
cc

Subject
Re: Application, Session or Request scope














Hi,

Could you confirm that it is a normal behavior that axis engine load libs 
each time a method is called on ? Or is it a mistake in my configuration ?

Thanks

2006/3/23, Antoine Galataud < antoine.galataud@gmail.com >: 
Yes that's it. 


2006/3/23, John Hawkins < HAWKINSJ@uk.ibm.com>: 

OK, 

so let me repeat it back to you so we're clear. 

You tested and found that the library is loaded and unloaded on every 
method call? 
"Antoine Galataud" <antoine.galataud@gmail.com > 
23/03/2006 09:14 


Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org >



To
"Apache AXIS C User List" <axis-c-user@ws.apache.org > 
cc

Subject
Re: Application, Session or Request scope
















No, I didn't test it yet. But I realized, reading again Adrian mail and 
looking at wrapper class that it can't be my solution (or just a part of). 
What I'm saying is that the wrapper class is contained in the web service 
library, and is used to initialize and stop the web service with init and 
fini methods. But this doesn't resolve my problem: I want the library 
loaded and run until server shuts down. So what I need is the scope 
parameter of server.wsdd file correctly handled (I tested that it doesn't 
work), so the library is loaded at first request and stays up.

2006/3/23, John Hawkins < HAWKINSJ@uk.ibm.com>: 

Sorry, I'm not clear what you are saying - are you saying that you have 
tested this and the library is loaded each time the service is requested? 
"Antoine Galataud" <antoine.galataud@gmail.com > 
22/03/2006 17:18 


Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org >



To
"Apache AXIS C User List" <axis-c-user@ws.apache.org > 
cc

Subject
Re: Application, Session or Request scope


















Hi,

this a very great manner to initialize my business objects before
getting a request, but does this help to have the web service library
loaded once and not unloaded when method returns ?
I mean, for the moment I can't call a method without having Axis
loading the web service library (at each call). I need it to load at
first time, then be up until server (apache) shuts down.
What you are saying is that library is loaded at first invocation and
unloaded when server shuts down. But in my case, library is loaded
each time the service is requested !

Thanks
2006/3/21, Adrian Dick <adrian.dick@uk.ibm.com >:
> Hi,
>
> There is already a mechanism in place to do this.
>
> As part of WrapperClassHandler, from which the generated wrapper class 
is
> inherited, there are the init and fini methods.
> These methods are called respectively as the service library is loaded 
(ie:
> first invocation of service) and unloaded (ie: server shutdown).
>
> As these methods are virtual, you can override these within the 
generated
> wrapper class, to do the initialization and clearup activities you 
require.
>
>
> One word of warning, although this has been designed to work in this
> manner, it hasn't (so far) been tested.
>
> Please let us know how you get on with trying this.
>
> Regards,
> Adrian
> _______________________________________
> Adrian Dick (adrian.dick@uk.ibm.com )
>
>
> "Antoine Galataud" <antoine.galataud@gmail.com > wrote on 21/03/2006
> 12:43:45:
>
> >
> > Sorry, I haven't been really clear with what I wanted to do. I'll
> > try to clarify my thoughts a little :
> >
> > I get a web service library, that handles the web service technical
> > part and access to business objects. But my business part is heavy
> > to initialize, and I want to do it only once, so when a first
> > request come to the web service, the back end service starts and
> > replys, then any other request doesn't involve a back end service 
start.
> >
> > So what I want to do is, as axis java does, define an application
> > scope for the web service and get the service running until container
> stops.
>
> > 2006/3/21, John Hawkins < HAWKINSJ@uk.ibm.com >:
> >
> > Antoine,
> >
> > Can I clarify what you're trying to do here? Are you trying to have
> > a stateful session with a particular instance of a service i.e. the
> > same service gets called twice? Or pass context across the-wire on
> > subsequent uses of the same stub?
> >
> > thanks,
> > John.
> >
> >
> >
>
> >
> > "Antoine Galataud" <antoine.galataud@gmail.com >
> > 21/03/2006 09:27
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
> >
> >
> > Hi !
> >
> > I've found no way to solve my scope issue for the moment, I'm still
> > looking for a way to do this (application scope, not handlers).
> >
> > Thanks for any idea !
> >
> > 2006/3/16, Antoine Galataud < antoine.galataud@gmail.com >:
> > It doesn't work :
> >
> > in fact, I succeeded in getting a session scope, e.g I request the
> > service 2 times in the same main() client, but I can't have an
> > application scope. But I don't get the error I described in my
> > earlier mail, now it gives me nothing. And I'm talking about service
> > scope, I don't use any handler.
> >
> > Thanks for your answer
> >
> > 2006/3/16, John Hawkins <HAWKINSJ@uk.ibm.com >:
> >
> > I've just looked at this again and I'm not sure I understand your
> > question now!
> >
> >
> > If I look at your wsdd file it doesn't look correct to my thoughts
> > (is it the complete wsdd file?) e.g. this is a client sample wsdd file
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> >
> > <deployment xmlns="http://xml.apache.org/axis/wsdd/ " xlmns:
> > C="http//xml.apache.org.axis/wsdd/providers/c">
> >
> >  <service name="Handler" provider="CPP:DOCUMENT" 
description="Handler">
> >
> >  <requestFlow>
> >
> >  <handler name="myClientHandlerReq"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > name="myClientHandlerReq"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> >
> >  </handler>
> >
> >  </requestFlow>
> >
> >  <responseFlow>
> >
> >  <handler name="myClientHandlerRes"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > name="myClientHandlerRes"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> >
> >  </handler>
> >
> >  </responseFlow>
> >
> >  </service>
> >
> >  </deployment>
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
> >
> > "Antoine Galataud" <antoine.galataud@gmail.com >
> > 16/03/2006 12:57
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
>
> >
> >
> >
> >
> >
> > yes, i'm referring to the service scope. I saw in the doc that I
> > could set a scope for handlers in response/reauest flows, but I
> > didn't see anything about service.
> >
> > I'll try to set the scope also in client.wsdd, maybe it's what I'm
> missing.
> >
> > Thanks for any further comments/suggestions.
> >
> > 2006/3/16, James Jose <jamejose@in.ibm.com >:
> >
> > Hi,
> >
> >  We are running HandlerTest01 to HandlerTest10.  But here Antoine is
> > referring the scope of the service ..?
> >
> >
> > Regards
> > James
> > --------------------------------------------------
> > James Jose
> > Messaging Clients Team, WMQDDC
> > IBM Software Labs, India
> > Direct: 91-80- 25094331  Ext :2331
> > E-mail: jamejose@in.ibm.com 
> >
>
> >
> > John Hawkins < HAWKINSJ@uk.ibm.com >
> > 03/16/2006 17:50
> >
> > Please respond to
> > "Apache AXIS C User List"
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
> >
>
> >
> >
> >
> >
> >
> >
> >
> > Well, service and global handlers should work for the client and I'm
> > surprised they aren't working for the server. Can you try it in the
> > client and see if you get the same results. James - what tests do we
> > run on handlers nowadays?
>
> >
> > "Antoine Galataud" <antoine.galataud@gmail.com >
> > 16/03/2006 11:38
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
> >
> >
>
> >
> >
> >
> >
> >
> >
> >
> > So, is there any work around to get this feature working ?
> >
> > Thanks for your answer
> >
> > 2006/3/15, Antoine Galataud <antoine.galataud@gmail.com >:
> > Hum, seems scope is not yet correctly implemented (or tested) in 1.
> > 6a.n (solaris) release. Here is my server.wsdd :
> >
> > <service name="IAdminConfiguration" provider="CPP:RPC"
> > description="IAdminConfiguration Web Services">
> >     <parameter name="allowedMethods" value="notifyDictionaryReinit
> > initService"/>
> >     <parameter name="scope" value="application">
> >     <parameter name="className"
> > value="/home/antgalat/apache/webservices/libiadminconfig.so"/>
> > </service>
> >
> > If I do that I get this in the init logs :
> >
> > [15/03/2006 13:40:42:387 MET] 1 WSDDHandler > setScope
> @11cec8,"application"
> >
> > But if I invoke the service, it fails with :
> >
> > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > AxisWsddException @ff0da988,7, <null>
> > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > getMessageForExceptionCode @ff0da988,7
> > [15/03/2006 13:40:49:216 MET] 1 AxisWsddException <
> > getMessageForExceptionCode @ff0da988,"AxisWsddException:Requested
> > service not found"
> >
> > I also tested with request and session scopes, it failed too.
> >
> > 2006/3/9, John Hawkins < HAWKINSJ@uk.ibm.com >:
> >
> > I'll put it this way - it's not tested.
>
> >
> > "Antoine Galataud" <antoine.galataud@gmail.com >
> > 09/03/2006 14:23
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Application, Session or Request scope
> >
> >
> >
> >
> >
>
> >
> >
> >
> >
> >
> >
> >
> >
> > Hi !
> >
> > does Axis 1.6x handle scope ? I tried to add a scope="Application" in
> > my service declaration in server.wsdd, but it doesn't seem to work...
> >
> > Thanks
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> >
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> >
> > --
> >
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen


--
Antoine Galataud
antoine.galataud@gmail.com 
D?partement Architecture des Syst?mes d'Information
INSA - Rouen




-- 
Antoine Galataud
antoine.galataud@gmail.com
D?partement Architecture des Syst?mes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com 
D?partement Architecture des Syst?mes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com
D?partement Architecture des Syst?mes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com
D?partement Architecture des Syst?mes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com
D?partement Architecture des Syst?mes d'Information
INSA - Rouen 




-- 
Antoine Galataud
antoine.galataud@gmail.com
D?partement Architecture des Syst?mes d'Information 
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen 

Re: Application, Session or Request scope

Posted by Antoine Galataud <an...@gmail.com>.
Ok I see. Is it in the Axis C++ roadmap to implement such feature ? It is
currently well implemented by Axis Java, with this famous scope
(application/session/request) parameter defined in the deploy.wsdd file...
It works very well, and it keeps all the web service objects up during all
the application life (when setting in application scope)

Thanks

2006/3/27, John Hawkins <HA...@uk.ibm.com>:
>
>
> Now you're talking about maintaining a session.
>
> There is now way to do this "for-free". You could do it by setting cookies
> in the server-code. These cookies could be used to retrieve state from a db
> next call.
>
> Cookies are supported, at some level, in the client but not the server -
> to my knowledge. (they are just transport properties) You might have to add
> some minimal logic into the server-code to do it.
>
>
>
>
>
>
>  *"Antoine Galataud" <an...@gmail.com>*
>
> 24/03/2006 13:48
>  Please respond to
> "Apache AXIS C User List" <ax...@ws.apache.org>
>
>   To
> "Apache AXIS C User List" <ax...@ws.apache.org>  cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
> Ok, so how can I retrieve previously loaded object of my library ? For the
> moment, when I call initService(), I initialize a business object. If I call
> my second web service method notifyDictionary() in the same process (the
> main of my client call this 2 methods), it works (like a session scope). Now
> if call only initService(), then stop my client, then call
> notifyDictionary() in a different client, it fails, because the business
> object has been destroyed.
>
> How can I work around this ? Isn't it the feature "application scope" must
> provide ? Because the only thing I see, is that every server side objects
> are destroyed when the client is destroyed.
>
> 2006/3/24, John Hawkins <*HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com>>:
>
> The *dlopen* subroutine loads the module specified by *FilePath *into the
> executing process's address space. Dependents of the module are
> automatically loaded as well. If the module is already loaded, i t is not
> loaded again, but a new, unique value will be returned by the *dlopen *subroutine.
>
>
>
>
>
>   *"Antoine Galataud" <**...@gmail.com>
> *>*
>
> 24/03/2006 13:14
>
>
>   Please respond to
> "Apache AXIS C User List" <*a...@ws.apache.org>
> >
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>
> >  cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
> First call to the method initService() is in log-1.txt, the second call
> (exactly the same, some seconds later) is in log-2.txt.
> I tried with <parameter name="scope" value="application"> of server.wsddfile in some other tests, it didn't change anything.
>
> Thanks
>
> 2006/3/24, John Hawkins <*HAWKINSJ@uk.ibm.com * <HA...@uk.ibm.com>>:
>
> Could you send me the trace pls.
>
>
>   *"Antoine Galataud" <**antoine.galataud@gmail.com** *<an...@gmail.com>
> *>*
>
> 24/03/2006 11:31
>
>
>   Please respond to
> "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>>
> cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
> The logs are clear : it does a loadlib each time a method is called
>
> 2006/3/24, John Hawkins <*HAWKINSJ@uk.ibm.com * <HA...@uk.ibm.com>>:
>
> I've not got time to look into this problem but it should not load the
> libs but it might be creating new instances of the objects. Can you confirm
> which?
>   *"Antoine Galataud" <**antoine.galataud@gmail.com** *<an...@gmail.com>
> *>*
>
> 24/03/2006 10:33
>
>
>   Please respond to
> "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>>
> cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
>
>
> Hi,
>
> Could you confirm that it is a normal behavior that axis engine load libs
> each time a method is called on ? Or is it a mistake in my configuration ?
>
> Thanks
>
> 2006/3/23, Antoine Galataud < *antoine.galataud@gmail.com *<an...@gmail.com>>:
>
> Yes that's it.
>
>
> 2006/3/23, John Hawkins <* HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com>>:
>
> OK,
>
> so let me repeat it back to you so we're clear.
>
> You tested and found that the library is loaded and unloaded on every
> method call?
>   *"Antoine Galataud" <**antoine.galataud@gmail.com** *<an...@gmail.com>
> *>*
>
> 23/03/2006 09:14
>
>
>   Please respond to
> "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>>
> cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> No, I didn't test it yet. But I realized, reading again Adrian mail and
> looking at wrapper class that it can't be my solution (or just a part of).
> What I'm saying is that the wrapper class is contained in the web service
> library, and is used to initialize and stop the web service with init and
> fini methods. But this doesn't resolve my problem: I want the library loaded
> and run until server shuts down. So what I need is the scope parameter of
> server.wsdd file correctly handled (I tested that it doesn't work), so the
> library is loaded at first request and stays up.
>
> 2006/3/23, John Hawkins <* HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com>>:
>
> Sorry, I'm not clear what you are saying - are you saying that you have
> tested this and the library is loaded each time the service is requested?
> *"Antoine Galataud" <**antoine.galataud@gmail.com** *<an...@gmail.com>
> *>*
>
> 22/03/2006 17:18
>
>
>   Please respond to
> "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>>
> cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Hi,
>
> this a very great manner to initialize my business objects before
> getting a request, but does this help to have the web service library
> loaded once and not unloaded when method returns ?
> I mean, for the moment I can't call a method without having Axis
> loading the web service library (at each call). I need it to load at
> first time, then be up until server (apache) shuts down.
> What you are saying is that library is loaded at first invocation and
> unloaded when server shuts down. But in my case, library is loaded
> each time the service is requested !
>
> Thanks
> 2006/3/21, Adrian Dick <*adrian.dick@uk.ibm.com** *<ad...@uk.ibm.com>
> >:
> > Hi,
> >
> > There is already a mechanism in place to do this.
> >
> > As part of WrapperClassHandler, from which the generated wrapper class
> is
> > inherited, there are the init and fini methods.
> > These methods are called respectively as the service library is loaded
> (ie:
> > first invocation of service) and unloaded (ie: server shutdown).
> >
> > As these methods are virtual, you can override these within the
> generated
> > wrapper class, to do the initialization and clearup activities you
> require.
> >
> >
> > One word of warning, although this has been designed to work in this
> > manner, it hasn't (so far) been tested.
> >
> > Please let us know how you get on with trying this.
> >
> > Regards,
> > Adrian
> > _______________________________________
> > Adrian Dick (*adrian.dick@uk.ibm.com* <ad...@uk.ibm.com> )
> >
> >
> > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>>
> wrote on 21/03/2006
> > 12:43:45:
> >
> > >
> > > Sorry, I haven't been really clear with what I wanted to do. I'll
> > > try to clarify my thoughts a little :
> > >
> > > I get a web service library, that handles the web service technical
> > > part and access to business objects. But my business part is heavy
> > > to initialize, and I want to do it only once, so when a first
> > > request come to the web service, the back end service starts and
> > > replys, then any other request doesn't involve a back end service
> start.
> > >
> > > So what I want to do is, as axis java does, define an application
> > > scope for the web service and get the service running until container
> > stops.
> >
> > > 2006/3/21, John Hawkins < *HAWKINSJ@uk.ibm.com** *<HA...@uk.ibm.com>
> >:
> > >
> > > Antoine,
> > >
> > > Can I clarify what you're trying to do here? Are you trying to have
> > > a stateful session with a particular instance of a service i.e. the
> > > same service gets called twice? Or pass context across the-wire on
> > > subsequent uses of the same stub?
> > >
> > > thanks,
> > > John.
> > >
> > >
> > >
> >
> > >
> > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>
> >
> > > 21/03/2006 09:27
> > >
> > > Please respond to
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Re: Application, Session or Request scope
> > >
> > >
> > >
> > >
> > > Hi !
> > >
> > > I've found no way to solve my scope issue for the moment, I'm still
> > > looking for a way to do this (application scope, not handlers).
> > >
> > > Thanks for any idea !
> > >
> > > 2006/3/16, Antoine Galataud < *antoine.galataud@gmail.com *<an...@gmail.com>
> >:
> > > It doesn't work :
> > >
> > > in fact, I succeeded in getting a session scope, e.g I request the
> > > service 2 times in the same main() client, but I can't have an
> > > application scope. But I don't get the error I described in my
> > > earlier mail, now it gives me nothing. And I'm talking about service
> > > scope, I don't use any handler.
> > >
> > > Thanks for your answer
> > >
> > > 2006/3/16, John Hawkins <*HAWKINSJ@uk.ibm.com** *<HA...@uk.ibm.com>
> >:
> > >
> > > I've just looked at this again and I'm not sure I understand your
> > > question now!
> > >
> > >
> > > If I look at your wsdd file it doesn't look correct to my thoughts
> > > (is it the complete wsdd file?) e.g. this is a client sample wsdd file
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > >
> > > <deployment xmlns="*http://xml.apache.org/axis/wsdd/ *<http://xml.apache.org/axis/wsdd/>"
> xlmns:
> > > C="http//xml.apache.org.axis/wsdd/providers/c">
> > >
> > >  <service name="Handler" provider="CPP:DOCUMENT"
> description="Handler">
> > >
> > >  <requestFlow>
> > >
> > >  <handler name="myClientHandlerReq"
> > > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > > name="myClientHandlerReq"
> > > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> > >
> > >  </handler>
> > >
> > >  </requestFlow>
> > >
> > >  <responseFlow>
> > >
> > >  <handler name="myClientHandlerRes"
> > > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > > name="myClientHandlerRes"
> > > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> > >
> > >  </handler>
> > >
> > >  </responseFlow>
> > >
> > >  </service>
> > >
> > >  </deployment>
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> > >
> > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>
> >
> > > 16/03/2006 12:57
> > >
> > > Please respond to
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Re: Application, Session or Request scope
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > > yes, i'm referring to the service scope. I saw in the doc that I
> > > could set a scope for handlers in response/reauest flows, but I
> > > didn't see anything about service.
> > >
> > > I'll try to set the scope also in client.wsdd, maybe it's what I'm
> > missing.
> > >
> > > Thanks for any further comments/suggestions.
> > >
> > > 2006/3/16, James Jose <*jamejose@in.ibm.com** * <ja...@in.ibm.com>
> >:
> > >
> > > Hi,
> > >
> > >  We are running HandlerTest01 to HandlerTest10.  But here Antoine is
> > > referring the scope of the service ..?
> > >
> > >
> > > Regards
> > > James
> > > --------------------------------------------------
> > > James Jose
> > > Messaging Clients Team, WMQDDC
> > > IBM Software Labs, India
> > > Direct: 91-80- 25094331  Ext :2331
> > > E-mail: *jamejose@in.ibm.com* <ja...@in.ibm.com>
> > >
> >
> > >
> > > John Hawkins < *HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com> >
> > > 03/16/2006 17:50
> > >
> > > Please respond to
> > > "Apache AXIS C User List"
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Re: Application, Session or Request scope
> > >
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Well, service and global handlers should work for the client and I'm
> > > surprised they aren't working for the server. Can you try it in the
> > > client and see if you get the same results. James - what tests do we
> > > run on handlers nowadays?
> >
> > >
> > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>
> >
> > > 16/03/2006 11:38
> > >
> > > Please respond to
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Re: Application, Session or Request scope
> > >
> > >
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > So, is there any work around to get this feature working ?
> > >
> > > Thanks for your answer
> > >
> > > 2006/3/15, Antoine Galataud <*antoine.galataud@gmail.com *<an...@gmail.com>
> >:
> > > Hum, seems scope is not yet correctly implemented (or tested) in 1.
> > > 6a.n (solaris) release. Here is my server.wsdd :
> > >
> > > <service name="IAdminConfiguration" provider="CPP:RPC"
> > > description="IAdminConfiguration Web Services">
> > >     <parameter name="allowedMethods" value="notifyDictionaryReinit
> > > initService"/>
> > >     <parameter name="scope" value="application">
> > >     <parameter name="className"
> > > value="/home/antgalat/apache/webservices/libiadminconfig.so"/>
> > > </service>
> > >
> > > If I do that I get this in the init logs :
> > >
> > > [15/03/2006 13:40:42:387 MET] 1 WSDDHandler > setScope
> > @11cec8,"application"
> > >
> > > But if I invoke the service, it fails with :
> > >
> > > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > > AxisWsddException @ff0da988,7, <null>
> > > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > > getMessageForExceptionCode @ff0da988,7
> > > [15/03/2006 13:40:49:216 MET] 1 AxisWsddException <
> > > getMessageForExceptionCode @ff0da988,"AxisWsddException:Requested
> > > service not found"
> > >
> > > I also tested with request and session scopes, it failed too.
> > >
> > > 2006/3/9, John Hawkins < *HAWKINSJ@uk.ibm.com** *<HA...@uk.ibm.com>
> >:
> > >
> > > I'll put it this way - it's not tested.
> >
> > >
> > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>
> >
> > > 09/03/2006 14:23
> > >
> > > Please respond to
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Application, Session or Request scope
> > >
> > >
> > >
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Hi !
> > >
> > > does Axis 1.6x handle scope ? I tried to add a scope="Application" in
> > > my service declaration in server.wsdd, but it doesn't seem to work...
> > >
> > > Thanks
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > >
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > >
> > > --
> > >
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>



--
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen

Re: Application, Session or Request scope

Posted by John Hawkins <HA...@uk.ibm.com>.
Now you're talking about maintaining a session.

There is now way to do this "for-free". You could do it by setting cookies 
in the server-code. These cookies could be used to retrieve state from a 
db next call.

Cookies are supported, at some level, in the client but not the server - 
to my knowledge. (they are just transport properties) You might have to 
add some minimal logic into the server-code to do it.







"Antoine Galataud" <an...@gmail.com> 
24/03/2006 13:48
Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>


To
"Apache AXIS C User List" <ax...@ws.apache.org>
cc

Subject
Re: Application, Session or Request scope






Ok, so how can I retrieve previously loaded object of my library ? For the 
moment, when I call initService(), I initialize a business object. If I 
call my second web service method notifyDictionary() in the same process 
(the main of my client call this 2 methods), it works (like a session 
scope). Now if call only initService(), then stop my client, then call 
notifyDictionary() in a different client, it fails, because the business 
object has been destroyed. 

How can I work around this ? Isn't it the feature "application scope" must 
provide ? Because the only thing I see, is that every server side objects 
are destroyed when the client is destroyed.

2006/3/24, John Hawkins <HA...@uk.ibm.com>:

The dlopen subroutine loads the module specified by FilePath into the 
executing process's address space. Dependents of the module are 
automatically loaded as well. If the module is already loaded, i t is not 
loaded again, but a new, unique value will be returned by the dlopen 
subroutine. 





"Antoine Galataud" <an...@gmail.com> 
24/03/2006 13:14 


Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>


To
"Apache AXIS C User List" <ax...@ws.apache.org> 
cc

Subject
Re: Application, Session or Request scope








First call to the method initService() is in log-1.txt, the second call 
(exactly the same, some seconds later) is in log-2.txt.
I tried with <parameter name="scope" value="application"> of server.wsdd 
file in some other tests, it didn't change anything.

Thanks

2006/3/24, John Hawkins <HAWKINSJ@uk.ibm.com >: 

Could you send me the trace pls. 



"Antoine Galataud" <antoine.galataud@gmail.com > 
24/03/2006 11:31 


Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org >



To
"Apache AXIS C User List" <axis-c-user@ws.apache.org > 
cc

Subject
Re: Application, Session or Request scope










The logs are clear : it does a loadlib each time a method is called

2006/3/24, John Hawkins <HAWKINSJ@uk.ibm.com >: 

I've not got time to look into this problem but it should not load the 
libs but it might be creating new instances of the objects. Can you 
confirm which? 

"Antoine Galataud" <antoine.galataud@gmail.com > 
24/03/2006 10:33 


Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org >



To
"Apache AXIS C User List" <axis-c-user@ws.apache.org > 
cc

Subject
Re: Application, Session or Request scope












Hi,

Could you confirm that it is a normal behavior that axis engine load libs 
each time a method is called on ? Or is it a mistake in my configuration ?

Thanks

2006/3/23, Antoine Galataud < antoine.galataud@gmail.com >: 
Yes that's it. 


2006/3/23, John Hawkins < HAWKINSJ@uk.ibm.com>: 

OK, 

so let me repeat it back to you so we're clear. 

You tested and found that the library is loaded and unloaded on every 
method call? 

"Antoine Galataud" <antoine.galataud@gmail.com > 
23/03/2006 09:14 


Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org >



To
"Apache AXIS C User List" <axis-c-user@ws.apache.org > 
cc

Subject
Re: Application, Session or Request scope














No, I didn't test it yet. But I realized, reading again Adrian mail and 
looking at wrapper class that it can't be my solution (or just a part of). 
What I'm saying is that the wrapper class is contained in the web service 
library, and is used to initialize and stop the web service with init and 
fini methods. But this doesn't resolve my problem: I want the library 
loaded and run until server shuts down. So what I need is the scope 
parameter of server.wsdd file correctly handled (I tested that it doesn't 
work), so the library is loaded at first request and stays up.

2006/3/23, John Hawkins < HAWKINSJ@uk.ibm.com>: 

Sorry, I'm not clear what you are saying - are you saying that you have 
tested this and the library is loaded each time the service is requested? 
"Antoine Galataud" <antoine.galataud@gmail.com > 
22/03/2006 17:18 


Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org >



To
"Apache AXIS C User List" <axis-c-user@ws.apache.org > 
cc

Subject
Re: Application, Session or Request scope
















Hi,

this a very great manner to initialize my business objects before
getting a request, but does this help to have the web service library
loaded once and not unloaded when method returns ?
I mean, for the moment I can't call a method without having Axis
loading the web service library (at each call). I need it to load at
first time, then be up until server (apache) shuts down.
What you are saying is that library is loaded at first invocation and
unloaded when server shuts down. But in my case, library is loaded
each time the service is requested !

Thanks
2006/3/21, Adrian Dick <adrian.dick@uk.ibm.com >:
> Hi,
>
> There is already a mechanism in place to do this.
>
> As part of WrapperClassHandler, from which the generated wrapper class 
is
> inherited, there are the init and fini methods.
> These methods are called respectively as the service library is loaded 
(ie:
> first invocation of service) and unloaded (ie: server shutdown).
>
> As these methods are virtual, you can override these within the 
generated
> wrapper class, to do the initialization and clearup activities you 
require.
>
>
> One word of warning, although this has been designed to work in this
> manner, it hasn't (so far) been tested.
>
> Please let us know how you get on with trying this.
>
> Regards,
> Adrian
> _______________________________________
> Adrian Dick (adrian.dick@uk.ibm.com )
>
>
> "Antoine Galataud" <antoine.galataud@gmail.com > wrote on 21/03/2006
> 12:43:45:
>
> >
> > Sorry, I haven't been really clear with what I wanted to do. I'll
> > try to clarify my thoughts a little :
> >
> > I get a web service library, that handles the web service technical
> > part and access to business objects. But my business part is heavy
> > to initialize, and I want to do it only once, so when a first
> > request come to the web service, the back end service starts and
> > replys, then any other request doesn't involve a back end service 
start.
> >
> > So what I want to do is, as axis java does, define an application
> > scope for the web service and get the service running until container
> stops.
>
> > 2006/3/21, John Hawkins < HAWKINSJ@uk.ibm.com >:
> >
> > Antoine,
> >
> > Can I clarify what you're trying to do here? Are you trying to have
> > a stateful session with a particular instance of a service i.e. the
> > same service gets called twice? Or pass context across the-wire on
> > subsequent uses of the same stub?
> >
> > thanks,
> > John.
> >
> >
> >
>
> >
> > "Antoine Galataud" <antoine.galataud@gmail.com >
> > 21/03/2006 09:27
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
> >
> >
> > Hi !
> >
> > I've found no way to solve my scope issue for the moment, I'm still
> > looking for a way to do this (application scope, not handlers).
> >
> > Thanks for any idea !
> >
> > 2006/3/16, Antoine Galataud < antoine.galataud@gmail.com >:
> > It doesn't work :
> >
> > in fact, I succeeded in getting a session scope, e.g I request the
> > service 2 times in the same main() client, but I can't have an
> > application scope. But I don't get the error I described in my
> > earlier mail, now it gives me nothing. And I'm talking about service
> > scope, I don't use any handler.
> >
> > Thanks for your answer
> >
> > 2006/3/16, John Hawkins <HAWKINSJ@uk.ibm.com >:
> >
> > I've just looked at this again and I'm not sure I understand your
> > question now!
> >
> >
> > If I look at your wsdd file it doesn't look correct to my thoughts
> > (is it the complete wsdd file?) e.g. this is a client sample wsdd file
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> >
> > <deployment xmlns="http://xml.apache.org/axis/wsdd/ " xlmns:
> > C="http//xml.apache.org.axis/wsdd/providers/c">
> >
> >  <service name="Handler" provider="CPP:DOCUMENT" 
description="Handler">
> >
> >  <requestFlow>
> >
> >  <handler name="myClientHandlerReq"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > name="myClientHandlerReq"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> >
> >  </handler>
> >
> >  </requestFlow>
> >
> >  <responseFlow>
> >
> >  <handler name="myClientHandlerRes"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > name="myClientHandlerRes"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> >
> >  </handler>
> >
> >  </responseFlow>
> >
> >  </service>
> >
> >  </deployment>
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
> >
> > "Antoine Galataud" <antoine.galataud@gmail.com >
> > 16/03/2006 12:57
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
>
> >
> >
> >
> >
> >
> > yes, i'm referring to the service scope. I saw in the doc that I
> > could set a scope for handlers in response/reauest flows, but I
> > didn't see anything about service.
> >
> > I'll try to set the scope also in client.wsdd, maybe it's what I'm
> missing.
> >
> > Thanks for any further comments/suggestions.
> >
> > 2006/3/16, James Jose <jamejose@in.ibm.com >:
> >
> > Hi,
> >
> >  We are running HandlerTest01 to HandlerTest10.  But here Antoine is
> > referring the scope of the service ..?
> >
> >
> > Regards
> > James
> > --------------------------------------------------
> > James Jose
> > Messaging Clients Team, WMQDDC
> > IBM Software Labs, India
> > Direct: 91-80- 25094331  Ext :2331
> > E-mail: jamejose@in.ibm.com 
> >
>
> >
> > John Hawkins < HAWKINSJ@uk.ibm.com >
> > 03/16/2006 17:50
> >
> > Please respond to
> > "Apache AXIS C User List"
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
> >
>
> >
> >
> >
> >
> >
> >
> >
> > Well, service and global handlers should work for the client and I'm
> > surprised they aren't working for the server. Can you try it in the
> > client and see if you get the same results. James - what tests do we
> > run on handlers nowadays?
>
> >
> > "Antoine Galataud" <antoine.galataud@gmail.com >
> > 16/03/2006 11:38
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
> >
> >
>
> >
> >
> >
> >
> >
> >
> >
> > So, is there any work around to get this feature working ?
> >
> > Thanks for your answer
> >
> > 2006/3/15, Antoine Galataud <antoine.galataud@gmail.com >:
> > Hum, seems scope is not yet correctly implemented (or tested) in 1.
> > 6a.n (solaris) release. Here is my server.wsdd :
> >
> > <service name="IAdminConfiguration" provider="CPP:RPC"
> > description="IAdminConfiguration Web Services">
> >     <parameter name="allowedMethods" value="notifyDictionaryReinit
> > initService"/>
> >     <parameter name="scope" value="application">
> >     <parameter name="className"
> > value="/home/antgalat/apache/webservices/libiadminconfig.so"/>
> > </service>
> >
> > If I do that I get this in the init logs :
> >
> > [15/03/2006 13:40:42:387 MET] 1 WSDDHandler > setScope
> @11cec8,"application"
> >
> > But if I invoke the service, it fails with :
> >
> > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > AxisWsddException @ff0da988,7, <null>
> > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > getMessageForExceptionCode @ff0da988,7
> > [15/03/2006 13:40:49:216 MET] 1 AxisWsddException <
> > getMessageForExceptionCode @ff0da988,"AxisWsddException:Requested
> > service not found"
> >
> > I also tested with request and session scopes, it failed too.
> >
> > 2006/3/9, John Hawkins < HAWKINSJ@uk.ibm.com >:
> >
> > I'll put it this way - it's not tested.
>
> >
> > "Antoine Galataud" <antoine.galataud@gmail.com >
> > 09/03/2006 14:23
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Application, Session or Request scope
> >
> >
> >
> >
> >
>
> >
> >
> >
> >
> >
> >
> >
> >
> > Hi !
> >
> > does Axis 1.6x handle scope ? I tried to add a scope="Application" in
> > my service declaration in server.wsdd, but it doesn't seem to work...
> >
> > Thanks
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> >
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> >
> > --
> >
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen


--
Antoine Galataud
antoine.galataud@gmail.com 
D?partement Architecture des Syst?mes d'Information
INSA - Rouen




-- 
Antoine Galataud
antoine.galataud@gmail.com
D?partement Architecture des Syst?mes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com 
D?partement Architecture des Syst?mes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com
D?partement Architecture des Syst?mes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com
D?partement Architecture des Syst?mes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com
D?partement Architecture des Syst?mes d'Information
INSA - Rouen 




-- 
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information 
INSA - Rouen 

Re: Application, Session or Request scope

Posted by Antoine Galataud <an...@gmail.com>.
Ok, so how can I retrieve previously loaded object of my library ? For the
moment, when I call initService(), I initialize a business object. If I call
my second web service method notifyDictionary() in the same process (the
main of my client call this 2 methods), it works (like a session scope). Now
if call only initService(), then stop my client, then call
notifyDictionary() in a different client, it fails, because the business
object has been destroyed.

How can I work around this ? Isn't it the feature "application scope" must
provide ? Because the only thing I see, is that every server side objects
are destroyed when the client is destroyed.

2006/3/24, John Hawkins <HA...@uk.ibm.com>:
>
>
> The *dlopen* subroutine loads the module specified by *FilePath *into the
> executing process's address space. Dependents of the module are
> automatically loaded as well. If the module is already loaded, i t is not
> loaded again, but a new, unique value will be returned by the *dlopen *
> subroutine.
>
>
>
>
>
>  *"Antoine Galataud" <an...@gmail.com>*
>
> 24/03/2006 13:14
>  Please respond to
> "Apache AXIS C User List" <ax...@ws.apache.org>
>
>   To
> "Apache AXIS C User List" <ax...@ws.apache.org>  cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
> First call to the method initService() is in log-1.txt, the second call
> (exactly the same, some seconds later) is in log-2.txt.
> I tried with <parameter name="scope" value="application"> of server.wsddfile in some other tests, it didn't change anything.
>
> Thanks
>
> 2006/3/24, John Hawkins <*HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com>>:
>
> Could you send me the trace pls.
>
>
>
>   *"Antoine Galataud" <**...@gmail.com>
> *>*
>
> 24/03/2006 11:31
>
>
>   Please respond to
> "Apache AXIS C User List" <*a...@ws.apache.org>
> >
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>
> >  cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
> The logs are clear : it does a loadlib each time a method is called
>
> 2006/3/24, John Hawkins <*HAWKINSJ@uk.ibm.com * <HA...@uk.ibm.com>>:
>
> I've not got time to look into this problem but it should not load the
> libs but it might be creating new instances of the objects. Can you confirm
> which?
>
>   *"Antoine Galataud" <**antoine.galataud@gmail.com** *<an...@gmail.com>
> *>*
>
> 24/03/2006 10:33
>
>
>   Please respond to
> "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>>
> cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
> Hi,
>
> Could you confirm that it is a normal behavior that axis engine load libs
> each time a method is called on ? Or is it a mistake in my configuration ?
>
> Thanks
>
> 2006/3/23, Antoine Galataud < *antoine.galataud@gmail.com *<an...@gmail.com>>:
>
> Yes that's it.
>
>
> 2006/3/23, John Hawkins <* HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com>>:
>
> OK,
>
> so let me repeat it back to you so we're clear.
>
> You tested and found that the library is loaded and unloaded on every
> method call?
>
>   *"Antoine Galataud" <**antoine.galataud@gmail.com** *<an...@gmail.com>
> *>*
>
> 23/03/2006 09:14
>
>
>   Please respond to
> "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>>
> cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
>
>
> No, I didn't test it yet. But I realized, reading again Adrian mail and
> looking at wrapper class that it can't be my solution (or just a part of).
> What I'm saying is that the wrapper class is contained in the web service
> library, and is used to initialize and stop the web service with init and
> fini methods. But this doesn't resolve my problem: I want the library loaded
> and run until server shuts down. So what I need is the scope parameter of
> server.wsdd file correctly handled (I tested that it doesn't work), so the
> library is loaded at first request and stays up.
>
> 2006/3/23, John Hawkins <* HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com>>:
>
> Sorry, I'm not clear what you are saying - are you saying that you have
> tested this and the library is loaded each time the service is requested?
>   *"Antoine Galataud" <**antoine.galataud@gmail.com** *<an...@gmail.com>
> *>*
>
> 22/03/2006 17:18
>
>
>   Please respond to
> "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>>
> cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Hi,
>
> this a very great manner to initialize my business objects before
> getting a request, but does this help to have the web service library
> loaded once and not unloaded when method returns ?
> I mean, for the moment I can't call a method without having Axis
> loading the web service library (at each call). I need it to load at
> first time, then be up until server (apache) shuts down.
> What you are saying is that library is loaded at first invocation and
> unloaded when server shuts down. But in my case, library is loaded
> each time the service is requested !
>
> Thanks
> 2006/3/21, Adrian Dick <*adrian.dick@uk.ibm.com** *<ad...@uk.ibm.com>
> >:
> > Hi,
> >
> > There is already a mechanism in place to do this.
> >
> > As part of WrapperClassHandler, from which the generated wrapper class
> is
> > inherited, there are the init and fini methods.
> > These methods are called respectively as the service library is loaded
> (ie:
> > first invocation of service) and unloaded (ie: server shutdown).
> >
> > As these methods are virtual, you can override these within the
> generated
> > wrapper class, to do the initialization and clearup activities you
> require.
> >
> >
> > One word of warning, although this has been designed to work in this
> > manner, it hasn't (so far) been tested.
> >
> > Please let us know how you get on with trying this.
> >
> > Regards,
> > Adrian
> > _______________________________________
> > Adrian Dick (*adrian.dick@uk.ibm.com* <ad...@uk.ibm.com> )
> >
> >
> > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>>
> wrote on 21/03/2006
> > 12:43:45:
> >
> > >
> > > Sorry, I haven't been really clear with what I wanted to do. I'll
> > > try to clarify my thoughts a little :
> > >
> > > I get a web service library, that handles the web service technical
> > > part and access to business objects. But my business part is heavy
> > > to initialize, and I want to do it only once, so when a first
> > > request come to the web service, the back end service starts and
> > > replys, then any other request doesn't involve a back end service
> start.
> > >
> > > So what I want to do is, as axis java does, define an application
> > > scope for the web service and get the service running until container
> > stops.
> >
> > > 2006/3/21, John Hawkins < *HAWKINSJ@uk.ibm.com** *<HA...@uk.ibm.com>
> >:
> > >
> > > Antoine,
> > >
> > > Can I clarify what you're trying to do here? Are you trying to have
> > > a stateful session with a particular instance of a service i.e. the
> > > same service gets called twice? Or pass context across the-wire on
> > > subsequent uses of the same stub?
> > >
> > > thanks,
> > > John.
> > >
> > >
> > >
> >
> > >
> > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>
> >
> > > 21/03/2006 09:27
> > >
> > > Please respond to
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Re: Application, Session or Request scope
> > >
> > >
> > >
> > >
> > > Hi !
> > >
> > > I've found no way to solve my scope issue for the moment, I'm still
> > > looking for a way to do this (application scope, not handlers).
> > >
> > > Thanks for any idea !
> > >
> > > 2006/3/16, Antoine Galataud < *antoine.galataud@gmail.com *<an...@gmail.com>
> >:
> > > It doesn't work :
> > >
> > > in fact, I succeeded in getting a session scope, e.g I request the
> > > service 2 times in the same main() client, but I can't have an
> > > application scope. But I don't get the error I described in my
> > > earlier mail, now it gives me nothing. And I'm talking about service
> > > scope, I don't use any handler.
> > >
> > > Thanks for your answer
> > >
> > > 2006/3/16, John Hawkins <*HAWKINSJ@uk.ibm.com** *<HA...@uk.ibm.com>
> >:
> > >
> > > I've just looked at this again and I'm not sure I understand your
> > > question now!
> > >
> > >
> > > If I look at your wsdd file it doesn't look correct to my thoughts
> > > (is it the complete wsdd file?) e.g. this is a client sample wsdd file
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > >
> > > <deployment xmlns="*http://xml.apache.org/axis/wsdd/ *<http://xml.apache.org/axis/wsdd/>"
> xlmns:
> > > C="http//xml.apache.org.axis/wsdd/providers/c">
> > >
> > >  <service name="Handler" provider="CPP:DOCUMENT"
> description="Handler">
> > >
> > >  <requestFlow>
> > >
> > >  <handler name="myClientHandlerReq"
> > > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > > name="myClientHandlerReq"
> > > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> > >
> > >  </handler>
> > >
> > >  </requestFlow>
> > >
> > >  <responseFlow>
> > >
> > >  <handler name="myClientHandlerRes"
> > > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > > name="myClientHandlerRes"
> > > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> > >
> > >  </handler>
> > >
> > >  </responseFlow>
> > >
> > >  </service>
> > >
> > >  </deployment>
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> > >
> > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>
> >
> > > 16/03/2006 12:57
> > >
> > > Please respond to
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Re: Application, Session or Request scope
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > > yes, i'm referring to the service scope. I saw in the doc that I
> > > could set a scope for handlers in response/reauest flows, but I
> > > didn't see anything about service.
> > >
> > > I'll try to set the scope also in client.wsdd, maybe it's what I'm
> > missing.
> > >
> > > Thanks for any further comments/suggestions.
> > >
> > > 2006/3/16, James Jose <*jamejose@in.ibm.com** * <ja...@in.ibm.com>
> >:
> > >
> > > Hi,
> > >
> > >  We are running HandlerTest01 to HandlerTest10.  But here Antoine is
> > > referring the scope of the service ..?
> > >
> > >
> > > Regards
> > > James
> > > --------------------------------------------------
> > > James Jose
> > > Messaging Clients Team, WMQDDC
> > > IBM Software Labs, India
> > > Direct: 91-80- 25094331  Ext :2331
> > > E-mail: *jamejose@in.ibm.com* <ja...@in.ibm.com>
> > >
> >
> > >
> > > John Hawkins < *HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com> >
> > > 03/16/2006 17:50
> > >
> > > Please respond to
> > > "Apache AXIS C User List"
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Re: Application, Session or Request scope
> > >
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Well, service and global handlers should work for the client and I'm
> > > surprised they aren't working for the server. Can you try it in the
> > > client and see if you get the same results. James - what tests do we
> > > run on handlers nowadays?
> >
> > >
> > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>
> >
> > > 16/03/2006 11:38
> > >
> > > Please respond to
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Re: Application, Session or Request scope
> > >
> > >
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > So, is there any work around to get this feature working ?
> > >
> > > Thanks for your answer
> > >
> > > 2006/3/15, Antoine Galataud <*antoine.galataud@gmail.com *<an...@gmail.com>
> >:
> > > Hum, seems scope is not yet correctly implemented (or tested) in 1.
> > > 6a.n (solaris) release. Here is my server.wsdd :
> > >
> > > <service name="IAdminConfiguration" provider="CPP:RPC"
> > > description="IAdminConfiguration Web Services">
> > >     <parameter name="allowedMethods" value="notifyDictionaryReinit
> > > initService"/>
> > >     <parameter name="scope" value="application">
> > >     <parameter name="className"
> > > value="/home/antgalat/apache/webservices/libiadminconfig.so"/>
> > > </service>
> > >
> > > If I do that I get this in the init logs :
> > >
> > > [15/03/2006 13:40:42:387 MET] 1 WSDDHandler > setScope
> > @11cec8,"application"
> > >
> > > But if I invoke the service, it fails with :
> > >
> > > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > > AxisWsddException @ff0da988,7, <null>
> > > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > > getMessageForExceptionCode @ff0da988,7
> > > [15/03/2006 13:40:49:216 MET] 1 AxisWsddException <
> > > getMessageForExceptionCode @ff0da988,"AxisWsddException:Requested
> > > service not found"
> > >
> > > I also tested with request and session scopes, it failed too.
> > >
> > > 2006/3/9, John Hawkins < *HAWKINSJ@uk.ibm.com** *<HA...@uk.ibm.com>
> >:
> > >
> > > I'll put it this way - it's not tested.
> >
> > >
> > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>
> >
> > > 09/03/2006 14:23
> > >
> > > Please respond to
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Application, Session or Request scope
> > >
> > >
> > >
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Hi !
> > >
> > > does Axis 1.6x handle scope ? I tried to add a scope="Application" in
> > > my service declaration in server.wsdd, but it doesn't seem to work...
> > >
> > > Thanks
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > >
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > >
> > > --
> > >
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>


--
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen

Re: Application, Session or Request scope

Posted by John Hawkins <HA...@uk.ibm.com>.
The dlopen subroutine loads the module specified by FilePath into the 
executing process's address space. Dependents of the module are 
automatically loaded as well. If the module is already loaded, i t is not 
loaded again, but a new, unique value will be returned by the dlopen 
subroutine.






"Antoine Galataud" <an...@gmail.com> 
24/03/2006 13:14
Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>


To
"Apache AXIS C User List" <ax...@ws.apache.org>
cc

Subject
Re: Application, Session or Request scope






First call to the method initService() is in log-1.txt, the second call 
(exactly the same, some seconds later) is in log-2.txt.
I tried with <parameter name="scope" value="application"> of server.wsdd 
file in some other tests, it didn't change anything.

Thanks

2006/3/24, John Hawkins <HA...@uk.ibm.com>:

Could you send me the trace pls. 




"Antoine Galataud" <an...@gmail.com> 
24/03/2006 11:31 


Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>


To
"Apache AXIS C User List" <ax...@ws.apache.org> 
cc

Subject
Re: Application, Session or Request scope








The logs are clear : it does a loadlib each time a method is called

2006/3/24, John Hawkins <HAWKINSJ@uk.ibm.com >: 

I've not got time to look into this problem but it should not load the 
libs but it might be creating new instances of the objects. Can you 
confirm which? 


"Antoine Galataud" <antoine.galataud@gmail.com > 
24/03/2006 10:33 


Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org >



To
"Apache AXIS C User List" <axis-c-user@ws.apache.org > 
cc

Subject
Re: Application, Session or Request scope










Hi,

Could you confirm that it is a normal behavior that axis engine load libs 
each time a method is called on ? Or is it a mistake in my configuration ?

Thanks

2006/3/23, Antoine Galataud < antoine.galataud@gmail.com >: 
Yes that's it. 


2006/3/23, John Hawkins < HAWKINSJ@uk.ibm.com>: 

OK, 

so let me repeat it back to you so we're clear. 

You tested and found that the library is loaded and unloaded on every 
method call? 


"Antoine Galataud" <antoine.galataud@gmail.com > 
23/03/2006 09:14 


Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org >



To
"Apache AXIS C User List" <axis-c-user@ws.apache.org > 
cc

Subject
Re: Application, Session or Request scope












No, I didn't test it yet. But I realized, reading again Adrian mail and 
looking at wrapper class that it can't be my solution (or just a part of). 
What I'm saying is that the wrapper class is contained in the web service 
library, and is used to initialize and stop the web service with init and 
fini methods. But this doesn't resolve my problem: I want the library 
loaded and run until server shuts down. So what I need is the scope 
parameter of server.wsdd file correctly handled (I tested that it doesn't 
work), so the library is loaded at first request and stays up.

2006/3/23, John Hawkins < HAWKINSJ@uk.ibm.com>: 

Sorry, I'm not clear what you are saying - are you saying that you have 
tested this and the library is loaded each time the service is requested? 

"Antoine Galataud" <antoine.galataud@gmail.com > 
22/03/2006 17:18 


Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org >



To
"Apache AXIS C User List" <axis-c-user@ws.apache.org > 
cc

Subject
Re: Application, Session or Request scope














Hi,

this a very great manner to initialize my business objects before
getting a request, but does this help to have the web service library
loaded once and not unloaded when method returns ?
I mean, for the moment I can't call a method without having Axis
loading the web service library (at each call). I need it to load at
first time, then be up until server (apache) shuts down.
What you are saying is that library is loaded at first invocation and
unloaded when server shuts down. But in my case, library is loaded
each time the service is requested !

Thanks
2006/3/21, Adrian Dick <adrian.dick@uk.ibm.com >:
> Hi,
>
> There is already a mechanism in place to do this.
>
> As part of WrapperClassHandler, from which the generated wrapper class 
is
> inherited, there are the init and fini methods.
> These methods are called respectively as the service library is loaded 
(ie:
> first invocation of service) and unloaded (ie: server shutdown).
>
> As these methods are virtual, you can override these within the 
generated
> wrapper class, to do the initialization and clearup activities you 
require.
>
>
> One word of warning, although this has been designed to work in this
> manner, it hasn't (so far) been tested.
>
> Please let us know how you get on with trying this.
>
> Regards,
> Adrian
> _______________________________________
> Adrian Dick (adrian.dick@uk.ibm.com )
>
>
> "Antoine Galataud" <antoine.galataud@gmail.com > wrote on 21/03/2006
> 12:43:45:
>
> >
> > Sorry, I haven't been really clear with what I wanted to do. I'll
> > try to clarify my thoughts a little :
> >
> > I get a web service library, that handles the web service technical
> > part and access to business objects. But my business part is heavy
> > to initialize, and I want to do it only once, so when a first
> > request come to the web service, the back end service starts and
> > replys, then any other request doesn't involve a back end service 
start.
> >
> > So what I want to do is, as axis java does, define an application
> > scope for the web service and get the service running until container
> stops.
>
> > 2006/3/21, John Hawkins < HAWKINSJ@uk.ibm.com >:
> >
> > Antoine,
> >
> > Can I clarify what you're trying to do here? Are you trying to have
> > a stateful session with a particular instance of a service i.e. the
> > same service gets called twice? Or pass context across the-wire on
> > subsequent uses of the same stub?
> >
> > thanks,
> > John.
> >
> >
> >
>
> >
> > "Antoine Galataud" <antoine.galataud@gmail.com >
> > 21/03/2006 09:27
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
> >
> >
> > Hi !
> >
> > I've found no way to solve my scope issue for the moment, I'm still
> > looking for a way to do this (application scope, not handlers).
> >
> > Thanks for any idea !
> >
> > 2006/3/16, Antoine Galataud < antoine.galataud@gmail.com >:
> > It doesn't work :
> >
> > in fact, I succeeded in getting a session scope, e.g I request the
> > service 2 times in the same main() client, but I can't have an
> > application scope. But I don't get the error I described in my
> > earlier mail, now it gives me nothing. And I'm talking about service
> > scope, I don't use any handler.
> >
> > Thanks for your answer
> >
> > 2006/3/16, John Hawkins <HAWKINSJ@uk.ibm.com >:
> >
> > I've just looked at this again and I'm not sure I understand your
> > question now!
> >
> >
> > If I look at your wsdd file it doesn't look correct to my thoughts
> > (is it the complete wsdd file?) e.g. this is a client sample wsdd file
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> >
> > <deployment xmlns="http://xml.apache.org/axis/wsdd/ " xlmns:
> > C="http//xml.apache.org.axis/wsdd/providers/c">
> >
> >  <service name="Handler" provider="CPP:DOCUMENT" 
description="Handler">
> >
> >  <requestFlow>
> >
> >  <handler name="myClientHandlerReq"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > name="myClientHandlerReq"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> >
> >  </handler>
> >
> >  </requestFlow>
> >
> >  <responseFlow>
> >
> >  <handler name="myClientHandlerRes"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > name="myClientHandlerRes"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> >
> >  </handler>
> >
> >  </responseFlow>
> >
> >  </service>
> >
> >  </deployment>
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
> >
> > "Antoine Galataud" <antoine.galataud@gmail.com >
> > 16/03/2006 12:57
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
>
> >
> >
> >
> >
> >
> > yes, i'm referring to the service scope. I saw in the doc that I
> > could set a scope for handlers in response/reauest flows, but I
> > didn't see anything about service.
> >
> > I'll try to set the scope also in client.wsdd, maybe it's what I'm
> missing.
> >
> > Thanks for any further comments/suggestions.
> >
> > 2006/3/16, James Jose <jamejose@in.ibm.com >:
> >
> > Hi,
> >
> >  We are running HandlerTest01 to HandlerTest10.  But here Antoine is
> > referring the scope of the service ..?
> >
> >
> > Regards
> > James
> > --------------------------------------------------
> > James Jose
> > Messaging Clients Team, WMQDDC
> > IBM Software Labs, India
> > Direct: 91-80- 25094331  Ext :2331
> > E-mail: jamejose@in.ibm.com 
> >
>
> >
> > John Hawkins < HAWKINSJ@uk.ibm.com >
> > 03/16/2006 17:50
> >
> > Please respond to
> > "Apache AXIS C User List"
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
> >
>
> >
> >
> >
> >
> >
> >
> >
> > Well, service and global handlers should work for the client and I'm
> > surprised they aren't working for the server. Can you try it in the
> > client and see if you get the same results. James - what tests do we
> > run on handlers nowadays?
>
> >
> > "Antoine Galataud" <antoine.galataud@gmail.com >
> > 16/03/2006 11:38
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
> >
> >
>
> >
> >
> >
> >
> >
> >
> >
> > So, is there any work around to get this feature working ?
> >
> > Thanks for your answer
> >
> > 2006/3/15, Antoine Galataud <antoine.galataud@gmail.com >:
> > Hum, seems scope is not yet correctly implemented (or tested) in 1.
> > 6a.n (solaris) release. Here is my server.wsdd :
> >
> > <service name="IAdminConfiguration" provider="CPP:RPC"
> > description="IAdminConfiguration Web Services">
> >     <parameter name="allowedMethods" value="notifyDictionaryReinit
> > initService"/>
> >     <parameter name="scope" value="application">
> >     <parameter name="className"
> > value="/home/antgalat/apache/webservices/libiadminconfig.so"/>
> > </service>
> >
> > If I do that I get this in the init logs :
> >
> > [15/03/2006 13:40:42:387 MET] 1 WSDDHandler > setScope
> @11cec8,"application"
> >
> > But if I invoke the service, it fails with :
> >
> > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > AxisWsddException @ff0da988,7, <null>
> > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > getMessageForExceptionCode @ff0da988,7
> > [15/03/2006 13:40:49:216 MET] 1 AxisWsddException <
> > getMessageForExceptionCode @ff0da988,"AxisWsddException:Requested
> > service not found"
> >
> > I also tested with request and session scopes, it failed too.
> >
> > 2006/3/9, John Hawkins < HAWKINSJ@uk.ibm.com >:
> >
> > I'll put it this way - it's not tested.
>
> >
> > "Antoine Galataud" <antoine.galataud@gmail.com >
> > 09/03/2006 14:23
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Application, Session or Request scope
> >
> >
> >
> >
> >
>
> >
> >
> >
> >
> >
> >
> >
> >
> > Hi !
> >
> > does Axis 1.6x handle scope ? I tried to add a scope="Application" in
> > my service declaration in server.wsdd, but it doesn't seem to work...
> >
> > Thanks
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> >
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> >
> > --
> >
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen


--
Antoine Galataud
antoine.galataud@gmail.com 
D?partement Architecture des Syst?mes d'Information
INSA - Rouen




-- 
Antoine Galataud
antoine.galataud@gmail.com
D?partement Architecture des Syst?mes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com 
D?partement Architecture des Syst?mes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com
D?partement Architecture des Syst?mes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com
D?partement Architecture des Syst?mes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen 

Re: Application, Session or Request scope

Posted by Antoine Galataud <an...@gmail.com>.
First call to the method initService() is in log-1.txt, the second call
(exactly the same, some seconds later) is in log-2.txt.
I tried with <parameter name="scope" value="application"> of
server.wsddfile in some other tests, it didn't change anything.

Thanks

2006/3/24, John Hawkins <HA...@uk.ibm.com>:
>
>
> Could you send me the trace pls.
>
>
>
>
>  *"Antoine Galataud" <an...@gmail.com>*
>
> 24/03/2006 11:31
>  Please respond to
> "Apache AXIS C User List" <ax...@ws.apache.org>
>
>   To
> "Apache AXIS C User List" <ax...@ws.apache.org>  cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
> The logs are clear : it does a loadlib each time a method is called
>
> 2006/3/24, John Hawkins <*HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com>>:
>
> I've not got time to look into this problem but it should not load the
> libs but it might be creating new instances of the objects. Can you confirm
> which?
>
>
>   *"Antoine Galataud" <**...@gmail.com>
> *>*
>
> 24/03/2006 10:33
>
>
>   Please respond to
> "Apache AXIS C User List" <*a...@ws.apache.org>
> >
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>
> >  cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
> Hi,
>
> Could you confirm that it is a normal behavior that axis engine load libs
> each time a method is called on ? Or is it a mistake in my configuration ?
>
> Thanks
>
> 2006/3/23, Antoine Galataud < *antoine.galataud@gmail.com *<an...@gmail.com>>:
>
> Yes that's it.
>
>
> 2006/3/23, John Hawkins <* HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com>>:
>
> OK,
>
> so let me repeat it back to you so we're clear.
>
> You tested and found that the library is loaded and unloaded on every
> method call?
>
>
>   *"Antoine Galataud" <**antoine.galataud@gmail.com** *<an...@gmail.com>
> *>*
>
> 23/03/2006 09:14
>
>
>   Please respond to
> "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>>
> cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
> No, I didn't test it yet. But I realized, reading again Adrian mail and
> looking at wrapper class that it can't be my solution (or just a part of).
> What I'm saying is that the wrapper class is contained in the web service
> library, and is used to initialize and stop the web service with init and
> fini methods. But this doesn't resolve my problem: I want the library loaded
> and run until server shuts down. So what I need is the scope parameter of
> server.wsdd file correctly handled (I tested that it doesn't work), so the
> library is loaded at first request and stays up.
>
> 2006/3/23, John Hawkins <* HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com>>:
>
> Sorry, I'm not clear what you are saying - are you saying that you have
> tested this and the library is loaded each time the service is requested?
>
>   *"Antoine Galataud" <**antoine.galataud@gmail.com** *<an...@gmail.com>
> *>*
>
> 22/03/2006 17:18
>
>
>   Please respond to
> "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>>
> cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
>
>
> Hi,
>
> this a very great manner to initialize my business objects before
> getting a request, but does this help to have the web service library
> loaded once and not unloaded when method returns ?
> I mean, for the moment I can't call a method without having Axis
> loading the web service library (at each call). I need it to load at
> first time, then be up until server (apache) shuts down.
> What you are saying is that library is loaded at first invocation and
> unloaded when server shuts down. But in my case, library is loaded
> each time the service is requested !
>
> Thanks
> 2006/3/21, Adrian Dick <*adrian.dick@uk.ibm.com** *<ad...@uk.ibm.com>
> >:
> > Hi,
> >
> > There is already a mechanism in place to do this.
> >
> > As part of WrapperClassHandler, from which the generated wrapper class
> is
> > inherited, there are the init and fini methods.
> > These methods are called respectively as the service library is loaded
> (ie:
> > first invocation of service) and unloaded (ie: server shutdown).
> >
> > As these methods are virtual, you can override these within the
> generated
> > wrapper class, to do the initialization and clearup activities you
> require.
> >
> >
> > One word of warning, although this has been designed to work in this
> > manner, it hasn't (so far) been tested.
> >
> > Please let us know how you get on with trying this.
> >
> > Regards,
> > Adrian
> > _______________________________________
> > Adrian Dick (*adrian.dick@uk.ibm.com* <ad...@uk.ibm.com> )
> >
> >
> > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>>
> wrote on 21/03/2006
> > 12:43:45:
> >
> > >
> > > Sorry, I haven't been really clear with what I wanted to do. I'll
> > > try to clarify my thoughts a little :
> > >
> > > I get a web service library, that handles the web service technical
> > > part and access to business objects. But my business part is heavy
> > > to initialize, and I want to do it only once, so when a first
> > > request come to the web service, the back end service starts and
> > > replys, then any other request doesn't involve a back end service
> start.
> > >
> > > So what I want to do is, as axis java does, define an application
> > > scope for the web service and get the service running until container
> > stops.
> >
> > > 2006/3/21, John Hawkins < *HAWKINSJ@uk.ibm.com** *<HA...@uk.ibm.com>
> >:
> > >
> > > Antoine,
> > >
> > > Can I clarify what you're trying to do here? Are you trying to have
> > > a stateful session with a particular instance of a service i.e. the
> > > same service gets called twice? Or pass context across the-wire on
> > > subsequent uses of the same stub?
> > >
> > > thanks,
> > > John.
> > >
> > >
> > >
> >
> > >
> > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>
> >
> > > 21/03/2006 09:27
> > >
> > > Please respond to
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Re: Application, Session or Request scope
> > >
> > >
> > >
> > >
> > > Hi !
> > >
> > > I've found no way to solve my scope issue for the moment, I'm still
> > > looking for a way to do this (application scope, not handlers).
> > >
> > > Thanks for any idea !
> > >
> > > 2006/3/16, Antoine Galataud < *antoine.galataud@gmail.com *<an...@gmail.com>
> >:
> > > It doesn't work :
> > >
> > > in fact, I succeeded in getting a session scope, e.g I request the
> > > service 2 times in the same main() client, but I can't have an
> > > application scope. But I don't get the error I described in my
> > > earlier mail, now it gives me nothing. And I'm talking about service
> > > scope, I don't use any handler.
> > >
> > > Thanks for your answer
> > >
> > > 2006/3/16, John Hawkins <*HAWKINSJ@uk.ibm.com** *<HA...@uk.ibm.com>
> >:
> > >
> > > I've just looked at this again and I'm not sure I understand your
> > > question now!
> > >
> > >
> > > If I look at your wsdd file it doesn't look correct to my thoughts
> > > (is it the complete wsdd file?) e.g. this is a client sample wsdd file
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > >
> > > <deployment xmlns="*http://xml.apache.org/axis/wsdd/ *<http://xml.apache.org/axis/wsdd/>"
> xlmns:
> > > C="http//xml.apache.org.axis/wsdd/providers/c">
> > >
> > >  <service name="Handler" provider="CPP:DOCUMENT"
> description="Handler">
> > >
> > >  <requestFlow>
> > >
> > >  <handler name="myClientHandlerReq"
> > > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > > name="myClientHandlerReq"
> > > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> > >
> > >  </handler>
> > >
> > >  </requestFlow>
> > >
> > >  <responseFlow>
> > >
> > >  <handler name="myClientHandlerRes"
> > > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > > name="myClientHandlerRes"
> > > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> > >
> > >  </handler>
> > >
> > >  </responseFlow>
> > >
> > >  </service>
> > >
> > >  </deployment>
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> > >
> > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>
> >
> > > 16/03/2006 12:57
> > >
> > > Please respond to
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Re: Application, Session or Request scope
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > > yes, i'm referring to the service scope. I saw in the doc that I
> > > could set a scope for handlers in response/reauest flows, but I
> > > didn't see anything about service.
> > >
> > > I'll try to set the scope also in client.wsdd, maybe it's what I'm
> > missing.
> > >
> > > Thanks for any further comments/suggestions.
> > >
> > > 2006/3/16, James Jose <*jamejose@in.ibm.com** * <ja...@in.ibm.com>
> >:
> > >
> > > Hi,
> > >
> > >  We are running HandlerTest01 to HandlerTest10.  But here Antoine is
> > > referring the scope of the service ..?
> > >
> > >
> > > Regards
> > > James
> > > --------------------------------------------------
> > > James Jose
> > > Messaging Clients Team, WMQDDC
> > > IBM Software Labs, India
> > > Direct: 91-80- 25094331  Ext :2331
> > > E-mail: *jamejose@in.ibm.com* <ja...@in.ibm.com>
> > >
> >
> > >
> > > John Hawkins < *HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com> >
> > > 03/16/2006 17:50
> > >
> > > Please respond to
> > > "Apache AXIS C User List"
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Re: Application, Session or Request scope
> > >
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Well, service and global handlers should work for the client and I'm
> > > surprised they aren't working for the server. Can you try it in the
> > > client and see if you get the same results. James - what tests do we
> > > run on handlers nowadays?
> >
> > >
> > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>
> >
> > > 16/03/2006 11:38
> > >
> > > Please respond to
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Re: Application, Session or Request scope
> > >
> > >
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > So, is there any work around to get this feature working ?
> > >
> > > Thanks for your answer
> > >
> > > 2006/3/15, Antoine Galataud <*antoine.galataud@gmail.com *<an...@gmail.com>
> >:
> > > Hum, seems scope is not yet correctly implemented (or tested) in 1.
> > > 6a.n (solaris) release. Here is my server.wsdd :
> > >
> > > <service name="IAdminConfiguration" provider="CPP:RPC"
> > > description="IAdminConfiguration Web Services">
> > >     <parameter name="allowedMethods" value="notifyDictionaryReinit
> > > initService"/>
> > >     <parameter name="scope" value="application">
> > >     <parameter name="className"
> > > value="/home/antgalat/apache/webservices/libiadminconfig.so"/>
> > > </service>
> > >
> > > If I do that I get this in the init logs :
> > >
> > > [15/03/2006 13:40:42:387 MET] 1 WSDDHandler > setScope
> > @11cec8,"application"
> > >
> > > But if I invoke the service, it fails with :
> > >
> > > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > > AxisWsddException @ff0da988,7, <null>
> > > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > > getMessageForExceptionCode @ff0da988,7
> > > [15/03/2006 13:40:49:216 MET] 1 AxisWsddException <
> > > getMessageForExceptionCode @ff0da988,"AxisWsddException:Requested
> > > service not found"
> > >
> > > I also tested with request and session scopes, it failed too.
> > >
> > > 2006/3/9, John Hawkins < *HAWKINSJ@uk.ibm.com** *<HA...@uk.ibm.com>
> >:
> > >
> > > I'll put it this way - it's not tested.
> >
> > >
> > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>
> >
> > > 09/03/2006 14:23
> > >
> > > Please respond to
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Application, Session or Request scope
> > >
> > >
> > >
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Hi !
> > >
> > > does Axis 1.6x handle scope ? I tried to add a scope="Application" in
> > > my service declaration in server.wsdd, but it doesn't seem to work...
> > >
> > > Thanks
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > >
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > >
> > > --
> > >
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>



--
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen

Re: Application, Session or Request scope

Posted by John Hawkins <HA...@uk.ibm.com>.
Could you send me the trace pls.





"Antoine Galataud" <an...@gmail.com> 
24/03/2006 11:31
Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>


To
"Apache AXIS C User List" <ax...@ws.apache.org>
cc

Subject
Re: Application, Session or Request scope






The logs are clear : it does a loadlib each time a method is called

2006/3/24, John Hawkins <HA...@uk.ibm.com>:

I've not got time to look into this problem but it should not load the 
libs but it might be creating new instances of the objects. Can you 
confirm which? 



"Antoine Galataud" <an...@gmail.com> 
24/03/2006 10:33 


Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>


To
"Apache AXIS C User List" <ax...@ws.apache.org> 
cc

Subject
Re: Application, Session or Request scope








Hi,

Could you confirm that it is a normal behavior that axis engine load libs 
each time a method is called on ? Or is it a mistake in my configuration ?

Thanks

2006/3/23, Antoine Galataud < antoine.galataud@gmail.com >: 
Yes that's it. 


2006/3/23, John Hawkins < HAWKINSJ@uk.ibm.com>: 

OK, 

so let me repeat it back to you so we're clear. 

You tested and found that the library is loaded and unloaded on every 
method call? 



"Antoine Galataud" <antoine.galataud@gmail.com > 
23/03/2006 09:14 


Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org >



To
"Apache AXIS C User List" <axis-c-user@ws.apache.org > 
cc

Subject
Re: Application, Session or Request scope










No, I didn't test it yet. But I realized, reading again Adrian mail and 
looking at wrapper class that it can't be my solution (or just a part of). 
What I'm saying is that the wrapper class is contained in the web service 
library, and is used to initialize and stop the web service with init and 
fini methods. But this doesn't resolve my problem: I want the library 
loaded and run until server shuts down. So what I need is the scope 
parameter of server.wsdd file correctly handled (I tested that it doesn't 
work), so the library is loaded at first request and stays up.

2006/3/23, John Hawkins < HAWKINSJ@uk.ibm.com>: 

Sorry, I'm not clear what you are saying - are you saying that you have 
tested this and the library is loaded each time the service is requested? 


"Antoine Galataud" <antoine.galataud@gmail.com > 
22/03/2006 17:18 


Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org >



To
"Apache AXIS C User List" <axis-c-user@ws.apache.org > 
cc

Subject
Re: Application, Session or Request scope












Hi,

this a very great manner to initialize my business objects before
getting a request, but does this help to have the web service library
loaded once and not unloaded when method returns ?
I mean, for the moment I can't call a method without having Axis
loading the web service library (at each call). I need it to load at
first time, then be up until server (apache) shuts down.
What you are saying is that library is loaded at first invocation and
unloaded when server shuts down. But in my case, library is loaded
each time the service is requested !

Thanks
2006/3/21, Adrian Dick <adrian.dick@uk.ibm.com >:
> Hi,
>
> There is already a mechanism in place to do this.
>
> As part of WrapperClassHandler, from which the generated wrapper class 
is
> inherited, there are the init and fini methods.
> These methods are called respectively as the service library is loaded 
(ie:
> first invocation of service) and unloaded (ie: server shutdown).
>
> As these methods are virtual, you can override these within the 
generated
> wrapper class, to do the initialization and clearup activities you 
require.
>
>
> One word of warning, although this has been designed to work in this
> manner, it hasn't (so far) been tested.
>
> Please let us know how you get on with trying this.
>
> Regards,
> Adrian
> _______________________________________
> Adrian Dick (adrian.dick@uk.ibm.com )
>
>
> "Antoine Galataud" <antoine.galataud@gmail.com > wrote on 21/03/2006
> 12:43:45:
>
> >
> > Sorry, I haven't been really clear with what I wanted to do. I'll
> > try to clarify my thoughts a little :
> >
> > I get a web service library, that handles the web service technical
> > part and access to business objects. But my business part is heavy
> > to initialize, and I want to do it only once, so when a first
> > request come to the web service, the back end service starts and
> > replys, then any other request doesn't involve a back end service 
start.
> >
> > So what I want to do is, as axis java does, define an application
> > scope for the web service and get the service running until container
> stops.
>
> > 2006/3/21, John Hawkins < HAWKINSJ@uk.ibm.com >:
> >
> > Antoine,
> >
> > Can I clarify what you're trying to do here? Are you trying to have
> > a stateful session with a particular instance of a service i.e. the
> > same service gets called twice? Or pass context across the-wire on
> > subsequent uses of the same stub?
> >
> > thanks,
> > John.
> >
> >
> >
>
> >
> > "Antoine Galataud" <antoine.galataud@gmail.com >
> > 21/03/2006 09:27
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
> >
> >
> > Hi !
> >
> > I've found no way to solve my scope issue for the moment, I'm still
> > looking for a way to do this (application scope, not handlers).
> >
> > Thanks for any idea !
> >
> > 2006/3/16, Antoine Galataud < antoine.galataud@gmail.com >:
> > It doesn't work :
> >
> > in fact, I succeeded in getting a session scope, e.g I request the
> > service 2 times in the same main() client, but I can't have an
> > application scope. But I don't get the error I described in my
> > earlier mail, now it gives me nothing. And I'm talking about service
> > scope, I don't use any handler.
> >
> > Thanks for your answer
> >
> > 2006/3/16, John Hawkins <HAWKINSJ@uk.ibm.com >:
> >
> > I've just looked at this again and I'm not sure I understand your
> > question now!
> >
> >
> > If I look at your wsdd file it doesn't look correct to my thoughts
> > (is it the complete wsdd file?) e.g. this is a client sample wsdd file
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> >
> > <deployment xmlns="http://xml.apache.org/axis/wsdd/ " xlmns:
> > C="http//xml.apache.org.axis/wsdd/providers/c">
> >
> >  <service name="Handler" provider="CPP:DOCUMENT" 
description="Handler">
> >
> >  <requestFlow>
> >
> >  <handler name="myClientHandlerReq"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > name="myClientHandlerReq"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> >
> >  </handler>
> >
> >  </requestFlow>
> >
> >  <responseFlow>
> >
> >  <handler name="myClientHandlerRes"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > name="myClientHandlerRes"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> >
> >  </handler>
> >
> >  </responseFlow>
> >
> >  </service>
> >
> >  </deployment>
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
> >
> > "Antoine Galataud" <antoine.galataud@gmail.com >
> > 16/03/2006 12:57
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
>
> >
> >
> >
> >
> >
> > yes, i'm referring to the service scope. I saw in the doc that I
> > could set a scope for handlers in response/reauest flows, but I
> > didn't see anything about service.
> >
> > I'll try to set the scope also in client.wsdd, maybe it's what I'm
> missing.
> >
> > Thanks for any further comments/suggestions.
> >
> > 2006/3/16, James Jose <jamejose@in.ibm.com >:
> >
> > Hi,
> >
> >  We are running HandlerTest01 to HandlerTest10.  But here Antoine is
> > referring the scope of the service ..?
> >
> >
> > Regards
> > James
> > --------------------------------------------------
> > James Jose
> > Messaging Clients Team, WMQDDC
> > IBM Software Labs, India
> > Direct: 91-80- 25094331  Ext :2331
> > E-mail: jamejose@in.ibm.com 
> >
>
> >
> > John Hawkins < HAWKINSJ@uk.ibm.com >
> > 03/16/2006 17:50
> >
> > Please respond to
> > "Apache AXIS C User List"
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
> >
>
> >
> >
> >
> >
> >
> >
> >
> > Well, service and global handlers should work for the client and I'm
> > surprised they aren't working for the server. Can you try it in the
> > client and see if you get the same results. James - what tests do we
> > run on handlers nowadays?
>
> >
> > "Antoine Galataud" <antoine.galataud@gmail.com >
> > 16/03/2006 11:38
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
> >
> >
>
> >
> >
> >
> >
> >
> >
> >
> > So, is there any work around to get this feature working ?
> >
> > Thanks for your answer
> >
> > 2006/3/15, Antoine Galataud <antoine.galataud@gmail.com >:
> > Hum, seems scope is not yet correctly implemented (or tested) in 1.
> > 6a.n (solaris) release. Here is my server.wsdd :
> >
> > <service name="IAdminConfiguration" provider="CPP:RPC"
> > description="IAdminConfiguration Web Services">
> >     <parameter name="allowedMethods" value="notifyDictionaryReinit
> > initService"/>
> >     <parameter name="scope" value="application">
> >     <parameter name="className"
> > value="/home/antgalat/apache/webservices/libiadminconfig.so"/>
> > </service>
> >
> > If I do that I get this in the init logs :
> >
> > [15/03/2006 13:40:42:387 MET] 1 WSDDHandler > setScope
> @11cec8,"application"
> >
> > But if I invoke the service, it fails with :
> >
> > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > AxisWsddException @ff0da988,7, <null>
> > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > getMessageForExceptionCode @ff0da988,7
> > [15/03/2006 13:40:49:216 MET] 1 AxisWsddException <
> > getMessageForExceptionCode @ff0da988,"AxisWsddException:Requested
> > service not found"
> >
> > I also tested with request and session scopes, it failed too.
> >
> > 2006/3/9, John Hawkins < HAWKINSJ@uk.ibm.com >:
> >
> > I'll put it this way - it's not tested.
>
> >
> > "Antoine Galataud" <antoine.galataud@gmail.com >
> > 09/03/2006 14:23
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Application, Session or Request scope
> >
> >
> >
> >
> >
>
> >
> >
> >
> >
> >
> >
> >
> >
> > Hi !
> >
> > does Axis 1.6x handle scope ? I tried to add a scope="Application" in
> > my service declaration in server.wsdd, but it doesn't seem to work...
> >
> > Thanks
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> >
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> >
> > --
> >
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen


--
Antoine Galataud
antoine.galataud@gmail.com 
D?partement Architecture des Syst?mes d'Information
INSA - Rouen




-- 
Antoine Galataud
antoine.galataud@gmail.com
D?partement Architecture des Syst?mes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com 
D?partement Architecture des Syst?mes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com
D?partement Architecture des Syst?mes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen 

Re: Application, Session or Request scope

Posted by Antoine Galataud <an...@gmail.com>.
The logs are clear : it does a loadlib each time a method is called

2006/3/24, John Hawkins <HA...@uk.ibm.com>:
>
>
> I've not got time to look into this problem but it should not load the
> libs but it might be creating new instances of the objects. Can you confirm
> which?
>
>
>
>  *"Antoine Galataud" <an...@gmail.com>*
>
> 24/03/2006 10:33
>  Please respond to
> "Apache AXIS C User List" <ax...@ws.apache.org>
>
>   To
> "Apache AXIS C User List" <ax...@ws.apache.org>  cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
> Hi,
>
> Could you confirm that it is a normal behavior that axis engine load libs
> each time a method is called on ? Or is it a mistake in my configuration ?
>
> Thanks
>
> 2006/3/23, Antoine Galataud < *antoine.galataud@gmail.com*<an...@gmail.com>
> >:
> Yes that's it.
>
>
> 2006/3/23, John Hawkins <* HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com>>:
>
> OK,
>
> so let me repeat it back to you so we're clear.
>
> You tested and found that the library is loaded and unloaded on every
> method call?
>
>
>
>   *"Antoine Galataud" <**...@gmail.com>
> *>*
>
> 23/03/2006 09:14
>
>
>   Please respond to
> "Apache AXIS C User List" <*a...@ws.apache.org>
> >
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>
> >  cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
> No, I didn't test it yet. But I realized, reading again Adrian mail and
> looking at wrapper class that it can't be my solution (or just a part of).
> What I'm saying is that the wrapper class is contained in the web service
> library, and is used to initialize and stop the web service with init and
> fini methods. But this doesn't resolve my problem: I want the library loaded
> and run until server shuts down. So what I need is the scope parameter of
> server.wsdd file correctly handled (I tested that it doesn't work), so the
> library is loaded at first request and stays up.
>
> 2006/3/23, John Hawkins <* HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com>>:
>
> Sorry, I'm not clear what you are saying - are you saying that you have
> tested this and the library is loaded each time the service is requested?
>
>
>   *"Antoine Galataud" <**antoine.galataud@gmail.com** *<an...@gmail.com>
> *>*
>
> 22/03/2006 17:18
>
>
>   Please respond to
> "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>>
> cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
> Hi,
>
> this a very great manner to initialize my business objects before
> getting a request, but does this help to have the web service library
> loaded once and not unloaded when method returns ?
> I mean, for the moment I can't call a method without having Axis
> loading the web service library (at each call). I need it to load at
> first time, then be up until server (apache) shuts down.
> What you are saying is that library is loaded at first invocation and
> unloaded when server shuts down. But in my case, library is loaded
> each time the service is requested !
>
> Thanks
> 2006/3/21, Adrian Dick <*adrian.dick@uk.ibm.com** *<ad...@uk.ibm.com>
> >:
> > Hi,
> >
> > There is already a mechanism in place to do this.
> >
> > As part of WrapperClassHandler, from which the generated wrapper class
> is
> > inherited, there are the init and fini methods.
> > These methods are called respectively as the service library is loaded
> (ie:
> > first invocation of service) and unloaded (ie: server shutdown).
> >
> > As these methods are virtual, you can override these within the
> generated
> > wrapper class, to do the initialization and clearup activities you
> require.
> >
> >
> > One word of warning, although this has been designed to work in this
> > manner, it hasn't (so far) been tested.
> >
> > Please let us know how you get on with trying this.
> >
> > Regards,
> > Adrian
> > _______________________________________
> > Adrian Dick (*adrian.dick@uk.ibm.com* <ad...@uk.ibm.com> )
> >
> >
> > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>>
> wrote on 21/03/2006
> > 12:43:45:
> >
> > >
> > > Sorry, I haven't been really clear with what I wanted to do. I'll
> > > try to clarify my thoughts a little :
> > >
> > > I get a web service library, that handles the web service technical
> > > part and access to business objects. But my business part is heavy
> > > to initialize, and I want to do it only once, so when a first
> > > request come to the web service, the back end service starts and
> > > replys, then any other request doesn't involve a back end service
> start.
> > >
> > > So what I want to do is, as axis java does, define an application
> > > scope for the web service and get the service running until container
> > stops.
> >
> > > 2006/3/21, John Hawkins < *HAWKINSJ@uk.ibm.com** *<HA...@uk.ibm.com>
> >:
> > >
> > > Antoine,
> > >
> > > Can I clarify what you're trying to do here? Are you trying to have
> > > a stateful session with a particular instance of a service i.e. the
> > > same service gets called twice? Or pass context across the-wire on
> > > subsequent uses of the same stub?
> > >
> > > thanks,
> > > John.
> > >
> > >
> > >
> >
> > >
> > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>
> >
> > > 21/03/2006 09:27
> > >
> > > Please respond to
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Re: Application, Session or Request scope
> > >
> > >
> > >
> > >
> > > Hi !
> > >
> > > I've found no way to solve my scope issue for the moment, I'm still
> > > looking for a way to do this (application scope, not handlers).
> > >
> > > Thanks for any idea !
> > >
> > > 2006/3/16, Antoine Galataud < *antoine.galataud@gmail.com *<an...@gmail.com>
> >:
> > > It doesn't work :
> > >
> > > in fact, I succeeded in getting a session scope, e.g I request the
> > > service 2 times in the same main() client, but I can't have an
> > > application scope. But I don't get the error I described in my
> > > earlier mail, now it gives me nothing. And I'm talking about service
> > > scope, I don't use any handler.
> > >
> > > Thanks for your answer
> > >
> > > 2006/3/16, John Hawkins <*HAWKINSJ@uk.ibm.com** *<HA...@uk.ibm.com>
> >:
> > >
> > > I've just looked at this again and I'm not sure I understand your
> > > question now!
> > >
> > >
> > > If I look at your wsdd file it doesn't look correct to my thoughts
> > > (is it the complete wsdd file?) e.g. this is a client sample wsdd file
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > >
> > > <deployment xmlns="*http://xml.apache.org/axis/wsdd/ *<http://xml.apache.org/axis/wsdd/>"
> xlmns:
> > > C="http//xml.apache.org.axis/wsdd/providers/c">
> > >
> > >  <service name="Handler" provider="CPP:DOCUMENT"
> description="Handler">
> > >
> > >  <requestFlow>
> > >
> > >  <handler name="myClientHandlerReq"
> > > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > > name="myClientHandlerReq"
> > > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> > >
> > >  </handler>
> > >
> > >  </requestFlow>
> > >
> > >  <responseFlow>
> > >
> > >  <handler name="myClientHandlerRes"
> > > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > > name="myClientHandlerRes"
> > > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> > >
> > >  </handler>
> > >
> > >  </responseFlow>
> > >
> > >  </service>
> > >
> > >  </deployment>
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> > >
> > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>
> >
> > > 16/03/2006 12:57
> > >
> > > Please respond to
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Re: Application, Session or Request scope
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > > yes, i'm referring to the service scope. I saw in the doc that I
> > > could set a scope for handlers in response/reauest flows, but I
> > > didn't see anything about service.
> > >
> > > I'll try to set the scope also in client.wsdd, maybe it's what I'm
> > missing.
> > >
> > > Thanks for any further comments/suggestions.
> > >
> > > 2006/3/16, James Jose <*jamejose@in.ibm.com** * <ja...@in.ibm.com>
> >:
> > >
> > > Hi,
> > >
> > >  We are running HandlerTest01 to HandlerTest10.  But here Antoine is
> > > referring the scope of the service ..?
> > >
> > >
> > > Regards
> > > James
> > > --------------------------------------------------
> > > James Jose
> > > Messaging Clients Team, WMQDDC
> > > IBM Software Labs, India
> > > Direct: 91-80- 25094331  Ext :2331
> > > E-mail: *jamejose@in.ibm.com* <ja...@in.ibm.com>
> > >
> >
> > >
> > > John Hawkins < *HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com> >
> > > 03/16/2006 17:50
> > >
> > > Please respond to
> > > "Apache AXIS C User List"
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Re: Application, Session or Request scope
> > >
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Well, service and global handlers should work for the client and I'm
> > > surprised they aren't working for the server. Can you try it in the
> > > client and see if you get the same results. James - what tests do we
> > > run on handlers nowadays?
> >
> > >
> > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>
> >
> > > 16/03/2006 11:38
> > >
> > > Please respond to
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Re: Application, Session or Request scope
> > >
> > >
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > So, is there any work around to get this feature working ?
> > >
> > > Thanks for your answer
> > >
> > > 2006/3/15, Antoine Galataud <*antoine.galataud@gmail.com *<an...@gmail.com>
> >:
> > > Hum, seems scope is not yet correctly implemented (or tested) in 1.
> > > 6a.n (solaris) release. Here is my server.wsdd :
> > >
> > > <service name="IAdminConfiguration" provider="CPP:RPC"
> > > description="IAdminConfiguration Web Services">
> > >     <parameter name="allowedMethods" value="notifyDictionaryReinit
> > > initService"/>
> > >     <parameter name="scope" value="application">
> > >     <parameter name="className"
> > > value="/home/antgalat/apache/webservices/libiadminconfig.so"/>
> > > </service>
> > >
> > > If I do that I get this in the init logs :
> > >
> > > [15/03/2006 13:40:42:387 MET] 1 WSDDHandler > setScope
> > @11cec8,"application"
> > >
> > > But if I invoke the service, it fails with :
> > >
> > > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > > AxisWsddException @ff0da988,7, <null>
> > > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > > getMessageForExceptionCode @ff0da988,7
> > > [15/03/2006 13:40:49:216 MET] 1 AxisWsddException <
> > > getMessageForExceptionCode @ff0da988,"AxisWsddException:Requested
> > > service not found"
> > >
> > > I also tested with request and session scopes, it failed too.
> > >
> > > 2006/3/9, John Hawkins < *HAWKINSJ@uk.ibm.com** *<HA...@uk.ibm.com>
> >:
> > >
> > > I'll put it this way - it's not tested.
> >
> > >
> > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>
> >
> > > 09/03/2006 14:23
> > >
> > > Please respond to
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Application, Session or Request scope
> > >
> > >
> > >
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Hi !
> > >
> > > does Axis 1.6x handle scope ? I tried to add a scope="Application" in
> > > my service declaration in server.wsdd, but it doesn't seem to work...
> > >
> > > Thanks
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > >
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > >
> > > --
> > >
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>



--
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen

Re: Application, Session or Request scope

Posted by John Hawkins <HA...@uk.ibm.com>.
I've not got time to look into this problem but it should not load the 
libs but it might be creating new instances of the objects. Can you 
confirm which? 




"Antoine Galataud" <an...@gmail.com> 
24/03/2006 10:33
Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>


To
"Apache AXIS C User List" <ax...@ws.apache.org>
cc

Subject
Re: Application, Session or Request scope






Hi,

Could you confirm that it is a normal behavior that axis engine load libs 
each time a method is called on ? Or is it a mistake in my configuration ?

Thanks

2006/3/23, Antoine Galataud < antoine.galataud@gmail.com>:
Yes that's it. 


2006/3/23, John Hawkins < HAWKINSJ@uk.ibm.com>:

OK, 

so let me repeat it back to you so we're clear. 

You tested and found that the library is loaded and unloaded on every 
method call? 




"Antoine Galataud" <an...@gmail.com> 
23/03/2006 09:14 


Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>


To
"Apache AXIS C User List" <ax...@ws.apache.org> 
cc

Subject
Re: Application, Session or Request scope








No, I didn't test it yet. But I realized, reading again Adrian mail and 
looking at wrapper class that it can't be my solution (or just a part of). 
What I'm saying is that the wrapper class is contained in the web service 
library, and is used to initialize and stop the web service with init and 
fini methods. But this doesn't resolve my problem: I want the library 
loaded and run until server shuts down. So what I need is the scope 
parameter of server.wsdd file correctly handled (I tested that it doesn't 
work), so the library is loaded at first request and stays up.

2006/3/23, John Hawkins < HAWKINSJ@uk.ibm.com>: 

Sorry, I'm not clear what you are saying - are you saying that you have 
tested this and the library is loaded each time the service is requested? 



"Antoine Galataud" <antoine.galataud@gmail.com > 
22/03/2006 17:18 


Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org >



To
"Apache AXIS C User List" <axis-c-user@ws.apache.org > 
cc

Subject
Re: Application, Session or Request scope










Hi,

this a very great manner to initialize my business objects before
getting a request, but does this help to have the web service library
loaded once and not unloaded when method returns ?
I mean, for the moment I can't call a method without having Axis
loading the web service library (at each call). I need it to load at
first time, then be up until server (apache) shuts down.
What you are saying is that library is loaded at first invocation and
unloaded when server shuts down. But in my case, library is loaded
each time the service is requested !

Thanks
2006/3/21, Adrian Dick <adrian.dick@uk.ibm.com >:
> Hi,
>
> There is already a mechanism in place to do this.
>
> As part of WrapperClassHandler, from which the generated wrapper class 
is
> inherited, there are the init and fini methods.
> These methods are called respectively as the service library is loaded 
(ie:
> first invocation of service) and unloaded (ie: server shutdown).
>
> As these methods are virtual, you can override these within the 
generated
> wrapper class, to do the initialization and clearup activities you 
require.
>
>
> One word of warning, although this has been designed to work in this
> manner, it hasn't (so far) been tested.
>
> Please let us know how you get on with trying this.
>
> Regards,
> Adrian
> _______________________________________
> Adrian Dick (adrian.dick@uk.ibm.com )
>
>
> "Antoine Galataud" <antoine.galataud@gmail.com > wrote on 21/03/2006
> 12:43:45:
>
> >
> > Sorry, I haven't been really clear with what I wanted to do. I'll
> > try to clarify my thoughts a little :
> >
> > I get a web service library, that handles the web service technical
> > part and access to business objects. But my business part is heavy
> > to initialize, and I want to do it only once, so when a first
> > request come to the web service, the back end service starts and
> > replys, then any other request doesn't involve a back end service 
start.
> >
> > So what I want to do is, as axis java does, define an application
> > scope for the web service and get the service running until container
> stops.
>
> > 2006/3/21, John Hawkins < HAWKINSJ@uk.ibm.com >:
> >
> > Antoine,
> >
> > Can I clarify what you're trying to do here? Are you trying to have
> > a stateful session with a particular instance of a service i.e. the
> > same service gets called twice? Or pass context across the-wire on
> > subsequent uses of the same stub?
> >
> > thanks,
> > John.
> >
> >
> >
>
> >
> > "Antoine Galataud" <antoine.galataud@gmail.com >
> > 21/03/2006 09:27
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
> >
> >
> > Hi !
> >
> > I've found no way to solve my scope issue for the moment, I'm still
> > looking for a way to do this (application scope, not handlers).
> >
> > Thanks for any idea !
> >
> > 2006/3/16, Antoine Galataud < antoine.galataud@gmail.com >:
> > It doesn't work :
> >
> > in fact, I succeeded in getting a session scope, e.g I request the
> > service 2 times in the same main() client, but I can't have an
> > application scope. But I don't get the error I described in my
> > earlier mail, now it gives me nothing. And I'm talking about service
> > scope, I don't use any handler.
> >
> > Thanks for your answer
> >
> > 2006/3/16, John Hawkins <HAWKINSJ@uk.ibm.com >:
> >
> > I've just looked at this again and I'm not sure I understand your
> > question now!
> >
> >
> > If I look at your wsdd file it doesn't look correct to my thoughts
> > (is it the complete wsdd file?) e.g. this is a client sample wsdd file
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> >
> > <deployment xmlns="http://xml.apache.org/axis/wsdd/ " xlmns:
> > C="http//xml.apache.org.axis/wsdd/providers/c">
> >
> >  <service name="Handler" provider="CPP:DOCUMENT" 
description="Handler">
> >
> >  <requestFlow>
> >
> >  <handler name="myClientHandlerReq"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > name="myClientHandlerReq"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> >
> >  </handler>
> >
> >  </requestFlow>
> >
> >  <responseFlow>
> >
> >  <handler name="myClientHandlerRes"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > name="myClientHandlerRes"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> >
> >  </handler>
> >
> >  </responseFlow>
> >
> >  </service>
> >
> >  </deployment>
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
> >
> > "Antoine Galataud" <antoine.galataud@gmail.com >
> > 16/03/2006 12:57
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
>
> >
> >
> >
> >
> >
> > yes, i'm referring to the service scope. I saw in the doc that I
> > could set a scope for handlers in response/reauest flows, but I
> > didn't see anything about service.
> >
> > I'll try to set the scope also in client.wsdd, maybe it's what I'm
> missing.
> >
> > Thanks for any further comments/suggestions.
> >
> > 2006/3/16, James Jose <jamejose@in.ibm.com >:
> >
> > Hi,
> >
> >  We are running HandlerTest01 to HandlerTest10.  But here Antoine is
> > referring the scope of the service ..?
> >
> >
> > Regards
> > James
> > --------------------------------------------------
> > James Jose
> > Messaging Clients Team, WMQDDC
> > IBM Software Labs, India
> > Direct: 91-80- 25094331  Ext :2331
> > E-mail: jamejose@in.ibm.com 
> >
>
> >
> > John Hawkins < HAWKINSJ@uk.ibm.com >
> > 03/16/2006 17:50
> >
> > Please respond to
> > "Apache AXIS C User List"
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
> >
>
> >
> >
> >
> >
> >
> >
> >
> > Well, service and global handlers should work for the client and I'm
> > surprised they aren't working for the server. Can you try it in the
> > client and see if you get the same results. James - what tests do we
> > run on handlers nowadays?
>
> >
> > "Antoine Galataud" <antoine.galataud@gmail.com >
> > 16/03/2006 11:38
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
> >
> >
>
> >
> >
> >
> >
> >
> >
> >
> > So, is there any work around to get this feature working ?
> >
> > Thanks for your answer
> >
> > 2006/3/15, Antoine Galataud <antoine.galataud@gmail.com >:
> > Hum, seems scope is not yet correctly implemented (or tested) in 1.
> > 6a.n (solaris) release. Here is my server.wsdd :
> >
> > <service name="IAdminConfiguration" provider="CPP:RPC"
> > description="IAdminConfiguration Web Services">
> >     <parameter name="allowedMethods" value="notifyDictionaryReinit
> > initService"/>
> >     <parameter name="scope" value="application">
> >     <parameter name="className"
> > value="/home/antgalat/apache/webservices/libiadminconfig.so"/>
> > </service>
> >
> > If I do that I get this in the init logs :
> >
> > [15/03/2006 13:40:42:387 MET] 1 WSDDHandler > setScope
> @11cec8,"application"
> >
> > But if I invoke the service, it fails with :
> >
> > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > AxisWsddException @ff0da988,7, <null>
> > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > getMessageForExceptionCode @ff0da988,7
> > [15/03/2006 13:40:49:216 MET] 1 AxisWsddException <
> > getMessageForExceptionCode @ff0da988,"AxisWsddException:Requested
> > service not found"
> >
> > I also tested with request and session scopes, it failed too.
> >
> > 2006/3/9, John Hawkins < HAWKINSJ@uk.ibm.com >:
> >
> > I'll put it this way - it's not tested.
>
> >
> > "Antoine Galataud" <antoine.galataud@gmail.com >
> > 09/03/2006 14:23
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Application, Session or Request scope
> >
> >
> >
> >
> >
>
> >
> >
> >
> >
> >
> >
> >
> >
> > Hi !
> >
> > does Axis 1.6x handle scope ? I tried to add a scope="Application" in
> > my service declaration in server.wsdd, but it doesn't seem to work...
> >
> > Thanks
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> >
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> >
> > --
> >
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com 
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen


--
Antoine Galataud
antoine.galataud@gmail.com 
D?partement Architecture des Syst?mes d'Information
INSA - Rouen




-- 
Antoine Galataud
antoine.galataud@gmail.com
D?partement Architecture des Syst?mes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen 

Re: Application, Session or Request scope

Posted by Antoine Galataud <an...@gmail.com>.
Hi,

Could you confirm that it is a normal behavior that axis engine load libs
each time a method is called on ? Or is it a mistake in my configuration ?

Thanks

2006/3/23, Antoine Galataud <an...@gmail.com>:
>
> Yes that's it.
>
> 2006/3/23, John Hawkins <HA...@uk.ibm.com>:
> >
> >
> > OK,
> >
> > so let me repeat it back to you so we're clear.
> >
> > You tested and found that the library is loaded and unloaded on every
> > method call?
> >
> >
> >
> >
> >  *"Antoine Galataud" <an...@gmail.com>*
> >
> > 23/03/2006 09:14
> >  Please respond to
> > "Apache AXIS C User List" <ax...@ws.apache.org>
> >
> >   To
> > "Apache AXIS C User List" <ax...@ws.apache.org>  cc
> >
> >  Subject
> > Re: Application, Session or Request scope
> >
> >
> >
> >
> >
> >
> > No, I didn't test it yet. But I realized, reading again Adrian mail and
> > looking at wrapper class that it can't be my solution (or just a part of).
> > What I'm saying is that the wrapper class is contained in the web service
> > library, and is used to initialize and stop the web service with init and
> > fini methods. But this doesn't resolve my problem: I want the library loaded
> > and run until server shuts down. So what I need is the scope parameter of
> > server.wsdd file correctly handled (I tested that it doesn't work), so
> > the library is loaded at first request and stays up.
> >
> > 2006/3/23, John Hawkins <* HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com>>:
> >
> > Sorry, I'm not clear what you are saying - are you saying that you have
> > tested this and the library is loaded each time the service is requested?
> >
> >
> >
> >   *"Antoine Galataud" <**antoine.galataud@gmail.com*
> > <an...@gmail.com>*>*
> >
> > 22/03/2006 17:18
> >
> >
> >   Please respond to
> > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> > >
> >
> >   To
> > "Apache AXIS C User List" <*a...@ws.apache.org>>
> > cc
> >
> >  Subject
> > Re: Application, Session or Request scope
> >
> >
> >
> >
> >
> >
> >
> >
> > Hi,
> >
> > this a very great manner to initialize my business objects before
> > getting a request, but does this help to have the web service library
> > loaded once and not unloaded when method returns ?
> > I mean, for the moment I can't call a method without having Axis
> > loading the web service library (at each call). I need it to load at
> > first time, then be up until server (apache) shuts down.
> > What you are saying is that library is loaded at first invocation and
> > unloaded when server shuts down. But in my case, library is loaded
> > each time the service is requested !
> >
> > Thanks
> > 2006/3/21, Adrian Dick <*adrian.dick@uk.ibm.com*
> > <ad...@uk.ibm.com>>:
> > > Hi,
> > >
> > > There is already a mechanism in place to do this.
> > >
> > > As part of WrapperClassHandler, from which the generated wrapper class
> > is
> > > inherited, there are the init and fini methods.
> > > These methods are called respectively as the service library is loaded
> > (ie:
> > > first invocation of service) and unloaded (ie: server shutdown).
> > >
> > > As these methods are virtual, you can override these within the
> > generated
> > > wrapper class, to do the initialization and clearup activities you
> > require.
> > >
> > >
> > > One word of warning, although this has been designed to work in this
> > > manner, it hasn't (so far) been tested.
> > >
> > > Please let us know how you get on with trying this.
> > >
> > > Regards,
> > > Adrian
> > > _______________________________________
> > > Adrian Dick (*adrian.dick@uk.ibm.com* <ad...@uk.ibm.com> )
> > >
> > >
> > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>>
> > wrote on 21/03/2006
> > > 12:43:45:
> > >
> > > >
> > > > Sorry, I haven't been really clear with what I wanted to do. I'll
> > > > try to clarify my thoughts a little :
> > > >
> > > > I get a web service library, that handles the web service technical
> > > > part and access to business objects. But my business part is heavy
> > > > to initialize, and I want to do it only once, so when a first
> > > > request come to the web service, the back end service starts and
> > > > replys, then any other request doesn't involve a back end service
> > start.
> > > >
> > > > So what I want to do is, as axis java does, define an application
> > > > scope for the web service and get the service running until
> > container
> > > stops.
> > >
> > > > 2006/3/21, John Hawkins < *HAWKINSJ@uk.ibm.com*
> > <HA...@uk.ibm.com>>:
> > > >
> > > > Antoine,
> > > >
> > > > Can I clarify what you're trying to do here? Are you trying to have
> > > > a stateful session with a particular instance of a service i.e. the
> > > > same service gets called twice? Or pass context across the-wire on
> > > > subsequent uses of the same stub?
> > > >
> > > > thanks,
> > > > John.
> > > >
> > > >
> > > >
> > >
> > > >
> > > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>
> > >
> > > > 21/03/2006 09:27
> > > >
> > > > Please respond to
> > > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> > >
> > > >
> > > > To
> > > >
> > > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> > >
> > > >
> > > > cc
> > > >
> > > > Subject
> > > >
> > > > Re: Application, Session or Request scope
> > > >
> > > >
> > > >
> > > >
> > > > Hi !
> > > >
> > > > I've found no way to solve my scope issue for the moment, I'm still
> > > > looking for a way to do this (application scope, not handlers).
> > > >
> > > > Thanks for any idea !
> > > >
> > > > 2006/3/16, Antoine Galataud < *antoine.galataud@gmail.com *<an...@gmail.com>>:
> > > > It doesn't work :
> > > >
> > > > in fact, I succeeded in getting a session scope, e.g I request the
> > > > service 2 times in the same main() client, but I can't have an
> > > > application scope. But I don't get the error I described in my
> > > > earlier mail, now it gives me nothing. And I'm talking about service
> > > > scope, I don't use any handler.
> > > >
> > > > Thanks for your answer
> > > >
> > > > 2006/3/16, John Hawkins <*HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com>>:
> > > >
> > > > I've just looked at this again and I'm not sure I understand your
> > > > question now!
> > > >
> > > >
> > > > If I look at your wsdd file it doesn't look correct to my thoughts
> > > > (is it the complete wsdd file?) e.g. this is a client sample wsdd
> > file
> > > >
> > > > <?xml version="1.0" encoding="UTF-8"?>
> > > >
> > > > <deployment xmlns="*http://xml.apache.org/axis/wsdd/ *<http://xml.apache.org/axis/wsdd/>" xlmns:
> > > > C="http//xml.apache.org.axis/wsdd/providers/c">
> > > >
> > > >  <service name="Handler" provider="CPP:DOCUMENT"
> > description="Handler">
> > > >
> > > >  <requestFlow>
> > > >
> > > >  <handler name="myClientHandlerReq"
> > > > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > > > name="myClientHandlerReq"
> > > > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> > > >
> > > >  </handler>
> > > >
> > > >  </requestFlow>
> > > >
> > > >  <responseFlow>
> > > >
> > > >  <handler name="myClientHandlerRes"
> > > > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > > > name="myClientHandlerRes"
> > > > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> > > >
> > > >  </handler>
> > > >
> > > >  </responseFlow>
> > > >
> > > >  </service>
> > > >
> > > >  </deployment>
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > > >
> > > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>>
> > > > 16/03/2006 12:57
> > > >
> > > > Please respond to
> > > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>>
> > > >
> > > > To
> > > >
> > > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>>
> > > >
> > > > cc
> > > >
> > > > Subject
> > > >
> > > > Re: Application, Session or Request scope
> > > >
> > > >
> > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > yes, i'm referring to the service scope. I saw in the doc that I
> > > > could set a scope for handlers in response/reauest flows, but I
> > > > didn't see anything about service.
> > > >
> > > > I'll try to set the scope also in client.wsdd, maybe it's what I'm
> > > missing.
> > > >
> > > > Thanks for any further comments/suggestions.
> > > >
> > > > 2006/3/16, James Jose <*jamejose@in.ibm.com* <ja...@in.ibm.com>>:
> > > >
> > > > Hi,
> > > >
> > > >  We are running HandlerTest01 to HandlerTest10.  But here Antoine is
> > > > referring the scope of the service ..?
> > > >
> > > >
> > > > Regards
> > > > James
> > > > --------------------------------------------------
> > > > James Jose
> > > > Messaging Clients Team, WMQDDC
> > > > IBM Software Labs, India
> > > > Direct: 91-80- 25094331  Ext :2331
> > > > E-mail: *jamejose@in.ibm.com* <ja...@in.ibm.com>
> > > >
> > >
> > > >
> > > > John Hawkins < *HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com> >
> > > > 03/16/2006 17:50
> > > >
> > > > Please respond to
> > > > "Apache AXIS C User List"
> > > >
> > > > To
> > > >
> > > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>>
> > > >
> > > > cc
> > > >
> > > > Subject
> > > >
> > > > Re: Application, Session or Request scope
> > > >
> > > >
> > > >
> > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Well, service and global handlers should work for the client and I'm
> > > > surprised they aren't working for the server. Can you try it in the
> > > > client and see if you get the same results. James - what tests do we
> > > > run on handlers nowadays?
> > >
> > > >
> > > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>>
> > > > 16/03/2006 11:38
> > > >
> > > > Please respond to
> > > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>>
> > > >
> > > > To
> > > >
> > > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>>
> > > >
> > > > cc
> > > >
> > > > Subject
> > > >
> > > > Re: Application, Session or Request scope
> > > >
> > > >
> > > >
> > > >
> > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > So, is there any work around to get this feature working ?
> > > >
> > > > Thanks for your answer
> > > >
> > > > 2006/3/15, Antoine Galataud <*antoine.galataud@gmail.com *<an...@gmail.com>>:
> > > > Hum, seems scope is not yet correctly implemented (or tested) in 1.
> > > > 6a.n (solaris) release. Here is my server.wsdd :
> > > >
> > > > <service name="IAdminConfiguration" provider="CPP:RPC"
> > > > description="IAdminConfiguration Web Services">
> > > >     <parameter name="allowedMethods" value="notifyDictionaryReinit
> > > > initService"/>
> > > >     <parameter name="scope" value="application">
> > > >     <parameter name="className"
> > > > value="/home/antgalat/apache/webservices/libiadminconfig.so"/>
> > > > </service>
> > > >
> > > > If I do that I get this in the init logs :
> > > >
> > > > [15/03/2006 13:40:42:387 MET] 1 WSDDHandler > setScope
> > > @11cec8,"application"
> > > >
> > > > But if I invoke the service, it fails with :
> > > >
> > > > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > > > AxisWsddException @ff0da988,7, <null>
> > > > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > > > getMessageForExceptionCode @ff0da988,7
> > > > [15/03/2006 13:40:49:216 MET] 1 AxisWsddException <
> > > > getMessageForExceptionCode @ff0da988,"AxisWsddException:Requested
> > > > service not found"
> > > >
> > > > I also tested with request and session scopes, it failed too.
> > > >
> > > > 2006/3/9, John Hawkins < *HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com>
> > >:
> > > >
> > > > I'll put it this way - it's not tested.
> > >
> > > >
> > > > "Antoine Galataud" <*antoine.galataud@gmail.com *<an...@gmail.com>>
> > > > 09/03/2006 14:23
> > > >
> > > > Please respond to
> > > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>>
> > > >
> > > > To
> > > >
> > > > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>>
> > > >
> > > > cc
> > > >
> > > > Subject
> > > >
> > > > Application, Session or Request scope
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Hi !
> > > >
> > > > does Axis 1.6x handle scope ? I tried to add a scope="Application"
> > in
> > > > my service declaration in server.wsdd, but it doesn't seem to
> > work...
> > > >
> > > > Thanks
> > > > --
> > > > Antoine Galataud
> > > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > >
> > > > D�partement Architecture des Syst�mes d'Information
> > > > INSA - Rouen
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > >
> > > > Antoine Galataud
> > > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > > D�partement Architecture des Syst�mes d'Information
> > > > INSA - Rouen
> > > >
> > > >
> > > >
> > > > --
> > > > Antoine Galataud
> > > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > > D�partement Architecture des Syst�mes d'Information
> > > > INSA - Rouen
> > > >
> > > >
> > > >
> > > > --
> > > > Antoine Galataud
> > > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > > D�partement Architecture des Syst�mes d'Information
> > > > INSA - Rouen
> > > >
> > > >
> > > >
> > > > --
> > > > Antoine Galataud
> > > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > > D�partement Architecture des Syst�mes d'Information
> > > > INSA - Rouen
> > > >
> > > >
> > > >
> > > > --
> > > > Antoine Galataud
> > > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > > D�partement Architecture des Syst�mes d'Information
> > > > INSA - Rouen
> > > >
> > > >
> > > >
> > > > --
> > > > Antoine Galataud
> > > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > > D�partement Architecture des Syst�mes d'Information
> > > > INSA - Rouen
> >
> >
> > --
> > Antoine Galataud*
> > **antoine.galataud@gmail.com* <an...@gmail.com>
> > D�partement Architecture des Syst�mes d'Information
> > INSA - Rouen
> >
> >
> >
> >
> > --
> > Antoine Galataud*
> > **antoine.galataud@gmail.com* <an...@gmail.com>
> > D�partement Architecture des Syst�mes d'Information
> > INSA - Rouen
> >
>
>
>
> --
> Antoine Galataud
> antoine.galataud@gmail.com
> Département Architecture des Systèmes d'Information
> INSA - Rouen
>



--
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen

Re: Application, Session or Request scope

Posted by Antoine Galataud <an...@gmail.com>.
Yes that's it.

2006/3/23, John Hawkins <HA...@uk.ibm.com>:
>
>
> OK,
>
> so let me repeat it back to you so we're clear.
>
> You tested and found that the library is loaded and unloaded on every
> method call?
>
>
>
>
>  *"Antoine Galataud" <an...@gmail.com>*
>
> 23/03/2006 09:14
>  Please respond to
> "Apache AXIS C User List" <ax...@ws.apache.org>
>
>   To
> "Apache AXIS C User List" <ax...@ws.apache.org>  cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
> No, I didn't test it yet. But I realized, reading again Adrian mail and
> looking at wrapper class that it can't be my solution (or just a part of).
> What I'm saying is that the wrapper class is contained in the web service
> library, and is used to initialize and stop the web service with init and
> fini methods. But this doesn't resolve my problem: I want the library loaded
> and run until server shuts down. So what I need is the scope parameter of
> server.wsdd file correctly handled (I tested that it doesn't work), so the
> library is loaded at first request and stays up.
>
> 2006/3/23, John Hawkins <* HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com>>:
>
> Sorry, I'm not clear what you are saying - are you saying that you have
> tested this and the library is loaded each time the service is requested?
>
>
>
>   *"Antoine Galataud" <**...@gmail.com>
> *>*
>
> 22/03/2006 17:18
>
>
>   Please respond to
> "Apache AXIS C User List" <*a...@ws.apache.org>
> >
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>
> >  cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
> Hi,
>
> this a very great manner to initialize my business objects before
> getting a request, but does this help to have the web service library
> loaded once and not unloaded when method returns ?
> I mean, for the moment I can't call a method without having Axis
> loading the web service library (at each call). I need it to load at
> first time, then be up until server (apache) shuts down.
> What you are saying is that library is loaded at first invocation and
> unloaded when server shuts down. But in my case, library is loaded
> each time the service is requested !
>
> Thanks
> 2006/3/21, Adrian Dick <*adrian.dick@uk.ibm.com* <ad...@uk.ibm.com>
> >:
> > Hi,
> >
> > There is already a mechanism in place to do this.
> >
> > As part of WrapperClassHandler, from which the generated wrapper class
> is
> > inherited, there are the init and fini methods.
> > These methods are called respectively as the service library is loaded
> (ie:
> > first invocation of service) and unloaded (ie: server shutdown).
> >
> > As these methods are virtual, you can override these within the
> generated
> > wrapper class, to do the initialization and clearup activities you
> require.
> >
> >
> > One word of warning, although this has been designed to work in this
> > manner, it hasn't (so far) been tested.
> >
> > Please let us know how you get on with trying this.
> >
> > Regards,
> > Adrian
> > _______________________________________
> > Adrian Dick (*adrian.dick@uk.ibm.com* <ad...@uk.ibm.com>)
> >
> >
> > "Antoine Galataud" <*a...@gmail.com>>
> wrote on 21/03/2006
> > 12:43:45:
> >
> > >
> > > Sorry, I haven't been really clear with what I wanted to do. I'll
> > > try to clarify my thoughts a little :
> > >
> > > I get a web service library, that handles the web service technical
> > > part and access to business objects. But my business part is heavy
> > > to initialize, and I want to do it only once, so when a first
> > > request come to the web service, the back end service starts and
> > > replys, then any other request doesn't involve a back end service
> start.
> > >
> > > So what I want to do is, as axis java does, define an application
> > > scope for the web service and get the service running until container
> > stops.
> >
> > > 2006/3/21, John Hawkins < *HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com>
> >:
> > >
> > > Antoine,
> > >
> > > Can I clarify what you're trying to do here? Are you trying to have
> > > a stateful session with a particular instance of a service i.e. the
> > > same service gets called twice? Or pass context across the-wire on
> > > subsequent uses of the same stub?
> > >
> > > thanks,
> > > John.
> > >
> > >
> > >
> >
> > >
> > > "Antoine Galataud" <*a...@gmail.com>
> >
> > > 21/03/2006 09:27
> > >
> > > Please respond to
> > > "Apache AXIS C User List" <*a...@ws.apache.org>
> >
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*a...@ws.apache.org>
> >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Re: Application, Session or Request scope
> > >
> > >
> > >
> > >
> > > Hi !
> > >
> > > I've found no way to solve my scope issue for the moment, I'm still
> > > looking for a way to do this (application scope, not handlers).
> > >
> > > Thanks for any idea !
> > >
> > > 2006/3/16, Antoine Galataud < *antoine.galataud@gmail.com*<an...@gmail.com>>:
> > > It doesn't work :
> > >
> > > in fact, I succeeded in getting a session scope, e.g I request the
> > > service 2 times in the same main() client, but I can't have an
> > > application scope. But I don't get the error I described in my
> > > earlier mail, now it gives me nothing. And I'm talking about service
> > > scope, I don't use any handler.
> > >
> > > Thanks for your answer
> > >
> > > 2006/3/16, John Hawkins <*HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com>>:
> > >
> > > I've just looked at this again and I'm not sure I understand your
> > > question now!
> > >
> > >
> > > If I look at your wsdd file it doesn't look correct to my thoughts
> > > (is it the complete wsdd file?) e.g. this is a client sample wsdd file
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > >
> > > <deployment xmlns="*http://xml.apache.org/axis/wsdd/*<http://xml.apache.org/axis/wsdd/>" xlmns:
> > > C="http//xml.apache.org.axis/wsdd/providers/c">
> > >
> > >  <service name="Handler" provider="CPP:DOCUMENT"
> description="Handler">
> > >
> > >  <requestFlow>
> > >
> > >  <handler name="myClientHandlerReq"
> > > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > > name="myClientHandlerReq"
> > > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> > >
> > >  </handler>
> > >
> > >  </requestFlow>
> > >
> > >  <responseFlow>
> > >
> > >  <handler name="myClientHandlerRes"
> > > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > > name="myClientHandlerRes"
> > > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> > >
> > >  </handler>
> > >
> > >  </responseFlow>
> > >
> > >  </service>
> > >
> > >  </deployment>
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> > >
> > > "Antoine Galataud" <*a...@gmail.com>>
> > > 16/03/2006 12:57
> > >
> > > Please respond to
> > > "Apache AXIS C User List" <*a...@ws.apache.org>>
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*a...@ws.apache.org>>
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Re: Application, Session or Request scope
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > > yes, i'm referring to the service scope. I saw in the doc that I
> > > could set a scope for handlers in response/reauest flows, but I
> > > didn't see anything about service.
> > >
> > > I'll try to set the scope also in client.wsdd, maybe it's what I'm
> > missing.
> > >
> > > Thanks for any further comments/suggestions.
> > >
> > > 2006/3/16, James Jose <*jamejose@in.ibm.com* <ja...@in.ibm.com> >:
> > >
> > > Hi,
> > >
> > >  We are running HandlerTest01 to HandlerTest10.  But here Antoine is
> > > referring the scope of the service ..?
> > >
> > >
> > > Regards
> > > James
> > > --------------------------------------------------
> > > James Jose
> > > Messaging Clients Team, WMQDDC
> > > IBM Software Labs, India
> > > Direct: 91-80- 25094331  Ext :2331
> > > E-mail: *jamejose@in.ibm.com* <ja...@in.ibm.com>
> > >
> >
> > >
> > > John Hawkins < *HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com>>
> > > 03/16/2006 17:50
> > >
> > > Please respond to
> > > "Apache AXIS C User List"
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*a...@ws.apache.org>>
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Re: Application, Session or Request scope
> > >
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Well, service and global handlers should work for the client and I'm
> > > surprised they aren't working for the server. Can you try it in the
> > > client and see if you get the same results. James - what tests do we
> > > run on handlers nowadays?
> >
> > >
> > > "Antoine Galataud" <*a...@gmail.com>>
> > > 16/03/2006 11:38
> > >
> > > Please respond to
> > > "Apache AXIS C User List" <*a...@ws.apache.org>>
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*a...@ws.apache.org>>
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Re: Application, Session or Request scope
> > >
> > >
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > So, is there any work around to get this feature working ?
> > >
> > > Thanks for your answer
> > >
> > > 2006/3/15, Antoine Galataud <*a...@gmail.com>>:
> > > Hum, seems scope is not yet correctly implemented (or tested) in 1.
> > > 6a.n (solaris) release. Here is my server.wsdd :
> > >
> > > <service name="IAdminConfiguration" provider="CPP:RPC"
> > > description="IAdminConfiguration Web Services">
> > >     <parameter name="allowedMethods" value="notifyDictionaryReinit
> > > initService"/>
> > >     <parameter name="scope" value="application">
> > >     <parameter name="className"
> > > value="/home/antgalat/apache/webservices/libiadminconfig.so"/>
> > > </service>
> > >
> > > If I do that I get this in the init logs :
> > >
> > > [15/03/2006 13:40:42:387 MET] 1 WSDDHandler > setScope
> > @11cec8,"application"
> > >
> > > But if I invoke the service, it fails with :
> > >
> > > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > > AxisWsddException @ff0da988,7, <null>
> > > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > > getMessageForExceptionCode @ff0da988,7
> > > [15/03/2006 13:40:49:216 MET] 1 AxisWsddException <
> > > getMessageForExceptionCode @ff0da988,"AxisWsddException:Requested
> > > service not found"
> > >
> > > I also tested with request and session scopes, it failed too.
> > >
> > > 2006/3/9, John Hawkins < *HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com>>:
> > >
> > > I'll put it this way - it's not tested.
> >
> > >
> > > "Antoine Galataud" <*a...@gmail.com>>
> > > 09/03/2006 14:23
> > >
> > > Please respond to
> > > "Apache AXIS C User List" <*a...@ws.apache.org>>
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <*a...@ws.apache.org>>
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Application, Session or Request scope
> > >
> > >
> > >
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Hi !
> > >
> > > does Axis 1.6x handle scope ? I tried to add a scope="Application" in
> > > my service declaration in server.wsdd, but it doesn't seem to work...
> > >
> > > Thanks
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > >
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > >
> > > --
> > >
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > *antoine.galataud@gmail.com* <an...@gmail.com>
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>



--
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen

Re: Application, Session or Request scope

Posted by John Hawkins <HA...@uk.ibm.com>.
OK,

so let me repeat it back to you so we're clear.

You tested and found that the library is loaded and unloaded on every 
method call?





"Antoine Galataud" <an...@gmail.com> 
23/03/2006 09:14
Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>


To
"Apache AXIS C User List" <ax...@ws.apache.org>
cc

Subject
Re: Application, Session or Request scope






No, I didn't test it yet. But I realized, reading again Adrian mail and 
looking at wrapper class that it can't be my solution (or just a part of). 
What I'm saying is that the wrapper class is contained in the web service 
library, and is used to initialize and stop the web service with init and 
fini methods. But this doesn't resolve my problem: I want the library 
loaded and run until server shuts down. So what I need is the scope 
parameter of server.wsdd file correctly handled (I tested that it doesn't 
work), so the library is loaded at first request and stays up.

2006/3/23, John Hawkins < HAWKINSJ@uk.ibm.com>:

Sorry, I'm not clear what you are saying - are you saying that you have 
tested this and the library is loaded each time the service is requested? 




"Antoine Galataud" <an...@gmail.com> 
22/03/2006 17:18 


Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>


To
"Apache AXIS C User List" <ax...@ws.apache.org> 
cc

Subject
Re: Application, Session or Request scope








Hi,

this a very great manner to initialize my business objects before
getting a request, but does this help to have the web service library
loaded once and not unloaded when method returns ?
I mean, for the moment I can't call a method without having Axis
loading the web service library (at each call). I need it to load at
first time, then be up until server (apache) shuts down.
What you are saying is that library is loaded at first invocation and
unloaded when server shuts down. But in my case, library is loaded
each time the service is requested !

Thanks
2006/3/21, Adrian Dick <ad...@uk.ibm.com>:
> Hi,
>
> There is already a mechanism in place to do this.
>
> As part of WrapperClassHandler, from which the generated wrapper class 
is
> inherited, there are the init and fini methods.
> These methods are called respectively as the service library is loaded 
(ie:
> first invocation of service) and unloaded (ie: server shutdown).
>
> As these methods are virtual, you can override these within the 
generated
> wrapper class, to do the initialization and clearup activities you 
require.
>
>
> One word of warning, although this has been designed to work in this
> manner, it hasn't (so far) been tested.
>
> Please let us know how you get on with trying this.
>
> Regards,
> Adrian
> _______________________________________
> Adrian Dick (adrian.dick@uk.ibm.com)
>
>
> "Antoine Galataud" <an...@gmail.com> wrote on 21/03/2006
> 12:43:45:
>
> >
> > Sorry, I haven't been really clear with what I wanted to do. I'll
> > try to clarify my thoughts a little :
> >
> > I get a web service library, that handles the web service technical
> > part and access to business objects. But my business part is heavy
> > to initialize, and I want to do it only once, so when a first
> > request come to the web service, the back end service starts and
> > replys, then any other request doesn't involve a back end service 
start.
> >
> > So what I want to do is, as axis java does, define an application
> > scope for the web service and get the service running until container
> stops.
>
> > 2006/3/21, John Hawkins < HAWKINSJ@uk.ibm.com>:
> >
> > Antoine,
> >
> > Can I clarify what you're trying to do here? Are you trying to have
> > a stateful session with a particular instance of a service i.e. the
> > same service gets called twice? Or pass context across the-wire on
> > subsequent uses of the same stub?
> >
> > thanks,
> > John.
> >
> >
> >
>
> >
> > "Antoine Galataud" <an...@gmail.com>
> > 21/03/2006 09:27
> >
> > Please respond to
> > "Apache AXIS C User List" <ax...@ws.apache.org>
> >
> > To
> >
> > "Apache AXIS C User List" <ax...@ws.apache.org>
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
> >
> >
> > Hi !
> >
> > I've found no way to solve my scope issue for the moment, I'm still
> > looking for a way to do this (application scope, not handlers).
> >
> > Thanks for any idea !
> >
> > 2006/3/16, Antoine Galataud < antoine.galataud@gmail.com >:
> > It doesn't work :
> >
> > in fact, I succeeded in getting a session scope, e.g I request the
> > service 2 times in the same main() client, but I can't have an
> > application scope. But I don't get the error I described in my
> > earlier mail, now it gives me nothing. And I'm talking about service
> > scope, I don't use any handler.
> >
> > Thanks for your answer
> >
> > 2006/3/16, John Hawkins <HAWKINSJ@uk.ibm.com >:
> >
> > I've just looked at this again and I'm not sure I understand your
> > question now!
> >
> >
> > If I look at your wsdd file it doesn't look correct to my thoughts
> > (is it the complete wsdd file?) e.g. this is a client sample wsdd file
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> >
> > <deployment xmlns="http://xml.apache.org/axis/wsdd/ " xlmns:
> > C="http//xml.apache.org.axis/wsdd/providers/c">
> >
> >  <service name="Handler" provider="CPP:DOCUMENT" 
description="Handler">
> >
> >  <requestFlow>
> >
> >  <handler name="myClientHandlerReq"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > name="myClientHandlerReq"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> >
> >  </handler>
> >
> >  </requestFlow>
> >
> >  <responseFlow>
> >
> >  <handler name="myClientHandlerRes"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > name="myClientHandlerRes"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> >
> >  </handler>
> >
> >  </responseFlow>
> >
> >  </service>
> >
> >  </deployment>
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
> >
> > "Antoine Galataud" <antoine.galataud@gmail.com >
> > 16/03/2006 12:57
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
>
> >
> >
> >
> >
> >
> > yes, i'm referring to the service scope. I saw in the doc that I
> > could set a scope for handlers in response/reauest flows, but I
> > didn't see anything about service.
> >
> > I'll try to set the scope also in client.wsdd, maybe it's what I'm
> missing.
> >
> > Thanks for any further comments/suggestions.
> >
> > 2006/3/16, James Jose <jamejose@in.ibm.com >:
> >
> > Hi,
> >
> >  We are running HandlerTest01 to HandlerTest10.  But here Antoine is
> > referring the scope of the service ..?
> >
> >
> > Regards
> > James
> > --------------------------------------------------
> > James Jose
> > Messaging Clients Team, WMQDDC
> > IBM Software Labs, India
> > Direct: 91-80- 25094331  Ext :2331
> > E-mail: jamejose@in.ibm.com
> >
>
> >
> > John Hawkins < HAWKINSJ@uk.ibm.com>
> > 03/16/2006 17:50
> >
> > Please respond to
> > "Apache AXIS C User List"
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
> >
>
> >
> >
> >
> >
> >
> >
> >
> > Well, service and global handlers should work for the client and I'm
> > surprised they aren't working for the server. Can you try it in the
> > client and see if you get the same results. James - what tests do we
> > run on handlers nowadays?
>
> >
> > "Antoine Galataud" <antoine.galataud@gmail.com >
> > 16/03/2006 11:38
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
> >
> >
>
> >
> >
> >
> >
> >
> >
> >
> > So, is there any work around to get this feature working ?
> >
> > Thanks for your answer
> >
> > 2006/3/15, Antoine Galataud <antoine.galataud@gmail.com >:
> > Hum, seems scope is not yet correctly implemented (or tested) in 1.
> > 6a.n (solaris) release. Here is my server.wsdd :
> >
> > <service name="IAdminConfiguration" provider="CPP:RPC"
> > description="IAdminConfiguration Web Services">
> >     <parameter name="allowedMethods" value="notifyDictionaryReinit
> > initService"/>
> >     <parameter name="scope" value="application">
> >     <parameter name="className"
> > value="/home/antgalat/apache/webservices/libiadminconfig.so"/>
> > </service>
> >
> > If I do that I get this in the init logs :
> >
> > [15/03/2006 13:40:42:387 MET] 1 WSDDHandler > setScope
> @11cec8,"application"
> >
> > But if I invoke the service, it fails with :
> >
> > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > AxisWsddException @ff0da988,7, <null>
> > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > getMessageForExceptionCode @ff0da988,7
> > [15/03/2006 13:40:49:216 MET] 1 AxisWsddException <
> > getMessageForExceptionCode @ff0da988,"AxisWsddException:Requested
> > service not found"
> >
> > I also tested with request and session scopes, it failed too.
> >
> > 2006/3/9, John Hawkins < HAWKINSJ@uk.ibm.com>:
> >
> > I'll put it this way - it's not tested.
>
> >
> > "Antoine Galataud" <antoine.galataud@gmail.com >
> > 09/03/2006 14:23
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Application, Session or Request scope
> >
> >
> >
> >
> >
>
> >
> >
> >
> >
> >
> >
> >
> >
> > Hi !
> >
> > does Axis 1.6x handle scope ? I tried to add a scope="Application" in
> > my service declaration in server.wsdd, but it doesn't seem to work...
> >
> > Thanks
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com
> >
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> >
> > --
> >
> > Antoine Galataud
> > antoine.galataud@gmail.com
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen


--
Antoine Galataud
antoine.galataud@gmail.com
D?partement Architecture des Syst?mes d'Information
INSA - Rouen




-- 
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen 

Re: Application, Session or Request scope

Posted by Antoine Galataud <an...@gmail.com>.
No, I didn't test it yet. But I realized, reading again Adrian mail and
looking at wrapper class that it can't be my solution (or just a part of).
What I'm saying is that the wrapper class is contained in the web service
library, and is used to initialize and stop the web service with init and
fini methods. But this doesn't resolve my problem: I want the library loaded
and run until server shuts down. So what I need is the scope parameter of
server.wsdd file correctly handled (I tested that it doesn't work), so the
library is loaded at first request and stays up.

2006/3/23, John Hawkins <HA...@uk.ibm.com>:
>
>
> Sorry, I'm not clear what you are saying - are you saying that you have
> tested this and the library is loaded each time the service is requested?
>
>
>
>
>  *"Antoine Galataud" <an...@gmail.com>*
>
> 22/03/2006 17:18
>  Please respond to
> "Apache AXIS C User List" <ax...@ws.apache.org>
>
>   To
> "Apache AXIS C User List" <ax...@ws.apache.org>  cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
> Hi,
>
> this a very great manner to initialize my business objects before
> getting a request, but does this help to have the web service library
> loaded once and not unloaded when method returns ?
> I mean, for the moment I can't call a method without having Axis
> loading the web service library (at each call). I need it to load at
> first time, then be up until server (apache) shuts down.
> What you are saying is that library is loaded at first invocation and
> unloaded when server shuts down. But in my case, library is loaded
> each time the service is requested !
>
> Thanks
> 2006/3/21, Adrian Dick <ad...@uk.ibm.com>:
> > Hi,
> >
> > There is already a mechanism in place to do this.
> >
> > As part of WrapperClassHandler, from which the generated wrapper class
> is
> > inherited, there are the init and fini methods.
> > These methods are called respectively as the service library is loaded
> (ie:
> > first invocation of service) and unloaded (ie: server shutdown).
> >
> > As these methods are virtual, you can override these within the
> generated
> > wrapper class, to do the initialization and clearup activities you
> require.
> >
> >
> > One word of warning, although this has been designed to work in this
> > manner, it hasn't (so far) been tested.
> >
> > Please let us know how you get on with trying this.
> >
> > Regards,
> > Adrian
> > _______________________________________
> > Adrian Dick (adrian.dick@uk.ibm.com)
> >
> >
> > "Antoine Galataud" <an...@gmail.com> wrote on 21/03/2006
> > 12:43:45:
> >
> > >
> > > Sorry, I haven't been really clear with what I wanted to do. I'll
> > > try to clarify my thoughts a little :
> > >
> > > I get a web service library, that handles the web service technical
> > > part and access to business objects. But my business part is heavy
> > > to initialize, and I want to do it only once, so when a first
> > > request come to the web service, the back end service starts and
> > > replys, then any other request doesn't involve a back end service
> start.
> > >
> > > So what I want to do is, as axis java does, define an application
> > > scope for the web service and get the service running until container
> > stops.
> >
> > > 2006/3/21, John Hawkins < HAWKINSJ@uk.ibm.com>:
> > >
> > > Antoine,
> > >
> > > Can I clarify what you're trying to do here? Are you trying to have
> > > a stateful session with a particular instance of a service i.e. the
> > > same service gets called twice? Or pass context across the-wire on
> > > subsequent uses of the same stub?
> > >
> > > thanks,
> > > John.
> > >
> > >
> > >
> >
> > >
> > > "Antoine Galataud" <an...@gmail.com>
> > > 21/03/2006 09:27
> > >
> > > Please respond to
> > > "Apache AXIS C User List" <ax...@ws.apache.org>
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <ax...@ws.apache.org>
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Re: Application, Session or Request scope
> > >
> > >
> > >
> > >
> > > Hi !
> > >
> > > I've found no way to solve my scope issue for the moment, I'm still
> > > looking for a way to do this (application scope, not handlers).
> > >
> > > Thanks for any idea !
> > >
> > > 2006/3/16, Antoine Galataud < antoine.galataud@gmail.com >:
> > > It doesn't work :
> > >
> > > in fact, I succeeded in getting a session scope, e.g I request the
> > > service 2 times in the same main() client, but I can't have an
> > > application scope. But I don't get the error I described in my
> > > earlier mail, now it gives me nothing. And I'm talking about service
> > > scope, I don't use any handler.
> > >
> > > Thanks for your answer
> > >
> > > 2006/3/16, John Hawkins <HAWKINSJ@uk.ibm.com >:
> > >
> > > I've just looked at this again and I'm not sure I understand your
> > > question now!
> > >
> > >
> > > If I look at your wsdd file it doesn't look correct to my thoughts
> > > (is it the complete wsdd file?) e.g. this is a client sample wsdd file
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > >
> > > <deployment xmlns="http://xml.apache.org/axis/wsdd/ " xlmns:
> > > C="http//xml.apache.org.axis/wsdd/providers/c">
> > >
> > >  <service name="Handler" provider="CPP:DOCUMENT"
> description="Handler">
> > >
> > >  <requestFlow>
> > >
> > >  <handler name="myClientHandlerReq"
> > > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > > name="myClientHandlerReq"
> > > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> > >
> > >  </handler>
> > >
> > >  </requestFlow>
> > >
> > >  <responseFlow>
> > >
> > >  <handler name="myClientHandlerRes"
> > > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > > name="myClientHandlerRes"
> > > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> > >
> > >  </handler>
> > >
> > >  </responseFlow>
> > >
> > >  </service>
> > >
> > >  </deployment>
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> > >
> > > "Antoine Galataud" <antoine.galataud@gmail.com >
> > > 16/03/2006 12:57
> > >
> > > Please respond to
> > > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Re: Application, Session or Request scope
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > > yes, i'm referring to the service scope. I saw in the doc that I
> > > could set a scope for handlers in response/reauest flows, but I
> > > didn't see anything about service.
> > >
> > > I'll try to set the scope also in client.wsdd, maybe it's what I'm
> > missing.
> > >
> > > Thanks for any further comments/suggestions.
> > >
> > > 2006/3/16, James Jose <jamejose@in.ibm.com >:
> > >
> > > Hi,
> > >
> > >  We are running HandlerTest01 to HandlerTest10.  But here Antoine is
> > > referring the scope of the service ..?
> > >
> > >
> > > Regards
> > > James
> > > --------------------------------------------------
> > > James Jose
> > > Messaging Clients Team, WMQDDC
> > > IBM Software Labs, India
> > > Direct: 91-80- 25094331  Ext :2331
> > > E-mail: jamejose@in.ibm.com
> > >
> >
> > >
> > > John Hawkins < HAWKINSJ@uk.ibm.com>
> > > 03/16/2006 17:50
> > >
> > > Please respond to
> > > "Apache AXIS C User List"
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Re: Application, Session or Request scope
> > >
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Well, service and global handlers should work for the client and I'm
> > > surprised they aren't working for the server. Can you try it in the
> > > client and see if you get the same results. James - what tests do we
> > > run on handlers nowadays?
> >
> > >
> > > "Antoine Galataud" <antoine.galataud@gmail.com >
> > > 16/03/2006 11:38
> > >
> > > Please respond to
> > > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Re: Application, Session or Request scope
> > >
> > >
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > So, is there any work around to get this feature working ?
> > >
> > > Thanks for your answer
> > >
> > > 2006/3/15, Antoine Galataud <antoine.galataud@gmail.com >:
> > > Hum, seems scope is not yet correctly implemented (or tested) in 1.
> > > 6a.n (solaris) release. Here is my server.wsdd :
> > >
> > > <service name="IAdminConfiguration" provider="CPP:RPC"
> > > description="IAdminConfiguration Web Services">
> > >     <parameter name="allowedMethods" value="notifyDictionaryReinit
> > > initService"/>
> > >     <parameter name="scope" value="application">
> > >     <parameter name="className"
> > > value="/home/antgalat/apache/webservices/libiadminconfig.so"/>
> > > </service>
> > >
> > > If I do that I get this in the init logs :
> > >
> > > [15/03/2006 13:40:42:387 MET] 1 WSDDHandler > setScope
> > @11cec8,"application"
> > >
> > > But if I invoke the service, it fails with :
> > >
> > > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > > AxisWsddException @ff0da988,7, <null>
> > > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > > getMessageForExceptionCode @ff0da988,7
> > > [15/03/2006 13:40:49:216 MET] 1 AxisWsddException <
> > > getMessageForExceptionCode @ff0da988,"AxisWsddException:Requested
> > > service not found"
> > >
> > > I also tested with request and session scopes, it failed too.
> > >
> > > 2006/3/9, John Hawkins < HAWKINSJ@uk.ibm.com>:
> > >
> > > I'll put it this way - it's not tested.
> >
> > >
> > > "Antoine Galataud" <antoine.galataud@gmail.com >
> > > 09/03/2006 14:23
> > >
> > > Please respond to
> > > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> > >
> > > To
> > >
> > > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> > >
> > > cc
> > >
> > > Subject
> > >
> > > Application, Session or Request scope
> > >
> > >
> > >
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Hi !
> > >
> > > does Axis 1.6x handle scope ? I tried to add a scope="Application" in
> > > my service declaration in server.wsdd, but it doesn't seem to work...
> > >
> > > Thanks
> > > --
> > > Antoine Galataud
> > > antoine.galataud@gmail.com
> > >
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > >
> > > --
> > >
> > > Antoine Galataud
> > > antoine.galataud@gmail.com
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > antoine.galataud@gmail.com
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > antoine.galataud@gmail.com
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > antoine.galataud@gmail.com
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > antoine.galataud@gmail.com
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
> > >
> > >
> > >
> > > --
> > > Antoine Galataud
> > > antoine.galataud@gmail.com
> > > D�partement Architecture des Syst�mes d'Information
> > > INSA - Rouen
>
>
> --
> Antoine Galataud
> antoine.galataud@gmail.com
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>


--
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen

Re: Application, Session or Request scope

Posted by John Hawkins <HA...@uk.ibm.com>.
Sorry, I'm not clear what you are saying - are you saying that you have 
tested this and the library is loaded each time the service is requested?





"Antoine Galataud" <an...@gmail.com> 
22/03/2006 17:18
Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>


To
"Apache AXIS C User List" <ax...@ws.apache.org>
cc

Subject
Re: Application, Session or Request scope






Hi,

this a very great manner to initialize my business objects before
getting a request, but does this help to have the web service library
loaded once and not unloaded when method returns ?
I mean, for the moment I can't call a method without having Axis
loading the web service library (at each call). I need it to load at
first time, then be up until server (apache) shuts down.
What you are saying is that library is loaded at first invocation and
unloaded when server shuts down. But in my case, library is loaded
each time the service is requested !

Thanks
2006/3/21, Adrian Dick <ad...@uk.ibm.com>:
> Hi,
>
> There is already a mechanism in place to do this.
>
> As part of WrapperClassHandler, from which the generated wrapper class 
is
> inherited, there are the init and fini methods.
> These methods are called respectively as the service library is loaded 
(ie:
> first invocation of service) and unloaded (ie: server shutdown).
>
> As these methods are virtual, you can override these within the 
generated
> wrapper class, to do the initialization and clearup activities you 
require.
>
>
> One word of warning, although this has been designed to work in this
> manner, it hasn't (so far) been tested.
>
> Please let us know how you get on with trying this.
>
> Regards,
> Adrian
> _______________________________________
> Adrian Dick (adrian.dick@uk.ibm.com)
>
>
> "Antoine Galataud" <an...@gmail.com> wrote on 21/03/2006
> 12:43:45:
>
> >
> > Sorry, I haven't been really clear with what I wanted to do. I'll
> > try to clarify my thoughts a little :
> >
> > I get a web service library, that handles the web service technical
> > part and access to business objects. But my business part is heavy
> > to initialize, and I want to do it only once, so when a first
> > request come to the web service, the back end service starts and
> > replys, then any other request doesn't involve a back end service 
start.
> >
> > So what I want to do is, as axis java does, define an application
> > scope for the web service and get the service running until container
> stops.
>
> > 2006/3/21, John Hawkins < HAWKINSJ@uk.ibm.com>:
> >
> > Antoine,
> >
> > Can I clarify what you're trying to do here? Are you trying to have
> > a stateful session with a particular instance of a service i.e. the
> > same service gets called twice? Or pass context across the-wire on
> > subsequent uses of the same stub?
> >
> > thanks,
> > John.
> >
> >
> >
>
> >
> > "Antoine Galataud" <an...@gmail.com>
> > 21/03/2006 09:27
> >
> > Please respond to
> > "Apache AXIS C User List" <ax...@ws.apache.org>
> >
> > To
> >
> > "Apache AXIS C User List" <ax...@ws.apache.org>
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
> >
> >
> > Hi !
> >
> > I've found no way to solve my scope issue for the moment, I'm still
> > looking for a way to do this (application scope, not handlers).
> >
> > Thanks for any idea !
> >
> > 2006/3/16, Antoine Galataud < antoine.galataud@gmail.com >:
> > It doesn't work :
> >
> > in fact, I succeeded in getting a session scope, e.g I request the
> > service 2 times in the same main() client, but I can't have an
> > application scope. But I don't get the error I described in my
> > earlier mail, now it gives me nothing. And I'm talking about service
> > scope, I don't use any handler.
> >
> > Thanks for your answer
> >
> > 2006/3/16, John Hawkins <HAWKINSJ@uk.ibm.com >:
> >
> > I've just looked at this again and I'm not sure I understand your
> > question now!
> >
> >
> > If I look at your wsdd file it doesn't look correct to my thoughts
> > (is it the complete wsdd file?) e.g. this is a client sample wsdd file
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> >
> > <deployment xmlns="http://xml.apache.org/axis/wsdd/ " xlmns:
> > C="http//xml.apache.org.axis/wsdd/providers/c">
> >
> >  <service name="Handler" provider="CPP:DOCUMENT" 
description="Handler">
> >
> >  <requestFlow>
> >
> >  <handler name="myClientHandlerReq"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > name="myClientHandlerReq"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> >
> >  </handler>
> >
> >  </requestFlow>
> >
> >  <responseFlow>
> >
> >  <handler name="myClientHandlerRes"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > name="myClientHandlerRes"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> >
> >  </handler>
> >
> >  </responseFlow>
> >
> >  </service>
> >
> >  </deployment>
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
> >
> > "Antoine Galataud" <antoine.galataud@gmail.com >
> > 16/03/2006 12:57
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
>
> >
> >
> >
> >
> >
> > yes, i'm referring to the service scope. I saw in the doc that I
> > could set a scope for handlers in response/reauest flows, but I
> > didn't see anything about service.
> >
> > I'll try to set the scope also in client.wsdd, maybe it's what I'm
> missing.
> >
> > Thanks for any further comments/suggestions.
> >
> > 2006/3/16, James Jose <jamejose@in.ibm.com >:
> >
> > Hi,
> >
> >  We are running HandlerTest01 to HandlerTest10.  But here Antoine is
> > referring the scope of the service ..?
> >
> >
> > Regards
> > James
> > --------------------------------------------------
> > James Jose
> > Messaging Clients Team, WMQDDC
> > IBM Software Labs, India
> > Direct: 91-80- 25094331  Ext :2331
> > E-mail: jamejose@in.ibm.com
> >
>
> >
> > John Hawkins < HAWKINSJ@uk.ibm.com>
> > 03/16/2006 17:50
> >
> > Please respond to
> > "Apache AXIS C User List"
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
> >
>
> >
> >
> >
> >
> >
> >
> >
> > Well, service and global handlers should work for the client and I'm
> > surprised they aren't working for the server. Can you try it in the
> > client and see if you get the same results. James - what tests do we
> > run on handlers nowadays?
>
> >
> > "Antoine Galataud" <antoine.galataud@gmail.com >
> > 16/03/2006 11:38
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
> >
> >
>
> >
> >
> >
> >
> >
> >
> >
> > So, is there any work around to get this feature working ?
> >
> > Thanks for your answer
> >
> > 2006/3/15, Antoine Galataud <antoine.galataud@gmail.com >:
> > Hum, seems scope is not yet correctly implemented (or tested) in 1.
> > 6a.n (solaris) release. Here is my server.wsdd :
> >
> > <service name="IAdminConfiguration" provider="CPP:RPC"
> > description="IAdminConfiguration Web Services">
> >     <parameter name="allowedMethods" value="notifyDictionaryReinit
> > initService"/>
> >     <parameter name="scope" value="application">
> >     <parameter name="className"
> > value="/home/antgalat/apache/webservices/libiadminconfig.so"/>
> > </service>
> >
> > If I do that I get this in the init logs :
> >
> > [15/03/2006 13:40:42:387 MET] 1 WSDDHandler > setScope
> @11cec8,"application"
> >
> > But if I invoke the service, it fails with :
> >
> > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > AxisWsddException @ff0da988,7, <null>
> > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > getMessageForExceptionCode @ff0da988,7
> > [15/03/2006 13:40:49:216 MET] 1 AxisWsddException <
> > getMessageForExceptionCode @ff0da988,"AxisWsddException:Requested
> > service not found"
> >
> > I also tested with request and session scopes, it failed too.
> >
> > 2006/3/9, John Hawkins < HAWKINSJ@uk.ibm.com>:
> >
> > I'll put it this way - it's not tested.
>
> >
> > "Antoine Galataud" <antoine.galataud@gmail.com >
> > 09/03/2006 14:23
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Application, Session or Request scope
> >
> >
> >
> >
> >
>
> >
> >
> >
> >
> >
> >
> >
> >
> > Hi !
> >
> > does Axis 1.6x handle scope ? I tried to add a scope="Application" in
> > my service declaration in server.wsdd, but it doesn't seem to work...
> >
> > Thanks
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com
> >
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> >
> > --
> >
> > Antoine Galataud
> > antoine.galataud@gmail.com
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com
> > D?partement Architecture des Syst?mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com
> > Département Architecture des Systèmes d'Information
> > INSA - Rouen


--
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen


Re: Application, Session or Request scope

Posted by Antoine Galataud <an...@gmail.com>.
Hi,

this a very great manner to initialize my business objects before
getting a request, but does this help to have the web service library
loaded once and not unloaded when method returns ?
I mean, for the moment I can't call a method without having Axis
loading the web service library (at each call). I need it to load at
first time, then be up until server (apache) shuts down.
What you are saying is that library is loaded at first invocation and
unloaded when server shuts down. But in my case, library is loaded
each time the service is requested !

Thanks
2006/3/21, Adrian Dick <ad...@uk.ibm.com>:
> Hi,
>
> There is already a mechanism in place to do this.
>
> As part of WrapperClassHandler, from which the generated wrapper class is
> inherited, there are the init and fini methods.
> These methods are called respectively as the service library is loaded (ie:
> first invocation of service) and unloaded (ie: server shutdown).
>
> As these methods are virtual, you can override these within the generated
> wrapper class, to do the initialization and clearup activities you require.
>
>
> One word of warning, although this has been designed to work in this
> manner, it hasn't (so far) been tested.
>
> Please let us know how you get on with trying this.
>
> Regards,
> Adrian
> _______________________________________
> Adrian Dick (adrian.dick@uk.ibm.com)
>
>
> "Antoine Galataud" <an...@gmail.com> wrote on 21/03/2006
> 12:43:45:
>
> >
> > Sorry, I haven't been really clear with what I wanted to do. I'll
> > try to clarify my thoughts a little :
> >
> > I get a web service library, that handles the web service technical
> > part and access to business objects. But my business part is heavy
> > to initialize, and I want to do it only once, so when a first
> > request come to the web service, the back end service starts and
> > replys, then any other request doesn't involve a back end service start.
> >
> > So what I want to do is, as axis java does, define an application
> > scope for the web service and get the service running until container
> stops.
>
> > 2006/3/21, John Hawkins < HAWKINSJ@uk.ibm.com>:
> >
> > Antoine,
> >
> > Can I clarify what you're trying to do here? Are you trying to have
> > a stateful session with a particular instance of a service i.e. the
> > same service gets called twice? Or pass context across the-wire on
> > subsequent uses of the same stub?
> >
> > thanks,
> > John.
> >
> >
> >
>
> >
> > "Antoine Galataud" <an...@gmail.com>
> > 21/03/2006 09:27
> >
> > Please respond to
> > "Apache AXIS C User List" <ax...@ws.apache.org>
> >
> > To
> >
> > "Apache AXIS C User List" <ax...@ws.apache.org>
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
> >
> >
> > Hi !
> >
> > I've found no way to solve my scope issue for the moment, I'm still
> > looking for a way to do this (application scope, not handlers).
> >
> > Thanks for any idea !
> >
> > 2006/3/16, Antoine Galataud < antoine.galataud@gmail.com >:
> > It doesn't work :
> >
> > in fact, I succeeded in getting a session scope, e.g I request the
> > service 2 times in the same main() client, but I can't have an
> > application scope. But I don't get the error I described in my
> > earlier mail, now it gives me nothing. And I'm talking about service
> > scope, I don't use any handler.
> >
> > Thanks for your answer
> >
> > 2006/3/16, John Hawkins <HAWKINSJ@uk.ibm.com >:
> >
> > I've just looked at this again and I'm not sure I understand your
> > question now!
> >
> >
> > If I look at your wsdd file it doesn't look correct to my thoughts
> > (is it the complete wsdd file?) e.g. this is a client sample wsdd file
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> >
> > <deployment xmlns="http://xml.apache.org/axis/wsdd/ " xlmns:
> > C="http//xml.apache.org.axis/wsdd/providers/c">
> >
> >  <service name="Handler" provider="CPP:DOCUMENT" description="Handler">
> >
> >  <requestFlow>
> >
> >  <handler name="myClientHandlerReq"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > name="myClientHandlerReq"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> >
> >  </handler>
> >
> >  </requestFlow>
> >
> >  <responseFlow>
> >
> >  <handler name="myClientHandlerRes"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > name="myClientHandlerRes"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">
> >
> >  </handler>
> >
> >  </responseFlow>
> >
> >  </service>
> >
> >  </deployment>
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
> >
> > "Antoine Galataud" <antoine.galataud@gmail.com >
> > 16/03/2006 12:57
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
>
> >
> >
> >
> >
> >
> > yes, i'm referring to the service scope. I saw in the doc that I
> > could set a scope for handlers in response/reauest flows, but I
> > didn't see anything about service.
> >
> > I'll try to set the scope also in client.wsdd, maybe it's what I'm
> missing.
> >
> > Thanks for any further comments/suggestions.
> >
> > 2006/3/16, James Jose <jamejose@in.ibm.com >:
> >
> > Hi,
> >
> >  We are running HandlerTest01 to HandlerTest10.  But here Antoine is
> > referring the scope of the service ..?
> >
> >
> > Regards
> > James
> > --------------------------------------------------
> > James Jose
> > Messaging Clients Team, WMQDDC
> > IBM Software Labs, India
> > Direct: 91-80- 25094331  Ext :2331
> > E-mail: jamejose@in.ibm.com
> >
>
> >
> > John Hawkins < HAWKINSJ@uk.ibm.com>
> > 03/16/2006 17:50
> >
> > Please respond to
> > "Apache AXIS C User List"
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
> >
>
> >
> >
> >
> >
> >
> >
> >
> > Well, service and global handlers should work for the client and I'm
> > surprised they aren't working for the server. Can you try it in the
> > client and see if you get the same results. James - what tests do we
> > run on handlers nowadays?
>
> >
> > "Antoine Galataud" <antoine.galataud@gmail.com >
> > 16/03/2006 11:38
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Re: Application, Session or Request scope
> >
> >
> >
> >
>
> >
> >
> >
> >
> >
> >
> >
> > So, is there any work around to get this feature working ?
> >
> > Thanks for your answer
> >
> > 2006/3/15, Antoine Galataud <antoine.galataud@gmail.com >:
> > Hum, seems scope is not yet correctly implemented (or tested) in 1.
> > 6a.n (solaris) release. Here is my server.wsdd :
> >
> > <service name="IAdminConfiguration" provider="CPP:RPC"
> > description="IAdminConfiguration Web Services">
> >     <parameter name="allowedMethods" value="notifyDictionaryReinit
> > initService"/>
> >     <parameter name="scope" value="application">
> >     <parameter name="className"
> > value="/home/antgalat/apache/webservices/libiadminconfig.so"/>
> > </service>
> >
> > If I do that I get this in the init logs :
> >
> > [15/03/2006 13:40:42:387 MET] 1 WSDDHandler > setScope
> @11cec8,"application"
> >
> > But if I invoke the service, it fails with :
> >
> > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > AxisWsddException @ff0da988,7, <null>
> > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > getMessageForExceptionCode @ff0da988,7
> > [15/03/2006 13:40:49:216 MET] 1 AxisWsddException <
> > getMessageForExceptionCode @ff0da988,"AxisWsddException:Requested
> > service not found"
> >
> > I also tested with request and session scopes, it failed too.
> >
> > 2006/3/9, John Hawkins < HAWKINSJ@uk.ibm.com>:
> >
> > I'll put it this way - it's not tested.
>
> >
> > "Antoine Galataud" <antoine.galataud@gmail.com >
> > 09/03/2006 14:23
> >
> > Please respond to
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > To
> >
> > "Apache AXIS C User List" <axis-c-user@ws.apache.org >
> >
> > cc
> >
> > Subject
> >
> > Application, Session or Request scope
> >
> >
> >
> >
> >
>
> >
> >
> >
> >
> >
> >
> >
> >
> > Hi !
> >
> > does Axis 1.6x handle scope ? I tried to add a scope="Application" in
> > my service declaration in server.wsdd, but it doesn't seem to work...
> >
> > Thanks
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com
> >
> > D�partement Architecture des Syst�mes d'Information
> > INSA - Rouen
> >
> >
> >
> >
> > --
> >
> > Antoine Galataud
> > antoine.galataud@gmail.com
> > D�partement Architecture des Syst�mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com
> > D�partement Architecture des Syst�mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com
> > D�partement Architecture des Syst�mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com
> > D�partement Architecture des Syst�mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com
> > D�partement Architecture des Syst�mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com
> > Département Architecture des Systèmes d'Information
> > INSA - Rouen


--
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen

Re: Application, Session or Request scope

Posted by Adrian Dick <ad...@uk.ibm.com>.
Hi,

There is already a mechanism in place to do this.

As part of WrapperClassHandler, from which the generated wrapper class is
inherited, there are the init and fini methods.
These methods are called respectively as the service library is loaded (ie:
first invocation of service) and unloaded (ie: server shutdown).

As these methods are virtual, you can override these within the generated
wrapper class, to do the initialization and clearup activities you require.


One word of warning, although this has been designed to work in this
manner, it hasn't (so far) been tested.

Please let us know how you get on with trying this.

Regards,
Adrian
_______________________________________
Adrian Dick (adrian.dick@uk.ibm.com)


"Antoine Galataud" <an...@gmail.com> wrote on 21/03/2006
12:43:45:

>
> Sorry, I haven't been really clear with what I wanted to do. I'll
> try to clarify my thoughts a little :
>
> I get a web service library, that handles the web service technical
> part and access to business objects. But my business part is heavy
> to initialize, and I want to do it only once, so when a first
> request come to the web service, the back end service starts and
> replys, then any other request doesn't involve a back end service start.
>
> So what I want to do is, as axis java does, define an application
> scope for the web service and get the service running until container
stops.

> 2006/3/21, John Hawkins < HAWKINSJ@uk.ibm.com>:
>
> Antoine,
>
> Can I clarify what you're trying to do here? Are you trying to have
> a stateful session with a particular instance of a service i.e. the
> same service gets called twice? Or pass context across the-wire on
> subsequent uses of the same stub?
>
> thanks,
> John.
>
>
>

>
> "Antoine Galataud" <an...@gmail.com>
> 21/03/2006 09:27
>
> Please respond to
> "Apache AXIS C User List" <ax...@ws.apache.org>
>
> To
>
> "Apache AXIS C User List" <ax...@ws.apache.org>
>
> cc
>
> Subject
>
> Re: Application, Session or Request scope
>
>
>
>
> Hi !
>
> I've found no way to solve my scope issue for the moment, I'm still
> looking for a way to do this (application scope, not handlers).
>
> Thanks for any idea !
>
> 2006/3/16, Antoine Galataud < antoine.galataud@gmail.com >:
> It doesn't work :
>
> in fact, I succeeded in getting a session scope, e.g I request the
> service 2 times in the same main() client, but I can't have an
> application scope. But I don't get the error I described in my
> earlier mail, now it gives me nothing. And I'm talking about service
> scope, I don't use any handler.
>
> Thanks for your answer
>
> 2006/3/16, John Hawkins <HAWKINSJ@uk.ibm.com >:
>
> I've just looked at this again and I'm not sure I understand your
> question now!
>
>
> If I look at your wsdd file it doesn't look correct to my thoughts
> (is it the complete wsdd file?) e.g. this is a client sample wsdd file
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <deployment xmlns="http://xml.apache.org/axis/wsdd/ " xlmns:
> C="http//xml.apache.org.axis/wsdd/providers/c">
>
>  <service name="Handler" provider="CPP:DOCUMENT" description="Handler">
>
>  <requestFlow>
>
>  <handler name="myClientHandlerReq"
> type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> name="myClientHandlerReq"
> type="<inst_dir>\samples\handlers\myClientHandler.dll">
>
>  </handler>
>
>  </requestFlow>
>
>  <responseFlow>
>
>  <handler name="myClientHandlerRes"
> type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> name="myClientHandlerRes"
> type="<inst_dir>\samples\handlers\myClientHandler.dll">
>
>  </handler>
>
>  </responseFlow>
>
>  </service>
>
>  </deployment>
>
>
>
>
>
>
>
>
>
>

>
> "Antoine Galataud" <antoine.galataud@gmail.com >
> 16/03/2006 12:57
>
> Please respond to
> "Apache AXIS C User List" <axis-c-user@ws.apache.org >
>
> To
>
> "Apache AXIS C User List" <axis-c-user@ws.apache.org >
>
> cc
>
> Subject
>
> Re: Application, Session or Request scope
>
>

>
>
>
>
>
> yes, i'm referring to the service scope. I saw in the doc that I
> could set a scope for handlers in response/reauest flows, but I
> didn't see anything about service.
>
> I'll try to set the scope also in client.wsdd, maybe it's what I'm
missing.
>
> Thanks for any further comments/suggestions.
>
> 2006/3/16, James Jose <jamejose@in.ibm.com >:
>
> Hi,
>
>  We are running HandlerTest01 to HandlerTest10.  But here Antoine is
> referring the scope of the service ..?
>
>
> Regards
> James
> --------------------------------------------------
> James Jose
> Messaging Clients Team, WMQDDC
> IBM Software Labs, India
> Direct: 91-80- 25094331  Ext :2331
> E-mail: jamejose@in.ibm.com
>

>
> John Hawkins < HAWKINSJ@uk.ibm.com>
> 03/16/2006 17:50
>
> Please respond to
> "Apache AXIS C User List"
>
> To
>
> "Apache AXIS C User List" <axis-c-user@ws.apache.org >
>
> cc
>
> Subject
>
> Re: Application, Session or Request scope
>
>
>

>
>
>
>
>
>
>
> Well, service and global handlers should work for the client and I'm
> surprised they aren't working for the server. Can you try it in the
> client and see if you get the same results. James - what tests do we
> run on handlers nowadays?

>
> "Antoine Galataud" <antoine.galataud@gmail.com >
> 16/03/2006 11:38
>
> Please respond to
> "Apache AXIS C User List" <axis-c-user@ws.apache.org >
>
> To
>
> "Apache AXIS C User List" <axis-c-user@ws.apache.org >
>
> cc
>
> Subject
>
> Re: Application, Session or Request scope
>
>
>
>

>
>
>
>
>
>
>
> So, is there any work around to get this feature working ?
>
> Thanks for your answer
>
> 2006/3/15, Antoine Galataud <antoine.galataud@gmail.com >:
> Hum, seems scope is not yet correctly implemented (or tested) in 1.
> 6a.n (solaris) release. Here is my server.wsdd :
>
> <service name="IAdminConfiguration" provider="CPP:RPC"
> description="IAdminConfiguration Web Services">
>     <parameter name="allowedMethods" value="notifyDictionaryReinit
> initService"/>
>     <parameter name="scope" value="application">
>     <parameter name="className"
> value="/home/antgalat/apache/webservices/libiadminconfig.so"/>
> </service>
>
> If I do that I get this in the init logs :
>
> [15/03/2006 13:40:42:387 MET] 1 WSDDHandler > setScope
@11cec8,"application"
>
> But if I invoke the service, it fails with :
>
> [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> AxisWsddException @ff0da988,7, <null>
> [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> getMessageForExceptionCode @ff0da988,7
> [15/03/2006 13:40:49:216 MET] 1 AxisWsddException <
> getMessageForExceptionCode @ff0da988,"AxisWsddException:Requested
> service not found"
>
> I also tested with request and session scopes, it failed too.
>
> 2006/3/9, John Hawkins < HAWKINSJ@uk.ibm.com>:
>
> I'll put it this way - it's not tested.

>
> "Antoine Galataud" <antoine.galataud@gmail.com >
> 09/03/2006 14:23
>
> Please respond to
> "Apache AXIS C User List" <axis-c-user@ws.apache.org >
>
> To
>
> "Apache AXIS C User List" <axis-c-user@ws.apache.org >
>
> cc
>
> Subject
>
> Application, Session or Request scope
>
>
>
>
>

>
>
>
>
>
>
>
>
> Hi !
>
> does Axis 1.6x handle scope ? I tried to add a scope="Application" in
> my service declaration in server.wsdd, but it doesn't seem to work...
>
> Thanks
> --
> Antoine Galataud
> antoine.galataud@gmail.com
>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
>
> --
>
> Antoine Galataud
> antoine.galataud@gmail.com
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud
> antoine.galataud@gmail.com
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud
> antoine.galataud@gmail.com
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud
> antoine.galataud@gmail.com
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud
> antoine.galataud@gmail.com
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud
> antoine.galataud@gmail.com
> Département Architecture des Systèmes d'Information
> INSA - Rouen

Re: Application, Session or Request scope

Posted by Antoine Galataud <an...@gmail.com>.
Sorry, I haven't been really clear with what I wanted to do. I'll try to
clarify my thoughts a little :

I get a web service library, that handles the web service technical part and
access to business objects. But my business part is heavy to initialize, and
I want to do it only once, so when a first request come to the web service,
the back end service starts and replys, then any other request doesn't
involve a back end service start.

So what I want to do is, as axis java does, define an application scope for
the web service and get the service running until container stops.

2006/3/21, John Hawkins <HA...@uk.ibm.com>:
>
>
> Antoine,
>
> Can I clarify what you're trying to do here? Are you trying to have a
> stateful session with a particular instance of a service i.e. the same
> service gets called twice? Or pass context across the-wire on subsequent
> uses of the same stub?
>
> thanks,
> John.
>
>
>
>
>  *"Antoine Galataud" <an...@gmail.com>*
>
> 21/03/2006 09:27
>  Please respond to
> "Apache AXIS C User List" <ax...@ws.apache.org>
>
>   To
> "Apache AXIS C User List" <ax...@ws.apache.org>  cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
> Hi !
>
> I've found no way to solve my scope issue for the moment, I'm still
> looking for a way to do this (application scope, not handlers).
>
> Thanks for any idea !
>
> 2006/3/16, Antoine Galataud < *antoine.galataud@gmail.com*<an...@gmail.com>
> >:
> It doesn't work :
>
> in fact, I succeeded in getting a session scope, e.g I request the service
> 2 times in the same main() client, but I can't have an application scope.
> But I don't get the error I described in my earlier mail, now it gives me
> nothing. And I'm talking about service scope, I don't use any handler.
>
> Thanks for your answer
>
> 2006/3/16, John Hawkins <*HAWKINSJ@uk.ibm.com * <HA...@uk.ibm.com>>:
>
> I've just looked at this again and I'm not sure I understand your question
> now!
>
>
> If I look at your wsdd file it doesn't look correct to my thoughts (is it
> the complete wsdd file?) e.g. this is a client sample wsdd file
>   <?xml version="1.0" encoding="UTF-8"?>  <deployment xmlns="*
> http://xml.apache.org/axis/wsdd/* <http://xml.apache.org/axis/wsdd/>"
> xlmns:C="http//xml.apache.org.axis/wsdd/providers/c">   <service
> name="Handler" provider="CPP:DOCUMENT" description="Handler">   <requestFlow>
>   <handler name="myClientHandlerReq"
> type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> name="myClientHandlerReq"
> type="<inst_dir>\samples\handlers\myClientHandler.dll">   </handler>   </requestFlow>
>   <responseFlow>   <handler name="myClientHandlerRes"
> type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> name="myClientHandlerRes"
> type="<inst_dir>\samples\handlers\myClientHandler.dll">   </handler>   </responseFlow>
>   </service>   </deployment>
>
>
>
>
>
>
>
>
>
>   *"Antoine Galataud" <**...@gmail.com>
> *>*
>
> 16/03/2006 12:57
>
>
>   Please respond to
> "Apache AXIS C User List" <*a...@ws.apache.org>
> >
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>
> >  cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
> yes, i'm referring to the service scope. I saw in the doc that I could set
> a scope for handlers in response/reauest flows, but I didn't see anything
> about service.
>
> I'll try to set the scope also in client.wsdd, maybe it's what I'm
> missing.
>
> Thanks for any further comments/suggestions.
>
> 2006/3/16, James Jose <*jamejose@in.ibm.com * <ja...@in.ibm.com>>:
>
> Hi,
>
>  We are running HandlerTest01 to HandlerTest10.  But here Antoine is
> referring the scope of the service ..?
>
>
> Regards
> James
> --------------------------------------------------
> James Jose
> Messaging Clients Team, WMQDDC
> IBM Software Labs, India
> Direct: 91-80- 25094331  Ext :2331
> E-mail: *jamejose@in.ibm.com* <ja...@in.ibm.com>
>
>
>   *John Hawkins <** HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com>*> *
>
> 03/16/2006 17:50
>   Please respond to
> "Apache AXIS C User List"
>
>
>   To
> "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >  cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
>
> Well, service and global handlers should work for the client and I'm
> surprised they aren't working for the server. Can you try it in the client
> and see if you get the same results. James - what tests do we run on
> handlers nowadays?
>
>   *"Antoine Galataud" <**antoine.galataud@gmail.com** *<an...@gmail.com>
> *>*
>
> 16/03/2006 11:38
>   Please respond to
> "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>>
> cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
>
>
> So, is there any work around to get this feature working ?
>
> Thanks for your answer
>
> 2006/3/15, Antoine Galataud <*antoine.galataud@gmail.com *<an...@gmail.com>>:
>
> Hum, seems scope is not yet correctly implemented (or tested) in 1.6a.n(solaris) release. Here is my
> server.wsdd :
>
> <service name="IAdminConfiguration" provider="CPP:RPC"
> description="IAdminConfiguration Web Services">
>     <parameter name="allowedMethods" value="notifyDictionaryReinit
> initService"/>
>     <parameter name="scope" value="application">
>     <parameter name="className"
> value="/home/antgalat/apache/webservices/libiadminconfig.so"/>
> </service>
>
> If I do that I get this in the init logs :
>
> [15/03/2006 13:40:42:387 MET] 1 WSDDHandler > setScope
> @11cec8,"application"
>
> But if I invoke the service, it fails with :
>
> [15/03/2006 13:40:49:215 MET] 1 AxisWsddException > AxisWsddException
> @ff0da988,7, <null>
> [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> getMessageForExceptionCode @ff0da988,7
> [15/03/2006 13:40:49:216 MET] 1 AxisWsddException <
> getMessageForExceptionCode @ff0da988,"AxisWsddException:Requested service
> not found"
>
> I also tested with request and session scopes, it failed too.
>
> 2006/3/9, John Hawkins <* HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com>>:
>
> I'll put it this way - it's not tested.
>
>   *"Antoine Galataud" <**antoine.galataud@gmail.com** *<an...@gmail.com>
> *>*
>
> 09/03/2006 14:23
>   Please respond to
> "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>>
> cc
>
>  Subject
> Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Hi !
>
> does Axis 1.6x handle scope ? I tried to add a scope="Application" in
> my service declaration in server.wsdd, but it doesn't seem to work...
>
> Thanks
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
>
> --
>
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com * <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>



--
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen

Re: Application, Session or Request scope

Posted by John Hawkins <HA...@uk.ibm.com>.
Antoine,

Can I clarify what you're trying to do here? Are you trying to have a 
stateful session with a particular instance of a service i.e. the same 
service gets called twice? Or pass context across the-wire on subsequent 
uses of the same stub?

thanks,
John.





"Antoine Galataud" <an...@gmail.com> 
21/03/2006 09:27
Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>


To
"Apache AXIS C User List" <ax...@ws.apache.org>
cc

Subject
Re: Application, Session or Request scope






Hi !

I've found no way to solve my scope issue for the moment, I'm still 
looking for a way to do this (application scope, not handlers).

Thanks for any idea !

2006/3/16, Antoine Galataud < antoine.galataud@gmail.com>:
It doesn't work : 

in fact, I succeeded in getting a session scope, e.g I request the service 
2 times in the same main() client, but I can't have an application scope. 
But I don't get the error I described in my earlier mail, now it gives me 
nothing. And I'm talking about service scope, I don't use any handler. 

Thanks for your answer

2006/3/16, John Hawkins <HAWKINSJ@uk.ibm.com >:

I've just looked at this again and I'm not sure I understand your question 
now! 


If I look at your wsdd file it doesn't look correct to my thoughts (is it 
the complete wsdd file?) e.g. this is a client sample wsdd file 

<?xml version="1.0" encoding="UTF-8"?> 
<deployment xmlns="http://xml.apache.org/axis/wsdd/" 
xlmns:C="http//xml.apache.org.axis/wsdd/providers/c"> 
 <service name="Handler" provider="CPP:DOCUMENT" description="Handler"> 
 <requestFlow> 
 <handler name="myClientHandlerReq" 
type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler 
name="myClientHandlerReq" 
type="<inst_dir>\samples\handlers\myClientHandler.dll"> 
 </handler> 
 </requestFlow> 
 <responseFlow> 
 <handler name="myClientHandlerRes" 
type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler 
name="myClientHandlerRes" 
type="<inst_dir>\samples\handlers\myClientHandler.dll"> 
 </handler> 
 </responseFlow> 
 </service> 
 </deployment> 










"Antoine Galataud" <an...@gmail.com> 
16/03/2006 12:57 


Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>


To
"Apache AXIS C User List" <ax...@ws.apache.org> 
cc

Subject
Re: Application, Session or Request scope








yes, i'm referring to the service scope. I saw in the doc that I could set 
a scope for handlers in response/reauest flows, but I didn't see anything 
about service.

I'll try to set the scope also in client.wsdd, maybe it's what I'm 
missing. 

Thanks for any further comments/suggestions.

2006/3/16, James Jose <jamejose@in.ibm.com >: 

Hi, 

  We are running HandlerTest01 to HandlerTest10.  But here Antoine is 
referring the scope of the service ..? 


Regards
James
--------------------------------------------------
James Jose
Messaging Clients Team, WMQDDC
IBM Software Labs, India
Direct: 91-80- 25094331  Ext :2331
E-mail: jamejose@in.ibm.com 



John Hawkins < HAWKINSJ@uk.ibm.com> 
03/16/2006 17:50 

Please respond to
"Apache AXIS C User List"



To
"Apache AXIS C User List" <axis-c-user@ws.apache.org > 
cc

Subject
Re: Application, Session or Request scope











Well, service and global handlers should work for the client and I'm 
surprised they aren't working for the server. Can you try it in the client 
and see if you get the same results. James - what tests do we run on 
handlers nowadays? 


"Antoine Galataud" <antoine.galataud@gmail.com > 
16/03/2006 11:38 

Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org >



To
"Apache AXIS C User List" <axis-c-user@ws.apache.org > 
cc

Subject
Re: Application, Session or Request scope












So, is there any work around to get this feature working ?

Thanks for your answer

2006/3/15, Antoine Galataud <antoine.galataud@gmail.com >: 
Hum, seems scope is not yet correctly implemented (or tested) in 1.6a.n 
(solaris) release. Here is my server.wsdd :

 <service name="IAdminConfiguration" provider="CPP:RPC" 
description="IAdminConfiguration Web Services"> 
     <parameter name="allowedMethods" value="notifyDictionaryReinit 
initService"/>
     <parameter name="scope" value="application">
     <parameter name="className" 
value="/home/antgalat/apache/webservices/libiadminconfig.so"/> 
 </service> 

If I do that I get this in the init logs :

[15/03/2006 13:40:42:387 MET] 1 WSDDHandler > setScope 
@11cec8,"application"

But if I invoke the service, it fails with : 

[15/03/2006 13:40:49:215 MET] 1 AxisWsddException > AxisWsddException 
@ff0da988,7, <null>
[15/03/2006 13:40:49:215 MET] 1 AxisWsddException > 
getMessageForExceptionCode @ff0da988,7
[15/03/2006 13:40:49:216 MET] 1 AxisWsddException < 
getMessageForExceptionCode @ff0da988,"AxisWsddException:Requested service 
not found" 

I also tested with request and session scopes, it failed too.

2006/3/9, John Hawkins < HAWKINSJ@uk.ibm.com>: 

I'll put it this way - it's not tested. 


"Antoine Galataud" <antoine.galataud@gmail.com > 
09/03/2006 14:23 

Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org >



To
"Apache AXIS C User List" <axis-c-user@ws.apache.org > 
cc

Subject
Application, Session or Request scope














Hi !

does Axis 1.6x handle scope ? I tried to add a scope="Application" in
my service declaration in server.wsdd, but it doesn't seem to work...

Thanks
--
Antoine Galataud
antoine.galataud@gmail.com 

D?partement Architecture des Syst?mes d'Information
INSA - Rouen




-- 

Antoine Galataud
antoine.galataud@gmail.com 
D?partement Architecture des Syst?mes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com
D?partement Architecture des Syst?mes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com 
D?partement Architecture des Syst?mes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com 
Département Architecture des Systèmes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen 

Re: Application, Session or Request scope

Posted by Antoine Galataud <an...@gmail.com>.
Hi !

I've found no way to solve my scope issue for the moment, I'm still looking
for a way to do this (application scope, not handlers).

Thanks for any idea !

2006/3/16, Antoine Galataud <an...@gmail.com>:
>
> It doesn't work :
>
> in fact, I succeeded in getting a session scope, e.g I request the service
> 2 times in the same main() client, but I can't have an application scope.
> But I don't get the error I described in my earlier mail, now it gives me
> nothing. And I'm talking about service scope, I don't use any handler.
>
> Thanks for your answer
>
> 2006/3/16, John Hawkins <HA...@uk.ibm.com>:
> >
> >
> > I've just looked at this again and I'm not sure I understand your
> > question now!
> >
> >
> > If I look at your wsdd file it doesn't look correct to my thoughts (is
> > it the complete wsdd file?) e.g. this is a client sample wsdd file
> >
> >  <?xml version="1.0" encoding="UTF-8"?> <deployment xmlns="
> > http://xml.apache.org/axis/wsdd/"
> > xlmns:C="http//xml.apache.org.axis/wsdd/providers/c">  <service
> > name="Handler" provider="CPP:DOCUMENT" description="Handler">   <requestFlow>
> >   <handler name="myClientHandlerReq"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > name="myClientHandlerReq"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">   </handler>   </requestFlow>
> >   <responseFlow>   <handler name="myClientHandlerRes"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> > name="myClientHandlerRes"
> > type="<inst_dir>\samples\handlers\myClientHandler.dll">   </handler>   </responseFlow>
> >   </service>   </deployment>
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >  *"Antoine Galataud" <an...@gmail.com>*
> >
> > 16/03/2006 12:57
> >  Please respond to
> > "Apache AXIS C User List" <ax...@ws.apache.org>
> >
> >   To
> > "Apache AXIS C User List" <ax...@ws.apache.org>  cc
> >
> >  Subject
> > Re: Application, Session or Request scope
> >
> >
> >
> >
> >
> >
> > yes, i'm referring to the service scope. I saw in the doc that I could
> > set a scope for handlers in response/reauest flows, but I didn't see
> > anything about service.
> >
> > I'll try to set the scope also in client.wsdd, maybe it's what I'm
> > missing.
> >
> > Thanks for any further comments/suggestions.
> >
> > 2006/3/16, James Jose <*jamejose@in.ibm.com* <ja...@in.ibm.com>>:
> >
> > Hi,
> >
> >   We are running HandlerTest01 to HandlerTest10.  But here Antoine is
> > referring the scope of the service ..?
> >
> >
> > Regards
> > James
> > --------------------------------------------------
> > James Jose
> > Messaging Clients Team, WMQDDC
> > IBM Software Labs, India
> > Direct: 91-80- 25094331  Ext :2331
> > E-mail: *jamejose@in.ibm.com* <ja...@in.ibm.com>
> >
> >
> >
> >   *John Hawkins <* *HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com>*> *
> >
> > 03/16/2006 17:50
> >   Please respond to
> > "Apache AXIS C User List"
> >
> >
> >   To
> > "Apache AXIS C User List" <*axis-c-user@ws.apache.org*
> > <ax...@ws.apache.org>>  cc
> >
> >  Subject
> > Re: Application, Session or Request scope
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Well, service and global handlers should work for the client and I'm
> > surprised they aren't working for the server. Can you try it in the client
> > and see if you get the same results. James - what tests do we run on
> > handlers nowadays?
> >
> >
> >   *"Antoine Galataud" <**antoine.galataud@gmail.com*
> > <an...@gmail.com>*>*
> >
> > 16/03/2006 11:38
> >   Please respond to
> > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> > >
> >
> >
> >   To
> > "Apache AXIS C User List" <*a...@ws.apache.org>>
> > cc
> >
> >  Subject
> > Re: Application, Session or Request scope
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > So, is there any work around to get this feature working ?
> >
> > Thanks for your answer
> >
> > 2006/3/15, Antoine Galataud <*antoine.galataud@gmail.com *<an...@gmail.com>>:
> >
> > Hum, seems scope is not yet correctly implemented (or tested) in 1.6a.n(solaris) release. Here is my
> > server.wsdd :
> >
> >  <service name="IAdminConfiguration" provider="CPP:RPC"
> > description="IAdminConfiguration Web Services">
> >      <parameter name="allowedMethods" value="notifyDictionaryReinit
> > initService"/>
> >      <parameter name="scope" value="application">
> >      <parameter name="className"
> > value="/home/antgalat/apache/webservices/libiadminconfig.so"/>
> >  </service>
> >
> > If I do that I get this in the init logs :
> >
> > [15/03/2006 13:40:42:387 MET] 1 WSDDHandler > setScope
> > @11cec8,"application"
> >
> > But if I invoke the service, it fails with :
> >
> > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException > AxisWsddException
> > @ff0da988,7, <null>
> > [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> > getMessageForExceptionCode @ff0da988,7
> > [15/03/2006 13:40:49:216 MET] 1 AxisWsddException <
> > getMessageForExceptionCode @ff0da988,"AxisWsddException:Requested service
> > not found"
> >
> > I also tested with request and session scopes, it failed too.
> >
> > 2006/3/9, John Hawkins <* HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com>>:
> >
> > I'll put it this way - it's not tested.
> >
> >
> >   *"Antoine Galataud" <**antoine.galataud@gmail.com* * *<an...@gmail.com>
> > *>*
> >
> > 09/03/2006 14:23
> >   Please respond to
> > "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> > >
> >
> >
> >   To
> > "Apache AXIS C User List" <*a...@ws.apache.org>>
> > cc
> >
> >  Subject
> > Application, Session or Request scope
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Hi !
> >
> > does Axis 1.6x handle scope ? I tried to add a scope="Application" in
> > my service declaration in server.wsdd, but it doesn't seem to work...
> >
> > Thanks
> > --
> > Antoine Galataud*
> > **antoine.galataud@gmail.com* <an...@gmail.com>
> >
> > D�partement Architecture des Syst�mes d'Information
> > INSA - Rouen
> >
> >
> >
> >
> > --
> >
> > Antoine Galataud*
> > **antoine.galataud@gmail.com* <an...@gmail.com>
> > D�partement Architecture des Syst�mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud*
> > **antoine.galataud@gmail.com* <an...@gmail.com>
> > D�partement Architecture des Syst�mes d'Information
> > INSA - Rouen
> >
> >
> >
> > --
> > Antoine Galataud*
> > **antoine.galataud@gmail.com* <an...@gmail.com>
> > D�partement Architecture des Syst�mes d'Information
> > INSA - Rouen
> >
>
>
>
> --
> Antoine Galataud
> antoine.galataud@gmail.com
> Département Architecture des Systèmes d'Information
> INSA - Rouen
>



--
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen

Re: Application, Session or Request scope

Posted by Antoine Galataud <an...@gmail.com>.
It doesn't work :

in fact, I succeeded in getting a session scope, e.g I request the service 2
times in the same main() client, but I can't have an application scope. But
I don't get the error I described in my earlier mail, now it gives me
nothing. And I'm talking about service scope, I don't use any handler.

Thanks for your answer

2006/3/16, John Hawkins <HA...@uk.ibm.com>:
>
>
> I've just looked at this again and I'm not sure I understand your question
> now!
>
>
> If I look at your wsdd file it doesn't look correct to my thoughts (is it
> the complete wsdd file?) e.g. this is a client sample wsdd file
>
>  <?xml version="1.0" encoding="UTF-8"?> <deployment xmlns="
> http://xml.apache.org/axis/wsdd/"
> xlmns:C="http//xml.apache.org.axis/wsdd/providers/c">  <service
> name="Handler" provider="CPP:DOCUMENT" description="Handler">   <requestFlow>
>   <handler name="myClientHandlerReq"
> type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> name="myClientHandlerReq"
> type="<inst_dir>\samples\handlers\myClientHandler.dll">   </handler>   </requestFlow>
>   <responseFlow>   <handler name="myClientHandlerRes"
> type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler
> name="myClientHandlerRes"
> type="<inst_dir>\samples\handlers\myClientHandler.dll">   </handler>   </responseFlow>
>   </service>   </deployment>
>
>
>
>
>
>
>
>
>
>  *"Antoine Galataud" <an...@gmail.com>*
>
> 16/03/2006 12:57
>  Please respond to
> "Apache AXIS C User List" <ax...@ws.apache.org>
>
>   To
> "Apache AXIS C User List" <ax...@ws.apache.org>  cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
> yes, i'm referring to the service scope. I saw in the doc that I could set
> a scope for handlers in response/reauest flows, but I didn't see anything
> about service.
>
> I'll try to set the scope also in client.wsdd, maybe it's what I'm
> missing.
>
> Thanks for any further comments/suggestions.
>
> 2006/3/16, James Jose <*jamejose@in.ibm.com* <ja...@in.ibm.com>>:
>
> Hi,
>
>   We are running HandlerTest01 to HandlerTest10.  But here Antoine is
> referring the scope of the service ..?
>
>
> Regards
> James
> --------------------------------------------------
> James Jose
> Messaging Clients Team, WMQDDC
> IBM Software Labs, India
> Direct: 91-80- 25094331  Ext :2331
> E-mail: *jamejose@in.ibm.com* <ja...@in.ibm.com>
>
>
>
>   *John Hawkins <**HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com>*> *
>
> 03/16/2006 17:50
>   Please respond to
> "Apache AXIS C User List"
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>
> >  cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
>
> Well, service and global handlers should work for the client and I'm
> surprised they aren't working for the server. Can you try it in the client
> and see if you get the same results. James - what tests do we run on
> handlers nowadays?
>
>
>   *"Antoine Galataud" <**...@gmail.com>
> *>*
>
> 16/03/2006 11:38
>   Please respond to
> "Apache AXIS C User List" <*a...@ws.apache.org>
> >
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>
> >  cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
> So, is there any work around to get this feature working ?
>
> Thanks for your answer
>
> 2006/3/15, Antoine Galataud <*antoine.galataud@gmail.com *<an...@gmail.com>>:
>
> Hum, seems scope is not yet correctly implemented (or tested) in 1.6a.n(solaris) release. Here is my
> server.wsdd :
>
>  <service name="IAdminConfiguration" provider="CPP:RPC"
> description="IAdminConfiguration Web Services">
>      <parameter name="allowedMethods" value="notifyDictionaryReinit
> initService"/>
>      <parameter name="scope" value="application">
>      <parameter name="className"
> value="/home/antgalat/apache/webservices/libiadminconfig.so"/>
>  </service>
>
> If I do that I get this in the init logs :
>
> [15/03/2006 13:40:42:387 MET] 1 WSDDHandler > setScope
> @11cec8,"application"
>
> But if I invoke the service, it fails with :
>
> [15/03/2006 13:40:49:215 MET] 1 AxisWsddException > AxisWsddException
> @ff0da988,7, <null>
> [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> getMessageForExceptionCode @ff0da988,7
> [15/03/2006 13:40:49:216 MET] 1 AxisWsddException <
> getMessageForExceptionCode @ff0da988,"AxisWsddException:Requested service
> not found"
>
> I also tested with request and session scopes, it failed too.
>
> 2006/3/9, John Hawkins <* HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com>>:
>
> I'll put it this way - it's not tested.
>
>
>   *"Antoine Galataud" <**antoine.galataud@gmail.com** *<an...@gmail.com>
> *>*
>
> 09/03/2006 14:23
>   Please respond to
> "Apache AXIS C User List" <*axis-c-user@ws.apache.org *<ax...@ws.apache.org>
> >
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>>
> cc
>
>  Subject
> Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
>
>
> Hi !
>
> does Axis 1.6x handle scope ? I tried to add a scope="Application" in
> my service declaration in server.wsdd, but it doesn't seem to work...
>
> Thanks
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
>
> --
>
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> D�partement Architecture des Syst�mes d'Information
> INSA - Rouen
>



--
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen

Re: Application, Session or Request scope

Posted by John Hawkins <HA...@uk.ibm.com>.
I've just looked at this again and I'm not sure I understand your question 
now!


If I look at your wsdd file it doesn't look correct to my thoughts (is it 
the complete wsdd file?) e.g. this is a client sample wsdd file 


<?xml version="1.0" encoding="UTF-8"?>
<deployment xmlns="http://xml.apache.org/axis/wsdd/" 
xlmns:C="http//xml.apache.org.axis/wsdd/providers/c">
 <service name="Handler" provider="CPP:DOCUMENT" description="Handler"> 
 <requestFlow> 
 <handler name="myClientHandlerReq" 
type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler 
name="myClientHandlerReq" 
type="<inst_dir>\samples\handlers\myClientHandler.dll"> 
 </handler> 
 </requestFlow> 
 <responseFlow> 
 <handler name="myClientHandlerRes" 
type="<inst_dir>\samples\handlers\myClientHandler.dll">  <handler 
name="myClientHandlerRes" 
type="<inst_dir>\samples\handlers\myClientHandler.dll"> 
 </handler> 
 </responseFlow> 
 </service> 
 </deployment> 










"Antoine Galataud" <an...@gmail.com> 
16/03/2006 12:57
Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>


To
"Apache AXIS C User List" <ax...@ws.apache.org>
cc

Subject
Re: Application, Session or Request scope






yes, i'm referring to the service scope. I saw in the doc that I could set 
a scope for handlers in response/reauest flows, but I didn't see anything 
about service.

I'll try to set the scope also in client.wsdd, maybe it's what I'm 
missing. 

Thanks for any further comments/suggestions.

2006/3/16, James Jose <ja...@in.ibm.com>:

Hi, 

   We are running HandlerTest01 to HandlerTest10.  But here Antoine is 
referring the scope of the service ..? 


Regards
James
--------------------------------------------------
James Jose
Messaging Clients Team, WMQDDC
IBM Software Labs, India
Direct: 91-80- 25094331  Ext :2331
E-mail: jamejose@in.ibm.com




John Hawkins <HA...@uk.ibm.com> 
03/16/2006 17:50 

Please respond to
"Apache AXIS C User List"



To
"Apache AXIS C User List" <ax...@ws.apache.org> 
cc

Subject
Re: Application, Session or Request scope









Well, service and global handlers should work for the client and I'm 
surprised they aren't working for the server. Can you try it in the client 
and see if you get the same results. James - what tests do we run on 
handlers nowadays? 



"Antoine Galataud" <an...@gmail.com> 
16/03/2006 11:38 

Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>



To
"Apache AXIS C User List" <ax...@ws.apache.org> 
cc

Subject
Re: Application, Session or Request scope










So, is there any work around to get this feature working ?

Thanks for your answer

2006/3/15, Antoine Galataud <antoine.galataud@gmail.com >: 
Hum, seems scope is not yet correctly implemented (or tested) in 1.6a.n 
(solaris) release. Here is my server.wsdd :

  <service name="IAdminConfiguration" provider="CPP:RPC" 
description="IAdminConfiguration Web Services"> 
      <parameter name="allowedMethods" value="notifyDictionaryReinit 
initService"/>
      <parameter name="scope" value="application">
      <parameter name="className" 
value="/home/antgalat/apache/webservices/libiadminconfig.so"/> 
  </service> 

If I do that I get this in the init logs :

[15/03/2006 13:40:42:387 MET] 1 WSDDHandler > setScope 
@11cec8,"application"

But if I invoke the service, it fails with : 

[15/03/2006 13:40:49:215 MET] 1 AxisWsddException > AxisWsddException 
@ff0da988,7, <null>
[15/03/2006 13:40:49:215 MET] 1 AxisWsddException > 
getMessageForExceptionCode @ff0da988,7
[15/03/2006 13:40:49:216 MET] 1 AxisWsddException < 
getMessageForExceptionCode @ff0da988,"AxisWsddException:Requested service 
not found" 

I also tested with request and session scopes, it failed too.

2006/3/9, John Hawkins < HAWKINSJ@uk.ibm.com>: 

I'll put it this way - it's not tested. 



"Antoine Galataud" <antoine.galataud@gmail.com > 
09/03/2006 14:23 

Please respond to
"Apache AXIS C User List" <axis-c-user@ws.apache.org >



To
"Apache AXIS C User List" <axis-c-user@ws.apache.org > 
cc

Subject
Application, Session or Request scope












Hi !

does Axis 1.6x handle scope ? I tried to add a scope="Application" in
my service declaration in server.wsdd, but it doesn't seem to work...

Thanks
--
Antoine Galataud
antoine.galataud@gmail.com 
Département Architecture des Systèmes d'Information
INSA - Rouen




-- 

Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen 

Re: Application, Session or Request scope

Posted by Antoine Galataud <an...@gmail.com>.
yes, i'm referring to the service scope. I saw in the doc that I could set a
scope for handlers in response/reauest flows, but I didn't see anything
about service.

I'll try to set the scope also in client.wsdd, maybe it's what I'm missing.

Thanks for any further comments/suggestions.

2006/3/16, James Jose <ja...@in.ibm.com>:
>
>
> Hi,
>
>    We are running HandlerTest01 to HandlerTest10.  But here Antoine is
> referring the scope of the service ..?
>
>
> Regards
> James
> --------------------------------------------------
> James Jose
> Messaging Clients Team, WMQDDC
> IBM Software Labs, India
> Direct: 91-80- 25094331  Ext :2331
> E-mail: jamejose@in.ibm.com
>
>
>
>
>  *John Hawkins <HA...@uk.ibm.com>*
>
> 03/16/2006 17:50  Please respond to
> "Apache AXIS C User List"
>
>   To
> "Apache AXIS C User List" <ax...@ws.apache.org>  cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
> Well, service and global handlers should work for the client and I'm
> surprised they aren't working for the server. Can you try it in the client
> and see if you get the same results. James - what tests do we run on
> handlers nowadays?
>
>
>
>   *"Antoine Galataud" <an...@gmail.com>*
>
> 16/03/2006 11:38
>   Please respond to
> "Apache AXIS C User List" <ax...@ws.apache.org>
>
>   To
> "Apache AXIS C User List" <ax...@ws.apache.org>  cc
>
>  Subject
> Re: Application, Session or Request scope
>
>
>
>
>
>
>
>
> So, is there any work around to get this feature working ?
>
> Thanks for your answer
>
> 2006/3/15, Antoine Galataud <*antoine.galataud@gmail.com *<an...@gmail.com>>:
>
> Hum, seems scope is not yet correctly implemented (or tested) in 1.6a.n(solaris) release. Here is my
> server.wsdd :
>
>   <service name="IAdminConfiguration" provider="CPP:RPC"
> description="IAdminConfiguration Web Services">
>       <parameter name="allowedMethods" value="notifyDictionaryReinit
> initService"/>
>       <parameter name="scope" value="application">
>       <parameter name="className"
> value="/home/antgalat/apache/webservices/libiadminconfig.so"/>
>   </service>
>
> If I do that I get this in the init logs :
>
> [15/03/2006 13:40:42:387 MET] 1 WSDDHandler > setScope
> @11cec8,"application"
>
> But if I invoke the service, it fails with :
>
> [15/03/2006 13:40:49:215 MET] 1 AxisWsddException > AxisWsddException
> @ff0da988,7, <null>
> [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> getMessageForExceptionCode @ff0da988,7
> [15/03/2006 13:40:49:216 MET] 1 AxisWsddException <
> getMessageForExceptionCode @ff0da988,"AxisWsddException:Requested service
> not found"
>
> I also tested with request and session scopes, it failed too.
>
> 2006/3/9, John Hawkins <* HAWKINSJ@uk.ibm.com* <HA...@uk.ibm.com>>:
>
> I'll put it this way - it's not tested.
>
>
>
>   *"Antoine Galataud" <**...@gmail.com>
> *>*
>
> 09/03/2006 14:23
>   Please respond to
> "Apache AXIS C User List" <*a...@ws.apache.org>
> >
>
>
>   To
> "Apache AXIS C User List" <*a...@ws.apache.org>
> >  cc
>
>  Subject
> Application, Session or Request scope
>
>
>
>
>
>
>
>
>
>
> Hi !
>
> does Axis 1.6x handle scope ? I tried to add a scope="Application" in
> my service declaration in server.wsdd, but it doesn't seem to work...
>
> Thanks
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> Département Architecture des Systèmes d'Information
> INSA - Rouen
>
>
>
>
> --
>
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> Département Architecture des Systèmes d'Information
> INSA - Rouen
>
>
>
> --
> Antoine Galataud*
> **antoine.galataud@gmail.com* <an...@gmail.com>
> Département Architecture des Systèmes d'Information
> INSA - Rouen
>



--
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen

Re: Application, Session or Request scope

Posted by John Hawkins <HA...@uk.ibm.com>.
The question is what scope do those handler tests cover?




James Jose <ja...@in.ibm.com> 
16/03/2006 12:42
Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>


To
"Apache AXIS C User List" <ax...@ws.apache.org>
cc

Subject
Re: Application, Session or Request scope







Hi, 

   We are running HandlerTest01 to HandlerTest10.  But here Antoine is 
referring the scope of the service ..? 


Regards
James
--------------------------------------------------
James Jose
Messaging Clients Team, WMQDDC
IBM Software Labs, India
Direct: 91-80- 25094331  Ext :2331
E-mail: jamejose@in.ibm.com




John Hawkins <HA...@uk.ibm.com> 
03/16/2006 17:50 

Please respond to
"Apache AXIS C User List"


To
"Apache AXIS C User List" <ax...@ws.apache.org> 
cc

Subject
Re: Application, Session or Request scope









Well, service and global handlers should work for the client and I'm 
surprised they aren't working for the server. Can you try it in the client 
and see if you get the same results. James - what tests do we run on 
handlers nowadays? 



"Antoine Galataud" <an...@gmail.com> 
16/03/2006 11:38 

Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>



To
"Apache AXIS C User List" <ax...@ws.apache.org> 
cc

Subject
Re: Application, Session or Request scope










So, is there any work around to get this feature working ?

Thanks for your answer

2006/3/15, Antoine Galataud <antoine.galataud@gmail.com >: 
Hum, seems scope is not yet correctly implemented (or tested) in 1.6a.n 
(solaris) release. Here is my server.wsdd :

  <service name="IAdminConfiguration" provider="CPP:RPC" 
description="IAdminConfiguration Web Services"> 
      <parameter name="allowedMethods" value="notifyDictionaryReinit 
initService"/>
      <parameter name="scope" value="application">
      <parameter name="className" 
value="/home/antgalat/apache/webservices/libiadminconfig.so"/> 
  </service> 

If I do that I get this in the init logs :

[15/03/2006 13:40:42:387 MET] 1 WSDDHandler > setScope 
@11cec8,"application"

But if I invoke the service, it fails with : 

[15/03/2006 13:40:49:215 MET] 1 AxisWsddException > AxisWsddException 
@ff0da988,7, <null>
[15/03/2006 13:40:49:215 MET] 1 AxisWsddException > 
getMessageForExceptionCode @ff0da988,7
[15/03/2006 13:40:49:216 MET] 1 AxisWsddException < 
getMessageForExceptionCode @ff0da988,"AxisWsddException:Requested service 
not found" 

I also tested with request and session scopes, it failed too.

2006/3/9, John Hawkins < HAWKINSJ@uk.ibm.com>: 

I'll put it this way - it's not tested. 



"Antoine Galataud" <an...@gmail.com> 
09/03/2006 14:23 

Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>



To
"Apache AXIS C User List" <ax...@ws.apache.org> 
cc

Subject
Application, Session or Request scope












Hi !

does Axis 1.6x handle scope ? I tried to add a scope="Application" in
my service declaration in server.wsdd, but it doesn't seem to work...

Thanks
--
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen




-- 

Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen 

Re: Application, Session or Request scope

Posted by James Jose <ja...@in.ibm.com>.
Hi,

   We are running HandlerTest01 to HandlerTest10.  But here Antoine is 
referring the scope of the service ..? 


Regards
James
--------------------------------------------------
James Jose
Messaging Clients Team, WMQDDC
IBM Software Labs, India
Direct: 91-80- 25094331  Ext :2331
E-mail: jamejose@in.ibm.com





John Hawkins <HA...@uk.ibm.com> 
03/16/2006 17:50
Please respond to
"Apache AXIS C User List"


To
"Apache AXIS C User List" <ax...@ws.apache.org>
cc

Subject
Re: Application, Session or Request scope







Well, service and global handlers should work for the client and I'm 
surprised they aren't working for the server. Can you try it in the client 
and see if you get the same results. James - what tests do we run on 
handlers nowadays? 




"Antoine Galataud" <an...@gmail.com> 
16/03/2006 11:38 

Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>


To
"Apache AXIS C User List" <ax...@ws.apache.org> 
cc

Subject
Re: Application, Session or Request scope








So, is there any work around to get this feature working ?

Thanks for your answer

2006/3/15, Antoine Galataud <antoine.galataud@gmail.com >: 
Hum, seems scope is not yet correctly implemented (or tested) in 1.6a.n 
(solaris) release. Here is my server.wsdd :

   <service name="IAdminConfiguration" provider="CPP:RPC" 
description="IAdminConfiguration Web Services"> 
       <parameter name="allowedMethods" value="notifyDictionaryReinit 
initService"/>
       <parameter name="scope" value="application">
       <parameter name="className" 
value="/home/antgalat/apache/webservices/libiadminconfig.so"/> 
   </service> 

If I do that I get this in the init logs :

[15/03/2006 13:40:42:387 MET] 1 WSDDHandler > setScope 
@11cec8,"application"

But if I invoke the service, it fails with : 

[15/03/2006 13:40:49:215 MET] 1 AxisWsddException > AxisWsddException 
@ff0da988,7, <null>
[15/03/2006 13:40:49:215 MET] 1 AxisWsddException > 
getMessageForExceptionCode @ff0da988,7
[15/03/2006 13:40:49:216 MET] 1 AxisWsddException < 
getMessageForExceptionCode @ff0da988,"AxisWsddException:Requested service 
not found" 

I also tested with request and session scopes, it failed too.

2006/3/9, John Hawkins < HAWKINSJ@uk.ibm.com>: 

I'll put it this way - it's not tested. 




"Antoine Galataud" <an...@gmail.com> 
09/03/2006 14:23 

Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>



To
"Apache AXIS C User List" <ax...@ws.apache.org> 
cc

Subject
Application, Session or Request scope










Hi !

does Axis 1.6x handle scope ? I tried to add a scope="Application" in
my service declaration in server.wsdd, but it doesn't seem to work...

Thanks
--
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen




-- 

Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen 

Re: Application, Session or Request scope

Posted by John Hawkins <HA...@uk.ibm.com>.
I would also say that you are using Solaris which is different - perhaps 
you could try on windows first?



John Hawkins/UK/IBM@IBMGB 
16/03/2006 12:20
Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>


To
"Apache AXIS C User List" <ax...@ws.apache.org>
cc

Subject
Re: Application, Session or Request scope







Well, service and global handlers should work for the client and I'm 
surprised they aren't working for the server. Can you try it in the client 
and see if you get the same results. James - what tests do we run on 
handlers nowadays? 




"Antoine Galataud" <an...@gmail.com> 
16/03/2006 11:38 

Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>


To
"Apache AXIS C User List" <ax...@ws.apache.org> 
cc

Subject
Re: Application, Session or Request scope








So, is there any work around to get this feature working ?

Thanks for your answer

2006/3/15, Antoine Galataud <antoine.galataud@gmail.com >: 
Hum, seems scope is not yet correctly implemented (or tested) in 1.6a.n 
(solaris) release. Here is my server.wsdd :

   <service name="IAdminConfiguration" provider="CPP:RPC" 
description="IAdminConfiguration Web Services"> 
       <parameter name="allowedMethods" value="notifyDictionaryReinit 
initService"/>
       <parameter name="scope" value="application">
       <parameter name="className" 
value="/home/antgalat/apache/webservices/libiadminconfig.so"/> 
   </service> 

If I do that I get this in the init logs :

[15/03/2006 13:40:42:387 MET] 1 WSDDHandler > setScope 
@11cec8,"application"

But if I invoke the service, it fails with : 

[15/03/2006 13:40:49:215 MET] 1 AxisWsddException > AxisWsddException 
@ff0da988,7, <null>
[15/03/2006 13:40:49:215 MET] 1 AxisWsddException > 
getMessageForExceptionCode @ff0da988,7
[15/03/2006 13:40:49:216 MET] 1 AxisWsddException < 
getMessageForExceptionCode @ff0da988,"AxisWsddException:Requested service 
not found" 

I also tested with request and session scopes, it failed too.

2006/3/9, John Hawkins < HAWKINSJ@uk.ibm.com>: 

I'll put it this way - it's not tested. 




"Antoine Galataud" <an...@gmail.com> 
09/03/2006 14:23 

Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>



To
"Apache AXIS C User List" <ax...@ws.apache.org> 
cc

Subject
Application, Session or Request scope










Hi !

does Axis 1.6x handle scope ? I tried to add a scope="Application" in
my service declaration in server.wsdd, but it doesn't seem to work...

Thanks
--
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen




-- 

Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen 

Re: Application, Session or Request scope

Posted by John Hawkins <HA...@uk.ibm.com>.
Well, service and global handlers should work for the client and I'm 
surprised they aren't working for the server. Can you try it in the client 
and see if you get the same results. James - what tests do we run on 
handlers nowadays?





"Antoine Galataud" <an...@gmail.com> 
16/03/2006 11:38
Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>


To
"Apache AXIS C User List" <ax...@ws.apache.org>
cc

Subject
Re: Application, Session or Request scope






So, is there any work around to get this feature working ?

Thanks for your answer

2006/3/15, Antoine Galataud <antoine.galataud@gmail.com >:
Hum, seems scope is not yet correctly implemented (or tested) in 1.6a.n 
(solaris) release. Here is my server.wsdd :

    <service name="IAdminConfiguration" provider="CPP:RPC" 
description="IAdminConfiguration Web Services"> 
        <parameter name="allowedMethods" value="notifyDictionaryReinit 
initService"/>
        <parameter name="scope" value="application">
        <parameter name="className" 
value="/home/antgalat/apache/webservices/libiadminconfig.so"/> 
    </service> 

If I do that I get this in the init logs :

[15/03/2006 13:40:42:387 MET] 1 WSDDHandler > setScope 
@11cec8,"application"

But if I invoke the service, it fails with : 

[15/03/2006 13:40:49:215 MET] 1 AxisWsddException > AxisWsddException 
@ff0da988,7, <null>
[15/03/2006 13:40:49:215 MET] 1 AxisWsddException > 
getMessageForExceptionCode @ff0da988,7
[15/03/2006 13:40:49:216 MET] 1 AxisWsddException < 
getMessageForExceptionCode @ff0da988,"AxisWsddException:Requested service 
not found" 

I also tested with request and session scopes, it failed too.

2006/3/9, John Hawkins < HAWKINSJ@uk.ibm.com>:

I'll put it this way - it's not tested. 





"Antoine Galataud" <an...@gmail.com> 
09/03/2006 14:23 

Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>



To
"Apache AXIS C User List" <ax...@ws.apache.org> 
cc

Subject
Application, Session or Request scope








Hi !

does Axis 1.6x handle scope ? I tried to add a scope="Application" in
my service declaration in server.wsdd, but it doesn't seem to work...

Thanks
--
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen




-- 

Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen 



-- 
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen 

Re: Application, Session or Request scope

Posted by Antoine Galataud <an...@gmail.com>.
So, is there any work around to get this feature working ?

Thanks for your answer

2006/3/15, Antoine Galataud <an...@gmail.com>:
>
> Hum, seems scope is not yet correctly implemented (or tested) in 1.6a.n(solaris) release. Here is my
> server.wsdd :
>
>     <service name="IAdminConfiguration" provider="CPP:RPC"
> description="IAdminConfiguration Web Services">
>         <parameter name="allowedMethods" value="notifyDictionaryReinit
> initService"/>
>         <parameter name="scope" value="application">
>         <parameter name="className"
> value="/home/antgalat/apache/webservices/libiadminconfig.so"/>
>     </service>
>
> If I do that I get this in the init logs :
>
> [15/03/2006 13:40:42:387 MET] 1 WSDDHandler > setScope
> @11cec8,"application"
>
> But if I invoke the service, it fails with :
>
> [15/03/2006 13:40:49:215 MET] 1 AxisWsddException > AxisWsddException
> @ff0da988,7, <null>
> [15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
> getMessageForExceptionCode @ff0da988,7
> [15/03/2006 13:40:49:216 MET] 1 AxisWsddException <
> getMessageForExceptionCode @ff0da988,"AxisWsddException:Requested service
> not found"
>
> I also tested with request and session scopes, it failed too.
>
> 2006/3/9, John Hawkins <HA...@uk.ibm.com>:
> >
> >
> > I'll put it this way - it's not tested.
> >
> >
> >
> >
> >
> >  *"Antoine Galataud" <an...@gmail.com>*
> >
> > 09/03/2006 14:23  Please respond to
> > "Apache AXIS C User List" <ax...@ws.apache.org>
> >
> >   To
> > "Apache AXIS C User List" <ax...@ws.apache.org>  cc
> >
> >  Subject
> > Application, Session or Request scope
> >
> >
> >
> >
> >
> >
> > Hi !
> >
> > does Axis 1.6x handle scope ? I tried to add a scope="Application" in
> > my service declaration in server.wsdd, but it doesn't seem to work...
> >
> > Thanks
> > --
> > Antoine Galataud
> > antoine.galataud@gmail.com
> > Département Architecture des Systèmes d'Information
> > INSA - Rouen
> >
> >
>
>
> --
> Antoine Galataud
> antoine.galataud@gmail.com
> Département Architecture des Systèmes d'Information
> INSA - Rouen
>



--
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen

Re: Application, Session or Request scope

Posted by Antoine Galataud <an...@gmail.com>.
Hum, seems scope is not yet correctly implemented (or tested) in
1.6a.n(solaris) release. Here is my
server.wsdd :

    <service name="IAdminConfiguration" provider="CPP:RPC"
description="IAdminConfiguration Web Services">
        <parameter name="allowedMethods" value="notifyDictionaryReinit
initService"/>
        <parameter name="scope" value="application">
        <parameter name="className"
value="/home/antgalat/apache/webservices/libiadminconfig.so"/>
    </service>

If I do that I get this in the init logs :

[15/03/2006 13:40:42:387 MET] 1 WSDDHandler > setScope @11cec8,"application"

But if I invoke the service, it fails with :

[15/03/2006 13:40:49:215 MET] 1 AxisWsddException > AxisWsddException
@ff0da988,7, <null>
[15/03/2006 13:40:49:215 MET] 1 AxisWsddException >
getMessageForExceptionCode @ff0da988,7
[15/03/2006 13:40:49:216 MET] 1 AxisWsddException <
getMessageForExceptionCode @ff0da988,"AxisWsddException:Requested service
not found"

I also tested with request and session scopes, it failed too.

2006/3/9, John Hawkins <HA...@uk.ibm.com>:
>
>
> I'll put it this way - it's not tested.
>
>
>
>
>
>  *"Antoine Galataud" <an...@gmail.com>*
>
> 09/03/2006 14:23  Please respond to
> "Apache AXIS C User List" <ax...@ws.apache.org>
>
>   To
> "Apache AXIS C User List" <ax...@ws.apache.org>  cc
>
>  Subject
> Application, Session or Request scope
>
>
>
>
>
>
> Hi !
>
> does Axis 1.6x handle scope ? I tried to add a scope="Application" in
> my service declaration in server.wsdd, but it doesn't seem to work...
>
> Thanks
> --
> Antoine Galataud
> antoine.galataud@gmail.com
> Département Architecture des Systèmes d'Information
> INSA - Rouen
>
>


--
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen

Re: Application, Session or Request scope

Posted by John Hawkins <HA...@uk.ibm.com>.
I'll put it this way - it's not tested.






"Antoine Galataud" <an...@gmail.com> 
09/03/2006 14:23
Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>


To
"Apache AXIS C User List" <ax...@ws.apache.org>
cc

Subject
Application, Session or Request scope






Hi !

does Axis 1.6x handle scope ? I tried to add a scope="Application" in
my service declaration in server.wsdd, but it doesn't seem to work...

Thanks
--
Antoine Galataud
antoine.galataud@gmail.com
Département Architecture des Systèmes d'Information
INSA - Rouen