- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Precise control of file sharing per Java file ...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2011 05:34 AM
тАО09-26-2011 05:34 AM
Precise control of file sharing per Java file open
While I am aware that OpenVMS Java provides crude means to change file sharing modes via logical names, I have not been able to find a nice mechanism to change these controls exactly when I need them, something along the same lines as decc$feature_set_value(), except for the java$ controls. Am I missing something?
Here's the scenario: because we are used to VMS file open semantics, we may have code that depends on the default that if a file is open for writing, it is locked against access by other processes. Such code would typically poll until the file became available. We are unsure how many places we've made this assumption it is likely to have crept into our sizable Ruby codebase now, which recently we have started to run on JRuby on the Itanium platform, as it lacks any other viable ruby port. However, for certain files we *do* want to share the file. In our C-based Ruby implementation on alpha, we could simply call the extended open to specify shr=get,shr=put, etc. In Java, it appears we have to set some logical name, but we don't want that name globally defined. Hence the desire for a more precise way to control this behaviour.
Are we expected to bracket each file open requiring sharing with code to query, set and restore the value of the java$file_open_mode logical (to 3, and back to its original value afterwards)? Will that even work? If so, does it need to be a job logical? Couldn't that inadvertently affect other threads in a multithreaded app and therefore require the use of a mutex? And yes, I'm aware of the other logical, java$filename_match_list, for more precise control ... but we don't even want to set that globally, as sometimes we may want sharing allowed and sometimes not for the same files, depending on context.
This whole file sharing thing seems to be a bit of a mess, and it doesn't look like any progress has been made to make it better in the past couple of years. Is there any hope of improvement anytime soon?
Ben
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2011 10:40 AM
тАО09-26-2011 10:40 AM
Re: Precise control of file sharing per Java file open
>>> ... set and restore the value of the java$file_open_mode logical (to 3, and back to its original value afterwards)? Will that even work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2011 11:10 AM
тАО09-26-2011 11:10 AM
Re: Precise control of file sharing per Java file open
I was afraid it would be like this. That makes it rather difficult to solve in a general way. I now need to review every single possible instance of this problem and solve it on the outside in the calling procedures rather than deploying some seamless wrapper inside my JRuby code to deal with the issue. I really wish HP would fix this properly, as it is a gross hack.
Ben