Put the username and password

Hello
I have this:
<login xsi:type="database-login">
<driver-class>com.mysql.jdbc.Driver</driver-class>
<connection-url>jdbc:mysql://hots:3309/bdd</connection-url>
</login>
I would like to put the username ans the password ?
How to do ?
Thanks in advance.
Benoît

Below's an extract from a sessions.xml file I had handy. But instead of hand editing your sessions.xml I recommend using the Workbench. Then you don't have to worry about the details of the schema.
--Shaun
      <login xsi:type="database-login">
         <platform-class>oracle.toplink.platform.database.oracle.Oracle10Platform</platform-class>
         <user-name>scott</user-name>
         <password>3E20F8982C53F4ABA825E30206EC8ADE</password>
         <sequencing>
            <default-sequence xsi:type="table-sequence">
               <name>Default</name>
            </default-sequence>
         </sequencing>
         <driver-class>oracle.jdbc.OracleDriver</driver-class>
         <connection-url>jdbc:oracle:thin:@localhost:1521:ORCL</connection-url>
      </login>

Similar Messages

  • How can i clear the usernames and passwords history from all login websites?

    how can i clear the usernames and passwords in the log in history of the websites? example when i want to login to my facebook i always type first letter of my e-mail and it comes with the passwords because before i put remember my password, and in other websites so, i just need to delete all this login history and it's not working from the clear everything !!! :S any idea please !! thanks in advance :)

    See:
    http://kb.mozillazine.org/Deleting_autocomplete_entries
    http://kb.mozillazine.org/Password_Manager

  • Pass the username and password in URL to auto log in the application from SharePoint List

    how to Pass the  username and password in URL to auto log in the application from SharePoint List  
    I have a link  in my SharePoint list  when user try to open the link its asking username and password .i want to put username and password in URL to auto log in into that external URL from sharepoint
    please help me it is possible

    Check out
    http://serverfault.com/questions/371907/can-you-pass-user-pass-for-http-basic-authentication-in-url-parameters
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • How do i send the username and password to yahoo web page through url

    how do i send the username and password to yahoo web page through url i.e as Query string so that my account in yahoo will open...

    If you don't mind using a library, then download and use the Apache HttpClient library. It takes care of all these details for you.

  • How to catch exception while validating the username and password in hbm

    Hi,
    I do want to set the username and password dynamically in hibernate.cfg.xml
    Here below is my configuration file.
    {code<hibernate-configuration> 
    <session-factory> 
           <property name="hibernate.bytecode.use_reflection_optimizer">false</property> 
           <property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property> 
           <property name="hibernate.connection.pool_size">10</property> 
           <property name="show_sql">true</property> 
           <property name="hibernate.dialect">org.hibernate.dialect.OracleDialect</property> 
           <property name="hibernate.hbm2ddl.auto">update</property> 
           <property name="current_session_context_class">thread</property> 
           <property name="show_sql">true</property> 
         </session-factory> 
    </hibernate-configuration>{code}
    Also im getting that session factory object like the below code.
    public class Sessions {        private static SessionFactory sessionFactory;      private static Configuration configuration = new Configuration();        static {          try {              String userName = GuigenserviceImpl.userName;              String password = GuigenserviceImpl.password;              String hostName = GuigenserviceImpl.hostName;              String portNo = GuigenserviceImpl.portNo;              String sId = GuigenserviceImpl.sId;                  configuration                      .setProperty("hibernate.connection.username", userName);              configuration                      .setProperty("hibernate.connection.password", password);              configuration.setProperty("hibernate.connection.url",                      "jdbc:oracle:thin:@" + hostName + ":" + portNo + ":" + sId);                try {              configuration.configure("/hibernate.cfg.xml");              sessionFactory = configuration.buildSessionFactory();              GuigenserviceImpl.strAccpted = "true";              }              catch (Exception e) {                    e.printStackTrace();                  GuigenserviceImpl.strAccpted = "false";              }            }          catch (HibernateException hibernateException) {              GuigenserviceImpl.strAccpted = "false";              hibernateException.printStackTrace();          }          catch (Throwable ex) {                GuigenserviceImpl.strAccpted = "false";              ex.printStackTrace();              throw new ExceptionInInitializerError(ex);          }      }          public static SessionFactory getSessionFactory() {          return sessionFactory;      } 
    So, in this above scenario, suppose if im giving the wrong password means exception should be caught and the string variable "GuigenserviceImpl.strAccpted" should be assigned to false.
    But im getting the SQL Exception only in console like wrong username and password. And finally i couldn't able to catch the exception in Sessions class, static block.
    Anyone can help me in catching that SQL Exception in my Sessions class and i need to handle that SQL Exception in my class.
    Im getting this following exception message in my console.
      INFO: configuring from resource: /hibernate.cfg.xml  Apr 6, 2009 2:47:00 PM org.hibernate.cfg.Configuration getConfigurationInputStream  INFO: Configuration resource: /hibernate.cfg.xml  Apr 6, 2009 2:47:00 PM org.hibernate.cfg.Configuration doConfigure  INFO: Configured SessionFactory: null  Apr 6, 2009 2:47:00 PM org.hibernate.connection.DriverManagerConnectionProvider configure  INFO: Using Hibernate built-in connection pool (not for production use!)  Apr 6, 2009 2:47:00 PM org.hibernate.connection.DriverManagerConnectionProvider configure  INFO: Hibernate connection pool size: 10  Apr 6, 2009 2:47:00 PM org.hibernate.connection.DriverManagerConnectionProvider configure  INFO: autocommit mode: false  Apr 6, 2009 2:47:00 PM org.hibernate.connection.DriverManagerConnectionProvider configure  INFO: using driver: oracle.jdbc.driver.OracleDriver at URL: jdbc:oracle:thin:@192.168.1.12:1521:orcl  Apr 6, 2009 2:47:00 PM org.hibernate.connection.DriverManagerConnectionProvider configure  INFO: connection properties: {user=scott, password=****}  Apr 6, 2009 2:47:01 PM org.hibernate.cfg.SettingsFactory buildSettings  WARNING: Could not obtain connection metadata  java.sql.SQLException: ORA-01017: invalid username/password; logon denied        at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)      at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:131)      at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:204)      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:406)      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:399)      at oracle.jdbc.driver.T4CTTIoauthenticate.receiveOauth(T4CTTIoauthenticate.java:799)      at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:368)      at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:508)      at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:203)      at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:33)      at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:510)      at java.sql.DriverManager.getConnection(DriverManager.java:525)      at java.sql.DriverManager.getConnection(DriverManager.java:140)      at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)      at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:84)      at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2073)      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1298)      at com.beyon.ezygui.server.Sessions.<clinit>(Sessions.java:39)      at com.beyon.ezygui.server.GuigenserviceImpl.testRPC(GuigenserviceImpl.java:322)      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
    Thanks in advance.
    Thanks & Regards,
    Kothandaraman N.

    Hi,
    Myself hardcoded that username and password checking like the below code.
    String name = loginData.get("userName").toString();
              String pswd = loginData.get("pswd").toString();
              String hstName = loginData.get("hName").toString();
              String prtNo = loginData.get("portNo").toString();
              String sid = loginData.get("sId").toString();
              SessionFactory sessionFactory = null;
              try {
                   if (name.trim().equals(userName) && pswd.trim().equals(password)
                             && hstName.trim().equals(hostName)
                             && prtNo.trim().equals(portNo) && sid.trim().equals(sId)) {
                        sessionFactory = Sessions.getSessionFactory();
                        strAccpted = "true";
                   } else {
                        strAccpted = "false";
              } catch (Exception e) {
                   e.printStackTrace();
                   strAccpted = "false";
              }I have my own values in string objects, then comparing that values with the values from login form. If both values are matching, then i will do configurations in hibernate.
    ResourceBundle resourceBundle = ResourceBundle
                   .getBundle("com.beyon.ezygui.server.Queries");
         public static final String connection_url = resourceBundle
                   .getString("connection.url");
         public static final String userName = resourceBundle.getString("userName");
         public static final String password = resourceBundle.getString("password");
         public static final String hostName = resourceBundle.getString("hostName");
         public static final String portNo = resourceBundle.getString("portNo");
         public static final String sId = resourceBundle.getString("sId");The above are the String objects i'm checking for the match with values from login form.
    Thanks & Regards,
    Kothandaraman N.

  • Can't get FaceTime to work...any suggestions...it just keeps me in this loop of asking to sign in, then verifying, then asking to sign in again. I know the username and password are correct.

    Can't get face time to work. Know the username and password are right. Asks me to sign in...verifying... And then goes back to sign in...

    One thing that worked for me:
    launched Message app which uses the same backend as Facetime. If it launches, click on the video. May display a Error Dialog. Call AppleCare and give them the number displayed. This will give them the needed info to check your AppleID account for the messaging servers
    For some reason FaceTime did not display this error, yet once I gave the Support person the number it was fixed in just a minute.
    YMMV

  • Dear Apple I buy a refurbish iPhone 5s the IMEI ******* and ICCID ******** and i restored the device when i restored its locked to iCloud and i don't know the username and password i hope to help me about the problem asap.  Best regard

    Dear Apple
    I buy a refurbish iPhone 5s the IMEI ******** and ICCID ********** and i restored the device when i restored its locked to iCloud and i don't know the username and password i hope to help me about the problem asap.
    Best regard
    <Edited by Host>

    This is a user forum. You aren't talking to Apple here.
    Return your iPhone for a refund. There is no way to remove the Activation Lock. Apple won't get involved.
    <Edited by Host>

  • Getting the Username and password Of Enterprise Portal in WebDynPro

    Hi Friends,
              I have developed one webdynpro application to read the excel sheet from KM Repository. i have used URL to open the connection to that excel file and to get the Inputstream.
              While opening the connection to the excel, I've hardcoded the username and password. I need to get the username and password of the user who login into the Enterprise portal and runs that application. then  i need to pass that username and password along with URL of the Excel sheet.
              Could you people find the solution and replied to me. I am waiting for your bright answer.
    Thanks and Regards,
    Sandeep Kumar Bonam.

    A very standard question in this forum.
    Refer this :
    Re: How to get User Id in Web dynpro application
    Regards,
    Subramanian V.

  • What is the username and password for the web page on the hp deskjet 2540 printer?

    I need to administer my Deskjet 2540 through my web browser, but do not know the username and password. When it says log in it says 'The server http://[ip adress] requires a pasword. The server says: admin.' I have tryed to use admin as the usermane and no password but it does not work. Is there a way to reset the pasword?
    Thanks

    Hello there @Aokvilla , Welcome to the Forums!
    For the issue you are having, I would recommend trying a different web browser for starters, and if that doesn't help, follow the instructions below from another post with a resolved solution. If those steps don't help, the problem could be your router.
    HP printer requires a username and password by @pcwizard 
    Good luck!
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

  • While entering the username and password in OEM, it is showing error : java.lang.ClassNotFoundException: _database._instance._sitemap._sitemap

    After starting OEM and entering the username and password , it is showing error : java.lang.ClassNotFoundException: _database._instance._sitemap._sitemap

    >
    Your reply might be useful, but it is still not a suitable answer for my question. >You might try reading it again, because you've absolutely missed the point.
    >
    I am familiar with NetBeans, because I have built many websites by this tool before, I don't want to change to other IDEs, ..>Nobody suggested 'another IDE'.
    Oh, and your 'hurry' is none of my business or concern. But if you are in such a gosh-darn hurry, it might be useful to read replies carefully - otherwise you might end up wasting a great deal of time.

  • Passing the username and password via report link

    How can I pass the username and password via the reprt link?
    thanks all.
    Ahmad Esbita

    Hi,
    Jigar Oza
    Thanks for u r reply, i have tried with application integrator but there is a problem with usermapping.
    now what i have done is created HTTP System based on this system created URL iView,in application parameters username and password as MappedUser and MappedPassword every thing is working fine. user  logged in automatically when he logged into portal.
    there are tabs ,links in application .when i click on tabs or links it is assking to enter username and password of the application.
    did i do any thing wrong in creating HTTP system or URL iView,
    what are the necessary properties should be given.
    replys are highly appreciated.
    Regards
    K Naveen Kishore

  • Hi I bought an iPhone from my friend who forgot the username and password, and now my iPhone Aktyvyshn code and that it wants to register Forgot your password to her email, please guide me

    Hi I bought an iPhone from my friend who forgot the username and password, and now my iPhone Aktyvyshn code and that it wants to register Forgot your password to her email, please guide me

    You can NOT do so. Only the owner of the account used to lock the phone can remove it. Instructions for how to do so can be found within or linked from within the document I already linked to.
    Activation lock is an anti-theft feature designed to make the device useless to anyone other than the rightful owner.
    If your friend refuses to give your money back and can not or will not remove the activation lock, there is a fair possibility that the phone was not theirs to sell in the first place.

  • Changing/Assigning the username and password for dataprovider.

    I'm creating a simple login screen, that would take the username and password from textboxes and replace those (mines actually) that was used in the dataprovider when the IDE sets the DP up when binding to an object. If someone has another approach I'm open to suggestions.

    I'd look in the Keychain first.

  • What is the username and password

    I HAVE A PROBLEM WITH THE USERNAME AND PASSWORD.
    I DOWNLOADED A ORACLE 8i PERSONAL EDITION,
    BUT IT DIDN'T ACCEPT THE USERNAME & PASSWORD BECAUSE IT CAME OUT WITH THE ERROR:
    ORA-12154
    PLEASE HELP ME OUT!!!!!!!!!!!!!
    THANK'S ALL

    which personal oracle you have downloaded ?
    if it polite (personal oracle lite) and platform is win9x than you have to use
    system/manager@odbc:polite . this is because
    it is connected through odbc and dsn is created during installation.
    viral
    [email protected]
    null

  • HT5295 How do I automatically sync a "private" podcast where I have to manually input the username and password? It syncs in my iTunes but gives me an error on my iPod.

    How do I automatically sync a "private" podcast where I have to manually input the username and password? It syncs in my iTunes but gives me an error on my iPod?

    Is this an iLife installation disk or system install disk?  In either case download the demo version of   Pacifist and open the install package on the disk.  Locate iPhoto and use Pacifist to install iPhoto.  Then you'll need to apply the latest updater from the Apple Downloads webpage:
    Apple - Support - Downloads.  Just search for the iPhoto version you installed to get the updaters for that version.
    OT

Maybe you are looking for

  • How to specify a policy file in a WS client (AXIS2)

    I am trying to access a dot net web service and i want to make use of the policy file they gave me. i read that AXIS2 supports WS-Policy in the client side but i still can not figure out how to tell the client to use the file. I searched thouroghly f

  • Apps not showing on new iPad

    Just purchased an iPad Air and already own an iPad Mini and iPhone. Using the same iTunes account, it doesn't show purchased apps on my Air when I go into the App Store.  Some apps work, others don't.  The ones that don't, I deleted to reinstall.  Wh

  • How to format/customize system time?

    Hi everybody, I am Giridhar working as an Engineer in I-Design. Presently I am working with one of the database application, in which data will be stored in 24X7.And it is doing good while logging. According to the industry's time the day starts with

  • The best use of a new battery

    Already I have bought the new battery. Now I would ask about the best way to use it. As a matter of fact 90% of the time I use the iBook at home. What is it better, to use the old battery that still has an hour of duration and to bring the new one fo

  • Why can't I open "new" in Pages suddenly?

    No response when I click on "New " in Pages immediately after I open it. If I open "Files" it lists my documents, but I am trying to simply open a new document to start typing. Never has happened before. It is like frozen. I was working on Photoshop