Can't get a timeout

Hello.
This is for an assignment for school. We have to implement at 3-tier system, namely a client, an application server and dataservers. The client uses a remote method (available through the appserver), and the appserver then contacts all the dataservers for the data it needs.
I'm trying to take control of the timeouts that should occur when making calls throughout the system.
When creating the registry i do as follow:
(This is done in my dataservers, and as such, the RMIClientSocketFactory used in the call, is called dataServerSocketFactory)
LocateRegistry.createRegistry(51673,conf.dataServerSocketFactory,conf.serverSocketFactory);Where the two factories are defined as such:
public RMIClientSocketFactory dataServerSocketFactory = new RMIClientSocketFactory() {
          public int dataServerTimeOut = 100;
          public final Socket createSocket(String host, int port) throws IOException {
               Socket clientSocket = new Socket(host,port);
               clientSocket.setSoTimeout(dataServerTimeOut);
               clientSocket.setSoLinger(false,0);
               return clientSocket;
public RMIServerSocketFactory serverSocketFactory = new RMIServerSocketFactory() {
     public int serverSocketTimeOut = 100;
     public ServerSocket createServerSocket(int port) throws IOException {
          ServerSocket serverSocket = new ServerSocket(port);
          serverSocket.setSoTimeout(serverSocketTimeOut);
          return serverSocket;
};To let my client hook up to the register, I use:
Registry registry = LocateRegistry.getRegistry("localhost",51673,conf.clientSocketFactory);
appStub = (IAppServer) registry.lookup("AppServer");And likewise for my appserver.
Now, to provoke the timeout, i'm trying to hold back one of the dataservers returns. Aka, i'm waiting for input by the user (via console) on one of the dataservers, before I let it return with the data needed by the appserver. But nothing happens - i'm expecting a timeout in the appserver class (because this is the class which uses the dataservers), but it just waits - nothing happens.
I'm not too experienced with RMI, so any help is appreciated.
Regards,
Mr. Fahrenholz

I figured it out myself.
I was getting ahead of myself, when using Eclipse. It auto-completed the throw statements in many of my methods, so the timeouts I recieved, was simply passed back to the client (in which I caught the first timeout I discovered - and incidently, all the rest).
Cheers :)

Similar Messages

  • Can not get email after updating to 8.1.1! Deleted account and now cannot add as will not verify due to Apple something timeout messages? Any one else having problems?

    Can not get email after updating to 8.1.1! Deleted account and now cannot add as will not verify due to Apple something timeout messages? Any one else having problems?

    Hi tania184,
    Have you contacted your email provider to make sure there are no problems on their end? If they say their email servers are working properly, check the outgoing and incoming mail servers entries on your iPhone to make sure both are entered correctly. Enter the outgoing mail server even if the account setup indicates that is optional.

  • Can't get onto ichat. connection timeout. need help

    I have been using ichat on my computer for about 9 months now with no real problems, but now I simply cannot get onto my account. My internet connection is working fine, but when I try to get onto my screenname, it tell me that the connection has timed out. I can log onto my friends screenname using ichat on the same computer, but I can't get onto my own. What do I do?

    It's AOL. They know about the issue...
    http://discussions.info.apple.com/thread.jspa?threadID=2417383&tstart=0

  • Problem with existing script, can't get text of item

    I'm taking an earlier script and condensing it so that it will only work from one SELECTED folder. I thought it would be simple but i seam to be running into a few issues
    This is the error I get
    Result:
    error "Can’t get last text item of alias \"Images:2012-2013:WK21:Freedom:Freedom_WK21_PSD:\"." number -1728 from last text item of alias "Images:2012-2013:WK21:Freedom:Freedom_WK21_PSD:"
    property type_list : {"8BPS"}
    property extension_list : {"psd"}
    script o
              property theseNames : {}
    end script
    -- empty log file
    do shell script "echo  'Files not processed in Photoshop :'  > ~/Desktop/LogPhotoshopError.txt"
    set noError to true
    --at the beginning of the script, ask whether to replace or skip existing files? to apply to all?
    --use the result for the if file exists?
    display dialog "Should I replace or skip exisiting files?" buttons {"Replace", "Skip (Faster)"} default button 2 with icon 1
    set skipFiles to (button returned of the result) is "Skip (Faster)"
    --Below is what I removed
    --set dtF to paragraphs of (do shell script "ls -F ~/Desktop | grep '/' | cut -d'/' -f1")
    --set tc to (count dtF)
    --repeat with i from 1 to tc
    --          set folderName to item i of dtF --<:  is the folder name, no need to use text item delimiters -->":"
    --          if folderName does not start with "2_" and folderName does not start with "Hot" and folderName does not start with "Press" and folderName does --not start with "Design" and folderName does not start with "Keywords" and folderName does not start with "Season" and folderName does not
    --start with "Sue" and folderName does not start with "Design" then
    --Setup list of folders and process details of folders
    tell application "Finder" to set folderName to (choose folder with prompt "Select Folder")
    set {oldTID, my text item delimiters} to {my text item delimiters, "_WK"}
    set FolderEndName to last text item of folderName
    set brandName to first text item of folderName
    set my text item delimiters to "_PSD"
    set weekNumber to first text item of FolderEndName
    set my text item delimiters to oldTID
    set theFolder to ("Hal 9000:Users:matthew:Desktop:" & folderName)
    --set up names to destination folders and create locally based on brand name and week number
    set this_local_folder to "Images:2012-2013"
    set localWeekFolder to my getFolderPath("WK" & weekNumber, this_local_folder)
    set localBrandFolder to my getFolderPath(brandName, localWeekFolder)
    set localBrandFolder_Low_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_LR", localBrandFolder)
    set localBrandFolder_High_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_HR", localBrandFolder)
    set localBrandFolder_PSD to my getFolderPath(brandName & "_WK" & weekNumber & "_PSD", localBrandFolder)
    set this_Network_folder to "DCKGEN:Brands:Zoom:Brand - Zoom:Upload Photos:2013:"
    set networkWeekFolder to my getFolderPath("Week" & weekNumber, this_Network_folder)
    set networkBrandFolder_Low_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_LR", networkWeekFolder)
    set website_images to "DCKGEN:Website_Images:"
    --set up names to destination folders and create over Netwrok for FTP collection (based on a mounted drive)
    set this_ftp_folder to "Impulse:"
    set ftpWeekFolder to my getFolderPath("Week" & weekNumber, this_ftp_folder)
    set ftpBrandFolder to my getFolderPath(brandName, ftpWeekFolder)
    set ftpBrandFolder_Low_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_LR", ftpBrandFolder)
    set ftpBrandFolder_High_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_HR", ftpBrandFolder)
    --taking the folder identify which process it must follow.  F R E E D O M   W I T H  P N G
    if brandName is equal to "Freedom" then
              try
                        tell application "Finder" to set o's theseNames to (name of files of alias theFolder whose file type is in the type_list or name extension is in the extension_list)
              on error
                        set o's theseNames to {} -- no psd files or "8BPS"
              end try
              set numOfNames to (count o's theseNames)
              repeat with j from 1 to numOfNames
                        set thefile to theFolder & ":" & (item j of o's theseNames)
      --    F R E E D O M     Folder Photoshop Process W I T H  P N G
                        set thisName to (item j of o's theseNames)
                        tell application "Finder"
                                  set t_ext to name extension of file thefile
                                  if t_ext is not "" then set thisName to text 1 thru -((count t_ext) + 2) of thisName
                                  set b to exists file (localBrandFolder_PSD & thisName & ".psd")
                        end tell
                        if not b or (b and not skipFiles) then -- not exists file or file exists and "replace" (continue the rest of the script).
                                  tell application "Adobe Photoshop CS5.1"
      -- I remove the command activate, Photoshop stay in background
                                            set ruler units of settings to pixel units
                                            try
      open (alias thefile) showing dialogs never
                                                      set origName to name of current document
                                                      set myOptions to {class:JPEG save options, quality:12}
                                                      set myPNGOptions to {class:PNG save options, interlaced:false}
                                                      set myPSDOptions to {class:Photoshop save options, embed color profile:true, save layers:true}
                                                      tell current document
      --If the quick mask mode has been left on then delete the channel Quick Mask
                                                                if (quick mask mode) then delete channel ¬
                                                                          "Quick Mask"
      --If the Layer is incorrectly labeled with Original Layer it needs renaming to original Image
                                                                if (exists layer "Original Layer") then ¬
                                                                          tell layer "Original Layer" to set name to "Original Image"
      save in (localBrandFolder_PSD & origName) as Photoshop format with options myPSDOptions without copying
                                                                (delete layer "Original Image") flatten
      resize image resolution 300 resample method none
      --sharpen image
      filter current layer using unsharp mask with options {amount:80, radius:3.2, threshold:0}
      save in (ftpBrandFolder_High_Res & name) as JPEG with options myOptions without copying
      --Prepare for Low RES by resetting image history
                                                                set current history state to history state 3
      delete current layer
      merge visible layers
                                                                resize image width 1020
      resize image resolution 300 resample method none
      filter current layer using unsharp mask with options {amount:80, radius:3.2, threshold:0}
      --add save to lowResFolder with same options
      save in (networkBrandFolder_Low_Res & name) as PNG with options myPNGOptions without copying
      flatten
      save in (networkBrandFolder_Low_Res & name) as JPEG with options myOptions without copying
                                                                set newFile to file path
                                                                set newFile2 to newFile as string -- for testing end of name
                                                                if newFile2 ends with "_2.jpg" or newFile2 ends with "_3.jpg" or newFile2 ends with "_4.jpg" or newFile2 ends with "_5.jpg" or newFile2 ends with "_6.jpg" or newFile2 ends with "_7.jpg" or newFile2 ends with "_8.jpg" or newFile2 ends with "_9.jpg" or newFile2 ends with "_10.jpg" or newFile2 ends with "11.jpg" then -- exclude website_images
                                                                          my duplicateFile(newFile, {ftpBrandFolder_Low_Res})
                                                                else
                                                                          save in (website_images & name) as JPEG with options myOptions without copying
                                                                end if
      close saving no
                                                      end tell
                                            on error
                                                      set noError to false
                                                      my myLogs(thefile) -- write path to log file in Desktop
                                                      try
      close saving no --if exists, close current document
                                                      end try
                                            end try
                                  end tell
                        end if
              end repeat
      --End F R E E D O M  W I T H  P N G
    end if
    if not noError then do shell script "/usr/bin/open  ~/Desktop/LogPhotoshopError.txt'"
    on myLogs(t)
              try
                        do shell script "echo " & (quoted form of t) & ">> ~/Desktop/LogPhotoshopError.txt'"
              end try
    end myLogs
    on duplicateFile(tFile, foldersPath) -- tFile is an alias, foldersPath is a list of folder
              tell application "Finder" to repeat with folderPath in foldersPath
                        with timeout of 200 seconds -- adjust it,  error if the copy  is longer that 200 seconds
      duplicate tFile to folder folderPath with replacing
                        end timeout
              end repeat
    end duplicateFile
    on getFolderPath(tName, folderPath)
              tell application "Finder" to tell folder folderPath
                        if not (exists folder tName) then
                                  return (make new folder at it with properties {name:tName}) as string
                        else
                                  return (folder tName) as string
                        end if
              end tell
    end getFolderPath
    tell application "Finder"
              open "Hal 9000:Users:matthew:Desktop:LogPhotoshopError.txt"
    end tell

    I'm getting close or at least I hope this is how it looks now, but appears not pick up the files in the folder?
    The result
              exists folder "Freedom_WK20_HR" of folder "impulse:Week20:Freedom:"
              get folder "Freedom_WK20_HR" of folder "impulse:Week20:Freedom:"
              get name of every file of alias (alias "Images:2012-2013:WK20:Freedom:Freedom_WK20_PSD:") whose {"8BPS"} contains file type or {"psd"} contains name extension
              open "Hal 9000:Users:matthew:Desktop:LogPhotoshopError.txt"
    end tell
    --------------------MAIN SCRIPT BELOW__------------------
    property type_list : {"8BPS"}
    property extension_list : {"psd"}
    script o
              property theseNames : {}
    end script
    -- empty log file
    do shell script "echo  'Files not processed in Photoshop :'  > ~/Desktop/LogPhotoshopError.txt"
    set noError to true
    --at the beginning of the script, ask whether to replace or skip existing files? to apply to all?
    --use the result for the if file exists?
    display dialog "Should I replace or skip exisiting files?" buttons {"Replace", "Skip (Faster)"} default button 2 with icon 1
    set skipFiles to (button returned of the result) is "Skip (Faster)"
    --Setup list of folders and process details of folders
    tell application "Finder"
              set theFolder to (choose folder with prompt "Select Folder")
              set folderName to name of theFolder
              set {oldTID, my text item delimiters} to {my text item delimiters, "_WK"}
              set FolderEndName to last text item of folderName
              set brandName to first text item of folderName
              set my text item delimiters to "_PSD"
              set weekNumber to first text item of FolderEndName
              set my text item delimiters to oldTID
      --set up names to destination folders and create locally based on brand name and week number
              set this_local_folder to "Images:2012-2013"
              set localWeekFolder to my getFolderPath("WK" & weekNumber, this_local_folder)
              set localBrandFolder to my getFolderPath(brandName, localWeekFolder)
              set localBrandFolder_PSD to my getFolderPath(brandName & "_WK" & weekNumber & "_PSD", localBrandFolder)
              set this_Network_folder to "DCKGEN:Brands:Zoom:Brand - Zoom:Upload Photos:2013:"
              set networkWeekFolder to my getFolderPath("Week" & weekNumber, this_Network_folder)
              set networkBrandFolder_Low_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_LR", networkWeekFolder)
              set website_images to "DCKGEN:Website_Images:"
      --set up names to destination folders and create over Netwrok for FTP collection (based on a mounted drive)
              set this_ftp_folder to "Impulse:"
              set ftpWeekFolder to my getFolderPath("Week" & weekNumber, this_ftp_folder)
              set ftpBrandFolder to my getFolderPath(brandName, ftpWeekFolder)
              set ftpBrandFolder_Low_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_LR", ftpBrandFolder)
              set ftpBrandFolder_High_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_HR", ftpBrandFolder)
      --taking the folder identify which process it must follow.
              if brandName is equal to "BHS" then
                        try
                                  tell application "Finder" to set o's theseNames to (name of files of alias theFolder whose file type is in the type_list or name extension is in the extension_list)
                        on error
                                  set o's theseNames to {} -- no psd files or "8BPS"
                        end try
                        set numOfNames to (count o's theseNames)
                        repeat with j from 1 to numOfNames
                                  set thefile to theFolder & ":" & (item j of o's theseNames)
      --    B H S    Folder Photoshop Process
                                  set thisName to (item j of o's theseNames)
                                  tell application "Finder"
                                            set t_ext to name extension of file thefile
                                            if t_ext is not "" then set thisName to text 1 thru -((count t_ext) + 2) of thisName
                                            set b to exists file (localBrandFolder_PSD & thisName & ".psd")
                                  end tell
                                  if not b or (b and not skipFiles) then -- not exists file or file exists and "replace" (continue the rest of the script).
                                            tell application "Adobe Photoshop CS5.1"
      -- I remove the command activate, Photoshop stay in background
                                                      set ruler units of settings to pixel units
                                                      try
      open (alias thefile) showing dialogs never
                                                                set origName to name of current document
                                                                set myOptions to {class:JPEG save options, quality:12}
                                                                set myPSDOptions to {class:Photoshop save options, embed color profile:true, save layers:true}
                                                                tell current document
      --If the quick mask mode has been left on then delete the channel Quick Mask
                                                                          if (quick mask mode) then delete channel ¬
                                                                                    "Quick Mask"
      --If the Layer is incorrectly labeled with Original Layer it needs renaming to original Image
                                                                          if (exists layer "Original Layer") then ¬
                                                                                    tell layer "Original Layer" to set name to "Original Image"
      save in (localBrandFolder_PSD & origName) as Photoshop format with options myPSDOptions without copying
                                                                          (delete layer "Original Image") flatten
      resize image resolution 300 resample method none
      --sharpen image
      filter current layer using unsharp mask with options {amount:80, radius:3.2, threshold:0}
      save in (ftpBrandFolder_High_Res & name) as JPEG with options myOptions without copying
      --Prepare for Low RES by resetting image history
                                                                          set current history state to history state 3
                                                                          flatten
                                                                          resize image width 1348
      resize image resolution 300 resample method none
      filter current layer using unsharp mask with options {amount:80, radius:3.2, threshold:0}
      --add save to lowResFolder with same options
      save in (networkBrandFolder_Low_Res & name) as JPEG with options myOptions without copying
                                                                          set newFile to file path
                                                                          set newFile2 to newFile as string -- for testing end of name
                                                                          if newFile2 ends with "_2.jpg" or newFile2 ends with "_3.jpg" or newFile2 ends with "_4.jpg" or newFile2 ends with "_5.jpg" or newFile2 ends with "_6.jpg" or newFile2 ends with "_7.jpg" or newFile2 ends with "_8.jpg" or newFile2 ends with "_9.jpg" or newFile2 ends with "_10.jpg" or newFile2 ends with "11.jpg" then -- exclude website_images
                                                                                    my duplicateFile(newFile, {ftpBrandFolder_Low_Res})
                                                                          else
                                                                                    my duplicateFile(newFile, {ftpBrandFolder_Low_Res, website_images})
                                                                          end if
      close saving no
                                                                end tell
                                                      on error
                                                                set noError to false
                                                                my myLogs(thefile) -- write path to log file in Desktop
                                                                try
      close saving no --if exists, close current document
                                                                end try
                                                      end try
                                            end tell
                                  end if
                        end repeat
      --End BHS
      --taking the folder identify which process it must follow. B U R T O N
              else if brandName is equal to "Burton" then
                        try
                                  tell application "Finder" to set o's theseNames to (name of files of alias theFolder whose file type is in the type_list or name extension is in the extension_list)
                        on error
                                  set o's theseNames to {} -- no psd files or "8BPS"
                        end try
                        set numOfNames to (count o's theseNames)
                        repeat with j from 1 to numOfNames
                                  set thefile to theFolder & ":" & (item j of o's theseNames)
      --    B U R T O N    Folder Photoshop Process
                                  set thisName to (item j of o's theseNames)
                                  tell application "Finder"
                                            set t_ext to name extension of file thefile
                                            if t_ext is not "" then set thisName to text 1 thru -((count t_ext) + 2) of thisName
                                            set b to exists file (localBrandFolder_PSD & thisName & ".psd")
                                  end tell
                                  if not b or (b and not skipFiles) then -- not exists file or file exists and "replace" (continue the rest of the script).
                                            tell application "Adobe Photoshop CS5.1"
      -- I remove the command activate, Photoshop stay in background
                                                      set ruler units of settings to pixel units
                                                      try
      open (alias thefile) showing dialogs never
                                                                set origName to name of current document
                                                                set myOptions to {class:JPEG save options, quality:12}
                                                                set myPSDOptions to {class:Photoshop save options, embed color profile:true, save layers:true}
                                                                tell current document
      --If the quick mask mode has been left on then delete the channel Quick Mask
                                                                          if (quick mask mode) then delete channel ¬
                                                                                    "Quick Mask"
      --If the Layer is incorrectly labeled with Original Layer it needs renaming to original Image
                                                                          if (exists layer "Original Layer") then ¬
                                                                                    tell layer "Original Layer" to set name to "Original Image"
      save in (localBrandFolder_PSD & origName) as Photoshop format with options myPSDOptions without copying
                                                                          (delete layer "Original Image") flatten
      resize image resolution 300 resample method none
      --sharpen image
      filter current layer using unsharp mask with options {amount:80, radius:3.2, threshold:0}
      save in (ftpBrandFolder_High_Res & name) as JPEG with options myOptions without copying
      --Prepare for Low RES by resetting image history
                                                                          set current history state to history state 3
                                                                          flatten
                                                                          resize image width 1020
      resize image resolution 300 resample method none
      filter current layer using unsharp mask with options {amount:80, radius:3.2, threshold:0}
      --add save to lowResFolder with same options
      save in (networkBrandFolder_Low_Res & name) as JPEG with options myOptions without copying
                                                                          set newFile to file path
                                                                          set newFile2 to newFile as string -- for testing end of name
                                                                          if newFile2 ends with "_2.jpg" or newFile2 ends with "_3.jpg" or newFile2 ends with "_4.jpg" or newFile2 ends with "_5.jpg" or newFile2 ends with "_6.jpg" or newFile2 ends with "_7.jpg" or newFile2 ends with "_8.jpg" or newFile2 ends with "_9.jpg" or newFile2 ends with "_10.jpg" or newFile2 ends with "11.jpg" then -- exclude website_images
                                                                                    my duplicateFile(newFile, {ftpBrandFolder_Low_Res})
                                                                          else
                                                                                    my duplicateFile(newFile, {ftpBrandFolder_Low_Res, website_images})
                                                                          end if
      close saving no
                                                                end tell
                                                      on error
                                                                set noError to

  • 903/902/BC4J can't get data-sources.xml conn pooling to work in production; help

    I have several BC4J ears deployed to a 903 instance of OC4J being configured as a standalone
    instance. I've had this problem since I started deploying in development on 902. So it's
    some basic problem that I've not mastered.
    I can't get data-sources.xml managed connection pooling to actually pool conn's. I'm wanting
    to declare my jndi jdbc source connection pool in j2ee/home/config/data-sources.xml.
    Have all BC4J apps get conns from this JNDI JDBC pool. I've removed all data-sources.xml from my BC4J ears,
    and published the jndi jdbc source in my oc4j common data-sources.xml. I've tested that this is
    the place controlling the conn URL/login passwd by commenting it out of config/data-sources.xml
    and my BC4J apps then throw exceptions, can't get conn.
    I've set the oc4j startup cmd line with the BC4J property to enabled connection pooling:
    -Djbo.doconnectionpooling=true
    symptom
    Connections are created and closed. Instead of being put back into the pool managed by oc4j,
    what ever BC4J is doing or my data-sources.xml is doing, the connections are just being created and
    closed.
    I can verify this via (solaris) lsof and netstat, where I see my oc4j instance under test load
    with only 1 or 2 conns to the db box, and the ephemeral port is tumbling, meaning a new socket is
    being opened for each conn. ;( grrrrrrr
    Does anyone have a clue as to why this is happening?
    Thanks, curt
    my data-sources.xml
    <data-sources>
         <data-source
            class="com.evermind.sql.DriverManagerDataSource"
            connection-driver="oracle.jdbc.driver.OracleDriver"
            ejb-location="jdbc/DEVDS"
            location="jdbc/DEVCoreDS"
            name="DEVDS"
            password="j2train"
            pooled-location="jdbc/DEVPooledDS"
            url="jdbc:oracle:thin:@10.2.1.30:1521:GDOC"
            username="jscribe"
            xa-location="jdbc/xa/DEVXADS"
            inactivity-timeout="300"
            max-connections="50"
            min-connections="40"
        />
    </data-sources>

    I've run another test using local data-source.xml, that's packaged in the .ear. Still
    pooling under BC4J doesn't work??
    A piece of info is that the 903 oc4j release notes states that global conn pooling doesn't
    work. Infering that the j2ee/home/config/data-sources.xml data sources aren't pooled or ??
    I just tested so called local connection pooling, where I edited the data-sources.xml that
    gets packaged in the ear, to include the min/max params and re-ran my test.
    Still, the AM creates a new conn, it's to a new socket, and closes the conn when done. Causing
    each conn to not be pooled, rather opened then closed to the DB box. As verified with lsof and
    netstat, checking the ephemeral port # on the DB box side, always changes, meaning it's a
    new socket and not an old pooled conn socket.
    ???? What the heck??
    Surely if the AM conn check out / return code works properly, OC4J's pooling JDBC driver would
    pool and not close the socket??
    Has anywone gotten JDBC Datasource connections in BC4J to actually be pooled under OC4J??
    Since I couldn't get this to work in my early 902 oc4j testing, and now can't get it to work
    still under 903 OC4J, either it's my config or BC4J AM's code or OC4J?
    Any thoughts on how to figure out what's not configed correctly or has a bug?
    Thanks, curt

  • How can I get the best out of my battery life?

    There are a variety of things you can do to extend your device battery life, and use your phone for longer periods of time to see you through the day.
    Set your screen to timeout after a period of inactivity. This way your phone is not sitting idle with the screen backlight consuming extra energy. The recommended screen timeout is 30 seconds, but most phones will allow from 15 seconds to 10 minutes.
    Turn off location services (GPS), Wi-Fi and Bluetooth when not using these functions. When they're on, your phone constantly searches for your current location and open networks, which has a big impact on battery life.
    Turn down the screen brightness. For example, on an iPhone 4 the lowest brightness setting gives roughly 6.5 hours of continuous use, whereas the highest setting gives roughly 3.5 hours. You can always adjust the brightness when you're outside so you can still see your screen clearly. Some devices have an auto-brightness setting, where the phone adjusts the screen brightness depending on the light around it.
    Close your applications. On smartphones, returning to the ‘home' screen only minimises your apps – they keep running in the background. Closing your apps fully will save power; for example, on Samsung Galaxy devices hold down the home button for two seconds to see a list of all open apps. You can then swipe these to the left of the screen to exit them completely. On an Apple product, double press the home button to bring up all active applications and exit from there.

    Re: How can I get the best out of my battery life?
    Hi,
    When I make phone calls people on the other end have difficulty hearing me. They describe as they can hardly hear me as if I was speaking through the pillow etc). I am not touching any buttons and obviously it is not mute. This was happening couple of time in June, then every now and then. Recently it happened a few time in 2 weeks. I was trying to check if it was a reception issue but the place I spoke from is my office I make 70% of phone calls from. Can you book time for me in repair shop and address the issue.
    Thank you.
    Sergey Sinitsyn

  • Can't get JSF to access managed bean methods from web page

    I'm using NetBeans 6.7.1 and Glassfish v2.1
    Having problems here can somebody please help? It is really
    frustrating because I have written apps like this before in fact I
    used one as a model to create an even simpler app and still can't get
    it to work. I ran it through the debugger and it stops in the
    constructor so it looks like the bean object is being created, but the
    setUid method and the testit method are not being entered when I click
    on the enter commandbutton. Can somebody PLEASE give me an idea as to
    what might be going on? I am totally stumped and this is holding up
    some important work I need to get done. Any help would be greatly
    appreciated:
    web.xml:
    - Show quoted text -
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
    http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
    <context-param>
    <param-name>com.sun.faces.verifyObjects</param-name>
    <param-value>false</param-value>
    </context-param>
    <context-param>
    <param-name>com.sun.faces.validateXml</param-name>
    <param-value>true</param-value>
    </context-param>
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
    </context-param>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>
    30
    </session-timeout>
    </session-config>
    <welcome-file-list>
    <welcome-file>faces/welcomeJSF.jsp</welcome-file>
    </welcome-file-list>
    </web-app>
    faces-config.xml:
    <?xml version='1.0' encoding='UTF-8'?>
    <!-- =========== FULL CONFIGURATION FILE ================================== -->
    <faces-config version="1.2"
    xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
    http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
    <managed-bean>
    <managed-bean-name>testbean</managed-bean-name>
    <managed-bean-class>com.lingosys.quoteest.testbean</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    <navigation-rule>
    <from-view-id>/go.jsp</from-view-id>
    <navigation-case>
    <from-outcome>correct</from-outcome>
    <to-view-id>/ok.jsp</to-view-id>
    <redirect/>
    </navigation-case>
    </navigation-rule>
    </faces-config>
    go.jsp:
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%--
    This file is an entry point for JavaServer Faces application.
    --%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>JSP Page</title>
    </head>
    <body>
    <f:view>
    <h1>JAS Generator</h1>
    <p/>
    <h:form id="testForm" enctype="multipart/form-data" >
    <p/>Both fields are required.
    <p/>Enter Test ID: <h:inputText id="pid"
    value="#{testbean.uid}" required="true"/>
    <p/><h:commandButton value="Enter"
    action="#{testbean.testit}"/>
    </h:form>
    </f:view>
    </body>
    </html>
    testbean.java:
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package com.lingosys.quoteest;
    * @author mphoenix
    public class testbean {
    private String uid;
    public testbean() {
    int x=0;
    public String getUid() {
    return uid;
    public void setUid(String uid) {
    this.uid = uid;
    public String testit() {
    return "correct";
    }

    MikePhoenix wrote:
    enctype="multipart/form-data"
    Why?
    Oh, in the future please post code in code blocks. Use the CODE button to get them. Use the Preview tab to see if anything went right.

  • Can't get launchd to work with my applescripts

    I am trying to use launchd for the first time and not succeeding. I have several applescripts all of which work when I run them either via the script editor or from Keyboard Maestro. I want to learn to run them directly using launch agents. I created the launch agents using Lingon in the basic (GUI) mode but none of them run so I must be making a systemmatic beginners mistake.
    As an example, in Lingon I select MyAgents, I use a name like com.bud.create_date, and in the "what" field I navigate to the script file (not an executable, just an editable script file). I then choose a specific time to run every day and save. Then I either logout or, lately, I have used terminal launchctl commands to load and then start the agents. I used the launchctl list command just now to check the status of one of them and I see an exit code of 512, which means I made an error but that's as much as I know.
    Any help would be appreciated.

    budsimrin wrote:
    Thanks, Barney, for replying so quickly. I actually did previously use the osascript command, but not exactly the way shown in doug's scripts. But even after changing my scripts to mirror the example you cited, I still can't get any scripts to run. Do you have any further suggestions?
    Here is an example. I have an applescript that simply toggles invisibility in the Finder. I call it vistoggle.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
              <key>Disabled</key>
              <false/>
              <key>Label</key>
              <string>com.bud.vistoggle</string>
              <key>Program</key>
              <string>/usr/bin/osascript</string>
              <key>ProgramArguments</key>
              <array>
                        <string>osascript</string>
                        <string>/Volumes/MacHD/Users/bud/Library/Scripts/Bud's\ Script\ Codes/Invisibility\ Toggler.scpt</string>
              </array>
              <key>RunAtLoad</key>
              <true/>
              <key>StartCalendarInterval</key>
              <dict>
                        <key>Hour</key>
                        <integer>20</integer>
                        <key>Minute</key>
                        <integer>0</integer>
              </dict>
    </dict>
    </plist>
    By having the program key and the program arguments, you are telling launchd to run
    osascript osascript /blah/blah/blah.scpt
    Try removing the Program key and just use ProgramArguments; perhaps with the full path to osascript as the first argument.
    See here: https://discussions.apple.com/thread/1563624
    It apparently times out immediately. Here is the launchctl results.
    Bud's iMac 27:~ bud$ launchctl list com.bud.recreate_date_files
              "Label" = "com.bud.recreate_date_files";
              "LimitLoadToSessionType" = "Aqua";
              "OnDemand" = false;
              "LastExitStatus" = 256;
              "TimeOut" = 30;
              "Program" = "/usr/bin/osascript";
              "ProgramArguments" = (
                        "osascript";
                        "/Volumes/MacHD/Users/bud/Library/Scripts/Bud's\ Script\ Codes/Recreate\ date\ text\ files.scpt";
    Bud's iMac 27:~ bud$
    Open up console and see if there are any launchd messages relating to that run. That may tell you why it is failing. My bet is "no such file or directory."

  • Can't get ZFS Pool to validate in HAStoragePlus

    Hello.
    We rebuilt our cluster with Solaris 10 U6 with Sun Cluster 3.2 U1.
    When I was running U5, we never had this issue, but with U6, I can't get the system to validate properly the zpool resource to the resource group.
    I am running the following commands:
    zpool create -f tank raidz2 c2t0d0 c2t1d0 c2t2d0 c2t3d0 c3t0d0 c3t1d0 c3t2d0 c3t3d0 spare c2t4d0
    zfs set mountpoint=/share tank
    These commands build my zpool, zpool status comes back good.
    I then run
    clresource create -g tank_rg -t SUNW.HAStoragePlus -p Zpools=tank hastorage_rs
    I get the following output:
    clresource: mbfilestor1 - : no error
    clresource: (C189917) VALIDATE on resource storage_rs, resource group tank_rg, exited with non-zero exit status.
    clresource: (C720144) Validation of resource storage_rs in resource group tank_rg on node mbfilestor1 failed.
    clresource: (C891200) Dec 2 10:27:00 mbfilestor1 SC[SUNW.HAStoragePlus:6,tank_rg,storage_rs,hastorageplus_validate]: : no error
    Dec 2 10:27:00 mbfilestor1 Cluster.RGM.rgmd: VALIDATE failed on resource <storage_rs>, resource group <tank_rg>, time used: 0% of timeout <1800, seconds>
    Failed to create resource "storage_rs".
    My resource group and logical host all work no problems, and when I ran this command on the older version of Solaris, it worked no problem. Is this a problem with the newer version of Solaris only?
    I though maybe downloading the most up to date patches would fix this, but it didn't.
    I did notice this in my messages:
    Dec 2 10:26:58 mbfilestor1 Cluster.RGM.rgmd: [ID 224900 daemon.notice] launching method <hastorageplus_validate> for resource <storage_rs>, resource group <tank_rg>, node <mbfilestor1>, timeout <1800> seconds
    Dec 2 10:26:58 mbfilestor1 Cluster.RGM.rgmd: [ID 616562 daemon.notice] 9 fe_rpc_command: cmd_type(enum):<1>:cmd=</usr/cluster/lib/rgm/rt/hastorageplus/hastorageplus_validate>:tag=<tank_rg.storage_rs.2>: Calling security_clnt_connect(..., host=<mbfilestor1>, sec_type {0:WEAK, 1:STRONG, 2:DES} =<1>, ...)
    Dec 2 10:27:00 mbfilestor1 SC[SUNW.HAStoragePlus:6,tank_rg,storage_rs,hastorageplus_validate]: [ID 471757 daemon.error] : no error
    Dec 2 10:27:00 mbfilestor1 Cluster.RGM.rgmd: [ID 699104 daemon.error] VALIDATE failed on resource <storage_rs>, resource group <tank_rg>, time used: 0% of timeout <1800, seconds>
    Any ideas, or should I put in a bug fix request with Sun?

    Hi,
    Thanks, I ended up just going back to Solaris 10 U5. It was too critical to get back up and running, and I got tired of messing with it, so I ended up going back. Everything is working like it should. I may try to do a LU on the server and see what happens. Maybe the pools and cluster resources will be fine.
    Edited by: mbunixadm on Dec 15, 2008 9:09 AM

  • Re: Can't Connect: Connection Timeout?

    What could be the possible reason for getting "connection timeout" after failing to connect to the internet? After going to Network Prefs, clicking on my network, being prompted for my WPA security password and getting the message "connection failed, " this is replaced with connection timeout?
    Reset my modem and AEBS (unplugged and plugged back in), and was able to connect.
    Any relation to whether or not, under the Airport tab of Network Prefs, "Disconnect from wireless networks when logging out" is checked or not? I don't have it checked, and don't remember having it checked, but someone on the Airport Discussion boards said it should be checked?
    What other possible reasons fro getting a connection timeout? MY ISP says there is nothing from their side that would timeout my connection.

    After reading this entire thread, I conclude that I am having the same problems. Here's what I'm seeing:
    * The problem only happens when using WPA; switching my WAP to WEP or no security makes all my Mac's consistently connect just fine.
    * When the problem occurs, I am prompted for the WPA password; when I type in the password and click "connect", it alternates between "Connection timeout" and "Invalid password" (I'm positive that the password is correct; it's short, simple, and I'm using the "show password" checkbox to verify that it's correct).
    * My Intel 10.5.2 MBP usually connects ok (airport card -- 802.11b/g).
    * My PPC 10.5.2 iMac usually connects ok (airport card -- 802.11b/g, sometimes it asks for the WPA password once even though it's stored in my keychain).
    * My Intel 10.5.2 24" iMac rarely connects ok (airport extreme card -- 802.11b/g/n, with the symptoms above).
    * Windows laptops connect just fine.
    * There seem to be several different WAPs discussed on this thread; I'm wondering if there is some kind of WPA protocol issue in 10.5.2 because I can consistently WPA connect just fine to a Linksys WRT54GL, but I see the symptoms described above with Cisco Aironet 1131AG's.
    To reiterate: the problem most consistently occurs on an Intel iMac with an airport extreme card with OS X 10.5.2 when connecting to my Cisco Aironet 1131AG when WPA is enabled. It definitely does not occur when WEP or no wireless security is enabled. It rarely happens with a PPC iMac and an Intel MBP, both with OS X 10.5.2 and airport cards (regardless of network security settings and WAP used).

  • Can't get TP-Link Tl-WN321G Wlan-USB-Stick to work.

    I've recenetly bought the mentioned USB-Wlan-Stick as I thought that it was well supported in Linux, however, I can't get it to work. Any help would be appreciated
    I've installed rt73-cvs from the AUR, rt2x00-rt71w-fw form Core (rt73-cvs depends on this) as well as dhcp and wpa_supplicant.
    The module rt73 loads and with 'iwconfig' I can see a new device 'wlan0' which I can bring up using 'ifconfig wlan0 up'. The netcfg-profile looks like this:
    CONNECTION="wireless"
    INTERFACE=wlan0
    SCAN="yes"
    SECURITY="wpa"
    ESSID="KLIMCZAK"
    KEY="XXXXXXXXXXXXXXXX"
    IP="dhcp"
    TIMEOUT=20
    IWOPTS="mode managed channel 1"
    It is exactly the same as the one on my laptop (only the Interface-name is different). On my laptop (Intel IPW3945 wlan-card) it works just fine.
    netcfg on the computer with the tp-link-stick always fails with:
    ":: home up  - Wireless association failed. [FAIL]"
    While trying, the LED on the stick is flashing.
    Any ideas what I could try? Or could someone at least explain to me what exactly this error-message is supposed to tell me?
    edit:
    By the way, I also tried the 'rt73usb' module that comes with the kernel, but it doesn't add an interface to the list at 'iwconfig'.
    Using 'rt73' I also tried to set up the network manually with:
    iwconfig wlan0 essid KLIMCZAK
    ifconfig wlan 0 up
    dhcpcd
    Where the last step fails with:
    err, wlan0: timed out
    warn, wlan0: using IPV4LL address 169.254.105.6
    I'm not sure if this error appears because I haven't invoked any wpa-stuff yet or if it is because of another problem. Same error appears on the commandline when I try to setup the configuration using rutilt.
    Last edited by saciel (2009-01-07 19:43:33)

    I've tried setting the interface up/down and it doesn't help. I don't think there's a driver conflict (but it's a bit hard to tell as there seems to be a few different modules that work together).
    So you tried to set it DOWN and then
    netctl restart your-profile

  • Exchange 2013 remote session running as PowerShell version 2.0. How can I get it to run version 3.0?

    I'm trying to use the newer Powershell 3.0 features, particularly the ability to disconnect/reconnect a remote session, for our Exchange 2013 administration tools.  I have 3.0 on my workstation, and am connecting to a remote session on an Exchange 2013
    server (on Server 2012).   Even LOCALLY on the Exchange 2013 server Exchange Management Shell I get the same behavior:
    Exchange Command Shell on an Exchange 2013 server (running Windows Server 2012)
    [PS] >$PSVersionTable
    Name                           Value
    PSVersion                      3.0
    WSManStackVersion              3.0
    SerializationVersion           1.1.0.1
    CLRVersion                     4.0.30319.19117
    BuildVersion                   6.2.9200.16628
    PSCompatibleVersions           {1.0, 2.0, 3.0}
    PSRemotingProtocolVersion      2.2
    [PS] C:\Windows\system32>Get-PSSession
     Id Name            ComputerName    State         ConfigurationName
      1 Session1        mercmbx35r.n... Opened        Microsoft.Exchange
    [PS] C:\Windows\system32>$session = Get-PSSession
    [PS] C:\Windows\system32>$session.ApplicationPrivateData.PSVersionTable
    Name                           Value
    PSVersion                      2.0
    PSCompatibleVersions           {1.0, 2.0, 3.0}
    PSRemotingProtocolVersion      2.2
    BuildVersion                   6.2.9200.16628
    CLRVersion                     4.0.30319.19117
    WSManStackVersion              3.0
    SerializationVersion           1.1.0.1
    How/where can I force the Exchange session to run version 3.0?
    Thanks in advance,
    Rick Tatem

    I still can't get it to work that way. I changed my cfexecute to:
    <cfexecute name="C:\windows\system32\cmd.exe" arguments="/c C:\Inetpub\wwwroot\captcha\#cmd_filename#" outputFile="C:\testoutput.txt" timeout = "90"></cfexecute>
    And I changed my bat file to have:
    <cfsavecontent variable="cmd_content">
    cd\
    TSC.exe /s "#newString#" C:\Inetpub\wwwroot\captcha\#FileName# Mary (for Telephone)
    </cfsavecontent>
    The output file is showing:
    C:\ColdFusion9\runtime\bin>cd\
    C:\>TSC.exe /s "3.....P.....4.....Z.....8.....U.....7.....X....." C:\Inetpub\wwwroot\captcha\3P4Z8U7X-105724.wav Mary (for Telephone)
    I still can't get it to run the exe. I have watched the process list while running this and the exe doesn't show up. I tried cfexecute on the exe directly before trying the bat method, with hard coded arguments, and it still didn't work. I am so lost right now this makes no sense to me.

  • 903/902/BC4J can't get OC4J data-sources.xml conn pooling to work in production: help

    [cross posted to the j2ee forum]
    I have several BC4J ears deployed to a 903 instance of OC4J being configured as a standalone
    instance. I've had this problem since I started deploying in development on 902. So it's
    some basic problem that I've not mastered.
    I can't get data-sources.xml managed connection pooling to actually pool conn's. I'm wanting
    to declare my jndi jdbc source connection pool in j2ee/home/config/data-sources.xml and
    have all BC4J apps get conns from this JNDI JDBC pool. I've removed all data-sources.xml from
    my BC4J ears, and published the jndi jdbc source in my oc4j common data-sources.xml.
    I've tested that this is the place controlling the conn URL/login passwd by commenting it
    out of config/data-sources.xml and my BC4J apps then throw exceptions, can't get conn.
    I've set the oc4j startup cmd line with the BC4J property to enabled connection pooling:
    -Djbo.doconnectionpooling=true
    symptom
    Connections are created and closed. Instead of being put back into the pool managed by oc4j,
    what ever BC4J is doing or my data-sources.xml is doing, the connections are just being created and
    closed.
    I can verify this via (solaris) lsof and netstat, where I see my oc4j instance under test load
    with only 1 or 2 conns to the db box, and the ephemeral port is tumbling, meaning a new socket is
    being opened for each conn. ;( grrrrrrr
    Does anyone have a clue as to why this is happening?
    Thanks, curt
    my data-sources.xml
    <data-sources>
         <data-source
            class="com.evermind.sql.DriverManagerDataSource"
            connection-driver="oracle.jdbc.driver.OracleDriver"
            ejb-location="jdbc/DEVDS"
            location="jdbc/DEVCoreDS"
            name="DEVDS"
            password="j2train"
            pooled-location="jdbc/DEVPooledDS"
            url="jdbc:oracle:thin:@10.2.1.30:1521:GDOC"
            username="jscribe"
            xa-location="jdbc/xa/DEVXADS"
            inactivity-timeout="300"
            max-connections="50"
            min-connections="40"
        />
    </data-sources>

    Thanks Leif,
    Yes, set it to the location jndi path.
    A piece of info is that the 903 oc4j release notes states that global conn pooling doesn't
    work. Infering that the j2ee/home/config/data-sources.xml data sources aren't pooled or ??
    I just tested so called local connection pooling, where I edited the data-sources.xml that
    gets packaged in the ear, to include the min/max params and re-ran my test.
    Still, the AM creates a new conn, it's to a new socket, and closes the conn when done. Causing
    each conn to not be pooled, rather opened then closed to the DB box. As verified with lsof and
    netstat, checking the ephemeral port # on the DB box side, always changes, meaning it's a
    new socket and not an old pooled conn socket.
    ???? What the heck??
    Surely if the AM conn check out / return code works properly, OC4J's pooling JDBC driver would
    pool and not close the socket??
    Has anywone gotten JDBC Datasource connections in BC4J to actually be pooled under OC4J??
    Since I couldn't get this to work in my early 902 oc4j testing, and now can't get it to work
    still under 903 OC4J, either it's my config or BC4J AM's code or OC4J?
    Any thoughts on how to figure out what's not configed correctly or has a bug?
    Thanks, curt

  • Where can i get the report server name in Reports 10g

    Where can i get my report server name in 10G ?

    Thanks ..
    When i opened the bat file :
    i did not find any report server name ...
    This is my file :-
    @echo off
    REM $Header: rwdiag.bat 13-may-2005.03:21:21 sunaraya Exp $
    REM
    REM rwdiag.bat
    REM
    REM Copyright (c) 2005, Oracle. All rights reserved.
    REM
    REM NAME
    REM rwdiag.bat - rw diagnostic tool
    REM
    REM DESCRIPTION
    REM Script to run the diagnostic tool used to locate servers / monitor packets on the network
    REM
    REM NOTES
    REM Usage: rwdiag.bat -find <server name> | -findAll [-conf <config file>] [-timeout <timeout in sec>]
    REM
    REM Usage: rwdiag.bat -monitor [-log <logfile>] [-conf <config file>]
    REM
    REM MODIFIED (MM/DD/YY)
    REM sunaraya 05/13/05 - Added rwrun.jar to the classpath for bug 4361664
    REM sunaraya 04/22/05 - Provided execute permission to the script for bug 4323789
    REM sunaraya 04/14/05 - sunaraya_bug-4221172
    REM sunaraya 04/14/05 - Creation
    REM
    set ORA_HOME=C:\ORANT
    if "%ORA_HOME%"=="" goto ERROR
    set CLASSPATH=%ORAHOME%\jlib\zrclient.jar;%ORA_HOME%\reports\jlib\rwrun.jar
    %ORA_HOME%\jdk\bin\java -DORACLE_HOME=%ORA_HOME% -classpath %_CLASSPATH% oracle.reports.utility.DiagServerLocator %*
    goto END
    :ERROR
    echo "ORACLE_HOME is not set"
    echo.
    :END

  • Automomous AP not broadcasting SSID and can I get it to support both WPA and WPA2?

    Ok, I am playing around with a 3702i that has been converted to Autonomous running ap3g2-k9w7-mx.153-3.JAB
    I have 2 issues I have not been able to solve yet.   I have basically set it up using the web interface....
    First, I can't get the SSID to broadcast -- the SSID is active, because I can type it in manually.
    Second, I have an HP 8600 Pro All-in-One printer that I normally connect over WiFi.  Basically, it does not seem to support WPA2...I spent most of yesterday pouring through HP forums and WPA2 support seems to be a issue.  My old Linksys router had a setting that supported WPA/WPA2...does anyone know how or if I can support WPA / WPA2 simultaneously on this Autonomous AP?
    Here is my config:
    Thanks....
    Cisco3702#sh run br
    Building configuration...
    Current configuration : 3867 bytes
    ! Last configuration change at 12:44:59 -0500 Tue Mar 9 1993
    ! NVRAM config last updated at 11:29:23 -0400 Sat Oct 18 2014
    ! NVRAM config last updated at 11:29:23 -0400 Sat Oct 18 2014
    version 15.3
    no service pad
    service timestamps debug datetime msec
    service timestamps log datetime msec
    service password-encryption
    hostname Cisco3702
    logging rate-limit console 9
    no logging console
    enable secret 5 XXXXXXXXXXXX.
    no aaa new-model
    clock timezone -0500 -5 0
    clock summer-time -0400 recurring
    no ip source-route
    no ip cef
    ip domain name mydomain.com
    ip name-server 192.168.6.254
    dot11 syslog
    dot11 activity-timeout unknown default 300
    dot11 activity-timeout client default 300
    dot11 ssid MYSSID
       band-select
       authentication open
       authentication key-management wpa version 2
       infrastructure-ssid
       wpa-psk ascii 7 XXXXXXXXXXXX
    dot11 network-map
    dot11 arp-cache optional
    crypto pki trustpoint TP-self-signed-2632604960
     enrollment selfsigned
     subject-name cn=IOS-Self-Signed-Certificate-2632604960
     revocation-check none
     rsakeypair TP-self-signed-2632604960
    crypto pki certificate chain TP-self-signed-2632604960
     certificate self-signed 01
    username CISCO password 7 XXXXXXXX
    username ADMIN privilege 15 secret 5 XXXXXXXXXXXX
    bridge irb
    interface Dot11Radio0
     no ip address
     encryption mode ciphers aes-ccm
     ssid MYSSID
     antenna gain 0
     stbc
     speed  basic-11.0 basic-6.0 basic-9.0 basic-12.0 basic-18.0 basic-24.0 basic-36.0 basic-48.0 basic-54.0 m0. m1. m2. m3. m4. m5. m6. m7. m8. m9. m10. m11. m12. m13. m14. m15. m16. m17. m18. m19. m20. m21. m22. m23.
     channel 2412
     station-role root access-point
     dot11 qos class video local
        admission-control
        admit-traffic signaling infinite
     dot11 qos class voice local
        admission-control
        admit-traffic narrowband max-channel 75 roam-channel 6
     dot11 qos class video cell
        admission-control
     dot11 qos class voice cell
        admission-control
     bridge-group 1
     bridge-group 1 subscriber-loop-control
     bridge-group 1 spanning-disabled
     bridge-group 1 block-unknown-source
     no bridge-group 1 source-learning
     no bridge-group 1 unicast-flooding
    interface Dot11Radio1
     no ip address
     encryption mode ciphers aes-ccm
     ssid MYSSID
     antenna gain 0
     peakdetect
     dfs band 3 block
     stbc
     speed  basic-6.0 basic-9.0 basic-12.0 basic-18.0 basic-24.0 basic-36.0 basic-48.0 basic-54.0 m0. m1. m2. m3. m4. m5. m6. m7. m8. m9. m10. m11. m12. m13. m14. m15. m16. m17. m18. m19. m20. m21. m22. m23. a1ss7 a2ss7 a3ss7
     channel dfs
     station-role root access-point
     dot11 qos class video local
        admission-control
        admit-traffic signaling infinite
     dot11 qos class voice local
        admission-control
        admit-traffic narrowband max-channel 75 roam-channel 6
     dot11 qos class video cell
        admission-control
     dot11 qos class voice cell
        admission-control
     bridge-group 1
     bridge-group 1 subscriber-loop-control
     bridge-group 1 spanning-disabled
     bridge-group 1 block-unknown-source
     no bridge-group 1 source-learning
     no bridge-group 1 unicast-flooding
    interface GigabitEthernet0
     no ip address
     duplex auto
     speed auto
     bridge-group 1
     bridge-group 1 spanning-disabled
     no bridge-group 1 source-learning
    interface BVI1
     mac-address 58f3.9cea.5d20
     ip address 192.168.6.253 255.255.255.0
     ipv6 enable
    ip forward-protocol nd
    ip http server
    ip http secure-server
    ip http help-path http://www.cisco.com/warp/public/779/smbiz/prodconfig/help/eag
    snmp-server view dot11view ieee802dot11 included
    snmp-server community public view dot11view RO
    snmp-server location Home
    snmp-server chassis-id Cisco3702i
    bridge 1 route ip
    line con 0
    line vty 0 4
     login local
     transport input all
    sntp server 173.255.227.205
    sntp broadcast client
    end

    Hi
    You have to add "guest mode" command to broadcast your SSID. Also if you need WPA/TKIP support then remove version 2 keyword under SSID & add TKIP option under radio interface encryption config. Also get rid of "infrastructure SSID" command under SSID config.
    dot11 ssid MYSSID
       band-select
       authentication open
       authentication key-management wpa version 2
       infrastructure-ssid
       wpa-psk ascii 7 XXXXXXXXXXXX
      guest mode
    interface Dot11Radio1
     encryption mode ciphers aes-ccm tkip
    Pls do not forget to rate all useful responses 
    HTH
    Rasika

Maybe you are looking for