One instance for two different application

Hello,
I have to solve following problem..
need have one instance of object for two different application..fist is standard SE application and second is EE (web)..
SE application is a server..listen on and accepting connection from mobile phone..and EE application need to show list of connected devices and should say to SE application that new device was connected..
I would like to do this without database..only server and web app..
I have thought about RMI..but hope there is more simple solution..
Thanks a lot for your ideas.
Dmitrij

I would like to do this without database..only server and web app..You have your reasons for wanting this to be the case. If you are sure you don't want a DB, then pass the state of the object between the two ends using XML as the transport form. As someone said, you can use JMS or you can write an HTTP POST or probably other transport mechanisms other people will suggest to actually get it over the wire from one side to the other.
As to your question of how to sync state, just make the object you're sharing final after it's been created (on the side that creates it) and make the reference that receives it and holds it final also, after you've reconstructed it from the XML you received.

Similar Messages

  • Automatic Deployment Rule - One ADR for Two Different Collection for Two Different time Intervals

    I have a scenario where two collection of Windows 8.1 is made based on geographical location. One collection is for all the windows 8.1 machines in India and one collection is for all windows 8.1 machines in US. Now I have created one ADR to be deployed
    to the Collection for Machines in India with a schedule.
    My requirement is that can i use the same ADR for those two collection with different schedule. Say I want ADR to be deployed in India at say 10:PM IST and for US collection at say 10:00 PM PST.
    Can I use one ADR with two different schedule and can be deployed to two different collection. Any help will be greatly appreciated.
      

    Couple of "bits" to help you one your patch automation quest:
    A ADR is very much a 1:1:1 rule.  It creates (or updates) ONE update group, deploys it to ONE collection, and you can provide ONE schedule.  While you are more than capable of flipping said deployment time to use local time instead of UTC, in general
    it's a very simple set of rules that are dogmatically run.
    That said because of the "include" feature of collections it's not that hard to setup a good/robust patching pattern.  What I recommend doing is building an ADR for each variance of deployment of patches or enforcement time.  for example,
    my ADRs look something like this:
    Software Updates - Zero day enforced
    Software Updates - Critical and Security 1 month enforced
    Software Updates - Critical and Security 1 month no reboots
    Exact terminology is up to you of course, but I find a good descriptive ADR name saves a lot of confusion.  For each ADR I create an identical collection.  From there I can use existing collections and a simple "include collection" rule
    to bundle things up and make them part of the patching schedule of my choice.  Anyone can now go into my "software update" folder, look at my collections, and know exactly what gets patched by what deadline.
    Finally, don't be afraid to look into maintenance windows to trim down ADR count.  Making a deployment available for a month before it goes enforced, then setting up groups of maintenance windows (one for each Friday of the week for example) can also
    accomplish a similar goal by having machines auto-patch during their week but you only using one ADR.
    So by having two "types" of collections to manage your patching (one to assign a ADR built by deployment deadlines, the other for exact update windows) you should be able to group most your workstations into a decent patch scheudle without being
    too excessive about creating a billion ADRs.

  • One PO for two different vendors

    Hi Experts ,
    My Questions are ......
    Can we maintain two different vendors for two different materials and create one PO ? ;
    How does it work  ?
    How is it sent to different Vendors ?.
    Will the vendor receive one general PO containing all line item materials from different vendors...or Each vendor will receive his own line item PO (PO Split)...
    Regards
    Albert

    Hi Albert,
    Your qns-
    Can we maintain two different vendors for two different materials and create one PO ? ;
    Yes you can maintain 2 different vendors for 2 different materials. But you cannot create a single PO (i.e. PO with same number) for 2 different vendors. I do not understand why you want to create one PO for 2 vendors supplying different materials. Can you please explain the logic for it?
    Vivek

  • Use one agent for two different managment servers

    Hi ,
    Can one agent be connected to two different managment server in different domains ,
    or do i have to install two agents in the same server to connect to each managment server .
    thanks

    Can one agent be connected to two different managment server in different domains
    No
    do i have to install two agents in the same server to connect to each managment server Yes.

  • How to keep same database with two different names in SharePoint 2013 for two different applications

    Hi All,
    I have very strange situation.
    I had SP2010 production database(wss_content_contoso) migrated to SP13 few months back to migrate one site collection only while I have 15 site collections stored in this database and created a site contoso.com
    Now, I want to migrate same(wss_content_contoso) SP2010 database to SP13 and want to create contoso2.com.
    I changed database name from wss_content_contoso to wss_content_contoso2 and assigned newID during mount process.
    After this exercise, I don't see any site for contoso2.com and issue seems to be the same database. 
    My question is!!!!
    How I can keep both databases(actually same database with different names) and run both application simultaneously?
    Any help appreciated!!
    Thank you,
    AM
    AM Senior SharePoint Consultant

    You need to run Backup-SPSite/Restore-SPSite on each Site Collection you want to 'duplicate'. You cannot restore the same Content Database to the same farm as the Site Collections have the same GUID, which is stored globally for the farm.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Two different invoices created for  one order for two different lines

    Hi All,
    I have an order with four line items that was shipped on the same day, invoiced on the same day and all lines have the same delivery number yet two inovices were created for this order..one for the first three lines and one for the last line.
    Can anyone please explain what can cause this to happen?
    Thanks
    A/A

    Hi Asgar,
    If a single order has been split into two invoices, you should check the values of the mandatory columns. During Autoinvoice, the grouping is based on the madatory columns and also your grouping rules. If any of the mandatory column has a different value, it will split into different invoice.
    Please refer the following metalink note for further details
    Subject: How Autoinvoice Grouping Works
    Doc ID: 98772.1
    Hope that helps.
    Thanks,
    Anil

  • One iTunes for two different iphones

    i have one computer and want to use mine and my wife's phone on this one computer. What i mean is that i want to use two diffrent iphones (with diffrent apple id) with same itunes (one computer)
    Many thanks

    Okay... so do it.  What is the question for this user to user technical support forum?

  • HT1495 Two User Accounts on one PC for two different iTunes accounts

    this didnt work....I created a new user account on my computer but iTunes keeps telling me that the apple ID is associated with the computer, not the User Account, so it will not let me download new purchases. Do I need two computers

    Hi Elvis Zuo,
    Thank you for the suggestion, which is the only solution I could think of.
    The problem is that this then means we have two separate copies of the iTunes library on our computer. At 25GB per library this will take up lots of hard drive space. I would prefer to try and use the same library between our two accounts/iTunes installs.
    Thanks
    Andy

  • Using one PC for two different iphone

    My wife and I got the Iphone3GS recently. But, we just shared a PC at home. Are there any method to syn our materials on the same PC with different account?

    Yes. Just set-up separate user accounts on your PC, then setup iTunes in each account and sync as if it was on two separate PCs.

  • HT201269 I am curious if you can use itunes on one computer for two different itune accounts with different music etc?

    Please explain if one iTunes account can hold more than one persons information???

    How to use multiple iPods, iPads, or iPhones with one computer
    http://support.apple.com/kb/HT1495
    How To Best Use and Share Apple IDs across iPhones, iPads and iPods
    http://www.nerdsonsite.com/blog/2012/06/07/help-im-appleid-confused/
     Cheers, Tom

  • JInitiator - 2 versions for two different systems

    I had a requirement of having two differnt versions of Jinitiator loaded on a single client system. This is requiremnt for two different applications say application 'a' and application 'b';
    Will browser recognise which one to choose depending upon application ?

    Yes, the confirguration information on the application server defines which version of the plug ins to us and so the correct one will be loaded.
    Regards
    Grant Ronald
    Oracle Product Management

  • How to sync two IPhone with one PC , but with different applications

    How to sync two IPhone with one PC , but with different applications ?
    We have two IPhones , but one PC , we want to sync separately , is that possible ?

    Absolutely, connect each phone, select what content you want on each phone, then hit the sync button. iTunes will keep everything straight, by device, upon subsequent syncs, including separate backups.

  • Is there a way to have two different iTunes for two different iPhones on one Windows User account?

    Using Windows 7, iphone 4.
    I've read as many threads on these forums and as many kb's as I could find, but I sttill can't figure it out. I have 2 iPhones. Let's call them, "wife" and "hubby". I want to have two separate iTunes, one for each of the phones. Hubby is the Windoows User. I don't want to set up a different Windows User for wife.
    Hubby was the original iPhone. When I plug it in, iTunes recognized it has Hubby's iPhone. Then I unplug Hubby and close iTunes. I plug in Wife but iTunes stll comes up with Hubby under Devices and syncs Hubby's iTunes to Wife's iphone.
    I've tried using the shift key when I open iTunes to set up two separate .itl files to no avail.
    Is there a way to have two different iTunes for two different iPhones on one Windows User account?
    Thanks!

    What happens if you rename the iPhone "Wife" when it shows up as "Hubby", then choose a different set of apps/playlists to sync with? iTunes is supposed to be able to manage multiple devices, each with their own selection of content. Perhaps you "restored" "Wife" with a backup from "Hubby" when you first set things up which is now causing confusion.
    To create a new library press and hold down the shift key as you click the icon to start iTunes and keep holding shift until asked to choose or create a library. You need to use the same technique to switch back.
    tt2

  • HT1386 How can I have two seperate sets of Playlists for two different iPods on one computer?

    How can I have two seperate sets of Playlists for two different iPods, on the same PC?

    Open itunes.
    Make whatever playlists you each like.
    Connect one ipod, select only what you want, sync
    Do the same for the other ipod

  • Different  timeout for two protected applications with same AM 7.1

    I have a AM 7.1 configuration planned.
    We need to protect two different application url's; And provide different session & idle timeout for each of these url's.
    Can we configure different timeout for two protected URL's / applications configured with same AM 7.1 ?
    /Kasi

    Hi,
    I have not actually configured this, but you can create a policy for that application with an "Active Session Time" condition.
    You also have an option there to destroy or not the session.
    But if the user is allowed to do SSO between the 2 applications then you should consider if you can destroy the session or not.
    Hope this helps.
    Andrei

Maybe you are looking for