JNDI replication and rebinging from multiple servers

Here is what I need:
Server1 binds ObjX to it's JNDI tree (which replicates the object to the
other servers in the cluster)
Server2 does a lookup on ObjX, changes some values and rebinds it back to
it's JNDI tree (which should replicate the changes to the other servers
including Server1).
The above does not happen because, Server1 is known to be the owner of ObjX,
and thus instead of getting replicated data after Server2 rebinds, it gets
duplicate name errors.
Is there anyway to make the above work the way I want it to?

It is bad to use JNDI to replicate application data/cache in the cluster.
If you are sure that you want to use multicast to replicate your data,
in 6.0 you can use JMS:
http://e-docs.bea.com/wls/docs60/jms/implement.html#1206428
Or you can use javagroups: http://sourceforge.net/projects/javagroups
John Boyd <[email protected]> wrote:
Yes, exactly.
"Dimitri Rakitine" <[email protected]> wrote in message
news:[email protected]..
Are you trying to use JNDI to replicate runtime data across the cluster?
John Boyd <[email protected]> wrote:
Here is what I need:
Server1 binds ObjX to it's JNDI tree (which replicates the object to the
other servers in the cluster)
Server2 does a lookup on ObjX, changes some values and rebinds it back
to
it's JNDI tree (which should replicate the changes to the other servers
including Server1).
The above does not happen because, Server1 is known to be the owner of
ObjX,
and thus instead of getting replicated data after Server2 rebinds, itgets
duplicate name errors.
Is there anyway to make the above work the way I want it to?--
Dimitri
Dimitri

