Interface Resources

  • All Superinterfaces:
    ConfigBeanProxy

    public interface Resources
    extends ConfigBeanProxy
    Applications can lookup resources registered in the server. These can be through portable JNDI names (eg: resource-ref in standard deployment descriptors like ejb-jar.xml, web.xml etc.,) or by doing direct lookup. Each of the resource has valid target for defining the resource-ref. (eg: JdbcResource can be referred from Server, Cluster, Stand Alone Instance, ServerResource can be referred from Server, Cluster, Stand Alone Instance, Config)
    • Method Detail

      • getResources

        List<Resource> getResources()
        Returns a list of Resources like Custom Resource Or External Jndi Resource Or Jdbc Resource Or Mail Resource Or Admin Object Resource Or Connector Resource Or Resource Adapter Config Or Jdbc Connection Pool Or Connector Connection Pool.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the customResource Or ExternalJndiResource Or JdbcResource Or MailResource Or AdminObjectResource Or ConnectorResource Or ResourceAdapterConfig Or JdbcConnectionPool Or ConnectorConnectionPool.

        For example, to add a new item, do as follows:

            get(CustomResource Or ExternalJndiResource Or JdbcResource Or MailResource Or AdminObjectResource Or
            ConnectorResource Or ResourceAdapterConfig Or JdbcConnectionPool Or ConnectorConnectionPool).add(newItem);
         

        Any sub type(s) of resource is allowed.