Defining one application module for several DBs

Hi,
Is it possible to define one application module that serves two different DBs?
In other words:
If I need to use two DBs in my application, how many application module should I define?
Thanks in advance

Shalom Moran,
So you only need to connect to one DB at time - but to different DBs at different times right?
If we are talking about changing this at development time then simply simply change the configuration of your application module to connect to a different DB. (right click on the AM in JDeveloper and choose preferences). You can also change this in a file somewhere (don't remember the name of the top of my head).
The other option is to have your AM use the application server's data-sources and you can change the parameters of the data-source in your application server configuration file.
Hope this helps.
Shay

Similar Messages

  • Best practice for application module  for scalability

    if i compare application module with forms 6i runtime session.(correct me if i wrong)
    In forms 6i, we create for single form for purchase entry. in which we select table like po , po_item, item_master, customer master
    also single form for sales entry. in which we select table like sales , sales_item, item_master, customer master, po , po_item
    So my question is. in jdeveloper , we planning to make separate jsp page and applicaiton module for purchase entry,
    separare jsp page and application module for sales.
    is it ok.
    or
    what is the best practice in this senario.?? ( or in scalability senario)
    if i made one single application module for whole application (let say 300 entity's(tables)) will performance of my app server degrade.

    You might want to read the chapter about AM Granularity in the ADF Developer Guide:
    http://download.oracle.com/docs/html/B25947_01/bcservices009.htm#sm0229

  • Using one packing instruction for several materials

    Dear Friends,
    I need some inputs on how to use one packing instruction for several materials.
    The scenarion here is :
    Many materials are packed in a similar way. If certain materials differ in only one characteristic (for example, construction), having to maintain a packing instruction for each of them results in a considerable time and efforts.
    Need some valuable inputs to complete this requirement.
    Regards,
    Harsh

    Hi.
    Try with reference material for packing (MARA-RMATP). Same material number must be entered on all materials which are packed through same packing instructions.
    Then you have to create/use access sequence for determination of packing instructions that contains that characteristic (RMATP).
    Best regards
    Milan

  • Application Dependencies for RAC DBs

    What are application Dependencies for RAC DBs specially there connectivity, and High availability?

    You'll probably get lots of suggestions based on lots of experiences, however, those things may or may not happen to your application. The best and always-applicable advice you'll get is that you absolutely must test your application in every possible scenario (and even scenarios you think are impossible) for how it reacts to failure as well as how it scales with parallelism and how much contention it creates due to its design. Create a realistic test environment, ensure you can produce realistic, real-world load on the application, and then start testing. With 11g, the load generation gets a lot easier to do with Real Application Testing. With earlier releases, it will be using more traditional methods/tools.
    So, you'll get good advice, but it won't be a substitute for doing the actual testing work yourself with your application.

  • Applications Dependencies for RAC DBs

    What are application Dependencies for RAC DBs specially there connectivity, and High availability?

    Hi, not must exist any dependency, for the applications must be transparent. The application only can see the service database where it cans connect and work.
    Regards.

  • Commit on one application module also commits the other

    Jdev 11.1.1.4
    I have a fusion ADF application where I have defined two Data Controls.
    One is called AppModuleDatacontrol and the other AppModuleWSDataControl.
    I do this in order to be able to commit DML made on one Data Control independently of the other.
    The problem is that when a do something like:
    AppModuleWSImpl am=(AppModuleWSImpl)Util.getApplicationModule("AppModuleWSDataControl");
    am.getTransaction().commit();
    Errors on VO of AppModuleDataControl are raised. They were not expected to be raised !
    I have activated ADF logs and just after executing
    AppModuleWSImpl am=(AppModuleWSImpl)Util.getApplicationModule("AppModuleWSDataControl");
    and before executing the commit I get:
    <BindingContext> <findDataControl> [4147] INFO: no refreshRegion, skipping cpx codebase lookup on AppModuleWSDataControl
    <BindingContext> <put> [4148] BindingContext.put( AppModuleWSDataControl@edu_esade_view_DataBindings_cpx, oracle.jbo.uicli.binding.JUApplication )
    <PropertyManager> <loadProperty> [4149] WARNING: Property jbo.maxpoolcookieageset to null
    <PropertyManager> <loadProperty> [4150] Skipping empty Property jbo.maxpoolcookieage from null
    <BindingContext> <put> [4151] BindingContext.put( AppModuleWSDataControl@edu_esade_view_DataBindings_cpx, oracle.jbo.uicli.binding.JUApplication )
    <BindingContext> <put> [4152] BindingContext.put( AppModuleWSDataControl@edu_esade_view_DataBindings_cpx, oracle.jbo.uicli.binding.JUApplication )
    <DebugDiagnostic> <print> [4153] DBG: DataControl:Looking for :_adf_dc_user_params_key_
    <DebugDiagnostic> <print> [4154] DBG: DataControl:Looking for :_adf_dc_user_params_key_
    <ADFLogger> <begin> Create nested Application Module
    I don't know if "Create nested Application Module" is important but I don't want this AppModule to be nested of the other. I want them to be completly independent in order to achieve independance of the commit actions.
    Any help ?

    "1.Defining all BTF as "No controller transaction" I can assume both AppModule will always work with different transactions "
    As long as they're defined as separate root AMs and you've used the <No Controller Transaction> option they will work with different db connections, therefore different transactions too.
    "and one transaction in one AppModule will persist trough pages"
    Within scope of one BTF yes. In scope of chained BTFs that's dependent on the BTF data control scope option. If you set that to isolated, each instance of a BTF will spawn a new instance of the AM in question (and new connections/transactions with the database). If you use shared, 1 instance of the AM will be shared (1 connection/transaction).
    "2.What impact can have this in reusing BTF ? I have a jsf page reusing the same task flow in two regions. The taskflow performs some initialization. Will the regions undesirably interact one with the other ?"
    That depends on the data control scope option as specified above. If you want them to be independent, use the isolated data control scope options on the BTF.
    Consider reading the ADF Task Flow Transaction Fundamentals paper on this website for more information: http://www.oracle.com/technetwork/developer-tools/adf/learnmore/adfarchitect-1639592.html
    CM.

  • ATP - One Checking group for several checking rules (Trans. OPJJ)

    Hello,
    In my system, each control group is associated to several checking rules. So, I don't understand how the system choose the right rule to use.
    IIs it normal use ? SAP Documentation and forum threads seems to speak always about one checking rule for one checking group.
    Thanks for your help,
    Emmanuel
    Edited by: Kholargol on Oct 2, 2009 11:19 AM

    Emmanuel,
    Just to add to what Prasobh explained on how to use different check rule 01/02 at production order level there are other checking rules that apply to SD module which is more important for defining ATP stratgey for various finished products.
    So a simple sales oder for made to stock product may have checking rule A that considers existing unrestricted stock, purchase orders, production orders  dates to promise against.
    However a MTO sale order for made to order(MTO) product may have a check rule AE that  should consider only the relevant production order and /or replenshipment lead time to promise against.
    So while checking group set at material master needs many check rules specific to various Sale orders, production orders, plant mainteneance orders, or project orders.
    Hope this helps in your understanding of this concept.
    Thanks,
    Ram

  • One Application Module Instance Per User

    Hi, I am using JDeveloper 11.1.1.2 with ADF BC.
    I have an application with a single root application module. I have my JDBC data source set up to enable identity based connection pooling so that a database connection is created with the current user's credentials.
    Basically, I would like an application module pool such that a single application module instance exists for each user in the system. If a user logs into the system, a new app module should be instantiated for him (tied to his db credentials). If the user makes a new request and his app module has been removed from the pool for inactivity, a new app module should be instantiated even if others already exist in the pool for other users. If the user is already logged into the system and tries to login again in another browser window, I would like to check if an app module already exists in the pool for the user and re-use that one instead of instantiating a new one.
    I don't want to set jbo.doconnectionpooling=true because I want the app module instance to keep its cached data.
    Is this possible? If so, how could I configure the application module to make this work?

    Hi Frank. Thank you for the reply.
    I tried using two browsers. The behavior of each page is very much different when being opened individually. Its like the two pages is sharing the same iterator / data and / or entity object. These two pages were opened to see if one is dependent upon the other. But when I test the same scenario on a different computer, everything works out fine.
    Is there a way for me to verify if the sessions are different? and if they are different, is there a way to verify if the application module created a new instance for the other session?

  • Extending Application Module for ListofValues region

    One of HR pages (ManagerPG.xml) uses the same AM (EmployeeAM) for two ListofValues regions. I am getting "application module already exist" exception when I extend the EmployeeAM.This is a nested AM in the page.
    HR_DIRREPORTS_TAB_LOV_SS and HR_LIST_OF_EMPLOYESS_SS are the Ids of the regions. These two regions uses two different controllers but the same AM. We need to substitute VOs used to display these lists. I have extended EmployeeAM and created new methods to call custom VO methods. I am calling AM.invokemethod from Controller classes. I am able to display custom LOVs on the page but I get the above error with submit button.
    Is it the correct way of extending OAF? I am not sure why I am getting the error, Please help..
    Thanks!
    Srini

    I logged BUG 4448377 on this issue and received the following response.
    ========================
    You are running into bug 4410729.
    If you substitute a "root" application module, you get "Cannot Display Page" error in LOV.
    Root AM substitution is not supported. We have included this in the troubleshooting guide through doc bug 4417751.
    ===========================
    Basically as stated in the BUGs Root AM substitution is not supported in OAF.
    Thanks
    Michael

  • Why does my OS X 10.6.8 have various applications hang for several minutes, then resume. This is not a startup problem.

    I upgraded to Mac OS X 10.6.8 a few weeks ago. It seemed to be running OK, so we upgraded another system also. Now both machine are, from time to time, stalling whatever application is running. Everything stops or runs veeeeeeerrrrrry slowly for several minutes even including bringing other windows to the front. The disk runs almost like it is swapping a lot. Then the system frees up and runs normally for a while. This is not a startup problem. I occurrs on systems that have been running for a day or two or more. It happens on an iMac and on a MacBookPro. Neither of them had this behavior before the 10.6.8 upgrade.

    Jocke27 wrote:
    What do you mean with corrupt?
    Why did you suggest that I created a new profile?
    There are cache files and other system files that are created every time a user account is created.  Sometimes these are corrupted in the OS and it really has no bearing on the specific application but it can lead to erratic behavior.  Creating a new user recreates all these system files and thus it's almost like starting fresh.  It's one step shy of re-installation of an OS.  So because changing the user fixed the issue, then we have eliminated the fact that the application is causing the error and we know the OS is causing the error.
    I can't just go in to that profile when I want to use?
    I wouldn't recommend it.  This can lead to more problems with the OS down the road with other applications and depending on where the corruption lies it can lead to issues with OS upgrades or even installing new software.  The files that are typically most critical to users are stored in the Applications folder or the Documents/Sites/Pictures folders.  You can easily drag them over to a new user account.  If you have email being backed up for a product like Thunderbird you can also bring over many of the Library items as well.

  • How do I make an iPad or iPod touch only allow access to one App? I need to create a one application device for a child.

    I need to lock the iPad or Itouch down so only one application is running or available to start.  One, for ease of use by a 3 year old and two, in order to make the use of the iPad as an AAC device allowable in a classroom setting. There is concern that the other games, etc will be a distraction.
    Thank-you!

    You can enable Restrictions, also known as Parental Controls, on an iPhone, iPad, or iPod touch to prevent access to specific features. This article provides an overview of the types of Restrictions that are available, as well as how to enable or disable Restrictions on your device.
    http://support.apple.com/kb/HT4213

  • Define one logical system for PI or multiple LS for 3rd-party system?

    Hi gurus,
    We are using IDOC2SOAP and SOAP2IDOC scenario in PI7.11. My question is regarding the logical system(or partner profile) on R3 side. We have two 3rd party system:A and B, so we have two choices.
    1. define one single logical system for PI integration server;
    2. define two logical systems for A and B.
    For choice 1, it seems we can only use one business sytem or business component (business service in 7.0) as the two 3rd party system, especially for SOAP2IDOC scenario.
    For choice 2, it seems we have no restrictions.
    Is it correct?Any help will be appreciated.

    technically you can use both options.
    The question is - do you want all the IDOCs in your R3 system to appear as though they were sent from the PI?
    What if a lot of 3rd party systems were sending the same IDOC (for example - ORDERS) and you want to investigate only those who were sent from system A?
    I like it configured that every system will be identified by a name I give it.
    I just use the IDOC communication channel checkbox of "Take Sender from Payload"
    or use a different service in the IBC that has a different logical system configured in its Adapter specific identifiers.
    Hope it helps,
    Imanuel Rahamim.

  • Use the same code module for several steps in the sequence

    Hello All,
      I have been trying to set up a sequence that uses the same code module for all of the steps in the sequence, but am having trouble referring back to it when I need to send it commands.  I have gotten as far as calling the VI in a new thread so that it can be run asynchronously.  I can run the simple sequence and it will indeed open the VI, and move on to the next step.  When I close the VI manually from the front panel, the sequence in TestStand completes, as expected.  So it appears that I have that much working. 
      My question is how to call the separate thread from the main sequence or other sub sequences when I need to edit the parameters.  If I insert an Action step, I am required to select a VI file, but from what I can tell, it opens a different instance of the file, and does not provide an interface with the other instance running asycronously.  My next guess was to use a Statement step, but I was not able to figure out how to configure the lookup string to call the VI parameters.  Beyond that, I'm not sure how to proceed.  Please advise.   
      My intention is to start the code module VI (asynchronously), run several different subsequences within the main sequence that call that same VI and edit it's parameters, close everything and report on the results.  If I am misunderstanding how TestStand is supposed to work, please let me know. 
    Thanks,
    GSinMN    
    Solved!
    Go to Solution.

    What I do is use a Queue to send data to the asynchronous VI.  So it can run and do whatever, but also recieve the commands from the queue.  I use an Action Engine that holds the queue reference and sends the commands.  So you really just have to call the Action Engine from your sequences.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • One application module with 3 differente data base connections

    I have 3 different servers for data base connections. The main is "sys", the second "stanby" and the third: "bdbatch". In the old application,that i m re programating, uses a properties to read the connection. If the main is not available then goes to the stanby an then to the third. With this new application with adf i have to do the same. So how can i configure the application module to do this? do i have to make extra code? or just configure an xml file??

    i faced this problem before in Dynamic JDBC Credentials topic solution provided by Steve Muench (to make your AM Databse Connection to be dynamic as you need).
    http://smuenchadf.samplecode.oracle.com/samples/11gDynamicCredentials.zip
    Note : Example Contains the Full JDBC Connection String in dynamic way
    i finished this solution in my App and Successed.
    Thanks

  • One trip number for several trips

    We want to use travel management to pay the mileage to our customer engineers who visit customer sites daily. We need to input only date, time and miles covered. I tried to use travel calendar for that but the only problem is that each line (for a day) is assigned a separate trip number while we want ONE trip number for like 20 days data. Is it possible.

    Hi
    In travel calander it will create seperate trips for each day.If you wish to create only one trip  no. against various trips you may create direct in TRIP /PR05 transaction, with the range of start date and end date of your trip.
    Then add Mileage additional receipt for each day, it will create single trip against all your receipts.
    cheers
    Mukta

Maybe you are looking for

  • Problem while loading a jar file into database

    Hi All, We are using Oracle 8.1.5 in Solaris. When I try to load a jar file into the database by using loadjava it gives the following error Error while processing jar cryptix32.jar Exception java.io.IOException: Load Java is unable to handle compres

  • Streaming video in interactive pdf

    I have read everything I can on this subject, and although it looks like I should be able to do it, I have so far been unable to make it work!    My dilemma: Creating an Interactive PDF from InDesign CS6, and I would like to include links to various

  • How to contact mac air to iPad

    I bought an Ipad yesterday, does someoneknow how to connect ipad the mac air

  • Itunes download error iPhone

    I get a download error when attempting to my iphone 4. "download error..., tap to retry" It continues to show error nomatter how many times I retry. I have tried just about everything I could imagine to fix. power off, exit apple ID, synch with iMac.

  • Sending data to USB port !

    Hi, I have a transmitter card and receiver card which fits to USB port. I need to send bulk data, may be video from one system to other, both running windows OS (98/ME or 2000). I went through the USB postings and saw something about TWAIN driver for