File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Java hooks Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Java hooks" Watch "Java hooks" New topic

Java hooks

avihai marchiano
Ranch Hand

Joined: Jan 10, 2007
Posts: 342

We want to separate our application to into two parts infrastructure and business application.
The infrastructure will be developed by another team in another project that the business application.

Our application is deployed as an ear on JBoss 4.2. we are using Jboss AOP, Ejb3.

We want to write an infrastructure that will allow to the application logic team to add or change behaviors for exceptional cases.
The code that they write has to be written in a sepertae project that depends on the infrastructure project.

For example, lets say that I expose a fa�ade of updateObj(obj)
The infrustrcutre look like this �
Object updateObject(Object object){

We are developing NMS system , so we have a lot of device platform and versioning.
We need to give the application team the ability to expand the infrastructure in an easily way. For example in the above example � if the object is instance of VIP and the device platform is A , version 1.05 you need to log the operation , clear some values from the object before save it and in rare cases skip the call to DBService.

Can you please advice on solutions that suitable for this problem? (Maybe to write a plug-in infrastructure with AOP)

Thank you
I agree. Here's the link:
subject: Java hooks
jQuery in Action, 3rd edition