Background saving for client  runing on rmi

Hello I have a client side application that gets its data from an arraylist object that is sent over the rmi network from the server.
When ever a client logs on. The server allows the client to access its resources for only one hour
I want the client to be able to restore its data in case of pc failure i.e. power failure etc
When the client logs back in after pc failure i want it that the server should reset the client to the state it was before it disconnected.
I was thinking of using a background thread that saves the current state of the client lets says every 2mins but i cant seem to put it all together so i was looking for advice from experts here on how i can save the current state of a client and restore it back when needed.
Thanks.
Edited by: xcellng on Feb 17, 2008 5:06 PM

so i implement Serializable every 2mins have the background thread write status of client to a file also use deleteOnExit(); to delete file only on clean JVM shutDown.
so now when client logs back in from a pc failure this is how i plan to restore client status back:
//assuming i  have a file tempFile that stores clients status
have a client call back method
have the server call that method to check if tempFile exist
if tempFile exist load client details from tempFile
else use defualt client settings from serveris this right?

Similar Messages

  • Different Background Colors for Clients

    Maybe this isn't the right forum for this but how do you change the background color of ECC to change based on the client you select?

    Hello,
    As far as I know the colour settings are user based. On the top of SAP screen you will have a button with options, where you can change colour of the screen. If you want to get the colour of the screen based on the SAP, please speak to basis team and they should able to help you out.
    Regards,
    Ravi

  • Client-Server using RMI on Win2000

    I have a client server application using RMI that works on Win NT4.0 when I am connected
    to a network or when the it is not connected (workstation is client and server).
    This same application does not work as a standalone (not connected to network) when running
    on Win2000. I've been able to start the server (still under Win2000) by adding a Microsoft
    Loopback Adapter but the client do (can) not communicate ( see) the server(s) at all.
    Does anyone knows the difference between WinNT4.0 and Win2000 network,
    configure Win2000 for client-server on RMI loopback?
    Thanks,
    Isagani

    Yes, I did. But let me expand on the problem and observations.
    Running under Win2000 and connected to the network and working.
    - I use netstat -n (a util ) to see how my application is running when it is working.
    The port (1101) the apps uses eventually loops back to the system and the app is able
    create the multicast sockets it needs and can join the group. And everyone is happy.
    When not connected to the network, port 1101 makes a connection back to the system
    but somehow the system breaks the loop back, basically throwing an exception.
    I do not these problem with WinNT4.0
    Any ideas?
    Thanks,
    Isagani

  • Photoshop PNGs saved for web in CS3 v.10 still are not transparent in iWeb 08 2.0.4

    I have read the topics and tried the tricks and still have black backgrounds on my photoshop graphics.   After saving for web & devides as png8 with transparency I have a checkerboard pattern behind my graphic. I am using the magic wand tool, selecting the emptiness/checkerboard behind, then choosing to select the inverse, the ctrl c, then ctrl v in iWeb
    Thanks for any help.
    Kristie

    When you use the Save For Web or Devices be sure to click on black in the pallet and then on the transparent "button" just below the pallet before saving as a png file.
    OT

  • Developing Form Distribution for Clients

    As a web developer, I've had good success developing an online form and distributing it via my own website.
    However, I can't seem to figure out how to do this for my clients. The perfect scenario would be this:
    I create an editable form named: AGREEMENT, and set up the distribution to manually send out the form and manually collect the responses. In the form, I create a submit button and put in my client's email address. (I enabled the Adobe extended features.) I would then send the AGREEMENT_distributed.pdf and the AGREEMENT_responses.pdf files to my client, which he would then save on his local hard drive. Then, whenever the client needed, could then send out the AGREEMENT_distributed.pdf in an email. His prospect would fill out the form, click the submit button, and the completed pdf would be emailed to my client. My client doesn't really care about the benefits of the AGREEMENT_responses.pdf file. He just wants an easy way to send out a blank pdf and received back a completed one.
    The problems lies in the fact that the distributed.pdf file doesn't seem to work once it leaves my computer. I can't turn it over to him so that he can distribute. The error messages vary, from "file not encoded properly" to "inconsistent with this version of Acrobat".
    How do I develop this for the client and turn it over to them?
    Many thanks,

    You do not need different versions. However, you need to be sure that you create the form with backward compatibility to the earliest level you expect to be used. Also, there are differences between Acrobat created forms and Designer forms (obtained from the forms menu in Acrobat). If you use Designer, then you have eliminated editing in Acrobat.
    If you expect more than 500 uses of the form by your website by users of Reader, then you need to negotiate with Adobe for the Reader rights. The EULA limits you to 500 saves of the form. It is normal for folks to submit form data by a web script. Since you are just developing the forms for clients, it may be their problem. If you will maintain the forms, you may need to address the license issue. The web submission (most reliable) by FDF or XML is the best way to go and does not require additional license approval beyond 500 (that is just for saving the form as required for submitting the full PDF).
    If you receive either data formats, they can be opened in the form in Acrobat so you still have the complete form, but maybe with an extra step. However, you might find the data is easier to deal with for use in a database.
    Back to the original: With each version of Acrobat, new form features have been added. You just need to avoid the feature that are AA9 specific. Also, you may want to use the reduce file size or PDF Optimizer (for Acrobat forms - not sure for Designer forms) to save for backward compatibility.

  • Assign a server group as the background server for a process chain

    Dear Experts,
    Can I assign a server group as the background server for a process chain?
    Even I assign a server group as the background server for a process chain by following T-cd: RSPC > W click a process chain > (Menu) Process Chain > Attributes > Background server and save & activate the process chain, no entry was saved in the column in RSPCCHAINATTR-SERVER with OBJVERS = "A".
    Moreover, it seems that there is no process type for a process chain as a whole in T-cd: RSBATCH, so I assume that I may not be able to assign a server group to a process chain as a whole...
    I know I can assign a server group as the background server for each process in a process chain.
    Many thanks for your suggestions.
    Best Regards,
    Norifumi

    On many UNIX systems there's a utility called detach which will launch the following command in such a manner that killing the shell will not kill the process. On systems that lack this command, I'd find an open source implementation and install it.

  • Fast Low-Res Renders for Clients

    Hey guys, recently I had a project that I needed to render out quickly for the client (anyone else always seem to have tight deadlines, haha), I haven't played around much with render settings before but I found it so helpful to know on a tight deadline that I decided to create a short video to share what I learnt... After Effects #1 - Fast Renders for Clients - YouTube Using Save RAM preview (set to 'third' resolution) saved me tons of time! I'm always interested to know and learn what workflow others use in this situation though, let me know if you have any other tips.

    Try here
    https://discussions.apple.com/community/professional_applications/final_cut_stud io

  • One RMI client and mutliple RMI server implementation

    Hi,
    We are planning to implement a RMI. In the design approach we are planning to have 1 client and mutiple RMI server and each RMI server register to a system. All the RMI server will have the same functionality. The decision to call particualr RMI server is done at runtime based on some parameter. I am not clear on how to implement the same as I am new to RMI technology, so it would be great if you can suggest some good approach for doing the same.
    Thanks,
    Ramreddy

    greetings,
    your client and server are in the same class?
    i.e. server object (interface implementation instance)
    and lookup are within the same execution thread
    i believe this defeats the purpose of RMI
    the objective is to utilize object methods on different machines
    otherwise, you can just use a local method within your server/client mainline (of course, it ceases to become "remote" at that point)
    logistically, there is also the problem of the runtime not being able to resolve the skeleton/proxy components correctly (since it's probably searching for a client stub which doesn't exist...); maybe you could fake it out by compiling a phony client class - again, this won't provide any advantage but it might run
    perhaps if you shared your system/network setup and a bit more about your design objectives someone in this forum could provide some assistance
    good luck,
    D

  • Background job for user synch in comliance calibrator not working

    Hi Gurus,
    When I am trying to execute the background job for User Sync from "Schedule Ananlysis" I am getting an error. Can anyone help . I am putting the log
    Nov 17, 2008 6:06:49 AM com.virsa.cc.xsys.bg.BgJobDaemon init
    INFO: *** BgJobDaemon loaded
    Nov 17, 2008 6:07:07 AM com.virsa.cc.common.util.ConnectionUtil getConnection
    FINEST: retry: 60Object not found in lookup of BC_ADM.
    com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of BC_ADM.
         at com.sap.engine.services.jndi.implserver.ServerContextImpl.lookup(ServerContextImpl.java:649)
         at com.sap.engine.services.jndi.implclient.ClientContext.lookup(ClientContext.java:344)
         at com.sap.engine.services.jndi.implclient.OffsetClientContext.lookup(OffsetClientContext.java:254)
         at com.sap.engine.services.jndi.implclient.OffsetClientContext.lookup(OffsetClientContext.java:271)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
         at com.virsa.cc.common.util.ConnectionUtil.getConnection(ConnectionUtil.java:32)
         at com.virsa.cc.xsys.bg.bo.BgSchedulerBO.getLogSpoolPath(BgSchedulerBO.java:605)
         at com.virsa.cc.xsys.bg.bo.BgSchedulerBO.getSpoolDirectory(BgSchedulerBO.java:588)
         at com.virsa.cc.xsys.riskanalysis.AnalysisDaemon.<clinit>(AnalysisDaemon.java:51)
         at com.virsa.cc.comp.BgJobInvokerView.wdDoModifyView(BgJobInvokerView.java:322)
         at com.virsa.cc.comp.wdp.InternalBgJobInvokerView.wdDoModifyView(InternalBgJobInvokerView.java:1135)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doModifyView(DelegatingView.java:78)
         at com.sap.tc.webdynpro.progmodel.view.View.modifyView(View.java:337)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.doModifyView(ClientComponent.java:481)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doModifyView(WindowPhaseModel.java:551)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:148)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:321)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process

    check out the notes 999785 note have u followed the instructions as told in the article "https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a07b4cc8-1a57-2b10-1798-d2fec068473a" .please follow the prerequisites check and follow the post installation check list .there is a article out there for post installation.
    Edited by: Ambarish annapureddy on Mar 11, 2009 1:28 PM

  • How to give Common Background color for all JPanels in My Swing application

    Hi All,
    I am developing a swing application using The Swing Application Framework(SAF)(JSR 296). I this application i have multiple JPanel's embedded in a JTabbedPane. In this way i have three JTabbedPane embedded in a JFrame.
    Now is there any way to set a common background color for the all the JPanel's available in the application??
    I have tried using UIManager.put("Panel.background",new Color.PINK);. But it did not work.
    Also let me know if SAF has some inbuilt method or way to do this.
    Your inputs are valuable.
    Thanks in Advance,
    Nishanth.C

    It is not the fault of NetBeans' GUI builder, JPanels are opaque by default, I mean whether you use Netbeans or not.Thank you!
    I stand corrected (which is short for +"I jumped red-eyed on my feet and rushed to create an SSCCE to demonstrate that JPanels are... mmm... oh well, they are opaque by default... ;-[]"+)
    NetBeans's definitely innocent then, and indeed using it would be an advantage (ctrl-click all JPanels in a form and edit the common opaque property to false) over manually coding
    To handle this it would be better idea to make a subclass of JPanel and override isOpaque() to return false. Then use this 'Trasparent Panel' for all the panels where ever transparency is required.I beg to differ. From a design standpoint, I'd find it terrible (in the pejorative sense of the word) to design a subclass to inconsistently override a getter whereas the standard API already exposes the property (both get and set) for what it's meant: specify whether the panel is opaque.
    Leveraging this subclass would mean changing all lines where a would-be-transparent JPanel is currently instantiated, and instantiate the subclass instead.
    If you're editing all such lines anyway, you might as well change the explicit new JPanel() for a call to a factory method createTransparentJPanel(); this latter could, at the programmer's discretion, implement transparency whichever way makes the programmer's life easier (subclass if he pleases, although that makes me shudder, or simply call thePanel.setOpaque(false) before returning the panel). That way the "transparency" code is centralized in a single easy to maintain location.
    I had to read the code for that latter's UI classes to find out the keys to use (+Panel.background+, Label.foreground, etc.), as I happened to not find this info in an authoritative document - I see that you seem to know thoses keys, may I ask you where you got them from?
    One of best utilities I got from this forum, written by camickr makes getting these keys and their values very easy. You can get it from his blog [(->link)|http://tips4java.wordpress.com/2008/10/09/uimanager-defaults/]
    Definitely. I bit a pair of knucles off when discovered it monthes after cumbersomely traversing the BasicL&F code...
    Still, it is a matter-of-fact approach (and this time I don't mean that to sound pejorative), that works if you can test the result for a given JDK version and L&F, but doesn't guarantee that these keys are there to stand - an observation, but not a specification.
    Thanks TBM for highlighting this blog entry, that's the best keys list device I have found so far, but the questions still holds as to what specifies the keys.
    Edited by: jduprez on Feb 15, 2010 10:07 AM

  • Getting error while opening a saved for later notification: The selected action is not available. The cause may be related to security. Contact your system administrator to verify your permission level for this action.

    Hi All,
    While opening a saved for later notification, we are getting "The selected action is not available. The cause may be related to security. Contact your system administrator to verify your permission level for this action". error.
    This is a custom notification.
    Please help.
    Thanks
    Raghava

    HI All,
    Please help on this issue.
    Thanks
    Raghava

  • When converting over to HTTPS and PKI for clients, not all actions are available in configuration manager cpl

    I'm not exactly sure which forum heading this should go under so if this isn't correct please let me know or move it on my behalf.  
    So I am trying to setup Internet Based Client Management in SCCM 2012 R2 and have come across a few articles on how to do so.   I think I have mostly gotten it to work but I seem to be having a client issue when deploying new machines.  My already
    deployed servers seem to have picked up the PKI setting no problem.  In the past when I would deploy a new windows client everything would be fine.  When i converted over to PKI in my test environment I am now having issues when I go to deploy a
    new windows client. I don't get all of the Actions listed in the Configuration Manager control panel.  All I have are Discovery Data Collection, Machine Policy Retrieval and Eval, User Policy Retrieval and Eval, and Windows Installer Source list Update
    Cycles, before all of them would populate no problem.  I have let this machine sit here for several hours and nothing has changed yet.  It does say PKI for client certificate.  Sometimes when I would deploy new machines it would say NONE for
    Client certificate.  In my production environment it says self-signed.  I have found if i uninstall the client and re-install the client it does populate all of the cycles but I don't understand why it is not working on deployment.
    Ok so maybe not all the time that when i reinstall the client it fixes it.  I just did an uninstall and reinstall on a test client and all it has under actions are machine and user policy cycles.
    Does anyone have any ideas?

    Hi,
    I think SCCM client installed before the GPO applied, so you don't a certificate available when it is required.
    You can export and import the certificate by using MDT integration, try this blog for PKI part:
    How To: Build and Capture in Configuration Manager 2012 using HTTPS
    And in addition, you can upload the log to your onedrive so you can share with us.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • To which folder does OSX background saved TextEdit recovery files?

    Hi, while traveling without an internet connection I workd on a TextEdit file which was probably saved in the background automatically as a temp recovery file...somehow I lost the file, whether through a failed iCloud synch upon returning home or whatever...I think though that I may have backedup my system with Time Machine before losing the file altogether. Could a background recovery version of it be in a folder accessible through Time Machine?
    (By a background saved recovery file I mean the temp TextEdit file which in the event of a crash or system restart would allow the file to be recovered.)
    Thanks

    sorry...was exhausted, will rewrite more clearly

  • Background color for column heading

    Hi,
    I have 5 columns in my report and I would like to have different background color for column headings. How can I do this in report templates?
    I was looking at Column heading section-
    <th class="t10ReportHeader"#ALIGNMENT# id="#COLUMN_HEADER_NAME#">#COLUMN_HEADER#</th>
    How can I specify backgrund colors for all columns here?
    Thanks in advance

    G'day Karen,
    Thanks for ur reply.
    I have seen this note before, its not that the header colors have changed after latest SP was applied in our systems. Also the ABAP and JAVA stacks are in sync.
    Scenario is that we are trying to set up a new Portal theme for Enterprise Reporting with some specific color codes (hex codes).
    What i have observed is Characterstics Header background color is set up using the element "Background Color of Level 1 Column Heading ".
    While the Background color for Key Figures header is using element "Background Color of Level 2 Column Heading ".
    But the problem is element "Background Color of Level 2 Column Heading " is also used as the Background color for Standard Characterstics cell, so if we make it same the whole report of the same color, which we dont want.
    Requirement is to get the same Background color for Header cells (both Char. and Key Figure headers).
    Any further suggestions will be appreciated.
    Thanks
    CK

  • BackGround Job for Transaction VF06

    Hi Experts,
    We are having problems with the background Job for transaction VF06. We run this job every day except weekends but this job runs and takes only 0 sec without creating Invoices.
    Allthough running this transaction Manually creates Invoice with same variant.
    Kindly help me on this.
    Thanks and Regards,
    Neha Kapoor

    Hi,
    I have the seen the Log it tells:
    Date       Time     Message text                                                                 Message class Message no. Message type
    29.06.2008 22:00:48 Job started                                                                       00           516          S
    29.06.2008 22:00:48 Step 001 started (program RV60SBAT, variant SOIE AUTO BILL, user ID GGBATCH)      00           550          S
    29.06.2008 22:00:48 Job finished                                                                      00           517          S
    But Invoices are not getting created.
    Thanks and Regards,
    Neha Kapoor

Maybe you are looking for

  • Error while running JSF program in netbeans ide

    Hello guys, I was working with JSF on Netbeans 6.1 IDE. but was unable to run the application and got the following error : " javax.servlet.exception:PWC 1244: servlet execution threw an exception" "java.lang.NoSuchFieldError:IS_UNIT_TEST_MODE". Howe

  • Illustrator and Photoshop's stroke appearing larger then the pixel size I put.

    My strokes in Illustrator and Photoshop CS6 are showing up larger then the pixel size that I put in.  I checked my settings and nothing looks out of the norm.  What could be causing this problem?

  • Dynamic variable declaration in java program

    declaring a variable with the name i.e. contained as a value of other variable. say String varname = new String("Name"); now how to declare a variable called Name with some datatype........using varname............. hope it is not very confusing.....

  • Can you help with encryption issue with iBook G3?

    I have an iBook G3 with operating system 10.2.8. As of yesterday, I am having troubles connecting with my wireless service. It works fine when I plug the DSL cable in. The wireless icon shows up several networks; the one we are paying for is checked.

  • HTTP 404 Page Not Found !!

    Hello All, Selected Pseudo Parent Tab: TS1 Select Standard Tabs: DBTable, variables , condition , Report , interactive report. All the tabs are related to pages When I am navigating from tab interactive report to any other tab the url is chaning to h