How to authenticate interactively instead of using XSQLConfig.xml?

Is it possible to authenticate to Oracle through an HTML form and use this connection in XSQL instead of having to specify the "connection" attribute of xsql:* elements? Is there any way to avoid having the cleartext passwords in XSQLConfig.xml?
Thanks,
Maciej

Not in the current release. Most web applications our customers build are not using one database schema per effective web user, but instead an application-specific user-authentication scheme and a single, middle-tier pool of database connections that talk to the common schema objects. This is the model that XSQL implements. Using individually connected users cannot make good use of JDBC connection pooling currently.
A pluggable connection manager is on the list for a future release to allow customers to roll their own mechanism here.
The XSQLConfig.xml need only be readable by the process that runs the middle-tier servlet engine and should definitely not be located in a directory that's browseable by a web browser, but it is the current way named connection definitions are managed.

Similar Messages

  • How to authenticate OIM from AD using LDAP sync

    Hi Team,
    We do not want to use password synchronization connector for AD password sync to OIM
    After reading few article' I found two probable ways for it:
    1. Authenticate OIM via AD using libOVD with OIM and LDAP sync enable
    2. Authenticate OIM via AD using libOVD, OID and LDAP sync enable.
    Please suggest whether theses approcahes are practicaly possible or not.
    If yes then please shae related architecture docs.
    Thanks,
    Gaurav

    Here is the one of the doc:
    Configuring LDAP Authentication When LDAP Synchronization is Enabled

  • How to run java servlet without using Web.xml?

    How to run servlet without using Web.xml? From a book, I know that web.xml descriptor is optional, but the book doesn't tell us how to run java servelet without web.xm descriptor. So how to do that? Thanks a lot.

    How to run servlet without using Web.xml?But Tomcat now uses a web.xml for its global server-wide configuration.
    If you'd like to invoke a servlet with:
    http://host/servlet/ServletName
    you have to enable the invoker servlet.
    [from an HTML]
      <FORM METHOD="POST" ACTION="/servlet/HGrepSearchSJ">
    [from resin.conf of Resin Web Server 2.1.12]
      <!--
         - The "invoker" servlet invokes servlet classes from the URL.
         - /examples/basic/servlet/HelloServlet will start the HelloServlet
         - class.  In general, the invoker should only be used
         - for development, not on a deployment server, because it might
         - leave open security holes.
        -->
      <servlet-mapping url-pattern='/servlet/*' servlet-name='invoker'/>
    [from TOMCAT5.0.19/conf/web.xml, a global server-wide web.xml file]
      <!-- The "invoker" servlet, which executes anonymous servlet classes      -->
      <!-- that have not been defined in a web.xml file.  Traditionally, this   -->
      <!-- servlet is mapped to URL pattern "/servlet/*", but you can map it    -->
      <!-- to other patterns as well.  The extra path info portion of such a    -->
      <!-- request must be the fully qualified class name of a Java class that  -->
      <!-- implements Servlet (or extends HttpServlet), or the servlet name     -->
      <!-- of an existing servlet definition.     This servlet supports the     -->
      <!-- following initialization parameters (default values are in square    -->
      <!-- brackets):                                                           -->
      <!--                                                                      -->
      <!--   debug               Debugging detail level for messages logged     -->
      <!--                       by this servlet.  [0]                          -->
        <servlet>
            <servlet-name>invoker</servlet-name>
            <servlet-class>
              org.apache.catalina.servlets.InvokerServlet
            </servlet-class>
            <init-param>
                <param-name>debug</param-name>
                <param-value>0</param-value>
            </init-param>
            <load-on-startup>2</load-on-startup>
        </servlet>
    ---comment out below----------------------------------------------------------
        <!-- The mapping for the invoker servlet -->
    <!--
        <servlet-mapping>
            <servlet-name>invoker</servlet-name>
            <url-pattern>/servlet/*</url-pattern>
        </servlet-mapping>
    -->

  • How do I marshall a list using javax.xml.bind.annotation?

    Hopefully this is so simple a cave man could do it.
    I had to remove the Duke Stars for the time being. I found another bug in the program that may have resulted in my array being empty.
    I'm trying to marshall a standalone document of my DeckImpl class. It is a deck of cards of course. It contains an array of CardImpl objects that need to be marshalled too. I could not figure out how to marhall the array so I have a marshall(Marshaller m) method that will
    initialize the List (see below) with an ArrayList. I figured the marshaller would do the rest but I just get the declaration and a closed <DECK />tag with the correct attributes (see way below) when I comment out the @XmlElementWrapper, or a DECK root node that simply contains a closed <CARDS /> tag with the line enabled. You can see tha CardImpl class is annotated too.
    I must be missing something obvious. Please help.
    @XmlRootElement(name = "DECK")
    @XmlType(name = "DECK")
    public class DeckImpl implements Comparable<DeckImpl> {
        @XmlAttribute
        public int id;
        @XmlAttribute
        public boolean isShuffled;
        @XmlAttribute
        public boolean isCut;
        public CardImpl[] cards;
        @XmlElementWrapper(name="CARDS")
        @XmlElements(@XmlElement(name="CARD",type=CardImpl.class))
        public List<CardImpl> CARDS;
        private static JAXBContext context;
        private static Marshaller marshaller;
    public DeckImpl(int id, boolean isCut, boolean isShuffled,
                CardImpl[] cards) {
            this.id = id;
            this.isShuffled = isShuffled;
            this.isCut = isCut;
            this.cards = cards;
            try {
                context = JAXBContext.newInstance(DeckImpl.class);
                marshaller = context.createMarshaller();
            } catch (JAXBException ex) {
                Logger.getLogger(CardImpl.class.getName()).log(Level.SEVERE, null, ex);
    //... class code goes here
    /** Generates XML representation of a deck
         * @param writer
         * @throws javax.xml.bind.JAXBException
        public void marshall(Writer writer) throws JAXBException {
            CARDS = new ArrayList<CardImpl>(cards.length);
            for (CardImpl i : cards) {
                CARDS.add(i);
            marshaller.marshal(this, writer);
    @XmlType(name = "CARD")
    public class CardImpl implements Comparable<CardImpl> {
        @XmlElement(name = "NAME")
        public String name;
        @XmlElement(name = "SUIT")
        public String suit;
        @XmlAttribute
        public int value;
        @XmlAttribute
        public int pointValue;
    //... class code
    }The output is:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?><DECK isCut="false" isShuffled="true" id="1"/>Regards,
    Bill
    Edited by: bthayer on Jan 24, 2009 7:15 AM
    Edited by: bthayer on Jan 25, 2009 7:02 AM

    There's a bit in here on marshalling.
    http://java.sun.com/webservices/docs/1.4/tutorial/doc/index.html
    Problem with JAXB (and I could be wrong - try posting on the Web Services / XML forum) is that you can only marshal the generated classes. This may mean that you need to create the object, and populate it using the setter / getter methods.
    Castor is much more friendly for this as it can marshall objects using reflections. You may also want to look into XMLBeans (which I have no exp of)

  • HT1918 How do I get iTunes to charge my credit card instead of using up my apple credit balance?

    My credit card is offering me a $5 statement credit if I spend at least $5 on iTunes.  Problem is I have a large credit balance - how can I get iTunes to charge my credit card instead of using up my apple credit?

    If you have a balance on your iTunes account then that will automatically be used for purchases before your credit card will be - you can't change how items are billed.
    You could try gifting items to yourself, you can only gift via a credit card (I haven't tried it but I think that you should be able to gift items to yourself)
    Gifting : http://support.apple.com/kb/HT2736

  • How to get the context data using java script in interactive forms

    Hi All,
    How to get the context data using java script in interactive forms by adobe,  am using web dynpro java
    thanks.

    Hi venkat,
    Please Refer this link.
      Populating one Drop-Down list from the selection of another Drop-down list
    Thanks,
    Raju.

  • How to create interactive map in SAP Visual Business using SAP UI5 SDK

    Hi,
    Please tell me,
    How to create interactive map in SAP Visual Business using SAP UI5 SDK.
    Is it possible to create interactive map using VB Control in SAP UI5 SDK..?
    if possible please any one let me know.

    Hi folks, one question:
    We have our development close moved and now it is earlier than originally planned. 
    That means that we maybe can't finish our convenient API and you have to wait till we will release it - early 2015 is planned.
    But there is another option:
    Currently we have a API based on json. The developer has to create json and  to transfer it to the Visual Business control.
    This interface is more used as a low level API and we are developing on top the more convenient one. So all the features are the same.
    It will stay stable & compatible in the future and you can build on it.
    Do you want to use this interface?  
    Then I will publish the documentation.
    Let me know.
    Thanks

  • Trying to update iPad mini. Old email continues to appear and can't authenticate. How to remove it totally and use my iCloud I.D.?

    Trying to update iPad mini. Old email continues to appear and can't authenticate. How to remove it totally and use my iCloud I.D.?

    If you have any apps that were acquired with the old ID they will always be tied to that ID. Delete them and reacquire them with the new ID that you have in Settings > iTunes and App Store

  • If I have an iTunes gift card already redeemed on my account, than how do I buy a song using the money from the gift card instead of charging my credit card?

    If I have an iTunes gift card already redeemed on my account, than how do I buy a song using the money from the gift card instead of charging my credit card?

    Hi, in my case It did not use the balance first.  I had balance but it used my credit card.  Do I have to sign in Itunes first?  Thanks.

  • TS1538 I have just purchased an iPhone5 and created a new user instead of using my previous ID. How can I access my previous data?

    I have just purchased an iPhone5 and created a new user instead of using my iPhone3 ID. How can I access my previous data?

    don't just sign out!
    if you simply sign out, the stuff you recently purchased will be an issue in the future when an update comes out for apps or anything else. restore the device as new from itunes then restore from a back if you have one as stated above...or set up as new and use correct apple id. this will ensure you will be using the apple id that you used originally without issues from the new one.

  • How to write select statement directly in java file instead of using vo

    Hi,
    I have written the following code in my java file:
    if(empvo==null)
    empvo=worklistamimpl2.createViewObject("InvoiceVO", "xxetfc.oracle.apps.icx.icatalog.shopping.server.InvoiceVO");
    if(empvo!=null){
    OAViewObject oaviewobject2 = (OAViewObject)worklistamimpl2.findViewObject("InvoiceVO");
    OAViewObjectImpl oaviewobjectimpl = (OAViewObjectImpl)oapagecontext.getApplicationModule(oawebbean).findViewObject("InvoiceVO");
    oaviewobject2.setWhereClause("Invoice_num="+" ' " + s + " ' ");
    oaviewobjectimpl.executeQuery();
    String abc = (String)oaviewobjectimpl.first().getAttribute("Invoice_id");
    It is giving me error as
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (select invoice_id from ap_invoices_all) QRSLT WHERE (Invoice_num='ERS15022012_3')
    1. Why is this error coming.. how to solve this
    2. Instead of using vo how can i write select statement directly in the above code
    Thanks,
    Edited by: user10873676 on Apr 9, 2012 1:18 AM
    Edited by: user10873676 on Apr 9, 2012 1:21 AM

    it says java.sql.SQLSyntaxErrorException: ORA-00904: "INVOICE_NUM": invalid identifier
    where as invoice_num column is present in my table

  • Set my own key instead of using KeyGenerator.generateKey() - how?

    How can I set my own key instead of using KeyGenerator.generateKey()?
    I don´t see any method that is alowing this.

    I have now tried my own.
    To send encrypted data through a CipherOutputStream, I have done this:
    private File file;
            private CipherOutputStream cos;
            private Cipher cipher;
            private PBEKeySpec key;
            private char[] password = "test".toCharArray();
            public SendFileThread(File file)
                this.file = file;
                try
                    key = new PBEKeySpec(password);
                    SecretKeyFactory factory = SecretKeyFactory.getInstance("PBEWithMD5AndDES");
                    SecretKey pbeKey = factory.generateSecret(key);
                    cipher = Cipher.getInstance("PBEWithMD5AndDES");
                    cipher.init(Cipher.ENCRYPT_MODE, pbeKey);
                catch(Exception err) {err.printStackTrace();}
            public void run()
                byte [] mybytearray  = new byte [(int)file.length()];
                try
                    fis = new FileInputStream(file);
                    bis = new BufferedInputStream(fis);
                    bis.read(mybytearray,0,mybytearray.length);
                    OutputStream os = socket.getOutputStream();
                    cos = new CipherOutputStream(os, cipher);
                    int byteCount = 0;
                    int length = mybytearray.length;
                    while(byteCount < mybytearray.length)
                        cos.write(mybytearray[byteCount]);
                    os.flush();
                    os.close();
                    socket.close();
                catch(FileNotFoundException err){err.printStackTrace();}
                catch(IOException err){err.printStackTrace();}To receive the encrypted data and then decrypt it, I use the same password and Cipher.DECRYPT_MODE in the Cipher.init() method.
    private Socket sock;
            private DataInputStream din;
            private CipherInputStream cin;
            private BufferedOutputStream out_file;
            private Cipher cipher;
            private PBEKeySpec key;
            private char[] password = "test".toCharArray();
            public ListenForConnectionThread()
                try
                    key = new PBEKeySpec(password);
                    SecretKeyFactory factory = SecretKeyFactory.getInstance("PBEWithMD5AndDES");
                    SecretKey pbeKey = factory.generateSecret(key);
                    cipher = Cipher.getInstance("PBEWithMD5AndDES");
                    cipher.init(Cipher.DECRYPT_MODE, pbeKey);
                catch(Exception err) {err.printStackTrace();}
            public void run()
                try
                    serverSocket = new ServerSocket(2000);
                    sock = serverSocket.accept();
                    Runnable r = new Runnable()
                        public void run()
                            try
                                cin = new CipherInputStream(sock.getInputStream(), cipher);
                                out_file = new BufferedOutputStream(new FileOutputStream("received_file.txt"));
                                int inputLine;
                                while((inputLine = cin.read()) != -1)
                                    out_file.write(inputLine);
                                out_file.flush();
                            catch(Exception err){err.printStackTrace();}When I run the application, I get this error:
    java.security.InvalidKeyException: requires PBE parameters.
    Why?

  • How to authenticate Username and password in MVC using Azure Active Directory

    Need a sample application where in need to authenticate user entered logindetails using Azure Active directory.

    Hi,
    Kindly go through beneath article which helpful to understand the procedure.
    How to Authenticate Web Users with Azure Active Directory Access Control
    http://azure.microsoft.com/en-in/documentation/articles/active-directory-dotnet-how-to-use-access-control/
    Developing ASP.NET Apps with Windows Azure Active Directory
    http://www.asp.net/identity/overview/getting-started/developing-aspnet-apps-with-windows-azure-active-directory
    Adding Sign-On to Your Web Application Using Azure AD
    https://msdn.microsoft.com/en-us/library/azure/dn151790.aspx
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • HT204406 How can I subscribe to Itunes Match redeeming from itunes card instead of using credit card?

    How can I subscribe to itunes Match redeeming from itunes card instead of using credit card?

    Do you have another device (eg a computer) that also contains your music? If so, yes, you can turn off iTunes match and sync everything with a cable. Do you tend to buy new music from downloads or ripping CDs? If downloads, you can turn on "download purchases automatically" on the phone to make them available to you there, once you've cable-synced your current library. If CDs, you would have to manually sync with cable (or over local wifi) each time you add a new CD.
    Matt

  • How can I make Time Machine use the ethernet cable to Time Capsule instead of the wireless connection? Wireless is too slow; has been taking 40 hours to create an initial 142 GB backup.

    How can I make Time Machine use the ethernet cable to Time Capsule instead of the wireless connection? Wireless is too slow; has been taking 40 hours to create an initial 142 GB backup.

    Plug in ethernet .. in the computer.. turn off wireless.

Maybe you are looking for