| <?xml version="1.0" encoding="UTF-8"?> |
| <!DOCTYPE resources PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Resource Definitions //EN" "http://glassfish.org/dtds/glassfish-resources_1_5.dtd"> |
| <!-- |
| |
| Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. |
| |
| This program and the accompanying materials are made available under the |
| terms of the Eclipse Public License v. 2.0, which is available at |
| http://www.eclipse.org/legal/epl-2.0. |
| |
| This Source Code may also be made available under the following Secondary |
| Licenses when the conditions for such availability set forth in the |
| Eclipse Public License v. 2.0 are satisfied: GNU General Public License, |
| version 2 with the GNU Classpath Exception, which is available at |
| https://www.gnu.org/software/classpath/license.html. |
| |
| SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 |
| |
| --> |
| |
| <resources> |
| |
| <custom-resource res-type="com.sun.s1asdev.custom.resource.CustomResourceJavaBean" jndi-name="custom/my-java-bean" factory-class="org.glassfish.resources.custom.factory.JavaBeanFactory"> |
| <property name="property" value="custom-resource-javabean-test" /> |
| </custom-resource> |
| <custom-resource res-type="java.lang.Integer" jndi-name="custom/my-int" factory-class="org.glassfish.resources.custom.factory.PrimitivesAndStringFactory"> |
| <property name="type" value="Integer" /> |
| <property name="value" value="25" /> |
| </custom-resource> |
| <custom-resource res-type="java.lang.String" jndi-name="custom/my-string" factory-class="org.glassfish.resources.custom.factory.PrimitivesAndStringFactory"> |
| <property name="type" value="String" /> |
| <property name="value" value="Primitives-And-String" /> |
| </custom-resource> |
| <custom-resource res-type="java.util.Properties" jndi-name="custom/my-simple-properties" factory-class="org.glassfish.resources.custom.factory.PropertiesFactory"> |
| <property name="Integer" value="25" /> |
| <property name="String" value="Primitives-And-String" /> |
| </custom-resource> |
| <custom-resource res-type="java.util.Properties" jndi-name="custom/my-properties-file" factory-class="org.glassfish.resources.custom.factory.PropertiesFactory"> |
| <property name="org.glassfish.resources.custom.factory.PropertiesFactory.fileName" value="simple-properties.properties" /> |
| </custom-resource> |
| <custom-resource res-type="java.util.Properties" jndi-name="custom/my-properties-xml-file" factory-class="org.glassfish.resources.custom.factory.PropertiesFactory"> |
| <property name="org.glassfish.resources.custom.factory.PropertiesFactory.fileName" value="simple-properties.xml" /> |
| </custom-resource> |
| <custom-resource res-type="java.util.Properties" jndi-name="custom/my-properties-file-with-values" factory-class="org.glassfish.resources.custom.factory.PropertiesFactory"> |
| <property name="String" value="Primitives-And-String" /> |
| <property name="org.glassfish.resources.custom.factory.PropertiesFactory.fileName" value="simple-properties.properties" /> |
| </custom-resource> |
| <custom-resource res-type="java.util.Properties" jndi-name="custom/my-properties-xml-file-with-values" factory-class="org.glassfish.resources.custom.factory.PropertiesFactory"> |
| <property name="String" value="Primitives-And-String" /> |
| <property name="org.glassfish.resources.custom.factory.PropertiesFactory.fileName" value="simple-properties.xml" /> |
| </custom-resource> |
| <custom-resource res-type="java.net.URL" jndi-name="custom/my-url" factory-class="org.glassfish.resources.custom.factory.URLObjectFactory"> |
| <property name="port" value="80" /> |
| <property name="file" value="/index.html" /> |
| <property name="host" value="java.sun.com" /> |
| <property name="protocol" value="http" /> |
| </custom-resource> |
| </resources> |