Inactive status  - v$session  users list over WEB application

Hi all
When user connect through asp or asp.net, we create a connection in the session object. New sid gets created with each session.
When user normally logs out the application, his sid gets finished in the v$session users list. But when he dees not logs out in the normal way as we can not force thousand of users over WEB to log out normally, what will happen to the v$session ?.
1st - We wish to know to know that whether the list will run into thousands of inactive status users OR they automatically gets finished over time. We use the default profile as applicable to new user.
2nd - If the list of inactive status users gets increased to thousands of users which can be possible for the WEB application , there must be some limit fixed by Oracle 8i/ 10g database OR there may be serious performance problems. This simultaneous connection of thousands of users over WEB is easily possible and when connection is created in session object , what could be the scenario. We avoid creating connection object in the application start event to improve performance for the given sesion.
Any help is appreciated.
Suresh bansal

Thanks for prompt reply
1st - Can u give some idea for create connection pools using asp.net environments. Further in the connection pool environment as to how much simultaneous running connections we should need to open and how.
2nd - If we have pool of say 100 connections and there are more number of simultaneous WEB users, what will happen to the application as to whether it gets to hanging /waiting for the pool connection to be free or give error ?.
Suresh Bansal

Similar Messages

  • Content repository FD does not exist :user agent sap web application server

    Hi All
    i am using 3rd party software(dms SERVER) and connecting it using archive link interface SAP HTTP 4.5 AL
    i have created a new repository with name FD using tcode OAC0.when i give inputs in OACO and click on test connection it gives me information Content repository FD does not exist
    here is my HTTP trace at receiver content server side
    TRACE:(5) - GET /Default.aspx?serverInfo&pVersion=0045&contRep=FD HTTP/1.0
    TRACE:(5) - user-agent: SAP Web Application Server (1.0;700)
    TRACE:(5) - host: SERVERIP:PORT
    TRACE:(5) - accept-encoding: gzip
    TRACE:(5) -
    --> C05 --> S06 ==== (15.583) Request <GET /Default.aspx?serverInfo&pVersion=0045&contRep=FD HTTP/1.0>
    --> C05 --> S06 GET /Default.aspx?serverInfo&pVersion=0045&contRep=FD HTTP/1.0
    --> C05 --> S06 user-agent: SAP Web Application Server (1.0;700)
    --> C05 --> S06 host: SERVERIP:PORT
    --> C05 --> S06 accept-encoding: gzip
    --> C05 --> S06 ==== Body 0 bytes
    --> C05 --> S06 Body =>
    Sockets 6 of 4,5,6 need checking ####
    TRACE:(6) - HTTP/1.1 200 OK
    TRACE:(6) - Cache-Control: private
    TRACE:(6) - Content-Length: 189
    TRACE:(6) - Content-Type: text/plain; charset=utf-8
    TRACE:(6) - Server: Microsoft-IIS/7.5
    TRACE:(6) - X-AspNet-Version: 2.0.50727
    TRACE:(6) - boundary:
    TRACE:(6) - X-dateC: 2010-10-22
    TRACE:(6) - X-timeC: 07:07:23
    TRACE:(6) - X-dateM: 2010-10-22
    TRACE:(6) - X-timeM: 07:07:23
    TRACE:(6) - X-contentRep: FD
    TRACE:(6) - X-numberComps: 1
    TRACE:(6) - X-docId: 0
    TRACE:(6) - X-docStatus: online
    TRACE:(6) - X-pVersion: 0045
    TRACE:(6) - X-ContentServer: contentServer=Server ip;contentServerPort='9025;pVersion='0045';id='DMSSRV1'
    TRACE:(6) - X-Powered-By: ASP.NET
    TRACE:(6) - Date: Fri, 22 Oct 2010 13:37:23 GMT
    TRACE:(6) - Connection: close
    TRACE:(6) -
    TRACE:(6) - serverType='DMSSRV1';1;serverVersion=12;serverPatch=0;serverBuild=180;pVersion='0045';serverStatus=running;serverStatusDescription=;serverDate='2010-10-22';serverTime='07:07:23';startUpDate='2010-10-22';startUpTime='07:07:23';lastAccessDate='2010-10-22';lastAccessTime='07:07:23';contRep='FD';contRepStatus=defined;contRepStatusDescription=;contRepDescription=Content-Repository Test;contentStorageHost=localhost;contentStorageName=FD;secKeyVerification=y;defaultDocProt=rucd;
    one change which i have observed in this trace is .. this trace is showing trace agent as SAP Web application server ... ideally it should show user agent :SAP HTTP
    Please suggest me some solution.
    Thanks
    sandeep

    Dear all,
    my issue is resolved.I solved my issue myself
    solution: SAP sends HTTP request in the form of URL like
    http://serverip:port/GET /Default.aspx?serverInfo&pVersion=0045&contRep=FD HTTP/1.0
    Now your response should contain string  contRep="FD"
    dont forget double quotes on repository name coz SAP program matches string with double quotes. if you will return value like this contRep=FD
    this will through error.
    Thanks
    sandeep sharma

  • How sharepoint understand when user requests for web applications by their DNS names

    HI
    I configured Alternate access mapping in my sharepoint farm for default ,intranet zones
    and spt farm has two web front end servers and they load balancing by F5 device
    in WFE servers there are different web applications are running on different ports
    so here I want to know how load balancing works, load balancing configured in F5 device.
    when users request a webapplication from browser (ex http://cms) where this request will go
    1)when I ping cms and other web applicaations  it returns me a loadbalancer  server IP  for all web applications;
    ping cms : it returns 10.xxx.0.80 , same ip returns when I ping for other web app
    but ex CMS web application run on the 10.xxx.1.26:81 port in sharepoint server
    2) and these sharepoint web applications running on different ports in sharepoint  web servers , so here  how sharepoint understand when user requests for web applications by their DNS names
    http://cms and http://products  etc
    adil

    I'm not sure if the F5 can add a port number (I'm not an expert on load balancers).  But in general if you design the SharePoint site to run on port 81 then you need to have port 81 appended to the request or it won't work.  http://cms in your
    example would take you to http://cms:80 not http://cms:81.  But in general DNS will resolve the address back to the F5 load balancer.  The load balancer will look at the header of the HTTP request (which contains the original address you requested)
    and forward the request to the appropriate web front end IP address.  If your web front end is using one IP address for multiple sites then those sites need to be differntiated by using a custom port like 81 (which must be included in the original request)
    or because a host header was bound to the web application when it was created.  If they are running on different port numbers then the request must include the port number by the time it gets to the SharePoint server.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • Session sharing among different web application under Oracle AS

    Hi,
    I'm looking for some information on web application session information sharing under Oracle AS10.1.3.
    any pointers are highly appreciated.
    Thanks,
    Narasimha.

    Hello,
    I see that you have duplicate your post in different forums, Session sharing among different web application under Oracle AS10.1.3.
    Regards
    Tugdual Grall

  • Store data when user exits from web application

    is there anyway to call a method when user closes browser and session finish
    thank you

    I usually just use a HttpSessionListener.
    What's the difference?Lots ......
    This is from javadoc
    public interface HttpSessionListener
    Implementations of this interface are notified of changes to the list of active sessions in a web application.
    The implementation class would be invoked and in its methods, could process any action on session creation/termination
    public interface HttpSessionBindingListener
    Causes an object to be notified when it is bound to or unbound from a session. The object is notified by an HttpSessionBindingEvent object. This may be as a result of a servlet programmer explicitly unbinding an attribute from a session, due to a session being invalidated, or due to a session timing out.
    The implementation class would usually be a bean. The bean thus has control to take any action it deems fit when its bound to a session or when its unbound from the session.
    Depending on the requirements, you could implement either of the two interfaces.
    Thanks,
    Ram.

  • Lists of web applications

    With Sharepoint 2013 you can make a list of a web application to interact (read or write) with another list from another web application? and in the context of the site collection? What use for this?
    Torres

    you access lists on another web application using code and instantiate new SPSite context , or using Search API to query specific list in another webapplication using PATH managed property 
    also you can look at the cross site collection lookup column example below 
    http://www.codeproject.com/Articles/619118/Cross-site-Lookup-Column-for-Sh
    Hope that helps|Amr Fouad|MCTS,MCPD sharePoint 2010

  • Custom web parts in SharePoint 2013 becomes inactive when the session is idle for long time.

    Hi,
    We have a search center site with custom web parts and custom master pages. When the session is inactive for long time all the custom web parts in the page doesn't work, unless we close the browser and open it. Where as this is not the case with the
    OOB web parts. We are not able to identify the root cause as it works with OOB web parts and not the custom web parts.We were able to find that by increasing the session timeout of the web application we can avoid this issue.We do not want to increase the
    session timeout as the OOB web part works perfectly even when the user session is idle for long time.Is there any other alternative where we can acheive the same for custom web parts when the session is idle for long time?
    Thanks,
    Saranya

    Hi Saranya,
    According to your descirption, my understanding is that when the session is long time idle ,then custom web part will not work.
    I suggest you check if you have enable the session in the Page Level in the web.config. By default SharePoint disable the session state.
    In the web.config, you will see <page enableSessionState> tag. You can modify like below and test if it works.
    <pages enableSessionState=”true” ….. />
    Here is a detailed thread for your reference:
    Use Session State in SharePoint
    Best Regards
    Zhengyu Guo
    TechNet Community Support

  • Problem - over lie of data series in Line chart (Web Application Designer)

    Dear Experts,
    I have created a chart with below requiments from my user by using web application designer.
    1) Key Figure 1 (Chart type -> column )
    2) Key Figure 2 (Chart type -> column )
    3) Key Figure 3 (Chart type -> Line; color assigned -> BLACK;    Visibility: Visible)
    4) Key Figure 4 (Chart type -> Line; color assigned -> YELLOW; Visibility: Visible/Hidden)
    5) Key Figure 5 (Chart type -> Line; color assigned -> RED;         Visibility: Visible/Hidden)
    The line chart of Key Figure 3 must always appear in Front then others Key Figures.
    Then following by, Key Figure 4. Last is Key Figure 5.
    As I know the order of display line chart is infflucing by the order of Key Figure in structure by descending, likes below
    1) Key Figure 3 (Rank of front -> 3rd; Chart type -> Line; color assigned -> BLACK;    Visibility: Visible)
    2) Key Figure 4 (Rank of front -> 2nd; Chart type -> Line; color assigned -> YELLOW; Visibility: Visible/Hidden)
    3) Key Figure 5 (Rank of front -> 1st; Chart type -> Line; color assigned -> RED;         Visibility: Visible/Hidden)
    So, I have conflict on fulfilling these 2 request on assigning the color and control their visibility and lines over lie.
    Please advice me if you have any suggestion on controlling the lines order.
    Thanks!
    ~ GP
    Edited by: GP Poh on Jun 9, 2010 12:32 PM

    Hi Priya, thanks for input.
    I think I should further elaborate the problems. Thanks for your highlight.
    I have a lines chart with five key figures. So my chart will have five lines.
    Some lines from chart will overlap if the data are same.
    When overlapping of lines happens, I want to control the order of which series should be appear first.
    Likes below example,
    1) Key Figure 1 (Chart type -> column )
    2) Key Figure 2 (Chart type -> column )
    3) Key Figure 3 (Chart type -> Line; color assigned -> BLACK; Visibility: Visible)
    4) Key Figure 4 (Chart type -> Line; color assigned -> YELLOW; Visibility: Visible/Hidden)
    5) Key Figure 5 (Chart type -> Line; color assigned -> RED; Visibility: Visible/Hidden)
               KF1  KF2  KF3  KF4  KF5
    CW 1    30     30    80    80    50
    CW 2    40     50    90    60    90
    CW 3    70     50    90    90    90
    CW 4    80     70    70    90    70
    As you can see, there is overlap in these value.
    CW 1 KF3, KF4  -->80
    CW 2 KF3, KF5 --> 90
    CW 3 KF3, KF4, KF5 --> 90
    The order which i want the series should appear first when overlapping.
    - KF3 must appear on top.
    - Then, follow by KF5
    - Last is KF4.
    So now, i have no idea to control the overlap orders except adjusting the sequence of keyfigure from query.
    Feel free to give me any input!

  • CSOM: remove user at web application level

    Hi,
      I want to remove  user at web application level so that the user will permanently be removed from all the site collections including their sub sites . I want to do it for sharepoint 2013 CSOM(c#) for an office 365 site.
    Please guide me.
    Regards,
    Chaitanya.

    Using Apps server object model is not possible. But mine is not an app it's a console application. I will maintain a list which has 2 fields peoplepicker and expirydate. Based on the content of the list i wll remove the users from the web-application level
    directly, if users expirydate is matched. This exe of console application will be put in a scheduler of another server to run it periodically.
    Please let me know my above scenario is possible or not?
    Regards,
    Chaitanya.

  • How do i use the jsp session in web application

    pls i do i go about trying to maintain a user in a web application when he sign in so that his state would be mainain through out the other pages and also adding sound to my pge the page is being design with jsp thank u frm hamzah

    I see what you are saying.
    The JNDI approach should work-we will try to reproduce this internally.
    I would recommend leveraging the OSGi service registry, instead of using JNDI, however. The Event Server is a modular server based on OSGi, so one should use the OSGi service registry whenever possible instead of using the jndi registry. Jndi is primarily there to support legacy code that requires Jndi.
    Any data sources that you configure are automatically registered in the OSGi service registry. When there is more than one data source they can be distinguished using their name.
    There are a couple of options.
    If you want to inject a reference to your datasource into a Spring bean, you can use an annotation, @Service, to annotate a setter method on your bean (see my previous post). The container will then inject a reference to the data source into the bean.
    You can also put the following in your spring application context file
    <osgi:reference id="myDataSource"
    interface="javax.sql.DataSource"/>
    This creates a bean proxy that references the datasource by looking up the datasource in the OSGi service registry. It works similarly to JndiObjectFactoryBean, but it uses the OSGi service registry instead of the JNDI registry. You can read more about it here
    http://www.springframework.org/osgi/specification
    (Look in section 3.3)
    Hope that helps.
    Seth
    Edited by swhite at 08/01/2007 6:19 PM

  • Error in creating web application through power shell

    hi,
     i have taken the  ps script from the  below url :
    credits to Roger  :
    http://blogs.msdn.com/b/rcormier/archive/2012/09/01/how-to-create-sharepoint-web-applications-with-powershell.aspx
    http://gallery.technet.microsoft.com/Create-SharePoint-Web-742a8fb9
    But when i am running the script, i am getting many errors:
    Note: i am not using appln pool account password [as i dont know the password]
    want to know whether  this paramter is necessary.
    $ver = $host | select version
    if($Ver.version.major -gt 1) {$Host.Runspace.ThreadOptions = "ReuseThread"}
    if(!(Get-PSSnapin Microsoft.SharePoint.PowerShell -ea 0))
    Write-Progress -Activity "Loading Modules" -Status "Loading Microsoft.SharePoint.PowerShell"
    Add-PSSnapin Microsoft.SharePoint.PowerShell
    Write-Progress -Activity "Creating Web Application" -Status "Setting Variables"
    #Set Individual Web App Variables
    #This is the Web Application URL
    $WebApplicationURL = "http://mysrvr:2020/"
    #This is the Display Name for the SharePoint Web Application
    $WebApplicationName = "myweb1"
    #This is the Content Database for the Web Application
    $ContentDatabase = "myContentDB"
    #Set Common Variables
    #This is the Display Name for the Application Pool
    $ApplicationPoolDisplayName = "mapppool2020"
    #This is identity of the Application Pool which will be used (Domain\User)
    $ApplicationPoolIdentity = "mydomain\myidd"
    #This is the password of the Appliation Pool account which will be used
    #$ApplicationPoolPassword = "Pass@word1"
    #This is the Account which will be used for the Portal Super Reader Account
    $PortalSuperReader = "i:0#.w|in\hariharan.venugopalk"
    #This is the Account which will be used for the Portal Super User Account
    $PortalSuperUser = "i:0#.w|in\spinstall.dev"
    Write-Progress -Activity "Creating Web Application" -Status "Loading Functions"
    #Create Functions
    Function CreateClaimsWebApp($WebApplicationName, $WebApplicationURL, $ContentDatabase, $HTTPPort)
        #AppPoolUsed is set when calling the ValidateAppPool function. This will be true if the application pool is already running SharePoint web appplications
        #If the application pool is already being used in web applications, the syntax for New-SPWebApplication changes
        if($AppPoolUsed -eq $True)
            #Create the web application, assign it to the WebApp variable.  The WebApp variable will be used to set object cache user accounts
            Write-Progress -Activity "Creating Web Application" -Status "Using Application Pool With Existing Web Applications"
            Set-Variable -Name WebApp -Value (New-SPWebApplication -ApplicationPool $ApplicationPoolDisplayName -Name $WebApplicationName -url $WebApplicationURL -port $HTTPPort -DatabaseName $ContentDatabase -HostHeader $hostHeader
    -AuthenticationProvider (New-SPAuthenticationProvider)) -Scope Script
            #Call the SetObjectCache function, which sets the object cache.
            Write-Progress -Activity "Creating Web Application" -Status "Configuring Object Cache Accounts"
            SetObjectCache
        else
            #Create the web application, assign it to the WebApp variable.  The WebApp variable will be used to set object cache user accounts
            Write-Progress -Activity "Creating Web Application" -Status "Using Application Pool With No Existing Web Applications"
            Set-Variable -Name WebApp -Value (New-SPWebApplication -ApplicationPool $ApplicationPoolDisplayName -ApplicationPoolAccount $AppPoolManagedAccount.Username -Name $WebApplicationName -url $WebApplicationURL -port $HTTPPort
    -DatabaseName $ContentDatabase -HostHeader $hostHeader -AuthenticationProvider (New-SPAuthenticationProvider)) -Scope Script
            #Call the SetObjectCache function, which sets the object cache.
            Write-Progress -Activity "Creating Web Application" -Status "Configuring Object Cache Accounts"
            SetObjectCache
    Function ValidateURL($WebApplicationURL)
        #Find out if a web application with the target URL exists
        if(get-spwebapplication $WebApplicationURL -ErrorAction SilentlyContinue)
            #If a web application with the specifid URL already exists, wait 5 seconds and exit
            Write-Progress -Activity "Creating Web Application" -Status "Aborting Process Due To URL Conflict"
            Write-Host "Aborting: Web Application $WebApplicationURL Already Exists" -ForegroundColor Red
            sleep 5
            #Setting the CriticalError value to $True results in the script to not create anything
            Set-Variable -Name CriticalError -Value $True
        #If the WebApplicationURL passed is not already a SharePoint web application, find out if it starts with HTTP or HTTPS
        elseif($WebApplicationURL.StartsWith("http://"))
                #If the string starts with http://, and not https://, trim the protocol from the URL.  Set the host as the host header
                Set-Variable HostHeader -Value ($WebApplicationURL.Substring(7)) -Scope Script
                #If we're using HTTP, use port 80
                Set-Variable -Name HTTPPort -Value "80" -Scope Script
            elseif($WebApplicationURL.StartsWith("https://"))
                #If the string starts with https://, and not http://, trim the protocol from the URL.  Set the host as the host header
                Set-Variable HostHeader -Value ($WebApplicationURL.Substring(8)) -Scope Script
                #If we're using HTTPS, use port 443
                Set-Variable -Name HTTPPort -Value "443" -Scope Script
    Function ValidateAppPool($AppPoolName, $WebApplicationURL)
        #Change the ErrorActionPreference to SilentlyContinue while preserving the original value in a temporary variable
        #Failing to do this will result in error messages being displayed if Get-WebAppPoolState does not return an object.  The script would still continue
        $CurrentErrorActionPreference = $ErrorActionPreference
        $ErrorActionPreference = "SilentlyContinue"
        #Check to see if an application pool with the name passed by the AppPoolName variable already exists, assign this to a variable.
        #This variable will be used in order to determine if the application pool exists, but is not part of SharePoint
        $TestAppPool = Get-WebAppPoolState $AppPoolName
        #If we have a SharePoint application pool with the value passed by the AppPoolName variable, find out if there are any sites using that app pool
        #This changes the syntax used with New-SPWebApplication
        if(Get-SPServiceApplicationPool $AppPoolName)
            #Return all application pools used by all web applications
            $AppPools = Get-SPWebApplication | select ApplicationPool
            #Providing there is more than one application pool, find out what their names are
            if($AppPools)
                foreach($Pool in $AppPools)
                    #Get The application pool display name for each application pool returned
                    [Array]$Poolchild = $Poolchild += ($Pool.ApplicationPool.DisplayName)
                    #If any application pool matches the value passed by ApplicationPoolDisplayName, set AppPoolUsed to True
                    #This is referenced in the CreateClaimsWebApp function
                    if($Poolchild.Contains($ApplicationPoolDisplayName))
                        Set-Variable -Name AppPoolUsed -Value $True -Scope Script
                    #If the application pool display name does not match the value passed by ApplicationPoolDisplayName, set AppPoolUsed to False
                    #This is referenced in the CreateClaimsWebApp function
                    else
                        Set-Variable -Name AppPoolUsed -Value $False -Scope Script
            #Since this is a SharePoint Application Pool, set the AppPool value to the the SPServiceApplicationPool object returned
            Set-Variable -Name AppPool -Value (Get-SPServiceApplicationPool $AppPoolName) -scope Script
            #Set the AppPoolManagedAccount variable to the name of the managed acount used by the application pool returned
            #AppPoolManagedAccount is used in the CreateClaimsWebApp function if the application pool does not have existing web applications that are using it
            Set-Variable -Name AppPoolManagedAccount -Value (Get-SPManagedAccount | ? {$_.username -eq ($AppPool.ProcessAccountName)}) -scope Script
        #Check to see if the application pool is in IIS, but is not a SharePoint app pool
        elseif($TestAppPool)
            #If the application pool exists in IIS and is not a SharePoint application pool, abort the script by setting CriticalError to True
            Write-Host "Aborting: Application Pool $AppPoolName already exists on the server and is not a SharePoint Application Pool `n`rWeb Application `"$WebApplicationURL`" will not be created" -ForegroundColor
    Red
            Set-Variable -Name CriticalError -Value $True
        #If it's not a SharePoint app pool, and it doesn't exist in IIS, we have to create one
        elseif(!($TestAppPool))
            #Find out if a managed account exists by calling the ValidateManagedAccount function
            validateManagedAccount $ApplicationPoolIdentity
            #If the managed account exists, create an application pool using the existing managed account
            if($ManagedAccountExists -eq $True)
                #Set the AppPoolManagedAccount to the identity of the managed acocunt referenced by the ApplicationPoolIdentity variable
                Write-Host "Creating New App Pool using Existing Managed Account"
                Set-Variable -Name AppPoolManagedAccount -Value (Get-SPManagedAccount $ApplicationPoolIdentity | select username) -scope "Script"
                #Create a new SPServiceApplicationPool, assign that to the AppPool variable
                Set-Variable -Name AppPool -Value (New-SPServiceApplicationPool -Name $ApplicationPoolDisplayName -Account $ApplicationPoolIdentity) -scope "Script"
            #If there is no managed account matching the account referenced by the ApplicationPoolIdentity, create it
            else
                #Use the ApplicationPoolIdentity and ApplicationPoolPassword to create a credential object
                #This is necessary when creating a new managed account
                Write-Host "Creating New Managed Account And App Pool"
                $AppPoolCredentials = New-Object System.Management.Automation.PSCredential $ApplicationPoolIdentity, (ConvertTo-SecureString $ApplicationPoolPassword -AsPlainText -Force)
                #Create a new managed account, assign that to the AppPoolManagedAccount variable
                Set-Variable -Name AppPoolManagedAccount -Value (New-SPManagedAccount -Credential $AppPoolCredentials) -scope "Script"
                #Create a new application pool using the new managed account, assign this to the AppPool variable
                Set-Variable -Name AppPool -Value (New-SPServiceApplicationPool -Name $ApplicationPoolDisplayName -Account (get-spmanagedaccount $ApplicationPoolIdentity)) -scope "Script"
        #Return the ErrorActionPreference to the default value
        $ErrorActionPreference = $CurrentErrorActionPreference
    Function ValidateManagedAccount($ApplicationPoolIdentity)
        #Find out if the manage account referenced by the AppPoolIdentity already exists
        #If it does, set ManagedAccountExists to True
        if(Get-SPManagedAccount $ApplicationPoolIdentity -ErrorAction SilentlyContinue)
            Set-Variable -Name ManagedAccountExists -Value $True -Scope Script
        #If it does not, set ManagedAccountExists to False
        else
            Set-Variable -Name ManagedAccountExists -Value $False -Scope Script
    Function ClearScriptVariables
        #Set the ErrorActionPreference to SilentlyContinue
        #If this is not set, and the script variables referenced have not been set, an error message will be returned.  The script would still continue
        $CurrentErrorActionPreference = $ErrorActionPreference
        $ErrorActionPreference = "SilentlyContinue"
        #Remove the CriticalError variable
        Remove-Variable $CriticalError -ErrorAction SilentlyContinue
        $ErrorActionPreference = $CurrentErrorActionPreference
    Function SetObjectCache
        #Set object cache user account properties based on the value of the parameters supplied
        $WebApp.Properties["portalsuperuseraccount"] = $PortalSuperUser
        $WebApp.Properties["portalsuperreaderaccount"] = $PortalSuperReader
        #Create a New Policy for the Super User
        $SuperUserPolicy = $WebApp.Policies.Add($PortalSuperUser, "Portal Super User Account")
        #Assign Full Control To the Super User
        $SuperUserPolicy.PolicyRoleBindings.Add($WebApp.PolicyRoles.GetSpecialRole([Microsoft.SharePoint.Administration.SPPolicyRoleType]::FullControl))
        #Create a New Policy for the Super Reader
        $SuperReaderPolicy = $WebApp.Policies.Add($PortalSuperReader, "Portal Super Reader Account")
        #Assign Full Read to the Super Reader
        $SuperReaderPolicy.PolicyRoleBindings.Add($WebApp.PolicyRoles.GetSpecialRole([Microsoft.SharePoint.Administration.SPPolicyRoleType]::FullRead))
        #Commit these changes to the web application
        $WebApp.Update()
    #Script
    #Call the ClearScriptVariables function to empty out varialbes that should be blank when the script executes.
    ClearScriptVariables
    #Validate the URL passed by calling the ValidateURL function
    Write-Progress -Activity "Creating Web Application" -Status "Validating Web Application URL Variables"
    ValidateURL $WebApplicationURL
    #Validate the application pool variables by calling the ValidateAppPool function
    Write-Progress -Activity "Creating Web Application" -Status "Validating Application Pool Variables"
    ValidateAppPool $ApplicationPoolDisplayName $WebApplicationURL
    #As long as CriticalError has not been set, create the web application using the variables passed.
    if(!($CriticalError))
    Write-Progress -Activity "Creating Web Application" -Status "Creating Claims-Based Web Application"
    CreateClaimsWebApp $WebApplicationName $WebApplicationURL $ContentDatabase $HTTPPort
    error  is thrown below:
    deployment
    S D:\myworkspace\bif> iisreset
    ttempting stop...
    nternet services successfully stopped
    ttempting start...
    nternet services successfully restarted
    S D:\myworkspace\bif> .\CreateSP2013ClaimsWebApplication.ps1
    reating New Managed Account And App Pool
    ew-SPWebApplication : "mysrvr:2020/" contains invalid character ':'.
    t D:\myworkspace\bif\CreateSP2013ClaimsWebApplication.ps1:68 char:43
             Set-Variable -Name WebApp -Value (New-SPWebApplication
    ApplicationPool  ...
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~
       + CategoryInfo         
    : InvalidData: (Microsoft.Share...PWebApplication:
      SPCmdletNewSPWebApplication) [New-SPWebApplication], ArgumentException
       + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletNewSPWeb
      Application
    annot index into a null array.
    t D:\myworkspace\bif\CreateSP2013ClaimsWebApplication.ps1:235 char:5
         $WebApp.Properties["portalsuperuseraccount"] = $PortalSuperUser
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       + CategoryInfo         
    : InvalidOperation: (:) [], RuntimeException
       + FullyQualifiedErrorId : NullArray
    cannot index into a null array.
    t D:\myworkspace\bif\CreateSP2013ClaimsWebApplication.ps1:236 char:5
         $WebApp.Properties["portalsuperreaderaccount"] = $PortalSuperReader
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       + CategoryInfo         
    : InvalidOperation: (:) [], RuntimeException
       + FullyQualifiedErrorId : NullArray
    ou cannot call a method on a null-valued expression.
    t D:\myworkspace\bif\CreateSP2013ClaimsWebApplication.ps1:239 char:5
         $SuperUserPolicy = $WebApp.Policies.Add($PortalSuperUser, "Portal Super
    ser ...
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~
       + CategoryInfo         
    : InvalidOperation: (:) [], RuntimeException
       + FullyQualifiedErrorId : InvokeMethodOnNull
    ou cannot call a method on a null-valued expression.
    t D:\myworkspace\bif\CreateSP2013ClaimsWebApplication.ps1:242 char:5
    SuperUserPolicy.PolicyRoleBindings.Add($WebApp.PolicyRoles.GetSpecialRole([
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~
       + CategoryInfo         
    : InvalidOperation: (:) [], RuntimeException
       + FullyQualifiedErrorId : InvokeMethodOnNull
    ou cannot call a method on a null-valued expression.
    t D:\myworkspace\bif\CreateSP2013ClaimsWebApplication.ps1:245 char:5
         $SuperReaderPolicy = $WebApp.Policies.Add($PortalSuperReader, "Portal
    uper  ...
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~
       + CategoryInfo         
    : InvalidOperation: (:) [], RuntimeException
       + FullyQualifiedErrorId : InvokeMethodOnNull
    ou cannot call a method on a null-valued expression.
    t D:\myworkspace\bif\CreateSP2013ClaimsWebApplication.ps1:248 char:5
    SuperReaderPolicy.PolicyRoleBindings.Add($WebApp.PolicyRoles.GetSpecialRole
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~
       + CategoryInfo         
    : InvalidOperation: (:) [], RuntimeException
       + FullyQualifiedErrorId : InvokeMethodOnNull
    ou cannot call a method on a null-valued expression.
    t D:\myworkspace\bif\CreateSP2013ClaimsWebApplication.ps1:251 char:5
         $WebApp.Update()
         ~~~~~~~~~~~~~~~~
       + CategoryInfo         
    : InvalidOperation: (:) [], RuntimeException
       + FullyQualifiedErrorId : InvokeMethodOnNull

    Hi Benjamin,
    If you're getting a Null Value error anywhere, that means a variable you're referencing isn't set to anything. If you're getting that try echoing out each variable after it's assigned to see if it's set to anything.
    The link you are referring is for SharePoint 2010 and verified on Windows Server 2008 R2 and 2008, but not Windows Server 2012.
    The approach in this case includes the following per the blog:
    Check to see if a web application with the current specified URL is already in use – exit if it is
    Check to see if an application pool with the name already exists. If so use it, otherwise create one
    Create a web application based on the parameters specified
    Assign the object cache properties to the new web application
    Create policies for the object cache users to the web application
    To simplified the code, we could use powershell below to check if web application and application pool have been already in use ahead. And skip the last two steps in the first time.
    Get-SPWebApplication | fl displayname, applicationpool
    Please refer to New-SPWebApplication
    which is used to create a new web application within the local farm:
    http://technet.microsoft.com/en-us/library/ff607931(v=office.15).aspx. Only two parameters i.e. ApplicationPool and Name are required, we could try a simple command at first:
    Please run Get-SPManagedAccount to check the managed account, then execute the command below:
    $ap = New-SPAuthenticationProvider
    New-SPWebApplication -Name "Contoso Internet Site" -Port 2014 -ApplicationPool "ContosoAppPool" -ApplicationPoolAccount (Get-SPManagedAccount "Domain\Administrator")
     -AuthenticationProvider $ap -SecureSocketsLayer
    Regards,
    Rebecca Tu
    TechNet Community Support

  • How to handle multiple datasources in a web application?

    I have a J2EE Web application with Servlets and Java ServerPages. Beside this I have a in-house developed API for certain services built using Hibernate and Spring with POJO's and some EJB.
    There are 8 databases which will be used by the web application. I have heard that multiple datasources with Spring is hard to design around. Considering that I have no choice not to use Spring or Hibernate as the API's are using it.
    Anyone have a good design spesification for how to handle multiple datasources. The datasource(database) will be chosen by the user in the web application.

    Let me get this straight. You have a web application that uses spring framework and hibernate to access the database. You want the user to be able to select the database that he wants to access using spring and hibernate.
    Hopefully you are using the Spring Framework Hibernate DAO. I know you can have more that one spring application context. You can then trying to load a seperate spring application context for each database. Each application context would have it's own configuration files with the connection parameters for each datasource. You could still use JNDi entries in the web.xml for each datasource.
    Then you would need a service locater so that when a user selected a datasource he would get the application context for that datasource which he would use for the rest of his session.
    I think it is doable. It means a long load time. And you'll need to keep the application contexts as small as possible to conserve resources.

  • Session getting lost between two applications deployed on two WLS versions.

    Hi,
    Jdev version 11.1.1.5.
    I am facing an issue of session being getting lost. Let me explain the scenario.
    Our client has a legacy application(xyz) running on Web logic server(10.3.3). We have developed an application which was deployed on Web logic Server(10.3.5).
    The Legacy application will call the developed application using URL invocation. In the legacy application, the logged in user information is stored in session and the same parameter is appended to URL to call the developed application.
    In the developed application, we have a servlet which reads the URL and based on the parameter appended to it, we set the context of the application. Everything is working fine till here.
    But, in the developed application, we have a link to navigate to the legacy application. Once navigated, in legacy application if the user again calls the developed application, the session which was set earlier is lost.
    Because of this, the context is not getting set in the developed application.
    Is there a way, I can resolve this issue? OR can I raise SR with Oracle to look into it. Please suggest.
    Thanks,
    Umesh

    Thanks Frank for the reply.
    Session sharing was not configured in WLS.
    I was searching for Session sharing and I found this article written by Lucas Jellema. http://technology.amis.nl/2012/01/18/sharing-session-state-between-jee-web-application-through-weblogic-session-descriptor-of-sharing-enabled/
    Here it is mentioned that for session sharing, we need to check the Enable session sharing in weblogic-application.xml.
    My question is do we need to make this change in both the application? i.e Legacy application and developed application.
    And it was mentioned in the article that both the web app were deployed to a single Web Logic Server. But in my case the Legacy application is deployed to 10.3.3 and developed application is deployed to 10.3.5.
    In this case will the session sharing works?
    Any how I will let our client know about this change and will give a try.
    Thanks,
    Umesh

  • Implementing  Resultset   with  Pagination in a Web Application

    Hi
    How is best way for to implent Pagination without lost performance using Cursor ?
    In Client side Have Buttons
    A-D
    E-J
    K-P
    Q-Z
    When Letters are Initial names , there is too a button where return all records
    Is there some good way or there is relevance ?
    Thank you in advance

    You can certainly reduce the latency of web requests by making things asynchronous. e.g. if you have a slow piece of functionality such as registration & sending of emails back, you could make that completely asynchronous and just send a message to a JMS Queue then consume it in another process/thread. Then the user of your web application doesn't have to wait for the slow processing to complete before their browser refreshes.
    To make it easy to integrate JMS into your application, you might want to stick to a POJO model and then use Spring Remoting over JMS via Lingo
    http://lingo.codehaus.org/
    James
    http://logicblaze.com/

  • Authentication Across Multiple Web Applications (Revisited)

              Its been an ongoing battle, but I've made some insight into this situation. The problem stands as it seems impossible to authenticate against one web application deployed as a WAR archive and have that authentication carry across to another web application with the same security constraints. I've been told by BEA that, quote:
              "It seems to me that we are violating section 11.6 of the servlet 2.2 spec which talks about webapps"
              I've also been told that this is fixed in WLS 6.0, reference issue #38732.
              For those of us building production environments using 5.1 instead of 6.0 XML based configuration, this does NOT solve our problem.
              I've dug further into the bowels of 5.1 and found that if you manually set the realm name in the login-config of the security constraint in the web.xml file in each WAR deployment as such:
                   <login-config>
                        <auth-method> [whichever method] </auth-method>
                        <realm-name>WebLogic Server</realm-name>
                   </login-config>
              Authentication will carry across web applications. However, I've noted that the session management then becomes unpredictable. For example:
              I log into the application TESTAPP1 which contains a protected servlet that outputs the session ID and attempts to get the authenticated principal name from the "_wl_authuser_" session variable. Upon first load of the page (after the login dialog box), the session is null [can be fixed with .getSession(true) call instead] and the "_wl_authuser_" object does not exist. Reload the page and the session appears as well as the "_wl_authuser_" object. Strange.
              I then move to TESTAPP2, which does not prompt me for authentication but also is missing the session in the same manner. Upon browser reload, the session is created with a different ID and the "_wl_authuser_" object is now available with the appropriate principal name.
              Upon moving back to TESTAPP1, I am not prompted for authentication however, I am assigned yet another session ID after browser reload, different from the first.
              So it seems that although authentication is carried across web applications, the session IDs as you move from TESTAPP1 to TESTAPP2 change, and then change again but not back to the original when going back to TESTAPP1.
              This is a particular problem since we are using Vignette's V5 as our main client and tracking sessions through V5 - this would quickly become unmanageable if a single page view access three or four different application components with three or four different session ids.
              I'm wondering if we can expect the same behavior from WLS 6.0?
              Ideally, I'd like to see WebLogic use a single session ID to track users across multiple web applications but still have session independence between applications. So if I store something in session in TESTAPP1, its not available in TESTAPP2. Does this outline the behaviour in WLS 6.0? Can anyone verify this?
              Some food for thought. Thanks!
              ./Chris
              Senior Systems Anaylst
              MassMutual Financial Group
              

    Hello! I am searching an answer to this question too!!!
    Did you get some news regarding this item?
    Regards,
    C.M.

Maybe you are looking for

  • Jar not working HELP!

    I've written the code for an mp3 player and I want to make it jar. I've used javazoom for playing the audio.Apparently when I export it javazoom is not exported or something like that,because if I take out the parts in the code that use javazoom,the

  • How to fix the value of first column in the JTable in java swing for every

    Hi , I have a swing page that have table panel in which there is a table of size 7x4 now when I click on the perticulat row then that row data will displayin the table like that the selected row become the second column in the new table and the fist

  • Why Am I Not Seeing All My Public Themes On My Public Account?

    Hello, I have been using Kuler with iphone for a few days and I love the potential of this service. It is a lot of fun. One thing I am having an issue with is seeing all my public themes on my public account. My account is here: https://kuler.adobe.c

  • Problem while copying function modules..

    Hi, I am trying to copy a function module called MRM_ENTRY_ERS to Z function module. Now the problem is there are 6 performs inside the function module and again in those 6 performs there are around 10s of performs. So its really hectic to create inc

  • 7962 VOIP Phone Dies After switch upgrade/reboot

    Hi Recently I upgraded several access swicthes (2960, 3650's) which have POE and Cisco 7962 phones connected.  After the upgarde and subsequent reboot, the IP phones failed to power up and are effectively dead. All that happen on the phone now is tha