Development

jboss-web.xml validated with its dtd

I wanted to use the dtd of jboss-web.xml as code completion only works with a schema in eclipse and I don’t like warnings about missing schemas anyway. So here is an example jboss-web.xml that is validated with it’s dtd. <?xml version=”1.0″ encoding=”UTF-8″?> <!DOCTYPE jboss-web PUBLIC “http://www.jboss.org/j2ee/dtd” “http://www.jboss.org/j2ee/dtd/jboss-web_5_0.dtd”> <jboss-web> <context-root>test</context-root> </jboss-web> You can also download the

jboss-web.xml validated with its dtd Read More »

EJB Standalone Client JBoss AS7.1.1

Creating a standalone EJB-client application works like the following. If you use maven, just include the following dependency: <dependency> <groupId>org.jboss.as</groupId> <artifactId>jboss-as-ejb-client-bom</artifactId> <type>pom</type> <version>7.1.1.Final</version> </dependency> Then you need a file jboss-ejb-client.properties in your classpath. Here an example: remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false remote.connections=default remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=true remote.connection.default.host=localhost remote.connection.default.port=4447 remote.connection.default.username=username remote.connection.default.password=password If you haven’t changed default configuration the username+passwort are added with the

EJB Standalone Client JBoss AS7.1.1 Read More »