Can you explain steps in the Async and Sync scenarios JDBC to RFC.

Hi,
Can you explain some basic steps in the Async and Sync scenarios for sending data from JDBC to RFC.
Like,
The data is picked up from the  database table through JDBC adapter.
It is passed on to SAP  by calling the RFC. RFC gets executed         
successfully. The status is returned by the RFC. The status needs to be
updated back into the SQL database table.
Is this a sync case or async case.
What si the diffrences in the sync and async scenarios in the above JDBC to RFC scenarios.
Soorya

hi check the below link
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5474f19e-0701-0010-4eaa-97c4f78dbf9b
JDBC Synchronous call using BPM  
Data Types -
1) File Input
2) JDBC Req
3) JDBC Response
4) File Response of similar type of JDBC Response.. ( This you can avoid also..let it be for first time)
Message Types
4 for each data type
Message Interfaces
1) Async, Outbound, Interface, to receieve the file
2) Async, Inbound , Interface to send the file from XI
3) Async, Absract , Interface of type File message type to recieve the message in the BPM
4) Sync, Abstract Interface with Req message type as File Request, and Response Message type as a file Response
5) Sync , Inbound interface for JDBC with Input message type as a JDBC Request and Output Message type as a JDBC Response
Message Mapping:
1)Mapping between File Req to the JDBC req
2) JDBC Response to File Response
Interface mapping:
1) Sender Interface as a Sync,Abstract Interface created for the file type and target interface as Synchrnous JDBC interface.
Use corresponding mapping for Req and Resp..
note:reward points if solution found helpfull.....
regards
chandrakanth.k

