Why it need in spring application context if integrated with hiberate

Dear all,
in hiberate.xml which has specified the connection data source. I don't understand why the following need to be defined in spring application context.
Or I have made a mistake that data source connection can be defined in hiberate.xml or in spring application context but not both???
<!-- Local DataSource that works in any environment -->
<!-- Note that DriverManagerDataSource does not pool; it is not intended for production -->
<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName"><value>${jdbc.driverClassName}</value></property>
<property name="url"><value>${jdbc.url}</value></property>
<property name="username"><value>${jdbc.username}</value></property>
<property name="password"><value>${jdbc.password}</value></property>
</bean>

Rchiu5hk wrote:
Dear all,
in hiberate.xml which has specified the connection data source. I don't understand why the following need to be defined in spring application context.Your instinct is a good one. "Don't Repeat Yourself" is good advice.
Or I have made a mistake that data source connection can be defined in hiberate.xml or in spring application context but not both??? I agree with you - I would not put it in both.
My preference is to put the data connection information into Spring, not Hibernate, and simply refer to the Hibernate configuration in my session factory:
   <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
      <property name="dataSource" ref="dataSource"/>
      <property name="configLocation" value="classpath:hibernate.cfg.xml"/>
   </bean>That way I can use DriverManager or JNDI for my connection as needed.
%