Similar Messages

  • 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,
    Jon

    Hi 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.

  • 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

  • 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

  • Can I put an aperture library on a network drive and edit from multiple computers?

    I have an Imac desktop and a macbook pro.  I want to be able to edit pictures from multiple computers.  If I simply put the aperture library on a network server drive in my home, can I edit the same aperture library from both the Imac and the macbook? Rather than always having to sit in my office making changes to files I would love to also be able to do this with my laptop sitting ont the couch or in the kitchen.  Any advice is greatly appreciated. 

    Get yourself a small portable external drive for your Aperture library.
    An Aperture library needs to be on directly connected drive formatted MacOS Extended (Journaled). network access is not supported and can lead to data loss and library corruption.
    See Apple's support document:  Use locally mounted Mac OS X Extended volumes for your Aperture library
    http://support.apple.com/kb/TS3252

  • Select data from multiple servers(instances)

    Hi All,
    Is possible that we can login to SQLPLUS of one server and be able
    to select data from other servers. For MSSQL server we can use
    opendatasource but I don't know if in ORACLE we can
    get the data from other servers by login to SQLPLUS of one server.
    Your help is greatly appreciated.
    Thanks in advance for your response.
    JP

    Hi,
    Please try this ...
    DATA: BEGIN OF ITAB1 OCCURS 0.
            INCLUDE STRUCTURE A_TABLE.
    DATA: END OF ITAB1.
    DATA: BEGIN OF ITAB2 OCCURS 0.
            INCLUDE STRUCTURE B_TABLE.
    DATA: END OF ITAB1.
    DATA: BEGIN OF ITAB3 OCCURS 0.
            INCLUDE STRUCTURE C_TABLE.
    DATA: END OF ITAB3.
    SELECT *
    INTO TABLE ITAB1
    FROM A_TABLE
    WHERE A_ID IN S_A_ID.
    SELECT *
    INTO TABLE ITAB2
    FROM B_TABLE
    WHERE A_ID IN S_A_ID.
    SELECT *
    INTO TABLE ITAB3
    FROM C_TABLE
    WHERE A_ID IN S_A_ID.
    To download to PC or application server, please check this sample codes.
    http://www.sapdevelopment.co.uk/file/file_downloadpc.htm
    http://www.sapdevelopment.co.uk/file/file_downloadsap.htm
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • How to get the output of a single command from multiple servers using power shell

    Hi All,
    I have a requirement in my project, wherein I have to find the database list on each server which has autoshrink option is enabled.
    Below is the query which I'm using and I want to automate it in such a way that, I can give the input to powershell script with list of all servers and I need output in csv format which should be giving the database names for which autoshrink option is enabled.
    select name from sys.databases where
    is_auto_shrink_on=1
    Thanks in Advance, Kranthi

    foreach($instance in $instances){
        Invoke-SqlCmd $query -ServerInstance $instance
    https://msdn.microsoft.com/en-us/library/cc281720.aspx
    ¯\_(ツ)_/¯

  • Importing Photos and Music from Multiple users on the same Mac

    I am the same person with multiple users on one iMac. I need to have the same pics and music files on all of the user names on the one computer.
    I have the family pack MobileMe plan.
    Where are the files located for the photos and music in iTunes?
    I would like to import them from one user to another user on the same computer.
    Thank you

    Welcome to the Apple Discussions.
    If you Import the files from one User to another then you will use double the disk space on your HD as you will have multiple copies of everything. Why not simply share the files between accounts?
    For iPhoto 09 (version 8.0.2) and later:
    What you mean by 'share'.
    If you want the other user to be able to see the pics, but not add to, change or alter your library, then enable Sharing in your iPhoto (Preferences -> Sharing), leave iPhoto running and use Fast User Switching to open the other account. In that account, enable 'Look For Shared Libraries'. Your Library will appear in the other source pane.
    Any user can drag a pic from the Shared Library to their own in the iPhoto Window.
    Remember iPhoto must be running in both accounts for this to work.
    If you want the other user to have the same access to the library as you: to be able to add, edit, organise, keyword etc.
    Quit iPhoto in both accounts. Move the Library to the Users / Shared Folder
    (You can also use an external HD set to ignore permissions, a Disk Image or even partition your Hard Disk.)
    In each account in turn: Double click on the Library to open it. (You may be asked to repair the Library Permissions.) From that point on, this will be the default library location. Both accounts will have full access to the library, in fact, both accounts will 'own' it.
    However, there is a catch with this system and it is a significant one. iPhoto is not a multi-user app., it does not have the code to negotiate two users simultaneously writing to the database, and trying will cause db corruption. So only one user at a time, and back up, back up back up.
    Regards
    TD

  • ITunes Library on an Airport Disk?  Read and write from multiple Macs?

    OK, I've scoured the forums for an answer to this, but haven't found anything definitive. Apologies if I've missed the answer, but here's what I want to know:
    I have an iMac as a primary computer, plus a Mac Mini hooked up to my entertainment system, and my girlfriend's powerbook in the house too. There seem to be two main iTunes options: either constantly try to keep all three iTunes libraries synchronised by running around importing files, etc.; or just keep one library, and share it over the network.
    Right now, I am keeping my iTunes library on my iMac and sharing it with the Mac Mini and the powerbook. If anyone wants to add music (or other content) to the library, it has to be through the iMac. Obviously the iMac has to be on for any other computer to access the shared library.
    I want to try to make things simpler by having a single "network" iTunes library that all computers to be able to share (read AND write). I envisage having this "iTunes Server" on an external HD connected to my Airport Extreme as an Airport Disk. If I move the entire contents of ~/music/iTunes (including artwork, library files, etc) to this central location, will the three Macs be able to deal with this, ie can multiple computers share an iTunes library database on an airdisk? Will I be able to stream content from this library to all three computers? Will I be able to import new music into the library from any one of the three computers?

    I am having a very similar problem. I have all of my music saved on a large external disk connected to my airport. I would like to be able to just play what i want from this disk, but i don't like having to download every track i want to listen to. I still want to be able to bring my laptop with me and have some music so i don't want to make this external disk my library folder. Is there a way to play it on my computer similar to a shared library on another computer? Am i asking to much out of apple?

  • Best way to pass data back and forth from multiple NativeProcess threads

    Hi all,
    We have an application that requires multiple concurrent accesses to mulitple instances of a java NativeProcess. The input and output is XML data. I can see how to shunt this back and forth with only a single listening thread on stdout, but with multiple threads the whole thing is going to get rather jumbled. At the moment we are looking at using temporary files to read and write data from each instance, but I wonder if there might be a better way ... any suggestions?
    Thanks.

    I may not be completely understanding your issue...however you should be able to check which NativeProcess instance is giving you stdin/stdout/stderror data by checking the target member of the ProgressEvent. If that is not helpful, could you please provide some additional information about what you are trying to do, and what trouble you are running in to?
    Thanks,
    Chris Thilgen
    AIR Engineering

  • Streaming from multiple servers

    Hello,
    I have a server in Israel with Flash Streaming server
    installed.
    If I'll buy another server and host it in the US, what do I
    need to do in order to broadcast from it also.
    1. Do I have to broadcast twice from the source or can I
    broadcast to one server and it will pass the stream to the other?
    2. Do I need to purchase another FMS license?
    Thanks.

    You said you have Flash Streaming Server - do you mean FMSS.
    If yes, I am sorry you will have to broadcast to both servers from
    your source. There is no way you can republish from server itself
    as you have no control to do that on FMSS - you cant write your own
    apps and also cant modify live and vod apps. Now if you meant FMIS,
    then there are two ways you can achieve it:
    1. Like how JayCharles suggested, you can use remote play and
    play stream from your US server.
    2. Better way would be to use Multi-point publish, once you
    get stream published at your Isreal server, just get hold of it in
    application.onPublish handler and use new NetStream class on
    Server-side to republish it to our US server. However note that
    Multi-point publish is available only from FMS 3.0 release.

  • Reporting from more than one infocube and also from multiple ODS

    Hi all,
            Someone please help me in these issues.
    How can we do reporting from more than one cube ( if data in all the cubes are required, but only a few fields from each cube). And how to do the same with more than one ODS.
    Thanks in advance,
    Sekhar

    Hi Sekahr
    Can u jus create a multiprovider.
    Before creating the multiprovider..Just check the Common charcterstics avilable in
    all the ods based on that give the mapping ..
    and then once u have completd the creation of multiprovider execute the same in
    the tcode <b>Listcube</b> and then create the querys as per the user thats it...
    Regards
    R M K
    Assining points is the only way of saying thanx in SDN ***

  • Multiple JNDI connections and connecting to multiple schemas

    Currently I have some code that makes a connection to a specific schema in the oracle database.
    I need to somehow connect to more than one schema and do some resultset processing on tables in two different schemas.
    How can I do I establish the connection to two schemas with JNDI?
    Is this possible?
    Thanks.

    have u looked at XA datasources and distributed transactions

  • Time Capsule and configuring from multiple computers

    When I configure the TC do I have to do it from one computer? Are the settings saved on only one computer or can I open up AirPort utility from any computer and configure?
    Thx

    Welcome to the discussions, Ed Par!
    You can configure the TC from any computer that has a current version of AirPort Utility.
    If you are setting up Time Machine for backups to the TC, this must be done on each individual computer.

  • 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.

Maybe you are looking for

  • How to prevent duplication on a column with condition

    Hello everyone, I need some advice here. At work, we have an Oracle APEX app that allow user to add new records with the automatic increment decision number based on year and group name. Says if they add the first record , group name AA, for year 201

  • Re: When will the YOUTUBE problem for SONY Model XBR65X900A be fixed?

    Will someone from SONY please read what I wrote and write me an answer? I'm also curious whether messages are just passed around in a circle by a computer..............or.......do human beings actually see them. Are there any human beings there? Is t

  • Technical system  in XI

    Dear All When i am trying to create a technical system in Web As ABAP in my XI server, i do not get any software component version. Please guide with the process for creating a ABAP technical system in XI server Sandeep

  • Help!!!!!!! vrml97loader packages cannot be found

    I have been messing with the vrml97loader packages for a month and I still get the NoClassDefFound error. I have included every path possible to the vrml97loader.class and .jar files without any luck. Can anyone tell me of another vrml loader that mi

  • View  photos on apple tv

    sorry  can anyone help, ? how do i make photos/events  available to watch on apple tv from I photos, I completely forgot