Loading the same project twice

I need to be able to load the same toplink project twice within the same jvm. It looks like the sessions.xml file would define a session named "mysession" and after having instanciated the server session twice the session manager would contain two different sessions : "mysession_1" and "mysession_2".
I intend to load the project by doing :
1. (Server) SessionManager.getManager().getSession(new XMLSessionConfigLoader(), sessionName, sessionClassLoader, false,true);
2. rename the session manager hashtable key from mysession to mysession_1
3. rename the session itself session.setName(...)
4. redo 1.
5. redo 2. and 3. for renaming from mysession to mysession_2
What do you suggest?

Or make two sessions in your session.xml file, one named mysession_1 and the other mysession_2.
This would avoid messing around with the sessions once they have been loaded by the session manager and all you need to execute is:
SessionManager.getManager().getSession(new XMLSessionConfigLoader(), "mysession_1", sessionClassLoader, false,true);
SessionManager.getManager().getSession(new XMLSessionConfigLoader(), "mysession_2", sessionClassLoader, false,true);
Cheers,
Guy

Similar Messages

  • How to down load the same app twice to home page

    How do I download the same app twice so I have both on my home screen.  I want to monitor cameras at 2 different locations and need to have 2 apps to load seperate info into each.  When I try to down load the app for the 2nd time the only option is to REPLACE the current app with the same one. Anyone have any ideas?

    Yeah, too bad the app won't let you switch between locations.  I don't think you can have 2 instances of the app running on the BB.  I'm not developer, but I've never seen that before.
    Please click the Thumbs Up icon if this comment has helped you!
    If your issue is resolved, please click the solution button on the resolution!
    Every BlackBerry should have BlackBerry Protect, get it now! | Follow me on Twitter | Bring Back BBM Music!

  • How to down load the same app twice

    How do I download the same app twice so I have both on my home screen.  I want to monitor cameras at 2 different locations and need to have 2 apps to load seperate info into each.  When I try to down load the app for the 2nd time the only option is to REPLACE the current app with the same one. Anyone have any ideas?

    Yeah, too bad the app won't let you switch between locations.  I don't think you can have 2 instances of the app running on the BB.  I'm not developer, but I've never seen that before.
    Please click the Thumbs Up icon if this comment has helped you!
    If your issue is resolved, please click the solution button on the resolution!
    Every BlackBerry should have BlackBerry Protect, get it now! | Follow me on Twitter | Bring Back BBM Music!

  • I accidently loaded the same playlist twice. How do I remove one copy from my phone?

    How do I remove one copy of a playlist from my phone?
    Walter

    Plug it into iTunes and tell iTunes what to sync to the device.

  • Loading a same Webservice twice

    I have an application that creates two objects fo WebService
    class loading the same WSDL.
    Let's say it takes about 5 seconds to load the first one then
    doesn't the second should load faster since it is loaded?
    but, it looks like the second object takes about 5 seconds
    too.
    Is there anyway I can make the second instance of Webservice
    load faster?
    Thanks,

    I still don't understand what ClownBootz is asking you to do,
    but I got the whole "multiple operations / result handlers from one
    WebService component" thing to work. You do have to explicitly set
    up what operations are allowed to the WebService, and then specify
    what resultHandler you want for that operation. Like this:
    <mx:WebService id="service" wsdl="someWSDLURL">
    <operation name="function1"
    result="function1ResultHandler(event)"/>
    <operation name="function2"
    result="function2ResultHandler(event)"/>
    </mx:WebService>
    then you could just access service.function1(variables,
    variables); and handle its result differently than you would the
    results from service.function2();
    Maybe something like this will help you out. I don't know if
    that is would solve your problem of having to load the same
    WebService twice, but it did for me.

  • How do I use the same photo twice in a slideshow created in iPhoto'11?

    I created a slideshow in iPhoto'11 and would like to use the first slide also as the last slide.
    How can I use the same photo twice?

    Seems you have to duplicate the photo in your Library to add the same picture twice.

  • How can I retrieve the same figure twice in report?

    Hi guys,
    If we have the same selection twice in the same report, it only retrieves the figure once (see example below, were the same period has been chosen twice). Is there any setting I can adjust, so it will retrieve the figures for double-selected members also?
    Thanks,
    Dorthe

    Hi Dorthe,
    No issues in my system (BW 7.3, BPC SP12, EPM SP16 patch1):
    B.R. Vadim

  • Can two different members of Creative Cloud, to share the same project?

    I work with a partner who also has a Creative Cloud account. If we need work in the same project, how can she access to my web accounts from her computer  and viceversa?

    Yep,
    Two ways, you can either add the other person as a user or contact support and they can add the other account to your site.

  • Can two users work on different files of the same project?

    Sorry if this has been asked already...but can two users work
    on different files of the same project? How would that work? Would
    it work something like this?
    1. From RoboHelp 7, user A checks out the entire project.
    2. User A checks in the files they are not working with.
    3. User B checks out the project but can only 'edit' the
    files that have been checked in by user A.
    Is this how the source control works?

    That's the basic idea. User A doesn't actually have to check
    out the whole project, though. RSC will selectively check out only
    the files that are actually getting changed. Both writers will have
    a complete copy of the project on their local machines, but the
    files are read-only until they are literally checked out, which is
    on an as-needed basis unless the writer explicitly checks them out.
    G

  • HT204053 my wife and i have seperate itunes accounts is there a way we can link our accounts to share songs so we dont have to pay for the same song twice?

    When the first ipad came out i set it up and created an itunes account, since then she got an iphone and an ipad and everything was good. I had an android but wanted to try out the iphone. When i set it up ut jumpled all of our contacts, apps, and everythin. it was a mess.
         Since, i purchased and ipad 2 and an iphone and to keep our stuff from combing i used a different computer and created an new apple ID for myself so our info wouldnt combine, I was wondering if i did the right thing or if i should have went about it a different way. I was going to see if there was a way when she purchased a song i could get it. I dont want to pay for the same song twice and only want to share songs. If i cant do this can i copy her library and paste it into my itunes??
    Any help wouldl be greatly apprecieated we both have icloud set up but i cant figure out the best solution.

    Welcome to the world of digital media. Your can't really transfer it. I don't know what the rules are about transferring to your spouse but I do know that in some cases when you die, your heirs cannot inherit your digital media. This is why there is still an advantage to buying the CD since the usage rights belong to whomever holds the physical media.
    A possible workaround is to burn the songs to a music CD with yout account (tracks only without song titles) and then having your wife upload it as a regular music CD onto her account. It's been a while since i've done this so I'm not sure if it would work now.
    Please note that I'm not advocating copyright and/or TOS violations. I'm only suggesting ways to copy music for your own personal use which has traditonally been permitted. I only did this because I wanted to convert iTunes songs to mp3 files so I could burn them onto a data CD for use in my car. It would make sense that since married couples are a joint entity, this would be personal use.
    Also, I'm not a lawyer so don't take this as legal advice.

  • How can I create multiple versions of a video within the same project?

    OK...this is a probably a very basic question but I'm not sure how to word it clearly.
    How can I create multiple versions of a video within the same project? What I mean is that I have a bout 50 minutes of video and I want to make two DVDs using different clips from this original 50 minutes of footage. It would be a real pain to have to re-import the video AGAIN for the second DVD. I suppose I could drop anything I don't want to burn to DVD back into the clips pane but that would wipe out all my transitions wouldn't it? I want to save each project in their “raw” form so I can burn additional DVDs later otherwise I would just do them one at a time and not care about one of them being destroyed.
    Wow...that was a mess. Does anyone understand what the heck I’m asking? I hope so.

    How can I create multiple versions of a video within the same project?
    You can't. You make separate projects using the same or different clips, segments, transitions, titles, etc. You can even duplicate the first project and then modify/make the desired changes in the duplicated project. Each project can then be burned as a different DVD or as different titles on the same DVD if there is enough room.

  • HT3819 If I have to load the same apple id on all devices to use home share, does that preclude each device from using a second apple id and does that constitute a separate Itunes db or something?

    If I have to load the same apple id on all devices to use home share, does that preclude each device from using a second apple id and does that constitute a separate Itunes db or something?

    Welcome to the Apple community.
    Only one of your libraries needs to use your iTunes Store Apple ID for home sharing. Your other computers can use their own ID for iTunes, so long as they use the same ID as all of the devices on the network for home sharing.

  • I keep getting calls from non existing area codes and phone numbers.  They are never the same number twice.  How do I stop this?

    About a week ago I started getting phone calls on my cell phone from numbers that do not exist, including the area codes.  I can not report these to the Do Not Call list because the area code is non existent.  I'm getting these calls all the time now and never from the same number twice so there's no point in blocking them.  If I answer I may or may not get a person who has an accent from India so heavy that I can't understand what they are saying.  This is getting to the point where I just want to cry I'm so frustrated.  Anyone else having this issue or does anyone know how to stop it?
    Thank you

    I'm sorry that you are having all these troubles. I have sent you a private message.
    Anthony_VZ
    **If someones post has helped you, please acknowledge their assistance by clicking the red thumbs up button to give them Kudos. If you are the original poster and any response gave you your answer, please mark the post that had the answer as the solution**
    Notice: Content posted by Verizon employees is meant to be informational and does not supersede or change the Verizon Forums User Guidelines or Terms or Service, or your Customer Agreement Terms and Conditions or plan

  • Can an editor and I work on the same project, at the same time in PPCC?

    I'm trying to figure out if two people can edit a project in live time... I'm currently struggling with the 20gb cloud limit for my projects and I think I'm just going to bring an in house editor into the mix. 
    Can he and I edit the same project from a NAS drive?
    ---Trav

    As far as I know, "regular" Premiere Pro does not have any provision for the kind of file locking/unlocking required for 2 people to edit the same project... so if YOU save an edit and your other person saves after you, your edit is going to be overwritten and lost
    Solution for networks...
    Adobe Anywhere http://www.adobe.com/products/adobeanywhere.html
    http://www.creativeimpatience.com/adobe-anywhere-enterprise-solution/

  • Can two different account work on the same project?

    I work for a non-profit organization and we are think about switching platform for our website, we are looking in to Muse, our graphic designer already have a Adobe Muse account and we would like to get an other account for the organization, will it be possible for both our account to work on the same project? With an account we can only have two computer with Muse and there will be 3 working on the website.

    Hi Alexandre,
    At any given point not more than one person can work on a .muse file. Muse is not yet designed for a workflow like this. You can update the .muse file using three different accounts as long as the file is not opened at more than one end at the same time and the file needs to be shared manually in between the accounts once one person is done working on it.
    - Abhishek Maurya

Maybe you are looking for

  • External Hard Drive: Error: The underlying task reported failure on exit

    I have a LACIE external drive (120GB/ firewire) which has had no problems. Recently, I reformatted to DOS so I could use with a PC. Now, when I plug into my MACBOOK Pro, the drive is not 'recognized. I've tried to repair with Disc Utility but I get t

  • Copy Control of Payment Terms

    Hi all, We group multiple deliveries into one invoice for one customer. Am maintaining Payment terms in my sales orders but i cld not c the same in Invoice Header data. Its showing blank. Doc flow: Sales order->Delivery->Invoice. is that because of s

  • Iphone 5 & wireless keyboard

    Good evening! I have an iphone 5 and planning to buy a wireless keyboard for it. Could you tell me which is the best one? Thanks, Beth

  • Advanced Search Web Part in SharePoint 2013

    I would like to know more about advance search web part in SharePoint 2013. How it looks and implementation ?

  • [SOLVED] change icons in thunar (XFCE)

    Hello all, Me again.  Is there a way to change the icon colors in Thunar?  I copied the gnome-wine, gnome-wise, etc. from my Xubuntu test box and copied them to /usr/share/icons.  I can see they show up under System Settings, Appearance/Icons.  I can