JEE

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 »

ActiveMQ Configuration under JBoss AS7

Update 11.7.2013: New version for JBoss 7.2.0.Alpha1 / EAP 6.1.0.Alpha1 can be found here: https://blog.coffeebeans.at/?p=606 ———————– JBoss 7 and ActiveMQ finally work together. Download the latest snapshot of activemq.rar. Unzip the file and name the resulting folder activemq.rar. Place the folder in you deployments folder of jboss. Place the files ra.xml and ironjacamar.xml into the

ActiveMQ Configuration under JBoss AS7 Read More »

JBoss AS 7.1.0 Mail

Since version 7.1.0 JBoss AS includes a mail subsystem by default and it seems to work with a local postfix installation out of the box. Here is a simple mailer bean: import javax.annotation.security.RolesAllowed; import javax.enterprise.inject.Model; import javax.inject.Inject; import javax.mail.Message; import javax.mail.MessagingException; import javax.mail.Session; import javax.mail.Transport; import javax.mail.internet.InternetAddress; import javax.mail.internet.MimeMessage; import org.jboss.logging.Logger; /** * * @author

JBoss AS 7.1.0 Mail Read More »

JEE6 Schedulers

Creating a scheduler in JEE6 is very simple. Just use @Schedule annotation. Here is an example of a simple bean logging all 30 seconds. import javax.ejb.Schedule; import javax.ejb.Stateless; import javax.inject.Inject; import org.jboss.logging.Logger; /** * @author manuel * */ @Stateless public class ApplicationScheduler { @Inject private Logger log; /** * Do something when fired. @Schedule can

JEE6 Schedulers Read More »