Session maintenance at server side for webservice developed in CXF.

Hi.
Can anybody explain how to maintain session for a Webservice which is developed with the help of CXF? As earlier we were using AXIS, but recently we migrated to CXF. I tried to find out code samples, many places it’s given the session handling from client side which is not suitable for webservices. As client can work on different technologies.
So i cannot request client to put code for session handling.
Help is appreciated.
Thanks in advance.
Regards
Sreedhar

Hi.
Can anybody explain how to maintain session for a Webservice which is developed with the help of CXF? As earlier we were using AXIS, but recently we migrated to CXF. I tried to find out code samples, many places it’s given the session handling from client side which is not suitable for webservices. As client can work on different technologies.
So i cannot request client to put code for session handling.
Help is appreciated.
Thanks in advance.
Regards
Sreedhar

Similar Messages

  • User form: to execute some operation at server side for a command click

    jurajsiska Apr 11, 2006 7:56 AM
    I'm creating a customer user form. I want to do some thing at server side when a command is clicked, but don't want to save any modified value until user clicks "Save" button. There is property for command display class, named "command", but it just gives you opportunity to execute some pre-defined command, Save, Recalcuate, or Cance. How can I achieve this by customizing the event handler for command click?

    I just figured out a way myself. Create a hidden field in your user form, use the java script to set hidden field to some value for the "onclick" property of BUTTON, and to check this hidden value in the properties command of BUTTON to know if it's coming from click or refres/recalculate. Of course you need to reset the hidden value in the expression of command property.
    Hope it's helpful for somebody having the same situation,

  • Hosting application server useful for running developed applications?

    Hi,
             For my online applications, I am going to host the application to run on internet using hosting server.
    My doubt is, as like my local application server , Will i be apply to use the hosting server to run the application?
    Or I need to use my local application server in that hosting server to exclusively run the applications ?
    Pls suggest regarding this.
    - TechniM

    You shouldn't, Developer Release is currently 11g Fusion Middleware.
    see http://www.oracle.com/support/library/brochure/lifetime-support-middleware.pdf, support for 9i ended 4 years ago.

  • Which web server recommended for web development?

    am running on windows xp, what are your recommendations regarding the web server?
    am looking to develop JSP, servlets and web services.

    JBoss, GlassFish and Tomcat are three pretty popular ones. I'd recommend researching them, seeing which one fits your needs and making a selection. No one here knows your full set of requirements or what you intend on doing and - therefore - no one here is qualified to tell you which product to use. Only you know what you need so only you can make the decision.

  • Bw web report plugin http session hangs at the server side

    Hi,
    I am having problems when closing the browser of a BW web report. After I closed the browser by going File->close, I ran SM04 and found out the Plugin HTTP session hangs at the server side.
    How can we terminate the Plugin HTTP session at the server side when user closes the internet browser?
    I did implement a logoff function at my web template, if user clicks on the logoff, the Plugin HTTP session is terminated at server side correctly. But As you know, 50% of time user will close the report by closing the internet browser instead of clicking the logoff. That leaves lots of hanging Plugin HTTP sessions at our server side.
    By the way, we actived our BEX service at the SICF.
    Thanks for help!
    JA

    Hi
    If you want to avoid a blank page with logoff button, add opener=0
    <a href="<SAP_BW_URL CMD='LOG_OFF' ~command='logoff'
    >" onClick="javascript:window.close(opener=0);">Log off</a>
    If you want to close the session via X, use this code:
    create a sapscript function
    function closeSession()
    logoff()
    window.unload=CloseSession()
    However, the Plugin HTTP session isn't killed.
    Regards

  • Multiple room management -- best practice -- server side http api update?

    Hi Folks, 
    Some of the forum postings on multiple room management are over year old now.  I have student/tutor chat application which has been in the wild for 5 months now and appears to be working well.  There is a single tutor per room, multiple chats and soon to be a whiteboard per student, which is shared with the tutor in a tabbed UI. 
    It is now time to fill out the multiple tutor functionality, which I considered and researched when building, but did not come to any conclusions.   I'm leaning towards a server side implementation.  Is there an impending update to the http api?
    Here is what I understand to be the flow:
    1) server side management of who is accessing the room
    2) load balance and manage the room access 1 time user and owner session from the server side
    3) for my implementation, a tutor will need to login to the room, in order for it to be available
    4) Any reconnection would in turn need to be managed by the server side, and is really a special case of room load balancing.
    My fear is that at some point I'm going to need access to the number of students in the room or similar and this is not available, so that I'll need client functionality, which will need update the server side manager.
    As well, I'm concerned about delays on the server side access to which might create race conditions in a re-connect situation.  User attempts to reconnect, but server side manager thinks that the user is already connected.
    Surely this simple room management has been built, does anyone have any wisdom they can impart?  Is there any best practice guidance or any samples?
    Thanks,
    Doug

    Hi Raff, Thanks a ton for the response.
    I wasn't clear on what I was calling load balancing.  What I mean by this is room assignment for student clients.  We have one tutor per room.  There are multiple students per room, but each is in their own one-on-one chat with the tutor.
    I'm very much struggling with where to do the room assignment / room managemnt, on the server side or on the client side (if that is even possible).  In my testing it is taking upwards of 10 seconds minimum to get a list of rooms (4 virtually empty rooms) and to query the users in a single room (also a minimum of users/nodes in the queried room).   If after this point, I 'redirect' the student to the least full room, then the student incurs the cost of creating a new session and logging into the room.  As well I intend to do a bit of xml parsing, and other processing, so that 10 seconds is likely to grow.
    Would I see better performance trying to do this in the client?
    As far as the server side, at what point does a room go to 'not-active'?
    When I'm querying the roomList, I am considered one of the 'OWNER' users in the UserLists.  At what point can it be safe to assume that I have left the room? 
    Is there documentation on the meaning and lifecycle of the different status codes?  not-active,  not-running, and ok?  Are there others?
    How much staleness can I expect from the server-side queries?
    As far as feature set, the only thing that comes to mind is xpath and or wild card support for getNode() but i think this was mentioned in other posts.
    Regarding the reconnection issues, I am timing out the student after inactivity, and this is probably by and large the bulk of my reconnect use cases.  This and any logout interaction from the student presents a use case where I  may want reassign the student return to the same room as before.  I can envision scenarios of a preferred tutor if available etc.  In this case, I'll need to know list of rooms.  In terms of reconnection failover, this is not not a LCCS / FMS issue.
    Thanks again for responding.

  • [SOLVED] Recommendations needed - Arch + Apache for local development

    Hello,
    I'm a new Arch user, and relatively new with Linux. I'm getting to like Arch very much.
    I do web development, and I do most of my programming in PERL.
    I have already installed perl and some tools, and I'm about to install apache. The Idea is to have the apache server just for local development and testing.
    So the question is: Do you recommend me to install some firewall?
    What security measurements should I take?
    Is there any easy way to enable and disable Internet access to the apache server?
    Thank you!
    Last edited by iopo (2009-10-28 19:24:14)

    Thank you friends.
    Yes, my Internet is via router. I like the Idea to set the server to listen at local address, I will try that.
    Now, as I'm new to Linux and Arch, I will like to know if I should take any extra security measurements. In windows I used anti-virus + firewall all the time, and I blocked apache to access the Internet with the firewall.
    I have set a strong root password, but the "normal user" has sudo. Is that secure enough?
    Is there any "must have" security tools or measurements to set is a box like mine (Desktop usage + local network (3 machines) + apache for local usage and testing only)?
    Is it common to get some malware, worm, trojan, spyware or some kind of phishing just by surfing the web without user "action" to install it?
    I know Linux is much safer because users and permissions. I like that very much, It feels a lot safer.
    Now, I have used Arch for a week or so with no firewall (router firewall is disabled also) and no anti-virus. Absolutely no special security measurements and there seems to be no log-in attempts in logfiles .. and no problems at all. Windows without firewall and anti-virus will die in a few hours just by leaving it connected to Internet....
    I just wanted to ask you all (Arch users) if you normally use Firewall, and if you take some special measurement to stay free of  trojans, spyware, etc...
    I will appreciate your comments.
    Thank you!

  • Multicast sessions page of server properties

    I am using ZEN 4.0.1 ir7, Netware 6.5sp4, ConsoleOne 1.3.6e.
    I was creating multicast sessions on the multicast sessions page of server
    properties for later use by my technician. I had created 5 sessions, then
    closed the property page. Then later I went back to make changes on one of
    the sessions. When I attempt to open that tab I get the message 'Loading,
    one moment please...', and there it stays. I have to kill the ConsoleOne
    process in task manager and restart ConsoleOne in order to do anything.
    What's going on, and how do I correct it?

    Thanks guys. I started c1 without the zen snapins, then deleted one of the
    sessions from the 'other' tab. Then I put the zen snapins back in and was
    able to view the rest of the multicast sessions. Kind of screws up the
    linkages in edir doing it that way, but that's fixable.
    >>> Kurt Finlayson<[email protected]> 11/5/2006 9:03:10 PM >>>
    >Bill Knaack wrote:
    >> I am using ZEN 4.0.1 ir7, Netware 6.5sp4, ConsoleOne 1.3.6e.
    >>
    >> I was creating multicast sessions on the multicast sessions page of
    >server
    >> properties for later use by my technician. I had created 5 sessions,
    >then
    >> closed the property page. Then later I went back to make changes on one
    >of
    >> the sessions. When I attempt to open that tab I get the message
    >'Loading,
    >> one moment please...', and there it stays. I have to kill the ConsoleOne
    >> process in task manager and restart ConsoleOne in order to do anything.
    >> What's going on, and how do I correct it?
    >>
    >
    >This sounds familiar. I think this is fixed in a newer version of
    >ZENworks but not in ZfD 4.x. You could try a consoleOne containing newer
    >snapins of ZDM 6.5 or 7 and see what happens? Just a thought.

  • Can i use same Server for server side and client??

    Hi,
    i m developing webservices in java and using two different server for server side and client.
    e.g. i m using one tomcat server on a machine to run webservice and again using one more tomcat server on client side at different machine.
    and hence it need two tomcat server.
    But i want only one server to run webservice and client.
    So please help me out...
    Thanks

    Hi,
    It is always recommended to maintain different servers
    REgards,
    Ravi.

  • Unable to use RAS SDK for server-side printing for XI 3.1

    Hi all,
    I am using RAS SDK for server-side printing.  Here are my codes:
    ISessionMgr sessionMgr = CrystalEnterprise.getSessionMgr();
    IEnterpriseSession enterpriseSession = sessionMgr.logon("Administrator", "", "cdi5boe", "secEnterprise");
    IInfoStore iStore = (IInfoStore) enterpriseSession.getService("InfoStore");
    //out.println("Current User is = " + enterpriseSession.getUserInfo().getUserName());
    //out.println ("<br>");
    IInfoObjects infoObjects = iStore.query("SELECT * FROM CI_INFOOBJECTS WHERE SI_Kind='CrystalReport' AND SI_NAME = 'Sales Print'");
    IInfoObject infoObject = (IInfoObject)infoObjects.get(0);    
    IReportAppFactory reportAppFactory = (IReportAppFactory) enterpriseSession.getService("RASReportFactory");
    ReportClientDocument rcd = new ReportClientDocument();
    rcd = reportAppFactory.openDocument(infoObject,0, java.util.Locale.US);
    //Create print options to use when printing.
    PrintReportOptions printOptions = new PrintReportOptions();
    printOptions.setPrinterName("
    cdi5boe
    HPLaserJ");
    printOptions.setJobTitle("Test Printer Job");
    printOptions.setPrinterDuplex(PrinterDuplex.horizontal);
    printOptions.setPaperSource(PaperSource.auto);
    printOptions.setPaperSize(PaperSize.paperLetter);
    printOptions.setNumberOfCopies(1);
    printOptions.setCollated(false);
    PrintReportOptions.PageRange printPageRange = new PrintReportOptions.PageRange(1,1);
    printOptions.addPrinterPageRange(printPageRange);
    //Print report.
    rcd.getPrintOutputController().printReport(printOptions);
    When I run the report, I got the following errors:
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKPrinterException: com.businessobjects.crystalreports.printer.bean.ReportPrinter---- Error code:-2147215357 Error code name:internal
    I consult the Diamond Technical Community and I found the issue related to printer name:
    https://boc.sdn.sap.com/node/498
    However, I did check the printer name, it is accessible via Windows Explorer.
    Anyone knows how to resolve this?
    Regards,
    Derek

    It doesn't appear to be listed as a dependency in the developer docs, but would you try putting the ReportPrinter.jar in your RAS app?
    Sincerely,
    Ted Ueda

  • Turning off server side stack trace in error message for weblogic81

    Hi,
    I am seeing server side stack trace in getMessage() method which is being stuffed
    by application server. I am using weblogic 81. Could you please let me know how
    to turn off that in getMessage() to return my only original message?
    Thanks
    Praveen

    Did you solve this problem? I am facing this problem and don't seem to solve with
    "Instrument Stack Traces" flag
    "Franck" <[email protected]> wrote:
    >
    Hi there,
    In order to manage my own exceptions in some EJB, i have developped some
    classes
    extending Exception.
    Now i would like to display proper messages to the final user, based
    on the messages
    defined in my exception classes.
    Using standard try/catch, i can easily get reference to the exception
    that can
    occur during EJB execution.
    The problem is that my message (myException.getMessage) is followed by
    the extra
    long message generated by the Server and starting with "Start server
    side stack
    trace:".
    For exemple :
    com.xx.ejb.DamageHistoryException: Can't find the price for this object
    (objId=7569,
    sizeCode=LI, colorCode=2)
    Start server side stack trace:
    com.xx.ejb.DamageHistoryException: Can't find the price for this object
    (objId=7569,
    sizeCode=LI, colorCode=2)
    at com.xx.ObjectAccess.getObjectPrice(Unknown Source)
    at com.xx.ejb.ObjectBusinessService.getObjectPrice(Unknown Source)
    <....>
    about 20 lines here !!
    <....>
    Any idea about how to avoid the extra message ??
    Thanx in advance
    Franck

  • ***URGENT*** What Server side objec should we develop and deplot to OAS?

    Helo,
    I use Jdev3.1 as my Java IDE.
    I have to develop a server side java objects that will be deploy to OAS 4.0.8. My server side java objects will wait for client calls then perform certain business logics depending on each call? Please give me some advises about what type of java object should I develop.
    From JDev help doc,I read about Application Module, EJB, Business Component, JSP..I am new to JDev and Java so I don't really undestand about the relationship between these copmponent, and what should be used since they seem to do the same thing. Please help, I have to submit a proposal next week. Thank you very much in advance.
    Vivian

    Yes, I'm parsing some XML data files. The full stack trace follows.
    javax.xml.parsers.FactoryConfigurationError: Provider <HTML> could
    not be instantiated: java.lang.SecurityException: class "<HTML>"'s
    signer information does not match signer information of other classes
    in the same package
    at javax.xml.parsers.DocumentBuilderFactory.newInstance (DocumentBuilderFactory.java:99)
    at XMLHandlerStrippedDown.<init>(XMLHandlerStrippedDown.java)
    at onlinequestion.init(onlinequestion.java)
    at sun.applet.AppletPanel.run(AppletPanel.java:353)
    at java.lang.Thread.run(Thread.java:552)
    javax.xml.parsers.FactoryConfigurationError: Provider <HTML> could
    not be instantiated: java.lang.SecurityException: class "<HTML>"'s
    signer information does not match signer information of other classes
    in the same package
    at javax.xml.parsers.DocumentBuilderFactory.newInstance (DocumentBuilderFactory.java:99)
    at XMLHandlerStrippedDown.<init>(XMLHandlerStrippedDown.java)
    at onlinequestion.init(onlinequestion.java)
    at sun.applet.AppletPanel.run(AppletPanel.java:353)
    at java.lang.Thread.run(Thread.java:552)

  • How to get session.maintain property on server side?

    Is there a way to trap javax.xml.rpc.session.maintain property on the server side in JAX-RPC compliant web service implementation? I would like to know if the client has enabled session.maintain property to true (which false by default). If not, can I specify the web service to be of "Application" or "Session" scope during deployment time? It used to be the case for Apache SOAP processor. I do not see any mention of that in the JAX-RPC spec.
    Thanks for any pointers.
    -Anirban.

    When I first started to work with JAXRPC I had questions about how web services maintained session across multiple calls and also if it was
    possible to maintain session across multiple web services. I downloaded
    the JAXRPC runtime implementation source code and tell you what I found.
    There is a HttpClientTransport class that handles the actual HttpConnection to the server. It checks to see if maintain session is
    set to true or false. If it is set to true it appends the JSESSIONID to the header variables of the request.
    The very first call gets a response back with header variable
    Set-Cookie: JSESSIONID=blahblahblah
    The HttpClientTransport looks for it and if it finds it takes the cookie and stores it somewhere. Every call after that will check to see if session maintain is true or false. If true, it will send
    the header:
    Cookie: JSESSIONID=blahblahblah
    Hope that helps.
    Mike

  • Server-Side Development/Debugging???

    I've been devloping JSP/Servlets and Beans for over a year now and have never been completely happy with my development environment. Currently, I'm using a text editor, .bat scripts for builds and system.out.println() for debugging. I'm looking into emacs as the editor, ant for the builds, but am unclear on a good approach for debugging server-side applications. Any suggestions?
    -thanks

    You can get development environments that allow you to debug servlets and JSPs, but I don't know of any that are free like your current setup. I'm using VisualAge for Java (Enterprise Edition), which debugs those things quite nicely, but I'm glad that I didn't have to pay for it myself. There are more products you could look at besides VAJ.

  • Upgrade Developer 6i on the server side to patch set 18

    Once I upgrade Developer 6i on the server side, I need to bring Developer 6i on windows platform (used for development) to same version level. My understanding both have to be in same version.
    What the patches I need to apply for Developer 6i Windows?

    You need to install Patch 18 for Windows.

Maybe you are looking for