Directory structure question...

I've been w/ three different companies doing Java development now, and each time I've come in once the project is already in progress and the directory structure is set up. What I see is a similarity:
com.<company name>.<project>.<sub-units>
examples:com.delta.kiosk.server
com.delphi.shipping.guiIs this a common way of laying out directories and if so, what is the benefit (other than standardization)?

I always figures that it was primarily a namespace issue.
org.apache.ecs.Attributes
org.xml.sax.Attributes
are examples of class names that would have resulted in a collision without the prefixes. A full class name has the package name before it so
String
java.lang.String
are the same thing, String is just shorthand for the latter. But if there are two of the same class then the prefix will help the compiler know where the class is supposed to come from. com.<company name>.<project>.<class> is a good way to ensure that you will not encounter a collision.

Similar Messages

  • Active Directory Structure Questions

    I recently started working for a company that offers cloud services for our clients where we host our software as a service and we also migrate any other applications the client is using onto the servers that we host for them.
    My concern is that every client we have is in our domain. The structure of our servers is that our domain is the top of the organization and each client has their own dc and that dc is listed as an organizational unit in our AD. I have never seen anything
    like it. Most of the clients have their own domains and web sites but we do not migrate that portion of their IT into our cloud. We do however bring everything else over and we offer O365 to many of them.
    Imagine if you will opening ad users and computers and under the root all the OU's are named after clients and actually represent their servers all of which are dc's.
    I was wondering what if any precedent would support this type of configuration? I am just asking.
    Thanks
    Richard Tamboli

    No Special hardware is required for Active Directory
    Active Directory is builtin feature for most of the Windows Servers such as Windows Server 2003, 2008,2008R2,2012.
    It is a feature and part of Windows Server.
    Hope this may answer your questions.
    http://en.wikipedia.org/wiki/Active_Directory

  • Question re: Blaze DS Directory Structure Following Turnkey Installation

    Hello. I've been building client-side apps with flex for a while and have started getting into backend development.
    I have read up a fair bit on blaze ds and have downloaded the turnkey installation and successfully ran a few of the samples...but i have a couple of questions re: the directory structure if someone could help...i unzipped the turnkey into Blaze_ds folder on the desktop...
    a) .........\Blaze_ds\tomcat\webapps\blazeds\WEB-INF  - could u please explain the concept of the WEB-INF directory and the folders inside it (flex, src, classes, lib, etc.)
    b) ......... \Blaze_ds\tomcat\webapps\samples - there are all the samples in here (eg. testdrive-chat, testdrive-101, dashboard, etc.)...and there is also a WEB-INF and META-INF folders...just wondering why there isn't WEB-INF/META-INF inside each sample folder
    Finally, can someone also let me know the concept of localhost and the port number 8400 and are there any good books on blaze ds?
    thx!

    There's really not much difference. In some cases, you might already have a web application you are using so you could just copy the contents of the blazeds web app into your existing web application.
    Application servers can host more than one web application and a Flex application that uses BlazeDS can be deployed on a different web app than the one where BlazeDS is running or a different server entirely so it really just depends how you want to set things up.
    Hope I'm not just making things more confusing for you. . .
    -Alex

  • A question regarding Directory Structure

    hi....
    can ne one tell me how to display a directory structures using JTree....
    how can i get or retrieve a directory information from a disk
    BYE

    Take a look at this. This is a complete example.
    http://manning.com/sbe/files/uts2/Chapter17html/Chapter17.htm
    You can even download the book for free. http://manning.com/sbe

  • Import statement and directory structure

    First of all, sorry for such a long post, I believe part of it is because I am unsure of the concept of importing in Java. Secondly, Thanks to anyone who can ultimately enlighten me to the concept of import. I did ask this question before in the "erorr and error handling" forum, and the people who have helped me there did a great job. But, I believe I require a little more clarification and thus have decided to post here.
    Anyhow, my question..
    Could someone explain to me the concept of the import statement, or direct me to a webpage with sort of explanation for newbies? For some reason, I am having a hard time grasping the concept.
    As I understand it, the import statement in Java, is very similar to the namespace keyword in C. That is to say, import doesn't actually "import" any source code, the way that the #include statement does in C.
    So I suppose what my question is, say I have a java class file like below:
    //filename: sentence.java
    //located: c:\school\csc365
    package csc365;
    class sentence
    //some variables here..
    //some constructor here..
    //some methods here..
    And some sample program like the one below which implements the above..
    //filename: test.java
    //located: c:\school\csc365
    import csc365.*;
    import java.io.*;
    class test.java
    //creates some sentence object
    //uses the object's methods
    //some other things.
    As I understand it, the test.java file should not compile because the csc365 package is not in the correct directory. (assuming of course, the classpath is like c:\school\csc365;c:\school )
    But, ... where then should the sentence.java be located? In a subdirectory of c:\school called csc365 (i.e c:\school\csc365\) ?
    And thus that would mean the test.java file could be located anywhere on the hard drive?
    I suppose, I just need a little clarification on the correlation between a package's "name" (i.e package csc365; ) and its corresponding directory's name, and also how the javac compiler searches the classpath for java classes.
    ..So, theoretically if I were to set the classpath to look in every conceivable directory(provided the directory names were all unique) of the harddrive, then I could compile a test.java anywhere?
    As a note: I have been able to get the test.java file to compile, by leaving out the import statement in the test.java file, and also leaving out the package statement for the sentence class, but I assume this is because the files are defaulted to the same package?

    Hi Mary,
    No, import isn't analogous to C++ namespace - Java package is closer to the namespace mark.
    import is just a convenience for the programmer. You can go your whole Java career without ever writing an import statement if you wish. All that means is that you'll have to type out the fully-resolved class name every time you want to use a class that's in a package other than java.lang. Example:
    // NOTE: No import statements
    public class Family
       // NOTE: fully-resolved class names
       private java.util.List children = new java.util.ArrayList();
    }If you use the import statement, you can save yourself from typing:
    import java.util.ArrayList;
    import java.util.List;
    public class Family
       // NOTE: fully-resolved class names
       private List children = new ArrayList();
    }import isn't the same as class loader. It does not bring in any source code at all.
    import comes into play when you're compiling or running your code. Java will check to make sure that any "shorthand" class names you give it live in one of the packages you've imported. If it can't find a matching fully-resolved class name, it'll give you a message like "Symbol not found" or something like that.
    I arrange Java source in a directory structure that matches the package structure in the .class files.
    If I've got a Java source file like this:
    package foo.bar;
    public class Baz
       public static void main(String [] args)
            Baz baz = new Baz();
            System.out.println(baz);
       public String toString()
           return "I am a Baz";
    }I'll store it in a directory structure like this:
    root
    +---classes
    +---src
          +---foo
               +---bar
                    +---Baz.javaWhen I compile, I go to root and compile by typing this:
    javac -d classes foo/bar/*.javaI can run the code from root by typing:
    java -classpath classes foo.bar.BazI hope this wasn't patronizing or beneath you. I don't mean to be insulting. - MOD

  • Directory Structure for multiple applications at one host

    Can I have multiple (more than one) WEB-INF directory structures in the public_html directory for different web applications? If I do this, how do setup the url-pattern in the Servlet Mapping tag in the web.xml file? How do I setup the URL that calls the servlet from the HTML that has been send to the user�s browser?

    If I understand your question, you want multiple contexts. All App Servers/Web Servers allow you to setup multiple contexts. Normally if your root context is in /home/myhome/app_server/
    then you would setup multiple contexts by creating a folder for each context:
    /home/myhome/app_server/context1/
    /home/myhome/app_server/context2/
    Each would have their own full application/website. And the way to reference these would be as such:
    if the domain, www.mydomain.com, is mapped to /home/myhome/app_server/
    www.mydomain.com/context1/
    www.mydomain.com/context2/
    I think that is what you were asking. Hope it helps

  • Export images to a directory structure based on a collection tree?

    A question:
    Will lightroom have the capability to export images to a directory structure which mirrors a collections logical structure?
    The reason I ask this is that when I create websites using third party tools (eg, Jalbum) I typically generate a flash or HTML based site with an menu structure for navigating the images.
    So, the image interface is not simply a "flat-file" display as per the templates in Lightroom beta.
    To do this, with previous image management tools (eg, iMatch) I create a hierarchy of images based on the categories (or collections) that the images are assigned to, export the images in a folder tree reflecting their categories (or collection), then use, say, Jalbum, to generate the website with the menu tree reflecting the folders/images.
    This is extremely useful for more complicated image websites with categories and a large no of images.
    If this function was built into Lightroom I guess it would be in the export function such that the "write to folder" box could take an argument {collection name} which would create a folder tree reflecting the collections logical tree which is being exported.
    Apologies if this topic has been raised previously. But this function is extremely useful if you are using third party html tools or simply building websites by hand.
    Regards
    Alistair

    I started simmilar thread in Lightroom Feature Requests few months ago, but can't find it anymore since new forum version...
    What I can suggest as a new feature is export to directory structure from collections or second option from keywords. Probably more usable and easier to implement would be from collections.
    What I need it to export many photos to different directories pretty often, and this would be great help since I could arrange them in collections and collection sets. Then select collection set and export it in a manner that collection set would be main export directory, and each collection within the set would be exported to its own folder within main collection set export folder.
    This would be much appreciated feature in near future
    Thank you for great product by the way

  • Creating a Standby Database with the Same Directory Structure

    Hello gurus,
    I am self-learning the feature Oracle Data Guard, so I am testing it on Oracle 10g R2.
    At Oracle documentation there is a section F.4.: Creating a Standby Database with the Same Directory Structure*, that explains how to create a standby database with RMAN but there is something that I don´t understand:
    In the standby server, I created a database with the SID equal to production database* with the objetive to have the same directory structure, but when I try to startup nomount the standby database with pfile appear this expected error:
    ORA-16187: LOG_ARCHIVE_CONFIG contains duplicate, conflicting or invalid attributes
    So my question is: Is possible have the Same Directory Structure on both: Production and StandBy server?
    Thanks in advanced.

    Uwe and mseberg: thanks for your quick answers
    I have a doubt: How can you have the same directory structure if you have differents SIDs?, for example if you follow the OFA suggestions you would must have:
    On Production server: */u01/app/oracle/oradata/PRIMARY/system.dbf*
    On StandBy server: */u01/app/oracle/oradata/STANDBY/system.dbf*
    Or you created the directory structure manually on StandBy server? For example replacing the string STANDBY* to PRIMARY* before create the database using dbca.
    Do you understand my doubt? Excuse me for my english.
    Thanks.

  • Directory structure mirroring

    I have my mp3:s neatly organized in a directory structure on
    my disk. There's where I'd like to add and remove albums,
    and would like the itunes music library to automatically
    update when I make changes.
    I.e. if I add albums on my disk, I'd like them to appear in itunes (and on the ipod when syncing).
    And if I remove albums from my disk I'd like them to
    automatically disappear form itunes and the ipod.
    Can I make Itunes work like this? I dont like to make all
    changes twice, i.e. deleting both from the disk and then in
    itunes. This gets especially irritating when moving many
    albums.
    Ideas? Cheers / Tom
    Dell XPS PC   Windows XP Pro  

    You need to create a form and assign it to the reconciliation process. In the form, you need waveset.organization set to where you want the user objects placed. By default, waveset.organization is set to just "Top". You can get the DN, parse it into a list and write the xml code to use the list to place each in a different virtual organization.
    Start off simple, say create a container called Top:newusers. Take a copy of Empty Form and save it as orgEmpty Form or something. Define a field waveset.organization and just set its value to "Top:newusers". Then in the resource, set the reconciliation form to your new form.
    Try this, once you see new ids show up in Top:newusers, you then can enhance the logic to be more sophisticated in placing objects. That is, parse the DN into a list and walk the list for a IDM waveset.organization value.
    BTW, a good question to ask prospective IDM so called experts. Of 8 or so, I only met one that new how to do this efficiently.

  • Directory structure support and sluggish touch screen

    I bought a Zen X Fi2. My expectations were high since I already had a creative some years ago. (I was quite pleased with the performance and sound quality etc)
    However I am a bit dissapointed with Zen XFi2- The touch screen is not very successful. The scroll function does not work at a satisfactory level and sometimes (when I want to scroll), it makes a "selection" rather than "scrolling".
    Also it does not support browsing with directory structure. For those people (like me) who are quite used to drag and drop type of copying for mp3 files, it is really a pain to re arrange all the songs for ID3 tag information.
    I believe these two issues are software issues and can be improved by new firmware upgrade.
    I also want to take this opportunity to tell that the software (interface software) that comes with the device is totally crap- I have never seen a software that tries to control the user rather than the user controlling the software. An ideal interface software for such a device should be the one which allows user to choose the songs from any directory, drag and drop into the device.
    I was going to return my Zen however after playing around for a few days, I somewhat get used to its sluggish touch screen behaviour and accepted ID3 tag browsing (which still gives me a lot of problem) so right now I am gonna keep it.
    May be software developpers can work on touch screen improvement, adding the support for directory structure browsing (as well as ID3 tag browser) and work on interface software a bit more ?
    Thanks
    Best Regards

    This is indeed interesting because when you say "I don't have the problems you mentioned" I believe you also refer to the sensitivity of the touch screen. This makes me ask the question if my item has some problems. Since I do not have any means of cross checking this (apparently there is no other Zen XFi2 around me) may be I should ask you this question: "When you want to browse among albums for example, you wipe your finger across the screen so the screen rolls down; can you have it fluently like in an IPOD touch?- or does it not recognize immediately and you have to do it again sometimes?"
    As for the volume button- I do indeed agree. For devices like this one; having physical buttons for at least volume, mute, stop/pause is a "must"! Choosing, browsing or starting a song is not a big deal however muting, stopping or changing the volume may be needed instantly from time to time. It is very unpractical to browse for volume, find it and adjust it!
    Also may I add that for such a nice device, there should be a remote control on the headphone/earphone cable and should employ at least stop/play/mute/volume/forward/reverse buttons. I mean think about it for a while- why would you want to take use this device- apparently not to watch movies at home! You take it with you and listen to music, while cycling, jogging, skiing, roller blading etc. It is so difficult taking out the device from your pocket, browsing for volume button and turning up and down the volume (while cycling for example!) or skipping to next song with one touch!
    Cheers

  • Standby Redo Log Files and Directory Structure in Standby Site

    Hi Guru's
    I just want to confirm, i know that if the Directory structure is different i need to mention these 2 parameter in pfile
    on primary site:
    DB_CONVERT_DATAFILE='standby','primary'
    LOG_CONVERT_DATAFILE='standby','primary'
    On secondary Site:
    DB_CONVERT_DATAFILE='primary','standby'
    LOG_CONVERT_DATAFILE='primary','standby'
    But i want to confirm this wheather i need to issue the complete path of the directory in both the above paramtere:
    like:
    DB_CONVERT_DATAFILE='/u01/oracle/app/oracle/oradata/standby','/u01/oracle/app/oracle/oradata/primary'
    LOG_CONVERT_DATAFILE='/u01/oracle/app/oracle/oradata/standby','/u01/oracle/app/oracle/oradata/primary'
    Second Confusion:-
    After transferring Redo Standby log files created on primary and taken to standby on the above mentioned directory structure and after restoring the backup of primary db alongwith the standby control file will not impact the physical standby redo log placed on the above mentioned location.
    Thanks in advance for your help

    Hello,
    Regarding your 1st question, you need to provide the complete path and not just the directory name.
    On the standby:
    db_file_name_convert='<Full path of the datafiles on primary server>','<full path of the datafiles to be stored on the standby server>';
    log_file_name_convert='<Full path of the redo logfiles on primary server>','<full path of the redo logfiles on the standby server>';
    Second Confusion:-
    After transferring Redo Standby log files created on primary and taken to standby on the above mentioned directory structure and after restoring the backup of primary db alongwith the standby control file will not impact the physical standby redo log placed on the above mentioned location.
    How are you creating the standby database ? Using RMAN duplicate or through the restore/recovery options ?
    You can create the standby redo logs later.
    Regards,
    Shivananda

  • Import already existing directory structure into DFS namespace?

    Hi all,
    I'm planning to migrate three file servers to a single DFS namespace and after reading the official docs and numerous blog posts I'm still unsure about the right way to do it.
    The "main" server already has a share with a complex directory structure, called \\server1\team, and that share shall become the root of the new DFS namespace, lets call it  \\domain.local\team.
    Part of that already existing directory structure is this folder: \\server1\team\admin\communication\archive. The folder "archive" contains thousands of files in numerous folders and shall become a dfs link to another share \\server2\archive. But
    before I can create the folder "archive" as a dfs link I have to create the folder "admin" in the dfs hierarchy of course, then below that the folder "communication"
    Question: When I try to create a folder "admin" in the dfs namespace, I get the error message "the folder cannot be created in the namespace. The file exists."
    Ok, the folder "admin" indeed exists, but how can I "import" this branch of the existing directory hierarchy into the dfs namespace?
    Do I have to rename the existing folder "admin" to e.g. "admin2", then create the dfs folder "admin" and move the complete directory structure below "admin2" to "admin"? Or can I simply make the existing folder
    "admin" a dfs folder?
    Thanks in advance!
    Regards
    Christoph

    Mandy, thanks for your feedback!
    I have to describe my problem more precisely: creating the root of the new DFS namespace is *not* the problem. This worked for me exactly as you expained it. The problem appears when I try to create a folder below that root in the DFS namespace. If that
    folder already exists in the share you cannot choose how to handle security settings but you get an error message, and that's it.
    This may be helpfull to explain what I want to achieve:
    Old structure:
    \\server1\team - folder admin - subfolder "archive" - lots of subfolders and files
    Now I want to move all files and folders from "archive" to \\server2\archive and link this share into the new DFS namespace, so that our users don't notice any change when they access that archive folder.
    new structure:
    1. Create DFS namespace root: \\domain.local\team  -> \\server1\team   (works!)
                |
    2. Create folder admin  (problem!)
                |
    3. Create subfolder "archive" -> \\server2\archive (not possible becaues "admin" couldn't be created)
    I could perhaps create a DFS namespace with the root \\server1\team\admin\archive and link that to \\server2\archive, but I would like to avoid creating a new namespace for each share which from \\server2 which I mount into some subfolder of \\server1\team...
    Thanks for reading.
    Regards
    Christoph

  • Directory structure on Win/MSS

    Hello,
    It is a conceptual doubt, not an error.
    We have several Dialog instances (on separate boxes) for our Production system running R/3 4.7 on Win server 2003 + MS SQL 8.00.2040
    I noticed that directory structure of Dialog hosts don't have SYS directory under D:\usr\sap\<SID>.
    Hence the profile directory \usr\sap\<SID>\SYS\profile is only present in Central instance host. It doesn't seem to be mounted on any Dialog instance host.
    Q: How does any Dialog instance, in this case, reads the Start & Instance profiles during startup?
    - Roshan

    Hi Sekhar,
    What you say is correct.
    My question is specific to Windows OS, where I am not able to see (on DI's) any sapmnt or any mapping to the global share.
    There must definitely be some mapping but somehow its not visible.
    E.g.
    In a DI host running on UNIX you can view directory structure like below, which clearly shows SYS dir
    [user@host ~]$ cd /usr/sap/PD1/
    [user@host PD1]$ ll
    total 28
    drwxr-xr-x 8 pd1adm sapsys  4096 Oct 13 08:29 D03
    drwx------ 2 root   root   16384 Oct  8 16:30 lost+found
    drwxrwx--- 4 pd1adm sapsys  4096 Nov  3 04:33 out
    drwxr-xr-x 5 pd1adm sapsys  4096 Oct 13 08:26 SYS
    But windows doesn't show the SYS dir. by default. Why?
    By which method/route is sapmnt being accessed in Windows environment?
    >
    > may be you can refer below URL for more informative.
    >
    > http://help.sap.com/saphelp_nwmobile71/helpdata/en/0a/0a2e36ef6211d3a6510000e835363f/content.htm
    > http://help.sap.com/SAPHELP_NW70EHP1/helpdata/EN/20/f8e36764b1e049beee648a987e4315/content.htm
    PS: please check below link for a detailed directory structure of SAP running on Unix -
    http://bit.ly/4TqUTQ
    BR,
    Roshan

  • OVM 3.0.1 - directory structure & adding resources

    Afternoon everyone,
    I've got OVM 3.0.1 up and running, so far so good.
    I had a question about the repository directory structure. If this has been addressed already, my apologies.
    In OVM 2.x, it was possible to copy over a variety of data (.iso's, .img's, templates, etc.) directly into the seed, iso and running pools on OVS and then register them through OVM. Is there a way to do this in OVM/OVS 3.0.1? Is it a matter of getting the correct syntax in the 'download location' dialog box that refers to the OVS 3.0.1 box? Or do you need a remote staging resource set up in order to import data?
    Best regards,
    J.

    861743 wrote:
    In OVM 2.x, it was possible to copy over a variety of data (.iso's, .img's, templates, etc.) directly into the seed, iso and running pools on OVS and then register them through OVM. Is there a way to do this in OVM/OVS 3.0.1? Is it a matter of getting the correct syntax in the 'download location' dialog box that refers to the OVS 3.0.1 box? Or do you need a remote staging resource set up in order to import data?You need a remote server to import data. This can be the Oracle VM Manager machine itself, as long as you can access it via http/https from the Oracle VM Servers (as the import happens on the Oracle VM Server machines). Just install Apache on your VM Manager machine and stash your templates/assemblies in /var/www/html.

  • How get SharePoint Library Folders and Files directory structure in to my custom web site.

    Hi,
    Actually my requirement is, I would like to pass site name and document library name as a parameter and get a folders and files from the document library and form the directory structure by using Treeview control in my web site.
    How should i get? Using Web service / object model?
    Web service would return the dataset as a result so from that how could i form the directory structure using Treeview control.
    I will select specified files and folders then i ll update sharepoint document library columns for corresponding selected files.
    Can anyone help over this, that would be great appreciate.
    Thanks in Advance.
    Poomani Sankaran

    Hello,
    Here is the code to iterate through sites and lists:
    //iterate through sites and lists
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using (SPSite site = new SPSite(webUrl)) {
    using (SPWeb oWebsite = site.OpenWeb())
    SPListCollection collList = oWebsite.Lists;
    foreach (SPList oList in collList)
    {//your code goes here }
    Then use RecursiveAll to get all files and folders.
    http://www.codeproject.com/Articles/116138/Programatically-Copy-and-Check-In-a-Full-Directory
    http://sharepoint.stackexchange.com/questions/48959/get-all-documents-from-a-sharepoint-document-library
    Here is the full code:
    http://antoniolanaro.blogspot.in/2011/04/show-document-library-hierarchy-in-tree.html
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

Maybe you are looking for

  • How do you get support from Adobe?

    I cannot get any support or answers from Adobe. Chat: they said they couldn't answer my question, I had to call the support phone number. I did this. They asked for my phone number and said they would call back in 30 to 40 minutes. They called back i

  • Need help with Kerb. jdbc from Linux to MS SQL 2008

    Hello Forum, I am getting an erro when I try to use Kerb. trusted security to connect to sql server. 4.0 documentation reflects it's absolutely possible. Not only that, I have ms odbc installed on the same box and it provides Kerbers (not ntlm) conne

  • Recovery Incomplete, cannot get any further than insert media

    I tried to perorm a system refresh on my windows 8 hp notebook m7-j020dx. a full system backup was perfromed just prior to the refresh just in case.  once the refresh finished the laptop restarted one last time and a screen popped up stating restorat

  • Mid-2009 MBP, 2.8Ghz Core 2 Duo, 4GB memory, NVIDIA GeForce 9600 512 MB can't run Windows 8?

    I  have a 17"  mid-2009 MacBook Pro with a 2.8GHz Intel Core 2 Duo, 4GB memory, NVIDIA GeForce 9600M GT 512MB.  Recently upgraded to OS X MAvericks 10.9.4.  I wish to run 3DS MAx Design using Boot CAmp.  The Boot Camp Assistant, downloading the Windo

  • Galleries within Galleries

    I have a screen that has a horizontal Text Gallery (GalleryA). Inside that gallery is a vertical gallery (Gallery B). Each the template for Gallery B has a check box that I want to use to select that particular item. Each Gallery B should have to hav