How to inherit one enity method and to create entity manager factory

Hi All,
i have totally 5 databases where one database has the connection details of all other 4 databases.i am using EJB 3.0 and using MVC architecture.is there any possibility to get the details in that datbase and create entity manager factory based on that detail.i defined all the database connection in persistence.xml.

Hi,
is there any oher possibility to create entity manager factory dynamically?

Similar Messages

  • How to configure one dsl connection and one public ip in cisco router and map to one interface for using exchange server

    how to configure one dsl connection and one public ip in cisco router and map to one interface for using exchange server

    Hi ,
     Have you got any additional public IP Address from your service provider , If yes on router you can have static route for those additional IP Address pointing to your ASA  outside interface . 
    Accordingly you can configure NAT 
    HTH
    Sandy . 

  • How to add one date column and charecter column

    hi all,
    i have 3 column start_date(date),end_date( date),duration (varchar2)
    i am trying to add start_time and duration like this
    end_date := to_char(start_time) + duration;
    but its showing value_error
    how to add one date column and charecter column.
    Thanks

    you need something that does:
    end_date (DATE) := start_date (DATE) + <number of
    days> (NUMBER)Not necessarily, because if the duration is just a string representation of a number then it will be implicitly converted to a number and not cause an error
    e.g.
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select to_date('01/07/2007','DD/MM/YYYY') as start_dt, '3' as duration_days from dual)
      2  -- END OF TEST DATA
      3  select start_dt + duration_days
      4* from t
    SQL> /
    START_DT+
    04-JUL-07

  • How to clone one mac mini and restore on another

    Hi,
    I have 2 mac mini's. Both are version OSX 10.6.8.
    Is it possible to backup one Mac Mini and fully restore on the other so it is an exact clone? So software, files, user accounts, settings etc. would all need to be backed up and restored from the source machine to the target machine
    Cheers

    See:
    http://nyacomputing.com/how-to-create-a-bootable-clone-of-your-mac-hard-drive/
    You can use Disk Utility if you boot into recovery as described in the article
    If you want to cone one Mini to the other, Boot the source Mini in recovery and the other one in Target Disk mode and connect the two via firewire

  • HT204266 How to delete my payment method and only use ITunes?

    If anyone can assists removing payment method and picking iTunes card. 

    iTunes Store: Changing Account Information
              http://support.apple.com/kb/HT1918

  • How can I change Output Method and Mailbox# programmatically (without GUI)?

    We have several iR5075s and about 300 workplaces. For security reasons we only allow "Store" output method. So every user has access to some printers and for every printer they need to reconfigure printing preferences.
    For convenience we'd like to do the following automatically (via Group Policy or scripts):
    1) Change "Output Method" to "Store".
    2) Set the correct mailbox number.
    The problem is that the related settings seem to be stored in registry as a binary blob (HKCU\Printers\Connections\<printer name>\DevMode). I've been searching for a while but I couldn't find anything that would explain what's what in that blob.
    Any clues?
    Or maybe there's another way?
    P.S. I'm familiar with scripting, regular expressions, etc. Acquiring the necessary parameters (such as mailbox#) is not a problem at all. I only need to know where and what I should change (in registry or elsewhere).
    [Edit] Update: Actually it seems the settings are stored in HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Print\Providers\Client Side Rendering Print Provider\<user sid>\Printers\Connections\,,<server name>,<printer name>\RemotePrinterCache. It's also a binary blob though.
    Eventually I'll reverse engineer it enough for my goals. I just don't understand why it must be so complicated...

    https://mega.co.nz/#!5QQWmaTI!cryW-pykueRNffdDYnj1OpxiHgG0mcAqLOh4Gmt2PJk
    But I'm not sure how useful you'll find it. I wrote it as a temporary solution (we're now migrating to UniFlow) and it's anything but universal. At best, I guess, you'll be able to salvage some of my code while writing your own.

  • How to close one browser window and return to a named anchor on a page in another window

    I'm working on a website that has several book images at the bottom of each page. I have set it up so when the user clicks on a book another smaller browser window opens up with a description of the book. At the bottom of book description window, I have a close button which I added the window.close() behavior to. But I'd like to not just have the window close but return the user to the bottom of the original page where I have the books, an area that I have applied a named anchor to. Any ideas on how I can get this done.
    I'd appreciate any and all help.

    I haven't tried to customize this lightbox extension much.  But I'm pretty sure the size of the box is pre-determined by image size.  Bigger image, bigger box.  And that is coded into one of the Lightbox javascript libraries.
    As to placing a link in the caption, sure.  Just paste your html link code into the Lightbox Caption Panel like so.
    <a href="http://amazon.com"> Buy now from Amazon</a>
    There is much more detailed information about Lightbox and how it works at the huddled together website.
    http://www.huddletogether.com/projects/lightbox/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb

  • How to access Custom Controller Methods and context

    Hi
    I have to components (comp1,comp2) in one DC.  I want to use custom controller method of comp1 into comp2 view?
    Thanks
    Prasad

    Hi,
    in order to access comp1 from comp2.
    create Public part for Comp1 and it to the useds DC of Comp2 and as well add the required controllers in Comp2 (in view controller and custome controller where u want to access them).
    PFB link fro example.
    [http://wiki.sdn.sap.com/wiki/display/WDJava/UsecomponentsinbiggerWebDynproprojects+%28componentization%29]
    Regards,
    Govindu

  • Help Me please How to combine one tab press and continuesly press on keyboard

    Hy all, I am new here... Btw I have a problem when I making a game Flash with action script 3,. I want to
    make my character move when the key helding and I want  my character attack
    with one tab press either ,.. how to make  it work?? please give me sample to make it ... Thanks before

    yea thats correct but.. how to combine it with continuesly press.. I have script like this :
    package
        import flash.display.MovieClip;
        import flash.events.KeyboardEvent;
        import flash.ui.Keyboard;
        import flash.events.Event;
        public class Main extends MovieClip
            var vx:int;
            var vy:int;
            var attack:Boolean=true;   
            public function Main()
                init();
            function init():void
                vx=0;
                vy=0;
                attack=false;
                stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDownF);
                stage.addEventListener(KeyboardEvent.KEY_UP, onKeyUpF);
                stage.addEventListener(Event.ENTER_FRAME, onEnterframe);
             function onKeyDownF(event:KeyboardEvent):void
                if (event.keyCode == Keyboard.LEFT)
                    vx = -5;
                    Player.gotoAndStop(2);
                    Player.scaleX = -0.3;
                else if (event.keyCode == Keyboard.RIGHT)
                    vx = 5;
                    Player.gotoAndStop(2);
                    Player.scaleX = 0.3;
                else if (event.keyCode == Keyboard.DOWN)
                    vy = 5;
                    Player.gotoAndStop(2);
                else if (event.keyCode == Keyboard.UP)
                    vy = -5;
                    Player.gotoAndStop(2);
              else if (event.keyCode == Keyboard.SPACE)
                   Player.gotoAndStop(3);
            function onKeyUpF(event:KeyboardEvent):void
                if (event.keyCode == Keyboard.LEFT || event.keyCode == Keyboard.RIGHT)
                    vx = 0;
                    Player.gotoAndStop(1);
                else if (event.keyCode == Keyboard.UP || event.keyCode == Keyboard.DOWN || event.keyCode == Keyboard.SPACE)
                    vy = 0;
                    Player.gotoAndStop(1);
            function onEnterframe(event:Event):void
                Player.x+=vx;
                Player.y+=vy;
    when I try to include key code SPACE to moving character to attack.... It will going continuesly attack when I helding the key,.. and It stop when I relase the key.. I need one press to attack.. please help me.. :'(

  • How to use one keyboard, mouse and display for two PC's?

    hey guys, right now i'm using a mac mini and also another Windows PC tower. whenever i want to switch between them i need to re-plug in my headphones/keyboard/mouse/display and this is getting annoying. i've been using a usb hub for the mouse and keyboard so it's not as difficult to setup. is there anything out there that'll allow me to switch between them more easily?
    what are my options?
    thank you

    If both are on your intranet, try Synergy.
    I personally use the Wormhole.  You can drag between desktops.

  • How to use one button rollover symbol to create 100 graphically different buttons

    I do know how to create a button rollover symbol.
    I don't know how to make that button rollover symbol reuseable. I'd like to put 100 different images in 100 copies of the button. I'd rather not make new symbols for every button, since the rollover animation may change.
    Symbol "Accessibility" allows the title to be changed for copies of the symbol. Does similar functionality exist for bitmaps used in the symbol?
    Could the copied button bring in new graphics from the timeline in another symbol or a xml sheet?
    Any help would be greatly appreciated. I've been following tutorials, except none of them cover this situation.
    Thanks for your help!

    Created in EA version 3:
    I have 2 samples for you that are very similar.
    1- uses the symbol with no image and loads the image as a background-image for the div.
    https://app.box.com/s/co7uki3fm3b11a3o1xjw
    2- uses an image in the symbol and replaces this image with a new one in the img (not div)
    https://app.box.com/s/3ms92f5cv0mylspsi5uo
    Choose what you prefer.
    3. An example with more elements in the symbol directly on the stage instead of a container. use a container if you want to place the symbols in a specific rectangle div for example.
    https://app.box.com/s/y92bpo82kncxnn2w567y

  • How do I remove all fonts and just set them to factory?

    I have three computers that all have had free fonts added by an employee. They just keep multiplying and are up to nearly 1500 fonts now. When I try to open excel it tells me certain fonts are corrupt. I just want to remove all of them and start over with a legit font program. Any suggestions?

    They shouldn't have added any fonts to the /System/Library/Fonts/ folder (though they could have), so they should all be in one of two folders.
    1) Empty out the /Library/Fonts/ folder.
    2) Empty out the ~/Library/Fonts/ folder (the tilde means the current logged in user account).
    3) Read the last section in my article on how to reinstall just the fonts OS X came with in my article, Font Management in OS X
    Links my give me compensation.

  • Question about one stored procedure and a few entity objects

    There are few EOs in the project. At the same time there is a single stored procedure that has to be used for data modification.
    This procedure updates db tables that are mapped to these EOs. How do I implement doDML operation in this case?
    I have to call stored procedure from a single main EO, and disable data modification in the rest of EOs. Is it possible?
    If so, how do I pass parameters from other EOs, because in a doDML method i have a scope of this particular EO attributes, and do not have acces to the attributes of other EOs?
    Thanks!

    I am not sure with imovie since I use only Final Cut Pro. iDVD setting will let you expand the file for length. Naturaly the best quality pr performance will take less time of a file. In the case with iDVD 4 the best quality will only take 60 minutes of video already compressed. Best performance will take up to about 1 hour nd 49 minutes. You have to leave enough room for the menu to take up some space on the disc as well. In FCP we have to export as a quicktime file where with a 1 hour 30 min video can take about 20 minutes to export. the burning and compression time depends on the system you have. G5 faster, G4 like mine takes longer. on that same video idvd 4 will take about 3 hours to convert and burn the disc. When I use DVD Pro Studio that is way different and take a lot longer. I have had a typical 2 hour video take up to 14 hours to convert/export to a MPEG 2 format or DVD format. But the burning process take about an hour. It all depends on your equipment.
    Hope that helps.

  • HT5616 i have an ipod 4th generation nano with one apple id. and i created another id for my iphone 4. I bought some songs on itunes and loaded them on my phone. But now i am not able to retrieve them to transfer to my library. I can see them, but they ar

    when i try to retrieve the songs into my library it says that my computer is connected with another apple id and that i have to wait 90 days. Do I have to wait to be able to retrieve my songs that I purchased? Do I have to wait all the time when I purchase songs from itunes? Its driving me crazy that I bought these songs and are not able to listen to them on my other apple products. Such as my ipod nano 4th generation, and my iphone 4. Your help is appreciated, thank you.

    Hey renie1515,
    Thanks for using Apple Support Communities.
    When you download past purchases on an iOS device or computer, that device or computer becomes associated with your Apple ID. This article describes how to manage these associations.
    iTunes Store: Associating a device or computer to your Apple ID
    http://support.apple.com/kb/ht4627
    Once a device or computer is associated with your Apple ID, you cannot associate that device or computer with another Apple ID for 90 days.
    Note: Removing a device from your Apple ID does not override the 90-day timer. You must wait 90 days from the day the device was first associated with your Apple ID before it can be associated with another Apple ID.
    Have a nice day,
    Mario

  • How to sync new catalog , categories and products created in ACC to pub db

    Hi all,
    I have created new catalogs+categories and some sample products in my ATG application using ACC. I can access them in my application.
    Now i want to move ahead and create some promotions + scenarios for those products. I went through the docs and got that recommended approach is to use BCC for these items and then deploy them to prod instance.
    But before that since the newly added catalogs and products are available only with prod db, i should sync them up with my pub db. so that both of my db will be in sync. I tried to look help/steps for this but did not get any.
    Can you pl provide some pointers about this, how can i do that? Any link/site for the required steps will definitely help me.
    Thanks in advance,
    Swati

    Hi Grado ,
    I doing first step, but when entering password and drp port on acc window it saying-
    Could not connect to URL:  rmi://localhost:8852/atg/devtools/UpdateAgent
    Either the dynamo Server is not running ,or the hostname and/or port number are invalid
    please tell me anything i doing wrong.
    Thanks.
    -Kakasaheb.

Maybe you are looking for