Similar Messages

  • TA38622 is there any way to send sms by a connected iPhone to computer ? if so does it need any special application and program ? with witch port ? thank you.

    is there any way to send sms by a connected iPhone to computer ? if so does it need any special application and program ? with witch port ? thank you.

    Hi, Santosh..., and welcome to the Community,
    I would recommend testing the SMS reply forwarding to your mobile number.  Depending upon the results and if this works for you, you could then contact Skype Customer Service to cancel and request a refund.
    In other words, SMS will be received via your mobile number, not via your Skype Number.
    Regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • Why we need a proper Windows 7 install DVD with our netbooks...

    Because of things like this:
    -- Part 1 of email conversation with Microsoft Windows Update Support follows --
    Dear Scott,
    Thank you for prompt reply.  I want to thank you for your time and kind cooperation on this case.
    Based on the troubleshooting steps we have performed, it appears the issue is caused by some system corruption. At this point, I suggest we perform an In-place Upgrade to repair the system. I would like to tell you that the In-place Upgrade will not affect settings like photos, movies, documents, etc. that are saved on the computer.  However, it is recommended to first backup your important information and files to other partitions or other disks. Then please perform the following steps:
    Step 1: Turn off Windows features before performing an In-place Upgrade
    =======================================================
    1. Click Start, and click Control Panel.
    2. Click Classic View on the left pane, and double click Program and Features.
    3. Click "Turn Windows features on or off on the left" pane.
    4. In the Windows Features dialog box, uncheck all of the check boxes, and then click OK. 
    Note: If you are prompted for an administrator password or confirmation, type the password or provide confirmation.
    Step 2: Perform In-place Upgrade
    =========================
    1. Insert the Windows 7 DVD in the computer's DVD drive.
    2. Click Start and choose Computer.
    3. Please find the "setup.exe" file in the DVD-ROM and double click it.
    4. Click Install now.
    5. When we are prompted to input the product key, please click Next without inputting any key. The setup wizard will prompt and ask if you agree to install Windows 7 without the key. Please choose to confirm.
    6. When you reach the "Which type of installation do you want" screen, click Upgrade to upgrade the system files of Windows 7.
    Note: While performing the In-place Upgrade, the system will restart automatically (several times) to merge the files and programs. Please leave the computer alone and do not configure it until In-place Upgrade is completed. The system will start Windows 7 once it is upgraded.
    When the In-place Upgrade finishes please restart the computer and run Windows Update again. If anything is unclear, please don't hesitate to let me know. I am glad to be of assistance.
    I look forward to hearing from you.
    Best Regards,
    Judy xxxx
    <removed>@mssupport.microsoft.com
    Microsoft Windows Update Support Professional
    From: Scott Hill [mailto:<removed>@yahoo.co.uk]
    Sent: Friday, May 14, 2010 9:28 PM
    To: Judy xxxx (MS)
    Subject: Re: [Bulk] RE: [Microsoft] Email Regarding Case ID <removed>
    Hi Judy,
    Thanks for the reply, however, that hasn't helped - the same three updates (KB980182, KB980302, and KB978262) all still fail to install.
    What should I try next?
    Thanks, in advance,
    Scott Hill.
    From: Judy xxxx (MS)
    Sent: Friday, May 14, 2010 6:46 AM
    To: Scott Hill
    Subject: RE: [Bulk] RE: [Microsoft] Email Regarding Case ID <removed>
    Dear Scott,
    Thank you for prompt reply. I have received your attachment and I want to thank you for your time and kind cooperation on this case.
    At this time, let’s refer to the following steps to troubleshoot the issue.
    Step 1: Run Microsoft Fix It Tool 50202 to reset Windows Update components
    ==========================================================
    1. Please download the tool from the following link:
    http://go.microsoft.com/?linkid=9665683
    2. When the file download window appears, please click "Save", and follow the directions to save it to your computer.
    3. Locate the downloaded file and double click it to run the tool.
    4. Follow the steps in the wizard. When you are prompted, please click to check the box before the Aggressive option.
    5. After it is finished, please restart the computer.
    Now try Windows Update to see if the issue has been resolved.
    I appreciate your understanding that it may take some time to troubleshoot this issue. I truly hope the problem can be resolved by our mutual efforts. Thanks for your patience and cooperation.
    I am looking forward to your reply.  
    Best Regards,
    Judy xxxx
    <removed>@mssupport.microsoft.com
    Microsoft Windows Support Professional
    From: Scott Hill [mailto:<removed>@yahoo.co.uk]
    Sent: Tuesday, May 11, 2010 10:03 PM
    To: Judy xxxx (MS)
    Subject: Re: [Bulk] RE: [Microsoft] Email Regarding Case ID <removed>
    Hi Judy,
    Thank you for the reply.
    However, manually installing the updates does not work either - please see attached screen-grabs.
    What else can I try?
    Thanks, in advance,
    Scott.
    From: Judy xxxx (MS)
    Sent: Tuesday, May 11, 2010 6:55 AM
    To: 'Scott Hill'
    Subject: [Bulk] RE: [Microsoft] Email Regarding Case ID <removed>
    Dear Scott,
    Thank you for prompt reply. I want to thank you for your time and kind cooperation on this case.
    At this point, I suggest we manually install these updates to test the issue:
    1. Please visit the Microsoft Download Center: http://www.microsoft.com/downloads
    2. Use the update's ID to search for the download link.
    3. Download the update and save it (them) to the Desktop.
    4. Please install it (them) and check the result again.
    I appreciate your understanding that it may take some time to troubleshoot this issue. I truly hope the problem can be resolved by our mutual efforts. Thanks for your patience and cooperation.
    I am looking forward to your reply.  
    Best Regards,
    Judy xxxx
    <removed>@mssupport.microsoft.com
    Microsoft Windows Support Professional
    From: Scott Hill [mailto:<removed>@yahoo.co.uk]
    Sent: Friday, May 07, 2010 10:15 PM
    To: Judy xxxx (MS)
    Subject: Re: [Microsoft] Email Regarding Case ID <removed>
    Hi Judy,
    Thanks for your reply,
    Unfortunately this hasn't totally solved the issue - now, although Windows Update 'completes', it reports that the following three updates have failed:
    KB980182
    KB980302
    KB978262
    I also tried the instructions you gave in your previous email again, just in case that made any difference, but it did not.
    Is there a way to get these updates to work?
    Thanks, in advance,
    Scott.
    Moderator note; personal e-mail and full name of third party edited as per forum rules
    Scott

    -- Part 2 of email conversation with Microsoft Windows Update Support follows --
    From: Judy xxxx (MS)
    Sent: Saturday, May 08, 2010 2:00 AM
    To: 'Scott Hill'
    Subject: RE: [Microsoft] Email Regarding Case ID <removed>
    Dear Scott,
    Thank you for prompt reply. I have received your attachment and I want to thank you for your time and kind cooperation on this case.
    At this point, I suggest you try the system Update Readiness Tool via following step again:
    1. Please download and run CheckSUR tool from the link below to your desktop, according to your System Type:
    System Update Readiness Tool for Windows 7 32-bit
    http://www.microsoft.com/downloads/details.aspx?FamilyId=44e15787-66b0-4e9c-9c3b-1fc9ea40f69f&displa...
    System Update Readiness Tool for Windows 7 64-bit
    http://www.microsoft.com/downloads/details.aspx?FamilyId=914fbc5b-1fba-4bae-a7c3-d2c47c6fcffc&displa...
    2. Double click on the downloaded file to run the CheckSUR tool and restart the computer to check the results.
    Note: This tool will need about 10~15 minutes to install. Your patience is highly appreciated. For more information, please refer to the following Microsoft Knowledge Base Article: http://support.microsoft.com/kb/947821/en-us.
    I appreciate your understanding that it may take some time to troubleshoot this issue. I truly hope the problem can be resolved by our mutual efforts. Thanks for your patience and cooperation.
    I am looking forward to your reply.  
    Best Regards,
    Judy xxxx
    <removed>@mssupport.microsoft.com
    Microsoft Windows Support Professional
    From: Scott Hill [mailto:<removed>@yahoo.co.uk]
    Sent: Wednesday, May 05, 2010 5:12 AM
    To: Judy xxxx (MS)
    Subject: Re: [Microsoft] Email Regarding Case ID <removed>
    Hi Judy,
    Thank you for your reply.
    I think you may have slightly misunderstood the issue - it is not that the KB978262 does not download, nor is it that the update process completes and says that KB978262 hasn't been installed correctly.
    KB978262 downloads OK, and it start installing, it just never completes installing and Windows Update just sits there, not getting any further (see screenshot in attached zip file).
    Also, I had already tried everything you suggested, but tried them all again - it still fails to install.
    I have, as requested, attached a zip file containing a screenshot, system info and windows update log.
    Thanks in advance,
    Scott Hill.
    From: Judy xxxx (MS)
    Sent: Wednesday, May 05, 2010 3:06 AM
    To: '@yahoo.co.uk'
    Subject: [Microsoft] Email Regarding Case ID <removed>
    Dear Scott,
    Thank you for contacting Microsoft Windows Update Support. My name is Judy, and I am glad to work with you. For your reference, the case ID for this service request is <removed>. You can contact me directly by sending an email to @mssupport.microsoft.com with the case ID in the subject line.
    From the case log, I understand that you can not obtain the update KB978262. If there has been any misunderstanding, please let me know.
    I fully understand the inconvenience you have experienced. We will work together to resolve this issue through the course of the case.
    This issue can be caused by one of the following factors:
    1. The Windows Update service has been stopped.
    2. Corrupted Windows Update Temporary folder.
    In order to narrow down the cause of this issue and resolve it, please refer to the following steps. After finishing each step, please check the result again on the Windows Update website.
    NOTE: Some third party programs can affect the Windows Update service. If you are running any third party applications such as Spyblocker, Internet or web accelerators (programs designed to boost the speed of the Internet connection), security or anti-virus programs (Norton, McAfee, etc.), I recommend we temporarily disable or shut them down and then try accessing Windows Update later. Please understand that we are disabling these programs only for the purpose of troubleshooting and we can re-enable these programs after we finish troubleshooting.
    Step 1: Clean boot
    ========================
    This method will help us determine if this issue is caused by a loading program or service. Please perform the following steps:
    1. Click the "Start" Button, type "msconfig" in the search bar and press Enter.
    Note: Please click the Continue if the "User Account Control" window pops up.
    2. Click the "Services" tab, check the "Hide All Microsoft Services" box and click "Disable All" (if it is not gray).
    3. Click the "Startup" tab, click "Disable All" and click "OK".
    Then, restart the computer. When the "System Configuration Utility" window appears, please check the "Don't show this message or launch the System"
    4. Test if we can update the system in Clean Boot.
    Note 1: Temporarily disabling the Startup Group only prevents the startup programs from loading at startup. This shouldn't affect the system or other programs. We may still manually run these programs later.
    Note 2: We can check on Normal Startup in the General tab to roll back to Normal Mode after we get this issue resolved.
    Step 2: Rename the Windows Update Softwaredistribution folder
    ================================================
    1. Click "Start", in "Start Search" item, type: "notepad" (without quotes) and press Enter.
    2. Copy the following commands and then paste them into the opened Notepad window:
    net stop wuauserv
    net stop CryptSvc
    ren %windir%\system32\catroot2 catroot2.old
    ren %windir%\SoftwareDistribution sold.old
    net start CryptSvc
    net start wuauserv
    3. After pasting the above commands, please close the Notepad window. Choose "Save" when you are prompted to save the file. Type "rename.bat" as the file name and choose Desktop from the left panel as the location.
    4. Refer to the Desktop and right click the rename.bat file, then choose "Run as administrator".
    5. You will see a DOS-like window processing.
    Please test the issue again and let me know the result. If the issue persists, I will help you check the Internet Connection in our next communication. To clarify the issue and provide more accurate troubleshooting steps, please assist me in collecting the following information.
    How to capture a screenshot
    ======================
    1. Press the Print Screen key (PrtScn) on your keyboard.
    2. Click the "Start" Button, type "mspaint" in the Search Bar and Press Enter.
    3. In the Paint program, click the "Edit" menu, click "Paste". Then click the "File" menu, and click "Save".
    4. The "Save As" dialogue box will appear. Type a file name in the "File name:" box, for example: "screenshot".
    5. Make sure "JPEG (*.JPG;*.JPEG;*.JPE;*.JFIF)" is selected in the "Save as type" box, click "Desktop" on the left pane and then click "Save".
    Please send this saved JPEG file to my email account at <removed>@mssupport.microsoft.com
    How to collect the System Information
    =============================
    The System Information can provide us with more information about the current status of the system. I would like to check it for you. Please send it to me using the following steps:
    1. Click the "Start" Button, type "MSINFO32" in the Search Bar and press Enter to start System Information.
    2. On the popup window, on the menu bar, click "File", and click "Save", type a file name and then choose NFO as "Save as type", click "Desktop" on the left pane, and click Save.
    Please send it as an attachment to <removed>@mssupport.microsoft.com. If the file is too large to be sent, please right-click on the exported file, choose "Send To" -> "Compressed (zipped) Folder", and then send the zip file to <removed>@mssupport.microsoft.com for further research.
    How to collect the WindowsUpdate.log file
    ================================
    1. Click the "Start" Button, type "WindowsUpdate.log" (without the quotes) in the Search Bar and Press Enter. We will see a file named "WindowsUpdate.log"
    2. Now click on the "File" menu and then click on the "Save As".
    3. From the left panel, click "Desktop" and click the Save button.
    The file will be saved to your Desktop. Please send the file as an attachment in an email to <removed>@mssupport.microsoft.com.
    Note: When attaching files to emails, the process will vary depending on the email application being used. While you are composing the email, most applications will provide you with either an "Attach" button or Paper Clip Icon to click in order to attach a file. After clicking this button/icon you must browse to the file you wish to attach and select it by either double clicking it or clicking it once and then clicking on the "Attach" button.
    Please try my suggestion and let me know the results at your earliest convenience. If you have any other questions, please do not hesitate to let me know.
    I am standing by for your response.
    Best Regards,
    Judy xxxx
    <removed>@mssupport.microsoft.com
    Microsoft Windows Update Support Professional
    Very satisfied customers are my top priority. Please let either myself or my manager know what you think of the level of service provided. You can send feedback directly to my manager, Joshua Chen at <removed>@mssupport.microsoft.com
    Bing.com was designed to help you overcome search overload and make faster, more informed decisions when searching online. Try Bing now at http://www.bing.com
    Moderator note; personal e-mail and full name of third party edited as per forum rules
    Scott

  • Why we need ITS in application server?

    Can we say that SAP application server acts same as J2EE application server?

    Web Application Server roles are
    1. Web Application Server provides a platform to run new and existing SAP Applications.
    2. Supports ABAP for the ABAP Community
    3. Supports Java/J2ee for the J2ee community
    4. Applications can get advantages from both technologies
    5. J2ee get the new features from ABAP technology
    6. Common installation and administration
    7. Same platform for all SAP Solutions, customer enhancement and development.
    If you want to know exact information about WAS and J2EE....please refer this document
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9b11c390-0201-0010-58a1-b08d5adc3b93

  • Need Urgent Help on Meeting Place Integration with CUCM 7.1 and AS5400 PSTN Gateway

    Hi,
    This is first time I am on this forum.
    I have already tried going through a lot of docs on docwiki.cisco.com but couldn't find complete configuration help.
    I have to integrate Meeting Place 8.X with an existing CUCM and an E1 gateway (PSTN Gateway) AS5400.
    The CUCM is already part of a Telepresence Environment. I need to create a SIP trunk between AS5400 and CUCM 7.1 and then create a Trunk between AS5400 and Cisco Unified MP 8.X and then between CUMP and CUCM.
    I need help on AS5400 SIP Configs as well as parameters I need to cover on CUCM (Though I have done some basic dial-peer configs but they haven't been of much help).
    Then I also need help on AS5400 SIP configs with CUMP 8.0
    Any docs on Integration between CUMP and TP3000 will be of great help too.
    Rgds,
    Asim

    I can get the Ricoh to register as sip endpoint, it answeres then imediatly disconnects. Doing a monitor with Wireshark looks like it attempts to negotiate t38 but fails. Any idea why this fails?
    |160.260684000|         INVITE SDP (g711U)            |                   |SIP From:
    |         |(5060)   ------------------>  (5060)   |                   |
    |160.338806000|         INVITE SDP (t38)              |                   |SIP Request
    |         |(5060)   <------------------  (63435)  |                   |
    |160.339545000|         491 Request Pending           |                   |SIP Status
    |         |(5060)   ------------------>  (5060)   |                   |
    |160.547894000|         406 Not Acceptable            |                   |SIP Status
    |         |(5060)   <------------------  (63435)  |                   |

  • Web Application Context Menu - Problem posting comments

    Hi all,
    We are using SAP BW 7.0 (nw2004s) and the web interface to the reports (Web Applications). Some specific reports have to enable users to insert information about specific lines (comments about non-conformity issues). We were planning to insert documents (via context menu) integrated with portal KM.
    Using the Analyzer, we had no problem at all. All the information posted was saved in KM and we could read it using "RSA1 - Documents" and using the Analyzer. The commented value shows a flag that indicates the comment (a small "paper" picture). But when we try to use the Web Application to post this information, it is saved ok but it can only be read using "RSA1 - Documents" and not by the Web Application (it always shows no new documents) and there's no indication in the commented value at all. Has anyone seen something like that? We need to use the web interface. Using the Analyzer is not an option.
    Thanks in advance

    This is not the 2004s runtime in the 2004s system. The url you provided is the BW 3.x runtime in the 2004s system. Make sure on the client side in IE, you don't have and script blocking or popup blocking. For client side settings in IE, make sure your settings are specified as outlined in this blog:
    Troubleshoot the SAP NetWeaver 2004s BI Frontend Installation
    Also, make sure your url has the fully qualified domain name for your server.

  • Global Application Contexts - Where to set Client Identifier?

    Hi,
    I am trying to use global application contexts as part of an implementation of fine grain access control.
    This is within an eBusiness Suite environment, specifically CRM, so is a multi-tiered environment.
    Users access both Forms based screens and OA framework screens.
    I believe I need to use global application contexts as users may have multiple database sessions.
    Also, all users will login using the same database login account.
    Provided I can set a unique identifier for a user that persists throughout all their sessions I can make use of the username and client_id parameters of set_context, below:-
    DBMS_SESSION.set_context (namespace => 'XXUOM_CONTEXTS',
    attribute => 'EXEMPT_FROM_VPD_POLICIES',
    VALUE => l_exempt,
    username => USER,
    client_id => pi_user_id);
    The difficulty I am having is finding a suitable place to set the client identifier.
    I am not sure if the value is being cleared by some other code or if the value isn't being set in all sessions.
    I am using:-
    DBMS_SESSION.set_identifier (pi_user_id)
    That I call from after insert triggers on either tables icx_sessions or fnd_logins.
    However, the client identifier is always null when I query it from within the application, via:-
    SELECT SYS_CONTEXT ('USERENV', 'CLIENT_IDENTIFIER') from dual
    If I set the value via a personalisation rule within a Form, then the value remains.
    I would greatly appreciate it if someone can advise me on where I am going wrong.
    Andy

    It's a different patch.
    The patch support have given me is 9275708, FND_GLOBAL.ORG_NAME RETURNS ENGLISH, EVEN WHEN SESSION LANGUAGE IS NOT.
    This patch has been superceded by 12875860, HR SECURITY PROFILE IS NOT SET CORRECTLY.
    So we have applied patch 12875860.
    I've tried to find out from support what happened to the original patch and why it was removed/deleted rather than superceded.
    I have not found it possible to find out what each of these patches does. There's very little documentation on them.
    I have raised an SR.
    The details are 3-4943519401: How to add DBMS_SESSION.SET_IDENTIFIER() to FND_GLOBAL.INITIALIZE.
    The results of:
         select fnd_profile.value('FND_CONNECTION_TAGGING') from dual
         gives nothing on our Release 11 environment.
    select * from fnd_profile_options where profile_option_name = 'FND_CONNECTION_TAGGING';
    gives nothing.
    On Release 12, the results are:
         select fnd_profile.value('FND_CONNECTION_TAGGING') from dual;
         ENABLED
         select * from fnd_profile_options where profile_option_name = 'FND_CONNECTION_TAGGING';
         returns a record.
    Many thanks for continuing to look into this for me.
    Andy

  • Getting values from application context

    I want to set an input box with the value from the jsp getRemoteHost() in jsf page..
    In my page i have this
    <h:inputText value="#{sok.Searchstring}">...
    where the reference sok is a java bean
    public class sok
         private String Searchstring;
         public sok()
              // I want to set the Searchstring = getRemoteHost()
         public String getSearchstring()
            return this.sokVerdi;
        public void setSearchstring(String data)
            this.sokVerdi = data;
    }How can this be done? Should I avoid using http request.. couldn't I get it from the application context, and how do I do that?? I'am kinda empty on ideas to solve this very issue.

    I getting the getRemoteHost to work perfectly.. and as for getParameter() too.. but when I try doing getRemoteUser(), it gives me null.. I also did getRemoteUser() in the jsf file, and there I do get the right output..
    How come? Why do I not get the correct value from the java bean?
    public sok()
              ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();
              HttpServletRequest httpServletRequest = (HttpServletRequest)externalContext.getRequest();
              sokVerdi = "h: " + httpServletRequest.getRemoteUser();
              //sokVerdi = "g: " + httpServletRequest.getParameter("fardin");
                   //sokVerdi = "g: " + httpServletRequest.getRemoteHost();
         }

  • Multiple values in 1 application context

    All, I'm trying to return multiple values from a query and store them in an application context.
    I have an employee that can be a part of multiple divisions. I already captured emp_id:
    dbms_session.set_context('COMPANY', 'emp_id', emp_id);
    but also want to capture division_id for the person. Most people will only have 1 division_id, but some will have multiple division_id's.
    What's the best way for me to capture multiple numeric values and store them in an application context like this.
    I'm trying to set up VPD policies and don't have to have to reissue a query every time I need to access the division_id.
    Thanks,
    Jon.

    One option would be to store a comma-delimited list of the division_ids in the context and then your VPD filter can use this and the TABLE function to limit the rows:
    sql>create or replace type NumberTable as table of number;
      2  /
    Type created.
    sql>create or replace function f_number_table(
      2    p_list       in  varchar2,
      3    p_delimiter  in  varchar2 default ',')
      4    return numbertable
      5  is
      6    v_string  long := p_list || p_delimiter;
      7    v_pos     pls_integer;
      8    v_data    numbertable := numbertable();
      9  begin
    10    loop
    11      v_pos := instr(v_string, p_delimiter);
    12      exit when (nvl(v_pos, 0) = 0);
    13      v_data.extend;
    14      v_data(v_data.count) := trim(substr(v_string, 1, v_pos - 1));
    15      v_string := substr(v_string, v_pos + 1);
    16    end loop;
    17    return (v_data);
    18  end f_number_table;
    19  /
    Function created.
    Then, in your VPD package:
    -- build a list of the division_ids by looping through a cursor
    -- set the context using this list of division_ids:
    dbms_session.set_context('company', 'div_id', '10,20');
    -- later, you would replace the literal value below with a call to sys_context to retrieve it
    sql>select empno, ename, deptno
      2    from emp
      3   where deptno in (select *
      4                      from table(f_number_table('10,20')));
        EMPNO ENAME         DEPTNO
         7782 CLARK             10
         7839 KING              10
         7934 MILLER            10
         7369 SMITH             20
         7876 ADAMS             20
         7902 FORD              20
         7788 SCOTT             20
         7566 JONES             20
    8 rows selected.

  • How to define JAXP Parsers and Transformer in a Web Application Context

    Hi
    I need to define JAXP Parsers and Transformer in a Web Application Context where I can deploy this application in any J2EE Application Server without modifying the server. That means that I can't set System properties or set the jaxp.properties file. I tried to use the META-INF/services/javax.xml.transform.TransformerFactory file but it didn't work.
    Any ideas?

    Hi
    I need to define JAXP Parsers and Transformer in a Web Application Context where I can deploy this application in any J2EE Application Server without modifying the server. That means that I can't set System properties or set the jaxp.properties file. I tried to use the META-INF/services/javax.xml.transform.TransformerFactory file but it didn't work.
    Any ideas?

  • Why we need Java Class in c++ pof Serialization

    Hi,
    I'm really confused why we need java class which implements PortableObject to support complex objects of c++. If we are not using any queries or entry processors in the application can't we keep the object as serialized byte format and can't we retrieve in from the c++ deserialization.
    Please share your thoughts if there's a way if we can skip any Java implementation.
    regards,
    Sura

    feel both are doing same work. Also can anyone tell me what is teh difference between Serilization and Exgternalization.If you need someone to tell you the difference, (a) how can you possibly 'feel both are doing the same work'? and (b) why don't you look it up in the Javadoc?
    It's not a secret.

  • Different applications context in iStore

    Vi have implemented severel minisites in iStore and have a question regarding using different context for different minisites.
    Is it possible to configure the iStore in a way that different minisites can have different applications context?
    For instance:
    Insted of using common URL like
    http://server.domain.com/OA_HTML/ibeCZzpHome.jsp?a=b
    We wnat to use
    http://server.domain.com/OA_DOGS/ibeCZzpHome.jsp?a=b
    http://server.domain.com/OA_CATS/ibeCZzpHome.jsp?a=b
    So OA_DOGS always refer to a perticular miniSite (minisite=10020)
    and OA_CATS always refer to another miniSite (minisite=10021)
    Thanks Mayu

    you were not asking for a seperate ministed for different users instead ur asking for a different applications under one single domain.
    but we can have any number of minisites to address your need, just need to create them using iStore Admin responsibility, if you want to restrict some of the users to access to some of the minisites only then go for responsibility key / operating unit differentiation or see CRM Administration - Roles and Responsibilites to implement the requirement.
    there you can define 2 different responsibilities like IBE_CUSTOMER_DOGS who can only access the sites you allow him in iStore Admin, IBE_CUSTOMER_CATS allowed to see only minisites meant for CATS .
    thanks
    Praveen Reddy

  • Application context & Finegrain Security

    I tried to inplement security on table (row level) using application context & Fine grain. Policy predictate function for fine grain works fine. but when I tried to use application context & fine grain together it says no rows found all the time. So something going wrong in application context. if any body know this topic pls respond.
    null

    Actually, our aim is to change our client/server tech. to web enabled.
    According to my study in google and in oracle forums......
    Server1:
    OS: RHEL 5
    DB: oracle database 10g
    In this server what security softwares i have to install?
    What else i have to install in server1?
    Server2:
    OS: RHEL 5
    OAS: Oracle Application Server (which version to install?)
    In oracle application server what are all the components i have to select while installing
    In this server what security softwares i have to install?
    what else i have to install in server2?
    Do i need anyother server? if yes, what i should install in that server? what is for?
    thanks

  • Application Context Security

    Is there any limitations on the value that the Application Context can hold?

    Dear Frank,
    <i>
    Instead you have a single identity management system and have the application policies being different for the applications.Using ADF Security, users and groups can have different privileges in different applications
    </i>
    suppose i have 3 applications that use adf security, the users will be common to all applications. right..?Roles and group can be different for applications.
    application polices means roles and group..?
    So how it(application polices) can be made different for applications? is it inbuilt or some configurations needed ?. Can you point me to some blogs or tutorials for more reference.
    Bet: Incase i hook up adf security with database schema.
    Regards,
    Santosh.

  • Setting session variables in application context using OpenJPA

    Hi!
    I am using openjpa 1.2 with EJB 3.0. I am connecting to Oracle 11g database and need to use the oracle virtual private database for security and data segregation. For this purpose, I need to set some custom variables at the session level of the application context such as the application user name. Since, I am using container injected EntityManager using @PersistenceContext, I am finding it hard to do so.
    Can anyone please help me out
    Thanks in advance
    Abhi

    You will probably want to ask your question on an OpenJPA forum to see if they even can support VPD (if not, see EclipseLink http://wiki.eclipse.org/Introduction_to_EclipseLink_Sessions_(ELUG)#Isolated_Client_Sessions_and_Oracle_Virtual_Private_Database_.28VPD.29 )
    You might also want to try injecting the factory instead and use that to get the EntityManager instead of injecting the em directly. ie
    @PersistenceUnit(unitName="my-pu")
    private EntityManagerFactory emf;
    Best Regards,
    Chris

Maybe you are looking for