How to get the name of the application Module data source

Hi all

I need to get the name of source data or DB connection on which my Application module is plugged.

I tried to get the value below

System.out.println ("jdbc URL:" + getTransaction () .getConnectionMetadata () .getJdbcURL ());


But it is null for the data source (in the case of the jdbc URL gives me value)


Please help me.

Thanks in advance...!

P.S: Jdev v11.1.1.6

Thanks to all those who want to help.

ApplicationModule API (ApplicationModule (Oracle Fusion Middleware Java QAnywhere for Oracle ADF Model))

I thought that this

Hashtable hashtable is getSession () .getEnvironment ();.

System.out.println ("JDBC data source value is:" + hashtable.get ("JDBCDataSource"));

Tags: Java

Similar Questions

  • How to get the Application Build Date and time?

    Hi guys,.

    I am developing application in Cascade.

    What is the API I can use to get the construction Date of the application and Tiime?

    These macros are expanded to C-strings at compile time. This is how/where to use it. Following an example would work I think:

    fprintf (stderr, "construction date is %s, construction time is %s\n", __DATE__, __TIME__);

  • How to get the Application Module - ADFC-10001

    Hello world

    I use jdev 11.1.1.7 version. In my project, I have a form that is rendered in the portal by clicking on a link. When I click on the link, it opens the form for the first time, if I close the form and try to open it again, it works but if I close and try to open it for the third time, it does not work and it gives an error associated with rendering after debugging the data control. , I realized that somehow, it cannot find the data for the third time control.

    If I use the code to get the below request form

    BindingContainer DCBindingContainer = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();

    DCDataControl cDataControl = bindingContainer.findDataControl("ComplianceModuleDataControl");

    or if I use iterator

    BindingContainer links = getBindings();

    DCIteratorBinding dciter = (DCIteratorBinding) bindings.get("CriminalHistoryVO1Iterator");

    RowSetIterator rsi = dciter.getRowSetIterator ();

    It gives an error like this

    javax.faces.FacesException: javax.faces.FacesException: oracle.adf.controller.ControllerException: ADFC-10001: failed to instantiate the class "com.metro.PreQualComplianceBean".

    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:415)

    at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)

    Caused by: javax.faces.FacesException: javax.faces.FacesException: oracle.adf.controller.ControllerException: ADFC-10001: failed to instantiate the class "com.metro.PreQualComplianceBean".

    at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:261)

    at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:222)

    at javax.faces.webapp.UIComponentClassicTagBase.createChild(UIComponentClassicTagBase.java:513)

    at javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:782)

    at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1354)

    Somehow the iterator returns null for third click.

    In summary, in my third click, I can't make the data control, which may cause this problem. This is a really urgent situation. I'll appreciate any help.

    Thank you

    Melis,

    Hi user

    the first thing you should not write these methods to the constructor, instead create method to expose layer model through client and use in taskFlow as default activity

    It is not recommended to use the code in the constructor of beans as if there is that no bean exception will not be instantiated

    Why are you applicationModule at the bean? no need for this just write your code in the AMImpl class and use through the link layer

    It's the best coding practice, you have to try

    Thank you

  • EPMHFM-66054: the system could not find the process of the application ADNIPHFM data source

    Hi all

    When you open the HFM application below the error is thrown.

    EPMHFM-66054: the system could not find the process of the application ADNIPHFM data source


    Another application is created as Test HFM, is the opening perfectly.

    Please help me on this issue, very urgent.

    Thanks in advance

    Concerning

    Satheesh.S

    Thanks to all of you question has been resolved by re set up again for the configuration database and upgrade from previous version.

    Concerning

    Satheesh.S

  • get the Application Module during the invocation of Taskflow delimited

    Hello dear developers,

    I have a filter that maps just before the Faces Servlet and fill some attributes in the HttpSession before it proceeds with the request

    [...]

    If (_clientUser! = null & &! _clientUser.isEmpty ()) {}

    session.setAttribute (CLIENT_USER_URI_PARAM_NAME, _clientUser);

    filterChain.doFilter (servletRequest, servletResponse);

    return;

    }

    [...]

    There are some practical information for which task flow should be addressed within the URI,

    faces/ADF. Task-Flow? ADF.tfId = Task-Flow-Definition-ID & adf.tfDoc=/WEB-INF/task-flow-definition-id.xml

    After I continue the application there is a method call within the bounded workflow that is called before the display (allows to call the current view), making it default business

    [...]

    activity < default > doStuff < / default activity >

    [...]

    The method itself is in a Managed Bean PageFlowScoped, which is added to the task-flow-definition - id.xml

    This is the method that is called before the "MainPage"-view of doStuff ".

    public class {controller

    [...]

    public void doStuff {}

    FacesContext ctx = FacesContext.getCurrentInstance ();

    Card sessionMap = ctx.getExternalContext () .getSessionMap ();

    String clientUser = (String) sessionMap.get (CLIENT_USER_URI_PARAM_NAME);

    AppModImpl am = getApplicationModule();

    DBTransaction transaction = am.getDBTransaction ();

    do more things

    }

    [...]

    }

    public AppModImpl getApplicationModule() {}

    FacesContext fc = FacesContext.getCurrentInstance ();

    Application app = fc.getApplication ();

    ExpressionFactory elFactory = app.getExpressionFactory ();

    ELContext elContext = fc.getELContext ();

    {ValueExpression valueExp = elFactory.createValueExpression (elContext, "#{data.", Object.class "}") AppModDataControl.dataProvider};

    AppModImpl m = valueExp.getValue (elContext) (AppModImpl);

    am back;

    }

    Everything works well so far. But if I try to get the Module of the Application. There is not.

    This app normally isn't any what DataControl, because is just a root application which different components of blocks that have been added by ADFLibrarys, but I added a DataControl to the DataBindings.cpx and an iterator for the MainPagePageDef (just to understand a DataControl in links) but still no result.

    Do you have any tips for me how I can access the application Module? FacesServlet should have been already created the necessary FacesContext managed Bean is called at the moment or it only creates a new FacesContext time a real (jspx/jsf) Page loads?

    Yours,

    Matthias Schnell

    I got a response:

    Here is the block message that has helped me to understand.

    Andrejus Baranovskis Blog: How to fix error of initialization of the control Data with the ADF libraries

  • How to get the timestamp of data DAQmx Read

    Hello

    I have to read 4 analog channels using DAQmx AI read in LabVIEW 2012. I am using screws DAQmx.

    Acquisition rate is 4000 samples per second, and the number of samples per channel is 200.

    I use only one task DAQmx to read the data. I get 4 data tables for 4 channels each table length is 200, every time, DAQmx Read happens.

    But I want to get the seal of these 200 samples per channel. How to get the seal of these samples, made me know.

    Thank you

    You have not indicated your code. If you choose to read the waveform data, the cluster includes t0 and dt. That's all the information you need.

  • How to get the difference in dates in days

    Hi friends,

    How to get the date difference between two dates exactly

    date2-date1 days exactly... shouyld rounded to the nearest value of...

    and one entire display i mean positive integer
    Select round ((sysdate) - to_date (date_start)), date_start days of per_periods_of_service

    This gives negative also result

    Hello

    776317 wrote:
    Hi friends,

    How to get the date difference between two dates exactly

    date2-date1 days exactly... shouyld rounded to the nearest value of...

    Date1 - date2 is the exact number of days is after date2 date1. (It is as accurate as possible, given that the DATEs do not have fractions of a second).

    and one entire display i mean positive integer
    Select round ((sysdate) - to_date (date_start)), date_start days of per_periods_of_service

    You want to probably get the exact number of days first, then ROUND this number:

    SELECT  ROUND (SYSDATE - TO_DATE (date_start, ...))   AS days
    FROM    per_periods_of_service; 
    

    Always pass arguments at least 2 to TO_DATE:
    (1) the string to be converted, and
    (2) a saying string how (1) is formatted

    This gives negative also result

    Right; If date1 is before date2 then date1 - date2 returns a negative number.
    If you want to never get a negative value, use ABS (date2 - date1). If it returns 4, then you know that one of the DATEs was 4 days before the other, but you won't know who was earlier.

    I hope that answers your question.
    If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) and also publish outcomes from these data.
    Explain, using specific examples, how you get these results from these data.
    Always tell what version of Oracle you are using.

  • How to get the Application Server computer name?

    I'm redirecting to a jsp fails to logon page using oracle's 10 g.

    Can you please tell me how to get application server name of the computer on which I run my ACE? I don't want to hardcode the link to the jsp example page

    http://MyMachine:7778 / MyPage.jsp

    I want to get dynamically AS the machine name (I can't access the data due to the error log). Please help in this regard.

    Thank you

    Hello

    You can use in your forms integrated GetVar tool_env.:

    TOOL_ENV. GetVar('REPSERVERNAME',l_report_server);
    TOOL_ENV. GetVar('URLSERVER',l_urlserver);
    TOOL_ENV. GetVar('APPLICATION',l_envid);

    where the first parameter is a parameter defined in the file your application server .env.

    -Mohamed Dadi

  • How to get the application firewall settings?

    Hello everyone,

    Can I get the firewall settings in my application? (active firewall / disabled or blocked or unblocked SMS)

    also can I change the settings of the firewall of my application?

    If Yes, then what are the corresponding API for this operation?

    Thanks in advance

    This message by Mark Sohm confirms that there is no API:

    Re: Request for permissions

    http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&message.ID=5884&query.ID=166...

  • How to get the control instance data in Bean managed when data mutiple controls exist

    Below is my way. This works if there is only one control. is there an api that can be used to get the instance of the data control by name?

            DCDataControl dc = BindingContext.getCurrent().getDefaultDataControl();
            if(dc != null){
                AppModuleImpl am = (AppModuleImpl)dc.getApplicationModule();
               ...
             }
    

    I don't want to use this medium orginial.

          String amDef = "model.AppModule";
          String config = "AppModuleLocal";
          ApplicationModule am = Configuration.createRootApplicationModule(amDef, config);
          ViewObject vo = am.findViewObject("ObjectView1");
    

    Hello

    I guess you have a binding method as the first activity in your stubborn workflow. Open your workflow in preview mode, right-click on your connection method and say «Go to the PageDef» This will create a definition file page for the binding of your method. You can use this to put the iterator binding that you want to access from your init method.

    Rami

  • Firepower and WINscp - how to get the files module SFR

    Is anyone able to use WINscp to get a file to a module of sourcefire? I think that WinSCP has problems with the admin user do not enter expert mode by default.

    I have a windows environment and can not get the secure copy scp to work of SFR command to a server with port 22 open windows.

    You are right. Sourcefire module/sensor is not as SCP server you cannot use the winSC is there to connect. But it acts as a client PCS, so you can use firesight or any other SCP server and copy the files to the CPS server first and then use winscp to get out.

    For example.

    > expert

    > sudo scp/var/common/leader-to-be-copied [email protected] / * /-IP: / var/tmp

    This will copy the file to the directory/var/tmp in firesight. You can use any other SCP server as well.

    Rate if helps.

    Yogesh

  • How to get the time to date?

    Hi Sir,

    I need to recover the time to date.

    ' like ' 2012-10-03 04:32.

    to retrieve the only time where it's 04:32

    What is the query for this?

    Thank you

    Hi user,

    You can use TO_CHAR function to obtain the hour alone

    SELECT TO_CHAR (TO_DATE ('2012-10-03 04:32:00', 'YYYY-MM-DD HH24:MI:SS'),
                    'HH24:MI:SS'
                   ) TI_ME
      FROM DUAL
    

    Thank you
    Shankar

  • APEX4.0 - How to get the Application Builder

    Hello
    I'm new to Apex and I installed Apex4.0 on XE Windows successfully. I could successfully connect you as an 'admin', with 'internal' workspace and see the four menus admin as 'Manage applications', 'Manage the Instance', 'Manage Workspaces', and 'manage activity '.


    Are there any special settings I do see "Application Builder", "SQLWorkshop" etc?

    Basically how to 'Application builder' all things developer.

    Any help is really appreciated.

    I tried "apex.oracle.com", for application builder, but I wish I had in my local machine.

    / regarding
    Murali

    Hello murali.

    You must first create a space of 'real' work and the connection to this workspace.
    To create a workspace, you connect to the internal workspace (i.e., administration of APEX) and follow the instructions as documented here [url http://download.oracle.com/docs/cd/B28359_01/appdev.111/b32258/adm_wrkspc.htm#CHDJFJFA].

    -Udo

  • How to get the status of data for each virtual [identify overprovisioning] computer store?

    Hi people,

    Could help me is it you please in the generation of report of VM and its data store location (data stocker store free space, size set up and operation). ?

    Ideally, it should be like this:

    The virtual computer name. Name of the data store. Size of the data store. Total configured data store size

    Thank you

    The following script adds the ProvisionedSpaceGB property to the output of the script of Luke:

    Get-VM | ForEach-Object {
      if ($_)
      {
        $vm = $_
        $vm | Get-Datastore | ForEach-Object {
          if ($_)
          {
            $Datastore = $_
            "" | Select-Object -Property @{N="VM name";E={$vm.Name}},
            @{N="ProvisionedSpaceGB";E={$vm.ProvisionedSpaceGB}},
            @{N="Datastore Name";E={$Datastore.Name}},
            @{N="Datastore Size (GB)";E={[Math]::Round($Datastore.CapacityMB/1KB,0)}},
            @{N="Datastore Total Provisioned size (GB)";E={[Math]::Round(($Datastore.CapacityMB-$Datastore.FreeSpaceMB)/1KB+$Datastore.ExtensionData.Summary.Uncommitted/1GB,0)}},
            @{N="Datastore Used Space (GB)";E={[Math]::Round(($Datastore.CapacityMB-$Datastore.FreeSpaceMB)/1KB,0)}}
          }
        }
      }
    }
    
  • How to get the year of Date data

    Hi all

    I have the following scenario:

    County - Date - Code
    5 DS - 01/09/2009
    5 DS - 15/01/2009
    5 LO - 21/01/2009
    1. IT - 02/09/2009
    5 DS - 03/09/2009
    5 LO - 04/09/2009
    4 DS - 05/09/2009
    5 - IS - 06/09/2009
    5 DS - 07/09/2009
    5 - IS - 08/09/2009
    3 DS - 09/09/2009
    5 DS - 10/09/2009
    5 LO - 11/09/2009
    2 DS - 12/09/2009
    5 DS - 01/09/2010
    5 LO - 02/09/2010
    4 DS - 03/09/2010

    How can I only CDA data for 2009 and one year for 2010... Is meant by CDA 2009 data until the day of the date for example, if its 9 March today... TBE outcome will bring full jan, Feb and until the 9th day of March ' 09 and full jan, Feb and until the 9th day of March 10

    Thank you

    Published by: [email protected] on March 9, 2010 23:03

    Published by: [email protected] on March 9, 2010 23:06

    Something like:

    where dt <= trunc(dt,'YYYY')+(trunc(sysdate,'DD')-(trunc(sysdate,'YYYY'))
    

    "Dt" corresponding to your date column.

Maybe you are looking for

  • Preference named layout.css.devPixelsPerPx

    I wanted to do the standard zoom in Firefox a little smaller, so I went to the preference called layout.css.devPixelsPerPx about: config and messed up her a bit. I tried to change-1.0 to 1.2, but I accidentally typed 12 or 102 instead of 1.2, and now

  • Change the background color of number

    Sorry for asking such a stupid question, why I can't do my number green background. I tried all combinations of properties and cannot seem to make it work. See my attached vi.

  • Remove active directory

    I have a client who has a small office (3 positions) with an old Windows 2 K Server.  It was installed years back to serve for the performance of an application that requires MS SQL server, etc..  At that time, it was also installed running active di

  • Error writing and freezing when burning Audio CD in WMP Windows Media Player 11

    WMP11 has always worked well for me in the past, but in recent weeks it has errors of intermittent and inconsistent writing. @ 50% of the discs I burn out very well. The rest will be error when writing and I get a message saying to try different medi

  • Potential phone scam

    Dear Microsoft product support, I got at least 3 calls from the same person who claims to be a Tech from Microsoft IT, and he says he's from New York.  He says that my computer is turning off the messages and I need to fix my computer and he wants me