Similar Messages

  • Hello, we have both Creative Cloud and Creative Cloud for teams. Can you help me with the difference and if i need to have both?

    Hello, we have both Creative Cloud membership and Creative Cloud for team. Can you help me with the difference and if i need to have both? We have 9 employees that are using it. Just not sure if i'm paying for something i don't need.
    Thank you

    Please refer to Creative Cloud Help | Creative Cloud / Common Questions
    CC is for retail use with 20 GB of storage space, CCT is where number of seats are purchased & assigned by one program admin where each seat gets 100GB of storage space.
    You can not have both the CC & team in one account as it will only provide you added storage space of 120 GB but you can activate the CC any of them or either of them twice as CC is based on Adobe ID.
    Regards
    Rajshree

  • When taking a picture with home button and sleep button can you get rid of the tool and task bar??

    When taking a picture with home and sleep button can you get rid of the tool and task bar?? (the search bars)

    No, but you can use any picture editing tool to crop out the bars.  (Many are free in the App Store.)  Me personally, I use PhotoPad, which I use to crop as well as rotate the screen shot.  Takes less than a minute to do both with PhotoPad.

  • Can you mix calls to the Posix and native thread librariess?

    Is it possible to mix calls to different thread libraries within the same process.
    We have a shared library interface to our product which is called from a customers application. In order to provide a thread safety we need to protect global data in this library with a mutex. However we do not know which thread library (if any) will be used by the calling application.
    If we used a Posix mutex in our library would it work if the calling application was implemented using non-Posix threads?
    Are the Posix and Solaris thead header files different interfaces to the same underlying implementation?
    What overheads are there loading the thread library when it is not needed? If for example the calling application was implemented without using threads.
    Would we have to test our interface with the different thread implementations available? eg /usr/lib/lwp/libthread.so, /usr/lib/sparcv9/libthread.so as well as /usr/lib/libthread.so.

    I know the author of the original post wrote this long ago, but I thought I'd write a reply in case anyone else stumbles on this like I just did.
    Is it possible to mix calls to different thread
    libraries within the same process.Yes. Though you have to be careful about compilation and link flags, and the order of libraries specified on the link command-line (-lpthread and -lthread). For complete information, refer to the Solaris "Multithreaded Programming Guide", available at http://docs.sun.com in the the Solaris 8 (or whatever version) Software Developer Collection.
    If we used a Posix mutex in our library would it work
    if the calling application was implemented using
    non-Posix threads?Yes.
    Are the Posix and Solaris thead header files different
    interfaces to the same underlying implementation?Yes, I believe so. POSIX specifies an interface. I think the Solaris threads implementation was part of the Solaris OS before pthreads were supported on it. Anyway Solaris really uses "LWPs" (Lightweight Processes) at the kernel level, and user-level threads (POSIX or Solaris threads) are mapped onto LWPs.
    What overheads are there loading the thread library
    when it is not needed? If for example the calling
    application was implemented without using threads.You should never link to the thread library when it is not needed. It results in unnecessary overhead. This is documented in the book mentioned above.
    Would we have to test our interface with the different
    thread implementations available? eg
    /usr/lib/lwp/libthread.so,
    /usr/lib/sparcv9/libthread.so as well as
    /usr/lib/libthread.so.I don't think so, but judge for yourself; I suspect if any inconsistent behavior is found it will have more to do with defects in these implementations than in your own code. On Solaris 8:
    - /usr/lib/libthread.so is the default Solaris threads library that does a many-to-many mapping of user-level threads to kernel-level-lwp's
    - /usr/lib/lwp/libthread.so is the "alternate" Solaris threads library that does a 1-to-1 mapping of user-level threads to kernel-level-lwp's
    - /usr/lib/sparcv9/libthread.so I think is the fully 64-bit version of the default libthread
    Hope this helps somebody.

  • Apple TV - can you have 1 in the lounge and 1 in the bedroom and watch different things even if working off the same Wifi?

    Hi There!
    Sorry for what may be a stupid question but I really have no clue when it comes to Apple TV's!
    It is my boyfriends birthday coming up and I would love to get him an Apple TV for his gift. The problem I have is that he lives at home and his Dad already has a whole entertainment system thing going on in the lounge with the full works, including an apple TV which he controls from his ipad.
    If I was to get my boyfriend his own ATV for his bedroom, would this mean he could watch seperate content to his dad in the lounge? Can they be controlled seperately?
    As an additional qs, he doesnt have an iPad but has an iPhone - this is ok to use with it isnt it?
    Any advice would be greatly appreciated!
    Many thanks!

    Absolutely. During setup each AppleTV can be named differently (Bedroom ATV, Living Room ATV, AppleTV, etc). and then you have the option of password protecting it so you have some control over access.
    The iPhone has an app called Remote - and it works awesome. I've never used the iPad but my iPhone is a great replacement for that stick of gum they call a remote that comes with the ATV. It's a free app written by Apple... easy to find and braindead easy to use. It even gives you a touchpad like area to quickly scroll and select items on screen.
    The only thing that could be a deal breaker is wifi signal quality and wifi speed in his bedroom. If he can stream to other devices in his bedroom - the ATV will work perfectly.

  • Can you share spreadsheets between the mac and an ipad

    My wife downloaded numbers for her ipad and is working on a spreadsheet that she would like to open on our imac or mac book pro.  The spreadsheet is shared between her ipad and iphone; can it be shared via icloud with the imac?

    Yes. Go to the iCloud web site, log in, go to the Numbers tab, and drag the file from the web page to the desktop of your Mac.

  • Can you run SQL in the portal and create a drop down list??

    Can anyone tell me if its possible to create a drop down list using sql in the portal?
    Can I create a drop down list of items via sql and then have those same values be used for a discoverer portlet? I am trying to replicate the same concept using parameter values and discoverer worksheets, but through sql. I dont want to have to cut and past lists on the parameter fields. I want to be able to run sql when I post a discoverer worksheet with a parameter and have the values from the sql pass into the worksheet.
    Is that possible???

    I created a lov but i cannot post it on my portlet. When i go to post a portlet, under the db_link, portlet reposistory it does not show.? Also, how do make the connection to the discoverer worsheets to this lov?
    thanks,

  • Can you still go to the corners and change screens?

    I bought a new IMac and don't seem to be able to go to a corner and switch screens when I have multiple screens (windows) open. Is it no longer a feature?

    Maybe:  System Preferences, Mission Control, Hot Corners (down in the lower left).
    charlie

  • Can you rename "Trash" in the Dock and Mail in Lion? It sounds odd to us Brits.

    I just want to call it a bin.

    "Unless my memory has gone AWOL, my last OS (10.5) had the word "Eject" when a disc was dragged over the trash."
    It hasn't and that still is the case in Snow Leopard. I don't care for the use of "Trash" in Lion when ejecting a disk.
    I've submitted feedback to that extent.

  • Can I download QuickTime on the IPad and if so how?

    Can you download QuickTime to the IPad and if so how?

    See this Discussion
    https://discussions.apple.com/message/16162190#16162190

  • Can you explain when using keywords and addding them to various clips pressing ctrl and a number eg. 1 or 2 it simply closes down FCPX.  Just to the dock as would th yellow -sign. As you gather I am new to this program having only used Final Cut Express 4

    Can you explain when using keywords and addding them to various clips pressing ctrl and a number eg. 1 or 2 it simply closes down FCPX.  Just to the dock as would the yellow -sign.  I am new to this program having only used Final Cut Express 4 previously.
    iMac (early 2009) 24in 2.93GHz 4GB 1066MHz DDR3 SDRAM (To be upgraded ot 8GB in the nextfew days) os x 10.7.2 Lion
    Re: Why don't my arrows on the time line operate and allow me to move to the start and end of the timeline. Iam using the trial version 

    Check System Preferences. I think Control-1 is used by something in the OS now. Switch it off. It's a major p[ain the way the OS is taking over more and more of the keyboard, allowing less options for application use.

  • I have a I Mac 7.1 operating on version 10.5.8.  I have purchased many songs that reside on my PC andf I want to share them with my I Phone 4.  Can you take me through the steps necessary to be able to share and then play these albums on my I phone 4?

    have a I Mac 7.1 operating on version 10.5.8.  I have purchased many songs that reside on my PC andf I want to share them with my I Phone 4.  Can you take me through the steps necessary to be able to share and then play these albums on my I phone 4?

    After you connect the iPhone to your Mac launch iTunes.
    Select the iPhone under Devices left side of the iTunes window.
    Select the Music tab from the menu.
    Make your selections for the songs you want synced the click the Sync button bottom right side of the iTunes window.
    The iPhone user guide will come in handy ...
    http://manuals.info.apple.com/en_US/iPod_touch_iOS4_User_Guide.pdf

  • TS1811 Hi!! I am a user of i Pod 5g 32GB....I got the same problem for which the solution is given above....but the thing is that.......in my laptop I have a windows operating system....that is windows 7....so can you explain how to do settings in Windows

    Hi!! I am a user of i Pod 5g 32GB....I got the same problem for which the solution is given above  "
    iTunes for Mac reports error -50 when trying to authorize iTunes Store purchases
    "....but the thing is that.......in my laptop I have a windows operating system....that is windows 7....so can you explain how to do settings in Windows 4 same

    Archived - iTunes for Mac reports error -50 when trying to authorize iTunes Store purchases
    Products Affected
    iTunes 7 for Mac, iTunes 8 for Mac, iTunes 9 for Mac
    This article has been archived and is no longer updated by Apple. 
    Symptoms
    After installing the Mac OS X 10.4.9 Update, iTunes may be unable to properly authorize your computer to play your iTunes Store purchases.
    Resolution
    The following steps will delete your network preferences. Most broadband connections do not require any special settings to connect, but if your connection does or if you are not sure, please contact your ISP or network administrator for further assistance.
    Important: You must be logged in as an Administrator.
    Click the Finder icon in the Dock.
    Choose Go to Folder from the Go menu.
    Type /Library/Preferences/SystemConfiguration
    Click Go.
    In the Finder window, locate the file named NetworkInterfaces.plist.
    Drag this file to the Trash.
    Restart the computer.
    Once your computer has restarted. You will not be able to connect to the Internet. Now you will need to refresh your network settings to be able to connect again.
    Choose System Preferences from the Apple menu.
    Choose Network from the View menu.
    To refresh your network settings, from the Location pop-up menu, choose New Location.
    Type a name for your location and click OK.
    Click the Apply Now at the bottom right to accept the changes.
    If your network connection requires any special settings, you will need to put them back in at this point. Once you have made these changes you should be able to connect to the Internet again and authorize your computer to play your iTunes Store purchases.

  • Could someone please explain to me how to set-up my Apple ID so that both my password AND security questions have to be answered before access is granted? Is this possible? I am not very computer smart, so could you explain step-by-step!Very Appreciated!

    Could someone please explain to me how to set-up my Apple ID so that both my password AND security questions have to be answered before access is granted? Is this possible? I am not very computer smart, so could you explain step-by-step!Very Appreciated!

    The security questions will only be asked on the first purchase on a computer or device (though people have occasionally posted that they've asked for them when it isn't the first time) - I'm not aware of any way to change that. You can force the password to be required on your iPad via Settings > General > Restrictions > Require Password set to 'Immediately' (the default is a 15 minute period during which it doesn't need re-entering)

  • IPhone 4S Battery Life: Best solutions and procedures for 1st time user: 1-Do you have a battery life issue (learn first what the usage time spec is about) 2-What can you try to remedy the situation without reading 500 pages of posts

    What follows is a grouping of some of the most fruitful procedures - from what I've seen in the biggest battery life issue thread - and some background information and discussion for solving or improving the battery life with the iPhone 4S and may be applicable also to devices on which iOS 5.0/5.0.1 has been applied. Credit goes to the respective users who contributed this information to the forum and they should be commended for doing so. This is not a final listing. The goal here is to provide a first stop sort of knowledge base document for newcomers instead of having them perusing the never ending threads where the wheel is reinvented on every page...
    Please don't post your questions, usage screenshots, or claims that it worked or not for you or anything here except PROCEDURES/DEBUG STEPS/SOLUTIONS or improvements to the procedures already listed here. Try to use point form and to be as concise and clear as possible. Hope all this helps.
    Thank you and good luck!
    General info and specs
    First, take a look Apple's battery tips, info and specs(obligatory reading for all Iphone 4S users - read it once and for all):
    http://www.apple.com/batteries/iphone.html
    http://www.apple.com/batteries/
    ... you didn't read it? loll Always remember this i.e. the definition of "usage":
    Usage: Amount of time iPhone has been awake and in use since the last full charge.  The phone is awake when you’re on a call, using email, listening to music, browsing the web, or sending and receiving text messages, or during certain background tasks such as auto-checking email.
    I'm still not convinced you read the links so here's what Apple has to say in terms of fine tuning your battery life:
    Optimize your settings
    Depending on how they are configured, a few features may decrease your iPhone battery life.  For example, the frequency with which you retrieve email and the number of email accounts you auto-check can both affect battery life. The tips below apply to an iPhone running iOS 5.0 or later and may help extend your battery life.
    Minimize use of location services: Applications that actively use location services such as Maps may reduce battery life. To disable location services, go to Settings > General > Location Services or use location services only when needed.
    Turn off push notifications: Some applications from the App Store use the Apple Push Notification service to alert you of new data. Applications that extensively rely on push notifications (such as instant messaging applications) may impact battery life. To disable push notifications, go to Settings > Notifications and set Notifications to Off. Note that this does not prevent new data from being received when the application is opened. Also, the Notifications setting will not be visible if you do not have any applications installed that support push notifications.
    Fetch new data less frequently: Applications such as Mail can be set to fetch data wirelessly at specific intervals.  The more frequently email or other data is fetched, the quicker your battery may drain. To fetch new data manually, from the Home screen choose Settings > Mail, Contacts, Calendars > Fetch New Data and tap Manually. To increase the fetch interval, go to Settings > Mail, Contacts, Calendars > Fetch New Data and tap Hourly. Note that this is a global setting and applies to all applications that do not support push services.
    Turn off push mail: If you have a push mail account such as Yahoo! or Microsoft Exchange, turn off push when you don’t need it. Go to Settings > Mail, Contacts, Calendars > Fetch New Data and set Push to Off. Messages sent to your push email accounts will now be received on your phone based on the global Fetch setting rather than as they arrive.
    Auto-check fewer email accounts: You can save power by checking fewer email accounts. This can be accomplished by turning off an email account or by deleting it. To turn off an account, go to Settings > Mail, Contacts, Calendars, choose an email account, and set Account to Off. To remove an account, go to Settings > Mail, Contacts, Calendars, choose an email account, and tap Delete Account.
    Turn off Wi-Fi: If you rarely use Wi-Fi, you can turn it off to save power. Go to Settings > Wi-Fi and set Wi-Fi to Off. Note that if you frequently use your iPhone to browse the web, battery life may be improved by using Wi-Fi instead of cellular data networks.
    Turn off Bluetooth: If you rarely use a Bluetooth headset or car kit, you can turn off Bluetooth to save power.  Go to Settings > General > Bluetooth and set Bluetooth to Off.
    Use Airplane Mode in low- or no-coverage areas: Because your iPhone always tries to maintain a connection with the cellular network, it may use more power in low- or no-coverage areas.  Turning on Airplane Mode can increase battery life in these situations; however, you will be unable to make or receive calls.  To turn on Airplane Mode, go to Settings and set Airplane Mode to On.
    Adjust brightness: Dimming the screen is another way to extend battery life.  Go to Settings > Brightness and drag the slider to the left to lower the default screen brightness. In addition, turning on Auto-Brightness allows the screen to adjust its brightness based on current lighting conditions.  Go to Settings > Brightness and set Auto-Brightness to On.
    Turn off EQ: Applying an equalizer setting to song playback on your iPhone can decrease battery life.  To turn EQ off, go to Settings > iPod > EQ and tap Off. Note that if you’ve added EQ to songs directly in iTunes, you’ll need to set EQ on iPhone to Flat in order to have the same effect as Off because iPhone keeps your iTunes settings intact.  Go to Settings > iPod > EQ and tap Flat.
    Usage specs for the 4S - http://www.apple.com/iphone/specs.html:
    Talk time: Up to 8 hours (12.5% per hour drain) on 3G, up to 14 hours (7.1% per hour drain) on 2G (GSM)
    Standby time: Up to 200 hours (0.5% per hour drain)
    Internet use: Up to 6 hours on 3G (16.6% per hour drain), up to 9 hours (11.1% per hour drain) on Wi-Fi
    Video playback: Up to 10 hours (10% per hour drain)
    Audio playback: Up to 40 hours (2.5% per hour drain)
    So a scenario of normal usage could be for example: 4 heavy hours of 3G internet browsing (66.4%), with one hour of call on 3G (12.5%) and 22 hours of standby (11%) = 100%
    A battery life issue is a problem where the drain is really out of spec either during usage or standby or both. For example, multi-% per minute drain during usage or a 10% drain per hour during standby is problematic. Browsing the internet on 3G during one hour and losing 16-17% is not.
    Apple's test methodology for claiming the specs:
    http://www.apple.com/iphone/battery.html
    Procedures
    davidch tips (reset+full discharge recharge):
    Go through these steps to address the battery after updating to iOS 5.0.1:
    1. Reset all settings (settings app-> general-> reset)
    2. Go through initial setup steps (lang, wifi, siri, enable location, etc) and choose setup as new phone (don't worry your apps, data, contacts, mail will still be there). Do NOT restore from iCloud or iTunes (It can copy back corrupt settings)
    3. Turn off system location services timezone and iAd
    4. Fully discharge battery  (tilll it shuts off with the spinning wheel)
    5. Fully recharge battery (overnight if possible)
    In my experience this improves the Standby battery drain issue significantly in most cases.  It reduces drain from 2-4% or more per hr to 0.5% or less. It has worked for many, many users now. If it does not work after a few try's you may have a real battery or hardware issue and should contact Apple.  Good Luck!
    ram130's variant of davidch i.e. additional steps:
    Now using davidch original steps and attaching the tweaks I made to get me more usage. As shown on page 29.
    Go through these steps to address the battery after updating to iOS 5.0.1:
    1. Reset all settings (settings app-> general-> reset)
    2. Go through initial setup steps (lang, wifi, siri, enable location, etc) and choose setup as new phone (don't worry your apps, data, contacts, mail will still be there). Do NOT restore from iCloud or iTunes (It can copy back corrupt settings)
    3. Turn off system location services timezone and iAd
    4. Fully discharge battery  (till it shuts off with the spinning wheel)
    5. Fully recharge battery (overnight if possible)
    6. Disable Siri 'Raise To Speak' and REBOOT *( if possible use another camera to verify the                 infrared is off after the reboot).
    7. Set emails, icloud and calendars to fetch. ** test. Mines on hourly.
    8. If your in a no signal and your phone is saying "Searching..." even after 10mins, reboot while in that area and after 1-2min it should say "No Service". This mainly applies to Verizon customers and improve battery life in these areas.
    9. *optional* Goto Settings > General > Network and you will see "Hotspot.." loading something, wait a few seconds and it should say "setup personal hotspot" then exit out.
    * I notice a great improvement after disabling this and rebooting. This increased my "screen on" usage or at least helped it. Make the change.
    ** I have not tested push yet to narrow down the drain but I had this change on my phone. I believe exchange push is responsible for some stand by drain. As for icloud, haven't notice much of a difference. Just try it for a day. My email still came in fast most times. Again still testing, will report back on these..
    buxbuster tips(wifi sync, iCloud):
    These are my own tested workarounds that worked for my iPhone 4S and seemed to have worked for others as well :
    Workaround number 1. Deselect wifi-sync in iTunes and press sync.
    If that doesn't work try :
    Workaround number 2 : Remove iCloud, reset network settings. ( I guess this won't work for you since you don't have it enabled ).
    If both workarounds fail, you can always try to completely wipe your phone. That also solved some of the cases out there.
    rolandomerida tips - i.e. buxbuster and additional steps:
    Finally, I solved the syncing error loop. My contacts are syncing flawessly again between my devices and iCloud, and yes, the battery stopped draining, which is the main topic here.
    I followed instructions from buxbuster (check his workaround a few pages up!) and an additional BIG step to restore contacts and syncing, as seen in a MacRumors forum.
    This is what I did:
    1. Make a backup of your Address Book, using the vCard option (or both, it doesn't hurt). Save it for later.
    2. In your iPhone, delete iCloud account. When it asks, accept both: delete AND delete from my iPhone.
    3. Reset network settings. The iPhone will restart, then will ask you to unlock the SIM card.
    4.Turn Wi-Fi on.
    5. Add the iCloud account again.
    That's for Buxbuster's workaround. For some, it might work just like that. My iPhone repopulated from iCloud after step 5, but I still had that "server error" on iCloud. I had to do some extra steps, since my Mac was not syncing to iCloud and couldn't edit anything on my Mac or iCloud. Syncing back had to be fixed, too. If not, the syncing loop would continue from my iPhone, and the battery would drain awfully again.
    1. In System Preferences -> iCloud, I turned Contacts off. I chose "keep on My Mac" those contacts, but I got an empty Address Book after a while. And a few minutes later, iCloud contacts were empty and my iPhone also. It is scary at first! Now, before importing that vCard backup...
    2. Turn Wi-Fi off. This is important, since your contact-empty iCloud will attempt to wipe your Address Book from your Mac in seconds after importing.
    3. Import your vCard backup to Address Book. Just drag it to your blank Address Book window; it asks if you want to import "x" number of cards. Of course, say yes.
    4. Turn Wi-Fi on, and then iCloud contacts on again (System Preferences -> iCloud). It will offer to merge your newly populated Address Book with iCloud (which is empty at this point). It should upload every single contact to iCloud, and then to your iDevices. If not, a fifth step would be to import the vCard file to iCloud, but it shouldn't be necessary.
    So, with iCloud syncing working correctly, there is no battery draining! Again, that was my particular issue.
    I can't tell if this is the single answer to the widely spread battery draining problem, but it sure can be fixed with these workarounds, and yes, Apple should address the problem with a future update, for we affected customers don't need workarounds in the first place
    This is the MacRumors discussion:
    http://forums.macrumors.com/showthread.php?t=1256807
    And dont' forget to check buxbuster's fix, video, and THANK him!
    Miless tips (full 800mb release of 5.0.1 and sanitizing a restore):
    As for 4S battery life. Try doing this,
    1. Settings>Location Service ... disable all location services you do not need. In particularly Facebook because it drains the battery a lot.
    Scroll down to the bottom at Settings>Location services>System Services ... Disable Setting Time zone, location based iAds, Diagnostic & Usage.
    2. Settings>Notification>Calendar ... turn off the Notification Centre.
    3. Settings>General>Reset ... do Reset All Settings. Doing this will not wipe out your iPhone. It will just Reset the network settings, location warning, keyboard dictionary, etc... but it will clear up some corrupted data there. Generally this will help.
    Try these 3 steps first... if it still drains a lot, try the following,
    4. Drain your battery down to 1%. Then charge it up using USB from PC ... not the charger. The charger output 1.0 A ( x 5V from USB ... you get 5W power). From PC, output is only 0.5A x 5V = 2.5W power. Charging is slower but trickle charge 4S helps the battery retain its charge better. I think it takes about 3-3.5 hours to charge full from USB/PC compared to slightly below 2 hours using iPhone charger.
    If after doing the above still could not solve your battery issues (mine with iOS 5.0 was ok up to step 4, but not iOS 5.0.1).... plug you iPhone to a charger (any charger), from iPhone, access your iCloud ... set it up if you havent. Back up your iPhone data to iCloud. if you do not have enough storage (only 5GB is free), go to details and select the apps you need its data backup, choose only those you really need and leave those unnecessary ones out. Back up your camera roll to your PC/Mac manually as it could be too big to backup to iCloud.... once you have it setup, make sure you are on Wifi ...  tap backup to iCloud from your iPhone. It will take a while if the file is huge.
    Once backup to iCloud is completed, plug your iPhone to PC/Mac and launch iTunes 10.5.1 (make sure you have 10.5.1)
    Click Restore. It will automatically initiate a download of iOS 5.0.1 ipsw for iPhone 4S. Wait for the whole process to finish, ie. download, restore software/firmware.
    Once its done, do not set up your iPhone from iTunes. Set it up on your iPhone. Go through the selection. When prompted, select restore from iCloud (from your iphone backup earlier). Keep your iphone plugged into iTunes while restoring backup from iCloud. Because while restoring from iClouds, some data will be synced from iTunes if you plug in, e.g. music, video, etc... unless you bought these content from iTunes store. Apps will be downloaded from App Store from the cloud.
    Once it's all done restored. Turn off your iPhone,.. and turn it on again.
    Now, hopefully your battery wont be draining so fast anymore. Usually it wont after this. But you need to charge your battery at least 4-5 cycles to stabilize the charge on the battery. I dont know why... but battery life seems to get better and better for me after a few charge cycles after all the above work.
    Good luck. Let us know if it works for you.
    W. Raider tips (Sirii):
    Bottom line for me of things that helped battery life are:
    1. Turing off Siri and Rebooting the phone by holding the Home button and Top button down, ignoring the slider, until the phone shut down. (turn off Siri, reboot, and check top front of iPhone 4S against a lesser camera like the front-facing camera on an iPad2 - making sure the IR sensor is off)
    2. Fully draining the battery, meaning using the phone until it shuts itself off from a drained battery and then recharging it to 100% about 4, maybe 5 times. I charged it both with a Mac and a wall charger.
    Hope this is helpful!
    Comments
    jmm514 remarks (Twitter):
    I may have found something. I had Twitter disabled in my notifications, but got a tweet today that popped up on my home screen. Didn't know I had this enabled. At the bottom of the Twitter notification settings is the home scrren toggle. Since disabling this, battery life seems better. Considering there is no setting for frequency of checking for tweets, it appears the phone is continually connecting to wifi to check for new tweets.
    tmksnyder comments (notifications, corrupt data in iCloud):
    For me, I found my iphone on wifi mysteriously connecting to my mac.  I eventually narrowed it down to the Apple Move Trailers app which keeps a file in iCloud.  The phone was trying to sync the file with the mac in the background even when the Movie Trailers app was closed (hitting the red x).  Based on my macosx logs the iCloud process that was trying to sync was working directly between the phone and the mac without using itunes by connecting to an https address hosted on the phone.  It was connecting every 3 minutes and failing (while phone was awake or awake during during a notification).  I also found that iCloud control panel on OSX would error if I tried to delete the file.  I fixed it by removing the App and doing a hard reset which stopped the sync.  I probably could have turned off iCloud document sync in the phone but didn't think of that.  My battery life has greatly improved while at home on wifi.    I am now at 28 hrs standby, 2 hrs 20 minutes of usage, and 68% battery.  It was ok before where I could get 20-30 hrs standby and 6 -8 hrs usage.  My usage today was phone calls, 3g surfing, and music via bluetooth in the car.
    I also found even with Itunes iMatch, if I mass updated tages, art work etc, it would hit the phone on wifi even in standby.  I was amazed.   Granted if I am not doing updates, Match won't hot the phone so this was a once in awhile event.  I could drop my percentage by 5-10% in a matter of minutes when doing updates.   I think a lot of our problems are background processes, associated with iCloud, notification, and apps.  More features means more battery.   I think the key thing is to keep track of what has recently been added or changed if battery life gets worse all of a sudden.   It may be an app that was recently installed and if possible you may want to completely remove it and not just quit it.
    With twitter, i think it uses push notifications so it doesn't need to be running and actively poll on the phone. For instance , if i quit the mail app, i still will get mail notifications and can swipe the message and load mail. Apple Push Notifications servics maintain the connection to the phone and there are likely pings or connection checks  that occur for the service on an os level not an app level.  This minimizes the load so there arent a bunch of apps all runing and constantly checking.  The notification service , if it is contacted from twitter or another service with data, will check the settings you have registered to the with the apple push service and send the notification to your phone.  No matter what, there is a drain with notifications. M hunch is once one application is configured to receive notifications, connection checking occurs betwen the push service and the phone so it knows where it is on the network. If it is implemented correctly, these checks arent frequent if you are still and more frequent as you move. The other drain is for when the noification hits and is processsed.  If i get 9 emails over night, my screen just popped up for 20 seconds or so to process each message using battery.  I would even think that just go from low power to turning n the screen uses more juice than if the device was already on and i get the message.  On nights I get no notifications, I see a 3  or 4 percent drop.  On nights with a number of notifications, i have seen up to a 10 percent drop.  Besides notifications, wifi sync and icloud will poll on the local network and use up battery if the host computer is on and running itunes or trying to sync a data file that is corrupt (which i had with the apple movie trailers app causing my phone to drain).  For me turning off wifi sync and remving a corrupt file in icloud solved my battery issues and I get over 24 hrs of standby with 6 to 9 hrs of use and this is with all the normal location services and push serivices turned on.
    See http://developer.apple.com/library/mac/ipad/#documentation/NetworkingInternet/Co nceptual/RemoteNotificationsPG/ApplePushService/ApplePushService.html for more info.  I think it has a good overview of how the notifications work.

    Well seems like that rumor of iOS 5.0.1 is finally gone the way of the dogs since developers got a beta of 5.1. So as stated earlier in the master discussion-> I suspect if you are filling up this thread with false post or creating a master set of links to various post that are unreliable you are wasting your time. Press is not going to touch the story due to poor or inaccurate sources which may be links from the master thread. This can include inaccurate information, combination of conflicting post or postings from users which may not own the device. Reputable press organizations have policies that require discloser and strict rules about what is a reliable source for a story. It is clear that many of the post in the master thread, which are links presented here are questionable. 
    Sorry to say that postings taken without any analysis of their totality have been propagated via various sites, for example sites such as http://www.2012federalbudget(dot)com. (Do not visit but I suspect that this is not the 2012 federal-budget site you would expect based on analysis of the records. There are plenty of sites like http://www.2012federalbudget(dot)com propagating questionable post in these threads.) One site for example in the discussion thread used a self signed certificate, the site had a log in to allow users to enter their OpenID. Seems many of these sites are pop and drop drupel configurations.
    So remember this is how the really bad rumor of iOS 5.0.2 got started, the 5.1 memory leak issue, iCloud Issues, call quality, address book, etc.
    Some of the postings have been very comical, I think the latest now is a dropbox issue. Seems that the length of the previous thread has resulted in various app engines of some proxy servers/tools reaching their limits.
    So I would make sure to know the source of any information you link to. Make sure you avoid entering any information to outside links such as OpenID or Apple ID, these are big prize items for anyone with malicious intent.  If you have issues and are a valid user contact APPLE CARE. (Note link is using McAfee Secure Short URL Service, and is https.)
    http://mcaf.ee/ricdt
    The original solution still represents a high level of success for users having any battery issues.
    Install 5.0.1 on your iPhone 4s. Some users posting they are still using older versions, bad fake serial numbers, etc.
    Make sure your device can run iOS 5.0.1 and is not altered.
    Make sure you use a new Sim, not some cut down version which many users admit to doing. (Again, worth confirming what people are posting.)
    Reset the device doing a hard reset and software reset.
    Let battery drain and then charge for the full cycle, which is 24 hours.
    I think you will find you will get the battery usage that APPLE has stated for the device.
    Best of luck, stay safe and thanks

Maybe you are looking for

  • How can I determine what the type actually is?

    I already posted this in "Java Programming", so I apologize if you are reading it for the second time. I'm a CS3 student coding a data structure that uses generics. One of my methods has a possibility of much nicer results than the default if the typ

  • Can't drag and drop files onto desktop any more

    I have always been able to drag/drop files and images onto the desktop from within the body of an email message or a web browser window. Now it won't let me do that any more and I have no idea what has changed. The cursor "holding" the image never ch

  • Memory allocation much more than size of table TST03

    Hi all, I found a strange situation, in our system, memory allocation in SP12 shows 2GB is used in DB side, but when I go to transaction DB02 to check the table TST03, it only has 50MB. Our parameter rspo/store_location is already set to 'db'. System

  • I currently have an old version of Photoshop - CS, is it possible to upgrade?

    I currently have an old version of Photoshop - CS, is it possible to upgrade to a newer version? It keeps crashing on my new Mac (Macbook Pro 2GHz Intel Core i7 running OSX version 10.6.8) and I don't use photoshop that much (probably once per month

  • Captivate 3 Not Reporting Scores to TEDS LMS

    Hello Everyone, Thanks for taking a moment to read through this. I'm trying to build a course in Cap-3, using the TEDS LMS (SCORM 1.2).  The course runs fine, but is not sending the scores to our LMS.  I'm not the *most* techincal of folks, but I wan