Tag Archives: EJB

Spring AOP Example


via Spring AOP Example | Examples Java Code Geeks.

With this tutorial we shall show you how to use Aspect Oriented Programming in Spring Framework. AOP is used in the Spring Framework to provide declarative enterprise services, especially as a replacement for EJB declarative services. It is also used to allow users to implement custom aspects, complementing their use of OOP with AOP.

We will demonstrate how to create and apply some central AOP concepts. In short we will create all types of advices, we will use a pointcut and an advisor over an advice and we will check on some special features of Spring in interceptors and proxy beans.

Our preferred development environment is Eclipse. We are using Eclipse Juno (4.2) version, along with Maven Integration plugin version 3.1.0. You can download Eclipse from here and Maven Plugin for Eclipse from here. The installation of Maven plugin for Eclipse is out of the scope of this tutorial and will not be discussed. We are also using Spring version 3.2.3 and the JDK 7_u_21.

Let’s begin,

Concurrent Live Updates with WebSockets


Agenda This entry is to demonstrate such Java EE 7 scrummy APIs as WebSockets, JMS and EJB being used together. We’re going to witness multiple web clients – browser windows – receiving live updates from server simultaneously. The app server – WildFly (former JBoss).

http://ikolosov.com/2015/06/07/concurrent-live-updates-with-websockets/

Monitoring the JBoss EAP / Wildfly Application Server with the Command Line Interface (CLI)


The JBoss EAP / Wildfly provides a powerful concept for management, configuration and monitoring of the JBoss Application Server itself and its Java EE Applications. The concept is based on the detyped management API. All management clients of the application server use this detyped management API to interact with the server. In this post we […]

http://blog.akquinet.de/2014/09/15/monitoring-the-jboss-eap-wildfly-application-server-with-the-command-line-interface-cli/

JBoss EAP / Wildfly – Three ways to invoke remote EJBs


The JBoss EAP / Wildfly application server provides as primary API the EJB client library to invoke remote EJB components. This client library is the implementation of the WildFly application server to invoke EJB components. The lookup of an object, such as a JMS connection factory, from the naming service is with the EJB client […]

http://blog.akquinet.de/2014/09/26/jboss-eap-wildfly-three-ways-to-invoke-remote-ejbs/

CDI & EJB: Sending asynchronous mail on transaction success


Hello again! 🙂 This time I’ve chosen a common task that most of the time, in my opinion, is done the wrong way: sending e-mails. Not that people can’t figure out how e-mail APIs work, such as JavaMail or Apache’s commons-email. What I usually see as a problem is that they underestimate the need to […]

https://rodrigouchoa.wordpress.com/2014/10/22/cdi-ejb-sending-asynchronous-mail-on-transaction-success/

EJB Dependency injection misunderstandings


When I’m doing interviews, I like to ask the following question (provided that the candidate has real life experience with EJBs): There are two stateless session beans, A and B. A has a dependency on B; at what point can bean A use its injected (@EJB) dependency? This turns out to be a tough question, […]

http://tamasgyorfi.com/2014/11/20/ejb-dependency-injection-misunderstandings/

Create EAR file from the command line.


Background JayShenSharma has a nice blog at middlewaremagic.com where he outlines some nice tutorials about getting Weblogic up and running. In the tutorial on EJB3 Local Lookup sample he provides all of the code necessary to get things up and running. Here are a couple of steps to make the tutorial a little easier. Create […]

https://declanhadventureintech.wordpress.com/2014/12/04/create-ear-file-from-the-command-line/