How do I log in to WLS programatically.?

Hello All,
I'm looking to write a simple java program that logs into weblogic server (10.3) and authenticate a user in this process. I've looked at the API's and find methods like login() but also see snippets of code where environments and configurations are being set. I can't get my head around what variables need setting.
Is there a program or working piece of code that would help me achieve this? I'm using Jdeveloper 11g.
Many thanks in advance,
Regards,
PP.

Hi PP,
The following code may probably be useful for you (programmatical deployment example):
import java.io.*;
import weblogic.deploy.api.tools.*; //SesionHelper
import weblogic.deploy.api.spi .*; //WebLogicDeploymentManager
import weblogic.deploy.api.spi.DeploymentOptions;
import javax.enterprise.deploy.spi.TargetModuleID;
import javax.enterprise.deploy.spi.status.ProgressObject;
import javax.enterprise.deploy.spi.status.DeploymentStatus;
import javax.enterprise.deploy.shared.ModuleType;
import javax.enterprise.deploy.spi.Target;
public class DeployTest {
public static void main(String [] args) {
DeployTest dt = new DeployTest();
try {
dt.deploy();
}catch (Exception e) {e.printStackTrace();}
public void deploy() throws Exception {
String protocol="t3";
String hostName="localhost";
String portString="7001";
String adminUser="weblogic";
String adminPassword="weblogic";
String fileLoc ="C:\\oracle\\wls1033\\user_projects\\domains\\SR3_2484339780\\sessiontest3";
// Use getRemoteDeploymentManager when admin server is not on same machine as the archive. Automatically copies archive to the Admin server's upload directory
// WebLogicDeploymentManager deployManager=SessionHelper.getRemoteDeploymentManager(protocol, hostName,portString, adminUser, adminPassword);
WebLogicDeploymentManager deployManager=SessionHelper.getDeploymentManager(protocol, hostName,portString, adminUser, adminPassword);
System.out.println("WebLogicDeploymentManager: " + deployManager);
DeploymentOptions options = new DeploymentOptions();
options.setStageMode(DeploymentOptions.NOSTAGE);
System.out.println("\t DeploymentOptions: " + options);
Target[] targets = deployManager.getTargets();
for (Target target : targets) {
System.out.println(target.getName());
TargetModuleID myModule = deployManager.createTargetModuleID("SessionApp",ModuleType.WAR, target);
deployManager.deploy(new TargetModuleID[] {myModule}, new File(fileLoc),null, options);
You can see another example of accessing programmatically at Re: Start Admin Server using NodeManager without 'boot.properties' (in this case WLST is used programmatically).

Similar Messages

  • Why do i have two game center accounts on one apple id and how do i log into the other one

    One day while i was bored i started up a game but all of my progress items and everything that i paid for was gone and it was the same in all of my other game center related apps. After a long chain of emails with the maker of the game he stopped being helpful but we figured out that i have two game center accounts but only one apple id. So how do i log into the account with all of my data?

    Get a separate Apple ID for one of the phones. Or turn OFF iCloud contacts synching on the one you do not want contacts to synch.
    Settings>>iCloud

  • Wrong email for new ID verification email, how can I log in to change the wrong email?

    Just changed my Apple ID but after I was done I realized the email I used as my ID is wrong.  Now when I try to sign into iTunes I am being asked to verify the new ID using the verification email sent to the new email, problem being that that new email is wrong and I can't access it.  How can I log back into my account to change that email?  Help please.

    Did you get an answer to this? i have a new email and I can't verify the old one as it is blocked so can't log into it.  Any help will be appreciated.... thanks

  • HT204053 when I attempt to log in to my i Cloud account I get a message that my Apple ID is valid but not an iCloud account.How do I log in?

    When I try to log in to iCloud I get a message that my Apple ID is valid but not an iCloud account.How do I log in?

    Hi reswaikiki,
    Usually if it says your Apple ID is not an iCloud account, that means you have not yet enabled your Apple ID as an iCloud account.  So you did set it up correctly on your iPod touch?
    If not yet, please see Set up iCloud on all your devices.
    ivan

  • How to write log information into SM37 batch job log

    Hi,
    I have a report running in batch mode, and I would like to log the start time and end time for some part of the code (different Function modules). I need to write this log information into the batch job log. Therefore I can check the time frame of my FMs.
    After search the SDN, I can only get some information on how to write log into the application log displayed in SLG1, but that's not I want. I want to write batch log information, and check it in SM37.
    If you have some solution or code to share, please. Thanks a lot.
    Best Regards,
    Ben

    Hi Nitin
    Thanks for the reply. Could you explain it with some code ?
    I tried to use the write statement , but it did not wrok. I could not see the result in SM37.
    write : "start of the FM1 processing".
    FM1 code
    write : "end of the FM1 processing".
    but those two statement did not show in SM37..
    1) how to use  a information message  ?
    2) how to use NEW PAGE PRINT ON and PRINT OFF command. ?
    I would appreciate if you can write some code ,that I can use directly.
    Thanks a lot.
    Best Regards,
    Ben

  • How to run a job in background programatically after 10 sec

    Hi Forum,
    Can anyone tell me How to run a job in background programatically after 10 sec..
    Thanks in advance

    Hi,
    Here is the example code
    *Submit report as job(i.e. in background) 
    data: jobname like tbtcjob-jobname value
                                 ' TRANSFER TRANSLATION'.
    data: jobcount like tbtcjob-jobcount,
          host like msxxlist-host.
    data: begin of starttime.
            include structure tbtcstrt.
    data: end of starttime.
    data: starttimeimmediate like btch0000-char1.
    * Job open
      call function 'JOB_OPEN'
           exporting
                delanfrep        = ' '
                jobgroup         = ' '
                jobname          = jobname
                sdlstrtdt        = sy-datum    " You need to give the Date for execution the Job
                sdlstrttm        = sy-uzeit    " You need to give the Time for execution the Job
           importing
                jobcount         = jobcount
           exceptions
                cant_create_job  = 01
                invalid_job_data = 02
                jobname_missing  = 03.
      if sy-subrc ne 0.
                                           "error processing
      endif.
    * Insert process into job
    SUBMIT zreport and return
                    with p_param1 = 'value'
                    with p_param2 = 'value'
                    user sy-uname
                    via job jobname
                    number jobcount.
      if sy-subrc > 0.
                                           "error processing
      endif.
    * Close job
      starttime-sdlstrtdt = sy-datum + 1.
      starttime-sdlstrttm = '220000'.
      call function 'JOB_CLOSE'
           exporting
                event_id             = starttime-eventid
                event_param          = starttime-eventparm
                event_periodic       = starttime-periodic
                jobcount             = jobcount
                jobname              = jobname
                laststrtdt           = starttime-laststrtdt
                laststrttm           = starttime-laststrttm
                prddays              = 1
                prdhours             = 0
                prdmins              = 0
                prdmonths            = 0
                prdweeks             = 0
                sdlstrtdt            = starttime-sdlstrtdt
                sdlstrttm            = starttime-sdlstrttm
                strtimmed            = starttimeimmediate
                targetsystem         = host
           exceptions
                cant_start_immediate = 01
                invalid_startdate    = 02
                jobname_missing      = 03
                job_close_failed     = 04
                job_nosteps          = 05
                job_notex            = 06
                lock_failed          = 07
                others               = 99.
      if sy-subrc eq 0.
                                           "error processing
      endif.
    Regards
    Sudheer

  • How to delete a job in background programatically after 10 sec

    Hi all,
    Can anyone tell me how to delete a job in background programatically after the transaction is trigerred in 10 sec.
    Yours help will be greatly appreciated
    Yathish

    Have a look at standard report RSBTCDEL. May be helpful to you.
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • I created a new Apple ID for iCloud on my iPhone, but I can't seem to find a way to "sign out" or "log out" of that Apple ID (for iCloud) to sign in with another Apple ID. The only account login I could change was the Store. How do I "log out"

    I created a new Apple ID for iCloud on my iPhone, but I can't seem to find a way to "sign out" or "log out" of that Apple ID (for iCloud) to sign in with another Apple ID. The only account login I could change was the Store.
    How do I "log out" or "sign out" of iCloud on my iPhone? There is an option to delete the account, but I just want to log off. I want to keep the account name for future use.

    @fernandamagalhaes
    It looks like the article below has the information you are looking for.
    iCloud: Change iCloud feature settings
    http://support.apple.com/kb/PH2613
    Turn off iCloud completely
    Depending on whether you want to stop using iCloud on all or only some devices, do one or more of the following:
    On your iOS device’s Home screen, go to Settings > iCloud, then at the bottom of the screen, tap Delete Account.
    Note:   If you delete your iCloud account, iCloud will no longer back up your iOS data. You can still back up your device in iTunes (for more information, open iTunes and choose iTunes > Help). 
    On your Mac, open iCloud preferences, then click Sign Out.
    If your Mac has OS X v10.7.5 and you turn off iCloud, your calendar information and reminders aren’t stored locally in iCal. If you want to retain your calendar and reminder information, you need to back it up before turning off iCloud. For more information, see the Apple Support article iCloud: Calendar & reminder data removed from Calendar and Reminders or iCal when disabling iCloud Calendar.
    On your Windows computer, open the iCloud Control Panel, then click Sign Out.
    Note:   If you turned on automatic download of music, app, or book purchases (in iTunes preferences or in Settings on your iOS device), your iTunes purchases are still downloaded to your devices.
    Set up iCloud on your devices

  • I changed my name on MacBook pro, I could not log in after that though the password is unchanged but tHe name appeared on the login window is the original name?..how I can log in?

    I changed my name on MacBook pro, I could not log in after that though the password is unchanged but tHe name appeared on the login window is the original name?..how I can log in?

    Hmmm.  Maybe try this?
    OS X: Changing or resetting an account password

  • How can I turn off the WLS 6.1 security in order to develop my own application-based security module?

    Dear Colleagues,
    I am currently developing a J2EE application using WLS 6.1.
    My team and I have to implement a security requirement to suit our company's needs.
    The security requirements are that, users' password need to be aged (30 days maximum) and we need to provided a GUI front-end (JSP) to allow users to change their password when these expire after 30 days.
    Our internal contacts in the company, have already taken the lead to find out about whether we will be able to use the WLS 6.1 platform to do this and the answer we got back, was.
    Now we need to develop our own security module.
    I have 2 questions:
    1. How can we turn off the WLS security in order develop our own application-based security module?
    2. How can we develop a security module that allows us to age users' password and provide them with facilities to change their passwords when these expire?
    At the moment, we are using the default BEA WebLogic login.jsp page and there some configuration in the web.xml for this. I will be grateful if you could advise me on how to turn this default security off so that we can write our own security module.

    hi,
    1.You can write your own realm in 61 which can plugged for your security
    calls.
    2. once you write your ownrealm.. you can access it through weblogic
    api/ur api..
    thanks
    kiran
    "Richard Koudry" <[email protected]> wrote in message
    news:3dd0d081$[email protected]..
    Dear Colleagues,
    I am currently developing a J2EE application using WLS 6.1.
    My team and I have to implement a security requirement to suit ourcompany's needs.
    >
    The security requirements are that, users' password need to be aged (30days maximum) and we need to provided a GUI front-end (JSP) to allow users
    to change their password when these expire after 30 days.
    >
    Our internal contacts in the company, have already taken the lead to findout about whether we will be able to use the WLS 6.1 platform to do this and
    the answer we got back, was.
    >
    Now we need to develop our own security module.
    I have 2 questions:
    1. How can we turn off the WLS security in order develop our ownapplication-based security module?
    >
    2. How can we develop a security module that allows us to age users'password and provide them with facilities to change their passwords when
    these expire?
    >
    At the moment, we are using the default BEA WebLogic login.jsp page andthere some configuration in the web.xml for this. I will be grateful if you
    could advise me on how to turn this default security off so that we can
    write our own security module.

  • I have forgotten my password how can I log in?

    Hi I have bought a new mac book air and have already forgottten the password! How do I log in there is no data to lose

    OS X 10.7 Lion, 10.8 MountainLion & 10.9 Mavericks
    Reset Password using Recovery HD
    Boot into Recovery Partition.
    Start the computer,then press and hold down command and R keys to start into recovery partition.
    When you see the Apple logo, release the keys.
    Wait until  OS X Utilities window shows up.
    Move the mouse to the menubar at the top and click "Utilities", then select "Terminal"
    from the drop down.
    Terminal window will appear.
    Type in   resetpassword   and press enter on the keyboard.
    Leave the Terminal window open.
    Reset Password Utility window will open with Macintosh HD selected.
    Select the user account from the popup menu box.
    Enter a new password.
    Reenter the new password for the user.
    Enter a hint.
    Click the "Save" button.
    Click  in the menubar and select Restart.

  • How can i log off another device from my apple id

    some time ago i have logged in with apple id on my friends iPad. and now his son is giving me a troubles in my game Clash of Clans. i have changed my apple id password, it doesnt resolve the problem. how can i log off on his ipad remotely ??

    Go to Settings>Mail, Contacts, Calendars and look in the Mail section.  If you have an icloud account listed there, just delete it.

  • How can I log onto iCloud from my iPad when the option is in grey and therefore not available

    How can I log onto iCloud from my iPad when the option is in grey and therefore not available. I deleted my account as it was showing up with an old Id ( I'd changed my email) but now I've done that it won't give me the option of logging back on. Do I have to do this on another device Or computer linked to iTunes first?
    THanks

    Hi Kate, have you perchance enabled restrictions on your device. (Settings > General > Restrictions)

  • How do I log into a kid profile in Game Center on my Apple ID?

    Hi all,
    I have a couple of kids, a couple of iPads, and a couple of profiles in Game Center, all on my Apple ID.
    I know how to get them their own Apple IDs, but they are too young to have Apple IDs of their own, and they will be getting special underage Apple IDs at school in a year or two, so I do not want to get them Apple IDs of their own until then.
    They have their own Game Center profiles right now, on their original iPads (version 1) and iOS 5.1.
    Now, we have purchased a new iPad for one of them, with iOS 7.1, and I wish to connect the Game Center app to his profile.
    I cannot do that.
    Starting Game Center always requests an Apple ID and password. I enter mine, I get my Game Center profile.  I log out, I try to use their nicknames and my password, it does not recognize that as a valid pair and refuses to log me in. I try his nickname and his password, also no good. I try my own again, and I log in as me.
    How do I log my children into Game Center using their profiles and nicknames that are associated with my Apple ID?
    Thank you,
    Danny.

    I am having this same EXACT issue! I cannot seem to get my daughter into her GC account on anything else (including her new device)

  • How can I log out of my Apple ID on my iphone 4 because I have the iphone 5 now?

    I bought an iphone 5 but still had the iphone 4. How can i log out of my apple id on the 4 so i can sell it without worrying about someone having access to my things?

    Jae Sinz wrote:
    ...How can i log out of my apple id on the 4...
    Settings > Store > Apple ID = Log out.
    Jae Sinz wrote:
    ...so i can sell it without worrying about someone having access to my things?
    ERASE / Clear All Data
    Go to Settings > General > Reset > Erase all content and settings

Maybe you are looking for

  • AAARRRRGGGGG!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1

    I got an Ipod mini in June and have been having lots of problems that come and go. The battery hasen't been holding it's charge very long. And today I went to update it and it will only charge. Itunes dosen't show that there is even an ipod connected

  • How to connect Oracle database into Visual basic 6.0

    Hi. I am using Oracle I Enterprise version 9.2.0.1, I have a problem for connecting oracle database into VB. I use a ODBC to connect oracle database with VB. By testing connection. Message tells me that "connection successfully", but I can not have a

  • Radius servers unavailable

    Hello fellow Cisco forum members.  I have an odd problem. First our environment: 2 WLC5508 + 2 Cisco ISE 1.2 Since we are an university we offer eduroam. The principe of eduroam is that you send the requests to the partner universities. When someone

  • Question re. mail application

    I try to attach a pdf file to my message. The pdf file is copied at the end of message but I would like to simply attach the file to my message so that my friend can open the file and print it otherwise he has to print the complete message. Please he

  • Error when trying to  dispay the web page

    java.lang.NullPointerException      at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:683)      at javax.faces.webapp.UIComponentTag.encodeBegin(UIComponentTag.java:591)      at javax.faces.webapp.UIComponentTag.doStartTag(UIC