Is read-only access to a static field correct without volatile/locking?
Hello,
I wonder wether the following code is safe:
static UnicomServerCentral instance;
public static void setInstance(UnicomServerCentral central)
synchronized (UnicomServerCentral.class)
instance = central;
public static UnicomServerCentral getInstance()
UnicomServerCentral central = thisinstance;
if (central == null)
synchronized (UnicomServerCentral.class)
central = this.instance;
return central;
}The static field instance is already guaranteed to be set. Is this safe?
Thank you in advance, lg Clemens
It might be safe in a particular context if there is
additional synchronization involving the construction
of the the "central" object and the execution of any
threads that might call getInstance.Well if getInstance() returns null I simply spin as long as I get a non-null value back - so the only circumstance I could get here null is initialization.
Since this example is a perfect does-not-work-dcl example I'll search the net for exmplanations.
Thanks a lot, lg Clemens
Similar Messages
-
Read Only Access to Storage Container
Is it possible to give Read Only access to a particular storage container without adding someone to Subscription and providing them the access key without anonymous request without going through SAS route
By default, a container and any blobs within it may be accessed only by the owner of the storage account. If you want to give anonymous users read permissions to a container and its blobs, you can set the container permissions to allow public access. Anonymous
users can read blobs within a publicly accessible container without authenticating the request.
This link gives full details
https://msdn.microsoft.com/en-us/library/azure/dd179354.aspx
Frank -
View read allows read only access
Hi friends,
I have created maintainance view, I am getting this warning " View read allows read only access , Maintainance not possible". So to avoid this, what should i do now.
Thank youHi,
In Delivery and maintence check if the field Data Browser/Table View Maint. has the value delivery and maint allowed
or delivery and maint allowed with restrictions.
Regards,
Rajesh Kumar -
Read Only access to UCCX server
Hi,
I would like to know if it was possible to create an account for Read Only access for server in UCCX 8.02.
SaimaSaima,
Unfortunately no it is not, you have either Admin access or supervisor access. The admin access has full access and supervisor access allows configuration of the RM subsystem either foe own team or all teams.
HTH,
Chris -
Read-Only Access to Specific SAP tables
Is it possible to grant a user read-only access to a specific table or tables?
For example, say I wanted to give someone SE16N capability for just EKKO/EKPO/EKBE and NO OTHER tables. Is this possible? How?
Thanks.Hi,
as it was mentioned the transaction SE16N checks for authorization object S_TABU_DIS. The problem in your case is that the tables EKKO, EKPO and EKBE are already assigned to the authorization group MA - MM Appl. table. But there are many more tables assigned to this group. Changing assignment of standard tables is not a good idea.
Cheers -
Read Only access to tablespace
Hi,
Oracle 10.2.0.4
How can I grant read only access to a tablespace for a user.
ThanksIt is no ussual.... a tablespace is a box where one or more user store his data... sure you do not want to say user and not tablespace?
Grant select to the objects of this tablespace...DBA_TABLES or ALL_TABLES...
Select 'GRANT SELECT ON ' || OWNER || '.' || TABLE_NAME || ' TO <USERNAME> ' FROM DBA_TABLES WHERE TABLESPACE_NAME = <TABLESPACE> -
Read only access to J2EE related tools
Hello,
I would like to help our auditors access everything they need to check in the Java systems, but I am not ready to give them ADMIN accounts. That`s why I need some kind of read only access for them.
So I would like to ask you if there is a SAP Note about the read only access roles for J2EE/ Java AS?
I am afraid there is no such note available, so can anybody share any experience with granting read only access to the Java system? I know how to grant access to the whole NWA, but what about the rest?
Examples:
- is there a way how to grant read only access only to the UME?
- is there a role for read only access to the portal PCD?
- is there something similar for KM access?
Or has anybody ever tried to split the admin roles into smaller pieces? Is there a description/ document how to do such thing?
Thank you for your time and effort,
cheers OttoHi,
thanks for trying, but I can use help.sap.com and was on that page before.
Maybe if there were any examples there or better: if the whole thing would be more granular (I see no point in using roles starting with SUPER, containing ADMIN or ending with ALL). I am looking for roles for surgery or for auditing. I don`t want to give anybody these super/admin/all roles just like that.
If you can suggest how to use that page, that would be cool. Otherwise I see no use.
By the way: another question of mine about surgery: How to restrict access to download/ upload UME configuration file
I would like to know how to controla access to this specific feature, nothing else.
Thanks for the time and effort,
cheers Otto -
We have a group of 5 people editing and indexing photos to a shared drive on a windows server, everyone has its own catalog and working on different folders to avoid any locking conflicts.
The windows computers don't have any problems but the Mac's don't write the updated metadata to all files because they get the message "Photos have read-only access".
The environment is the following:
2x Macs workstations running:
- Adobe Photoshop Lightroom 5.7.1
- iMAC with MAC OS X Yosemite 10.10.2
3x Windows Workstations:
- Windows 7
- Adobe Photoshop Lightroom 5.7.1
Server:
- Shared drive on a Windows Server 2012 Standard
I have searched the internet, no one has this problem with this exact setup but I have tried all the solutions I found, namely:
1. Connect to the network drive with cifs:// protocol
2. Change the settings of the nsmb.conf for 'smb1_only' protocol
3. Mount the drive manually by command line
Nothing worked, any ideas?Did you ever find a solution to this problem? I have the same issue and wonder if Lightroom 6 will resolve it. I tried AFP, SMB2, SMB3 and they all failed to save metadata randomly. When I use NFS from OS X then it works fine but it's a little slower than SMB and it's not as native as the mount via AFP or SMB, so it's harder to maintain. My server is a FreeNAS 9.2 (FreeBSD) which is running Samba, Netatalk and native NFS.
-
How to configure Mailbox Read-Only access for Mailbox's owner on Exchange Server 2010?
I have to configure the Exchange Server 2010's mailbox to only grant Read-Only Access on the mailbox's owners. So they can only allowed to read their messages and cannot modify or remove them. Are there any references or methods to do?
Hi,alexchy8
We can make use of 2 PowerShell commands to achieve this goal.
Add-MailboxPermission and Add-MailboxFolderPermission.
Execute the Add-MailboxPermission command to delegate the read permission at mailbox level.
Execute the Add-MailboxFolderPermission command to delegate the required permissions on specific folders inside the mailbox.
You can read the following article as reference:
http://www.exchangedictionary.com/articles/assign-read-only-mailbox-permission-on-exchange-2010-2013-powershell
Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety,
or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.
Best Regards. -
XCM(Extended Configuration Management) Read Only Access for Webshop
Hi,
We dont hav e XCM admin access in our project.We need to have just the view(read only) access.This will help us immensly during any troubleshooting. Plus we will save a lot of time while troubleshooting if the view access is avaialable to us. In case of any issues in the XCM setting, we can easily pin point the issue and ask the ERP team to change it. In absence of it we can only speculate what could have gone wrong on the XCM side. Is there any role in XCM so that we can get just read only access.
RegardsHi,
The below note will help you.
Note 1014383 - Read only user in the XCM and Administration area of ISA
Regards,
Shanto Aloor -
How enable read only access for ACS server itself
Hi,
We would like to know whether its possible to create a read only access to the ACS server. Currenlty ACS server has a generic login with full admin rights.
We need to create a login to couple of users to log into ACS to check the "Report and Activity" tab. Access to all other tabs should be disabled.
We are using ACS4.0 verison. Please let me know whether its possible.
Thanks
NachiHi,alexchy8
We can make use of 2 PowerShell commands to achieve this goal.
Add-MailboxPermission and Add-MailboxFolderPermission.
Execute the Add-MailboxPermission command to delegate the read permission at mailbox level.
Execute the Add-MailboxFolderPermission command to delegate the required permissions on specific folders inside the mailbox.
You can read the following article as reference:
http://www.exchangedictionary.com/articles/assign-read-only-mailbox-permission-on-exchange-2010-2013-powershell
Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety,
or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.
Best Regards. -
How to create a user with read only access for ESB / BPEL Console
I need to create a user with read only access to ESB Console & BPEL Console. I have created a user
(esbreadonly) and assigned ascontrol_monitor role but user is still able to
delete services from ESB systems (such as DefaultSystem). Is there any way to
create a user that has strickly read only access to ESB Console & BPEL
Console
Thanks
Dinesh PatelCheck out this post.. I'm in the process of testing.
http://chintanblog.blogspot.com/2007/12/i-saw-numerous-people-asking-about-bpel_290.html -
How to create a read only access for database
I am developer but willing to lear some of the dba tasks. I would like to know the steps that i need to take to creat a read only access database that is going to be used for the report development.
I really appreciate if you tell me all the steps I need to create that. I have a full right to do this in the develpment database. thanksthank you for your reply but it does not tell me how i can set up a read only access acccount for the user. Do i need to create a role and assign the role to the users?
-
Read-only access (hide a portion of the config)
Is there a way to alloww read-only access to only a portion of the config. I have customers who are requesting read-only access, but i don't want them seeing portions of the config.
Any help or suggestions would be greatly appreciated. ThanksIf they have an enable level login they will be able to see the whole configuration (absent encrypted passwords assuming you're using service password-encryption).
You can make logins more granular and prevent customers from having, say, the ability to execute arbitrary commands such as "show run". You could, for instance setup a given user to only be alllowed to execute "show interface status" etc. NX-OS has this ability pretty much 'baked-in'. For IOS-based systems, a bit more work is required.
Here is a guide for how to do it if you use TACACS for AAA:
https://supportforums.cisco.com/docs/DOC-15765
If you're using local authentication, you can do similar things using either privilege levels or cli views:
http://www.cisco.com/en/US/docs/ios/12_2t/12_2t13/feature/guide/ftprienh.html
http://www.cisco.com/en/US/docs/ios/12_3t/12_3t7/feature/guide/gtclivws.html
http://www.networkworld.com/community/node/57553
Hope this helps. -
Read only access of a full schema ?
Hi all,
Can i create a role having read only access of a full schema ?
Thanks in advance.Can i create a role having read only access of a
full schema ?The point here is that there is not a single command to perform this task, so you will have to do it on a per object basis. If you want to give access to the complete schema then it is advisable to create a script to grant on each table and on each view from the source schema. By providing read only to the full schema, I understand you are referring not also to the tables but also to the views, sequences, and may be stored program units, so you will have to properly define the scope of this 'full schema'.
Once you have properly defined the scope and have granted, as suggested by means of a role, then you may want to create synonyms for each granted object, so you don't have to qualify it with the schema name prefix when the object is being accessed.
~ Madrid
Maybe you are looking for
-
How can I save the order of photos in albums in Elements 11? Even though I have set as album order they revert back to original order.
-
How to check DFS replication status in windows 2008 r2 file server
Hi, I have created File server DFS namespace between 2 windows 2008 R2 server. namespace mode is 2008. I have copied 3 TB data on file server 1. now it is getting replicated from file server 1 to file server 2. till now the data is not fully replicat
-
Unable to set administrator password
Well, friends, it all started (sniff) when I tried to use Carbon Copy Cloner to clone my 10.3.9 boot drive. CCC asks me for an administrator password and I didn't know I had one. CCC says: "Authentication error: sudo: no password entry for root! Numb
-
Delivery creation date field in STO
Friends, I have created 2 STO's ...for 1st STO i can see the delivery creation date in Shipping tab......however for 2nd STO shipping tab is there but the delivery creation date field is blank... what could be the reason...how this gets calculated ?
-
Can't importing a Flex project within a Java project
Hello, I am taking over an existing project from a vendor that is no longer involved that has a two Flex projects inside of the Java project. I am using the Flash Builder plugin inside Eclipse. I have checked out the Java project locally and brought