Maintaing session in multiple servers
Hi ,
I need to maintain the session of logged in client even though the client goes
out of my system. Currently we got 2 systems the client logs into system A does
some operation and goes to System B but the timeout of session is 10 mnts before
that if the client doesn' return back the session is lost. However we are trying
to notify the server by some mechanism like sending a message, which doesn't work
because our network don't have outbound connection to notify the other server.
Is there any possible solution of notifying the other server the client is still
active on other server,??
Thanks and all help appreciated,.
Webboy
You can't share sessions between webapps.
You should look into single-sign-on (SSO) and CAS: http://www.ja-sig.org/products/cas/index.html. It's opensource.
If you are using Spring, take a look at their security solution Acegi - it's very good and have a well documentet inclusion of CAS. If you aren't using Spring - take a look at it - maybe it will make your developing easier.
- J�rgen L�kke -
Similar Messages
-
Logoff remote sessions to multiple servers for the same user
Hi,
I'm after some advice, I have a junior DBA working with me who has a tendancy to leave remote connections on various production servers, we have a large estate about 300 servers and trying to identify the servers is a difficult task.
I was hoping to use SQL Server Management Studio / Registered servers and issue one simple command against all servers to logoff the account which has been left connected. I normally log into each server start Task Manager/Users and log off the account,
this then stops the account locking but only when I have identified all servers he is still connected to. I have tried the comand prompt Logoff and session ID, this works great but the session ID on each server can be different.
Any help or advice would be great! Thanks in advance.Hi
I think it would be easier to enable session time out settings using GPO considering you work in a domain environment..
Having session timeouts settings you could say... hey after 15 min of inactivity disconnect the user and then after 15 min of disconnected session log him off
Take a look at this URL: http://technet.microsoft.com/en-us/library/cc754272.aspx
Hope this helps
Best regards
Joaquin Camarero Muñoz -
How to set up Planning on Multiple Servers
Hi,
1) I am trying to install a Finance Planning application so that it runs on one Planning Web Server and the other operations Planning application on another Planning 9.3.1 web server. Is that possilbe?
2) May be unrelated question:
HP_Windows_Install.pdf has only a few lines explaining how to set up Planning on Multiple Servers. Is it as simple as that?
Here are the "few lines" from install.pdf:
Perform the same installation and configuration process on your secondary servers, making sure to choose
Planning Web Server component for any secondary server.
Make sure you select Reuse existing tables when prompted during the Configure a Database task
in the Configuration utility.Tomcat.
But it will be nice to know the steps for Weblogic too - as Weblogic will be bundled "free" with future releases of Planning. -
Not sure what i am looking for at the moment but we have 6 * solaris 9 servers, 5 * solaris 10, about 30 zones and it's only going to get bigger.
it's become a real pain to manage(add,remove,keep track) users across multiple server/zones. How do other people go about managing multiple servers i for one don't want to log into each box/ zone and create a user accout which is currently what we do.
Guess what i am looking for is some way of managing all of our boxes from a central point.Using a directory service like NIS or LDAP will allow user accounts for many hosts to be created and managed centrally. LDAP is what Active Directory is based on. Sun's implementation is called iPlanet. Sun One Directory Server, or Java Directory service, depending on the phases of the moon.
For spotting problems on servers (disk full, host down, &c), we use nagios. It's fantastic.
My employer also spent a good deal of money on opsware, but shall we say the benefits of it are not yet obvious. -
Folder Comparison from multiple servers
I need to compare folders from multiple servers which do not have direct connection so i was trying to generate a text file with command dir /b /s >c:\server1.txt and feed them to script to compare.
my desired output is csv file in the following format
File name,Server1,server2,server3,is it missng file?
File1,yes,yes,yes,No
file2,Yes,Yes,No,Yes
File3,Yes,No,Yes,Yes
File4,No,Yes,Yes,Yes
these folders contains few hundred thousand files and the script is taking 4 to 5 hours to run the comparison. i thought threads will help to run fast using parallel processng but did not help. i have no expreience with threads and after searching for examples
and implementing it was even slower than normal.
i probably am doing something wrong. Any help is much appreciated.
The following is the script so far and it works fine but its taking long time.
[array]$contentArray = @()
[array]$allfileslist = @()
[array]$uniquefileslist = @()
[array]$allfilesSRVlist = @()
[array]$srvlist = @()
$FolderName = Split-Path -parent $MyInvocation.MyCommand.Definition
$reportName = $FolderName + "\ComparisonReport3.csv"
$ListOfFiles = get-childitem $FolderName
$List = $ListOfFiles | where {$_.extension -ieq ".txt"}
$list.count
$index = 0
foreach($listitem in $List){
$listfilename = $listitem.FullName
$listname = $listitem.Name
$listname = $listname.replace(".txt","")
$srvlist = $srvlist + $listname
write-host $listfilename
#$StrContent = get-content $listfilename
$StrContent = [io.file]::ReadAllLines($listfilename)
$contentArray += ,@($StrContent)
$StrContent.count
$contentArray[$index].count
$index = $index + 1
for($i = 0;$i -lt $index;$i++){
$allfileslist = $allfileslist + $contentArray[$i]
$allfileslist.count
$uniquefileslist = $allfileslist | sort-object | get-unique
$Stroutline = "File Name,"
foreach($srvlistitem in $srvlist){
$Stroutline = $Stroutline + $srvlistitem.ToUpper() + ","
$Stroutline = $Stroutline + "Is it Missing file?"
Write-Output $Stroutline | Out-File "$reportName" -Force
foreach($uniquefileslistitem in $uniquefileslist){
$Stroutline = ""
$missingfile = "No"
$Stroutline = $uniquefileslistitem + ","
for($i=0;$i -lt $index;$i++){
if($contentArray[$i] -contains $uniquefileslistitem){
$Stroutline = $Stroutline + "Yes,"
else{
$Stroutline = $Stroutline + "No,"
$missingfile = "Yes"
$Stroutline = $Stroutline + $missingfile
Write-Output $Stroutline | Out-File "$reportName" -Force -Append
$j++
Following is the script i modified using threads example. this is running even slower.
[array]$contentArray = @()
[array]$allfileslist = @()
[array]$uniquefileslist = @()
[array]$allfilesSRVlist = @()
[array]$srvlist = @()
$FolderName = Split-Path -parent $MyInvocation.MyCommand.Definition
$reportName = $FolderName + "\ComparisonReport3.csv"
$ListOfFiles = get-childitem $FolderName
$List = $ListOfFiles | where {$_.extension -ieq ".txt"}
$list.count
$index = 0
#$contentArray = New-Object 'object[,]' $xDim, $yDim
foreach($listitem in $List){
$listfilename = $listitem.FullName
$listname = $listitem.Name
$listname = $listname.replace(".txt","")
$srvlist = $srvlist + $listname
write-host $listfilename
#$StrContent = get-content $listfilename
$StrContent = [io.file]::ReadAllLines($listfilename)
$contentArray += ,@($StrContent)
$StrContent.count
$contentArray[$index].count
$index = $index + 1
for($i = 0;$i -lt $index;$i++){
$allfileslist = $allfileslist+ $contentArray[$i]
$allfileslist.count
#$uniquefileslist = $allfileslist | select –unique
get-date
$uniquefileslist = $allfileslist | sort-object | get-unique
$uniquefileslist.count
get-date
$Stroutline = "File Name,"
foreach($srvlistitem in $srvlist){
$Stroutline = $Stroutline + $srvlistitem.ToUpper() + ","
$Stroutline = $Stroutline + "Is it Missing file?"
Write-Output $Stroutline | Out-File "$reportName" -Force
$j = 1
$count = $uniquefileslist.count
$stroutput = ""
$maxConcurrent = 50
$results= ""
$PauseTime = 1
$uniquefileslist | %{
while ((Get-Job -State Running).Count -ge $maxConcurrent) {Start-Sleep -seconds $PauseTime}
$job = start-job -argumentList $_,$contentArray,$index -scriptblock {
$StrArgFileName = $args[0]
$ArgContentArray = $args[1]
$ArgIndex = $args[2]
$Stroutline = ""
$missingfile = "No"
$Stroutline = $StrArgFileName + ","
for($i=0;$i -lt $ArgIndex;$i++){
if($ArgContentArray[$i] -contains $StrArgFileName){
$Stroutline = $Stroutline + "Yes,"
else{
$Stroutline = $Stroutline + "No,"
$missingfile = "Yes"
$Stroutline = $Stroutline + $missingfile
$Stroutline
While (Get-Job -State "Running")
Start-Sleep 1
$results = Get-Job | Receive-Job
$results
$stroutput = $stroutput + "`n" + $results
Remove-Job *
Write-Output $stroutput | Out-File "$reportName" -Force -Append
Thank you very much!
Vamsi.no i am not comparing the number of lines.. count i used was only for my information... it has nothing to do with the compare. here is the script with out count...
[array]$contentArray = @()
[array]$allfileslist = @()
[array]$uniquefileslist = @()
[array]$allfilesSRVlist = @()
[array]$srvlist = @()
$FolderName = Split-Path -parent $MyInvocation.MyCommand.Definition
$reportName = $FolderName + "\ComparisonReport3.csv"
$ListOfFiles = get-childitem $FolderName
$List = $ListOfFiles | where {$_.extension -ieq ".txt"}
$index = 0
foreach($listitem in $List){
$listfilename = $listitem.FullName
$listname = $listitem.Name
$listname = $listname.replace(".txt","")
$srvlist = $srvlist + $listname
$StrContent = [io.file]::ReadAllLines($listfilename)
$contentArray += ,@($StrContent)
$index = $index + 1
for($i = 0;$i -lt $index;$i++){
$allfileslist = $allfileslist+ $contentArray[$i]
$uniquefileslist = $allfileslist | sort-object | get-unique
$strfinal = "File Name,"
foreach($srvlistitem in $srvlist){
$strfinal = $strfinal + $srvlistitem.ToUpper() + ","
$strfinal = $strfinal + "Is it Missing file?"
foreach($uniquefileslistitem in $uniquefileslist){
$missingfile = "No"
$Stroutline = $uniquefileslistitem + ","
for($i=0;$i -lt $index;$i++){
if($contentArray[$i] -contains $uniquefileslistitem){
$Stroutline = $Stroutline + "Yes,"
else{
$Stroutline = $Stroutline + "No,"
$missingfile = "Yes"
$Stroutline = $Stroutline + $missingfile
$strfinal = $strfinal + "`n" + $Stroutline
Write-Output $strfinal | Out-File "$reportName" -Force -Append
if you want to test it... just create two text files and put them in the same folder as the script.
server1.txt will have the following content
filename1
filename2
filename3
server2.txt will have the following content
filename1
filename2
filename4
it should generate the csv file ComparisonReport3.csv
filename,server1,server2,Is it Missing file?
filename1,yes,yes,no
filename2,yes,yes,no
filename3,yes,no,yes
filename4,no,yes,yes -
Multiple Servers for Development Team in WLI2.1 on wlidomain
Has anyone tried to create multiple servers so that a development team can share
the resources of a domain with WLI 2.1? If so, how did it work. I have done this
with WLS but would like to try it with WLI.
I tried to create multiple servers, but, had difficulty as there seems to many
resources that are tied to the server name and default port. Also, I tried to
change the port and that caused alot of problems on the myserver.Thanks John.
I was not looking for something which is scaling out Hyperion Planning(via load balancer)/Horizontal clustering.
But was looking for some thing like Vertical clustering(multiple JVMs/nodes of Hyperion Planning within a single planning server) which was applicable in 11.1.1.3.
Came to know that with 11.1.2.2 vertical clustering not more supported.
Thanks -
Multiple servers to one APEX install.
At the moment, I'm in the position of having APEX running on the site using the internal Oracle server. This was the initial plan as there aren't many IT resources on site, so maintaining the more complex setups was not really an option. However, I'd like to spend a little time investigating the Apache based setup and especially the APEX Listener (as that sounds as though it'll end up supporting NTLM).
The question is, is it possible to have multiple servers, all connected to the APEX install, serving correctly (spotting subtle issues would probably be beyond my ability to spot quickly)?
The aim for this is to find a method of running multiple access methods simultaneously, enabling efficient migration from one to another should the benefits of running with a particular method (such as APEX Listener) become overwhelmingly strong.James,
yes, no problem, you can run multiple different connection methods (apex listener, mod_plsql, epg) parallel.
brgds,
Peter
Blog: http://www.oracle-and-apex.com
ApexLib: http://apexlib.oracleapex.info
Work: http://www.click-click.at
Training: http://www.click-click.at/apex-4-0-workshops -
How to stop sql services and sql agent services on multiple servers
Looking for a t-sql/powershell script to stop/start sql services on multiple servers. Plan is to execute script from centralized server.
Rahulsee
http://www.databasejournal.com/features/mssql/article.php/3644906/Automatically-Stopping-and-Restarting-SQL-Server.htm
http://sqlpowershell.wordpress.com/2013/04/11/powershell-check-start-and-stop-sql-services-of-a-remote-servers/
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Capture performance metrics across multiple servers
Hello. I'm still very new to Powershell but anyone know of a good Powershell v.3 -4 script that can capture performance metrics across multiple servers with an emphasis on HPC (high performance computing) and gen up a helpful report, perhaps in HTML or Excel
format?
Closest thing I've found and used is this line of powershell:
http://www.microsoftpro.nl/2013/11/21/powershell-performance-monitor-on-multiple-remote-computers/
Maybe figure out a way to present that in better format, such as HTML or Excel.
Also, if someone can suggest some performance metrics to look at with an HPC perspective. For example, if a CPU is running at 100 utilization, figure out if which cores are running high, see how many threads are queued waiting for CPU time, etc...As far as formatting is concerned,
ConvertTo-HTML is a basic HTML output format, but you can spice it up as much as you like:
http://technet.microsoft.com/en-us/library/ff730936.aspx
Out-Grid is very functional and pretty simple:
http://powertoe.wordpress.com/2011/09/19/out-gridview-now-has-a-passthru-parameter/
Here's an example with Excel:
Excel
Worksheets Example
This might be a good reference for HPC, I don't have access to an HPC environment so I can't offer much advice there.
http://technet.microsoft.com/en-us/library/ff950195.aspx
It might be better to keep unrelated questions separate, so a thread doesn't focus on one question and you lose time getting an answer to another.
I hope this post has helped! -
Selective IP filtering for multiple servers in a domain?
Is it possible to have IP filtering on for certain servers in a
domain, and not for others?
This is the situation:
I am deploying two servers in mydomain, so let's call it serverA
and serverB. I want serverA to accept all connections while
serverB accepts connections only from certain IPs. I know you
can do IP filtering using SimpleConnectionFilter in the
"Connection Filter" option in Security->General tab of the Admin
console, but this turns on IP filtering for BOTH serverA and
serverB! How do I turn it on for one, and not the other? Any
help would be greatly appreciated. Thank you.
LeonHi,
Yes you can have muliple servers in a domain. You can create as many managed
servers as your hardware can handle. When you added the server, did you use the
startManagedWebLogic.sh (or .cmd) script to start the server. Once you do that,
you should see the server as running.
Hope this helps,
pat
"MS" <[email protected]> wrote:
>
Hello All,
Is it possible to have multiple servers in a domain?
When I add a new server, the State is reported in the weblogic console
as "UNKNOWN".
What does this mean?
rgds
MS -
Packaging and deploying jax ws (webservice) in multiple servers
I am a java developer and new to JAX-WS.
i got one requirement to create a web service using jax-ws, packaging using ant build and deploying it in JBOSS and WEBSPHERE server.
The process which i followed to create a web service below:
1) created a web service class using @webservice annotation
2) created a client side artifacts using wsimport which is provided by Jdk and created a war and deployed it jboss.
3) wsdl is getting generated while deploying a war using a URI - (http://localhost:8080/mywebapplication/routing?wsdl)
4) create client class to call the webservice. everything is working fine for me.
Need your expert input for the following below:
1) if i write the ant build script to package the client stubs, how i can use wsdl location in wsimport ant task. should i use URI (wsdl="http://localhost:8080/mywebapplication/routing?wsdl") or
(wsdl="d:/route.wsdl")? which is the best practice?
2) i want to deploy my webservice in JBOSS and WEBSPHERE in different machine and different port no?
for e.g
* http://ip1:port1/mywebapplication/route?wdl*
* http://ip2:port2/mywebapplication/route?wdl*
* http://ip3:port3/mywebapplication/route?wdl*
how to mention dynamic ipaddress and port no while running ant build script?
how to change the wsdl location and port number in generated wsdl and RoutingService client stubs class dynamically? (dont want to change soad address location manually)
* Do i need to use wsgen to generate server stubs?*
* Need your inputs in packaging and deploying jax ws in multiple servers.*
Thanks in advance.how to change the wsdl location and port number in generated wsdl and RoutingService client stubs class dynamically? (dont want to change soad address location manually)
Your client stub should look like that...
<code>
@WebServiceClient(name = "MyClientStub", targetNamespace = "http://www.openuri.org/", wsdlLocation = "http://localhost:8080/MyClientStub/MyClientStubProxy/#%7Bhttp%3A%2F%2Fwww.openuri.org%2F%7DMyClientStub?wsdl")
public class MyClientStub
extends Service
public MyClientStub(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
</code>
You can use the constructor above, like that...
<code>
URL baseUrl = MyClientStub.class.getResource(".");
URL url = new URL(baseUrl, "http://your-server:your-port-no/MyClientStub/MyClientStubProxy/#%7Bhttp%3A%2F%2Fwww.openuri.org%2F%7DMyClientStub?wsdl");
MyClientStub stub = new MyClientStub(url, new QName("http://www.openuri.org/", "MyClientStub");
</code> -
10.1.3.4 - FTP adapter polling multiple servers
Is it possible to get files from multiple servers for a given BPEL or ESB service ? My source application writes to its local file systems in the exact same location, but 2 different servers. Is there anyway we can instruct the FTP adapter to poll both the servers ? or do we have to duplicate the call to poll the 2nd server ?
Don't think so. We have solved it by having one esb ftp-adapter to each server and route them together in the same routing service.
-
Collecting Notifications from multiple servers and applications
Hi,
I'm researching JMX technology for our Enterprise-wide monitoring needs.
I've got a good understanding of how to create jmx connections and instrument resources for monitoring in a 1-to-1 jmx client to application scenario.
However, I need to manage (and collect notification alerts) from multiple servers/applications.
Any ideas where to start learning how to do this?
Thanks,
JonHi Gavin,
So, you're looking into JMX monitoring solutions too. great! I've collected some good links and examples.
You can email me privately at jcolby550 "at" hotmail "dot" com, maybe we can share ideas. -
Generate WWPN from Multiple Servers
Hello, I am trying to make this script that will generate the WWPNs from multiple servers, but for some reason it is only generating the WWPN of the machine but not the hostnames, how do I make it generate the hostname of each WWPN that it lists?
$computers=Get-ContentC:\scripts\servers.txt
Get-WmiObject
-computername$computers-classMSFC_FibrePortHBAAttributes-namespace"root\WMI"|Select-ExpandpropertyAttributes|%{
($_.PortWWN
|%{"{0:x2}"-f$_})
-join":"}Hi Gramelot,
you only get the PortWWN, because you select it exclusively at the end of your pipeline. Here's a slight rebuild:
# Get list of computernames
$Computers = Get-Content "C:\scripts\servers.txt"
# Prepare result storage
$Results = @()
# Iterate over each Computer
foreach ($Computer in $Computers)
# Grab PortWWN
$PortWWN = Get-WmiObject -computername $Computer -class MSFC_FibrePortHBAAttributes -namespace "root\WMI" | Select-ExpandpropertyAttributes | %{ ($_.PortWWN | %{ "{0:x2}" -f $_ }) -join ":" }
# Add result to result storage
$Results += New-Object PSObject -Property @{ Computer = $Computer; PortWWN = $PortWWN }
# Report result
$Results
Cheers,
Fred
There's no place like 127.0.0.1 -
Multiple Servers with same Remote Interface?
Is it possible to declare the same remote interface on multiple RMI servers? Secondly, is it possible to pick which RMI server will manage a particular request?
In other words, imagine if multiple servers could service a particular request that has the same signature, but the client wants to specify which server to send the invocation. An example would be the following:
public String getPhoneNumber(String pLastName) ;But the client should decide that server A should manage requests of last names starting with A-G, server B should handle H-P, and server C should handle Q-Z. The remote method invocation is the same, but the server upon which is should be invoked needs to be determined at runtime.
I realize this can be done multiple ways, with an interim proxy server that designates the server. However, I'm most interested in the ability within the RMI and/or JNDI standard to select and invoke methods on a particular server.
Thanks for any help."Server" is a little bit vague in this context.
My assumption is that you want separate RMI servers running on separate hosts. (Otherwise, why bother with multiple "servers"?)
That being said, it's not clear to me how you would expect RMI to sort out something as application-specific as you suggest. It sounds to me like you need your own registry/redirector. This is going to either be an rmiregistry rewrite by you, or - as was suggested by another poster - a proxy.
Maybe you are looking for
-
Sales order - Schedule line or Availability check
Dear friends, I have one requirement on sales order availability check or schedule line. When i enter material and quantity in sales order it should not determine stock from one storage location (0003 storage location for damaged goods) through avail
-
I have an iPhone 4s and i want to upgrade to the 5. How much does it cost to upgrade through an apple store while holding an existing plan with optus?
-
Class not found error afer loading classes to oracle
hi i have loaded quite a few jars into oralce 11g databse created a java stored function and executed it some times it works... and hits the java front end environment... we are hitting a servlet.. and recording some output statements .. in the funct
-
Can you search by file folder size?
I have 42 GB left on my hard drive and I've purged as much as I can but it still says I have used 148.93 GB of space, of which I cannot really account for in Documents, Music, Movies or Photos (they are all stored on external hard drives). My Applica
-
NoClassDefFoundError When Running the InitialContextExample !
I am trying to run the JNDI example program InitialContextExample.java. I am able to compile the program OK but I run into the following error when I try to create the InitialContext object: java.lang.NoClassDefFoundErro