A FeatureType represents a number of features that have the same types of properties, both geometric and non-geometric attributes. It generally represents a table in a database, or a single file. Since you have already configured all the connection parameters in the DataStore section, the FeatureType configuration is mostly meta information, and information on how you would like to expose the attributes of the table. (source: GeoServer Documentation)
Each FeatureType is defined in its own folder, generally named by datastoreid_featuretypename, but the name doesn't really matter. These folders must be stored in the data/featureTypes subdirectory of the web application directory. The main file in this folder is the info.xml file, which defines meta information of the FeatureType, such as returned by a Capabilities Document. A sample info.xml file follows:
<featureType datastore = "PgTestDS" > <name>provincies</name> <SRS>31300</SRS> <title>provincies_type</title> <abstract>Generated from PostgisDS</abstract> <numDecimals value = "8" /> <keywords>PostgisDS testline</keywords> <latLonBoundingBox dynamic = "false" miny = "49.29251657413155" maxy = "49.294168538734915" maxx = "2.309142669821549" minx = "2.304186619072759" /> <styles default = "line_blue" /> </featureType>
Each FeatureType must get it's data from a datastore. Therefore each FeatureType has a reference to a datastore identifier. Remember that in the /WEB-INF/catalog.xml we defined all the datastores, and each of them had a unique identifier? Well now that identifier is used to depict the datastore this FeatureType belongs to. Then there is the name element.
In this example we see a lot of elements that make up this feature type, such as name, SRS, ... A MAJAS server however is also a WFS/WMS server. It just doesn't serve any data, unless told so. This is where we can do that. By adding the element "<wfs>yes</wfs>", you can tell the MAJAS server to server this particular feature type through WFS. The same goes for WMS. Example:
<featureType datastore = "PgTestDS" > <name>provincies</name> <SRS>31300</SRS> <title>provincies_type</title> <abstract>Generated from PostgisDS</abstract> <numDecimals value = "8" /> <keywords>PostgisDS testline</keywords> <latLonBoundingBox dynamic = "false" miny = "49.29251657413155" maxy = "49.294168538734915" maxx = "2.309142669821549" minx = "2.304186619072759" /> <styles default = "line_blue" /> <wfs>yes</wfs> <wms>yes</wms> </featureType>
The example above shows a feature type that can be accessed through both WMS and WFS.