Inappropraite usage of AOP [closed] - java

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
What are bad practices of using AOP?
I mean do we have situations when AOP is inappropriate to use.

In my experience, AOP is a too powerfull tool. With AOP you can change so many things that it can become very hard to maintain and debug the code.
I recommend to limit the use of AOP as much as possible.
There are also some less powerfull versions of AOP, such as EJB Interceptors, which are often enough to do some cross-cutting concerns or monitoring.

We will avoid the AOP in the following cases
Don't want to provide the enterprise business/Service.
Declarative Transaction Management..
Conditional Aspects based up on your own criteria's...............

Related

which dependency injection framework should I choose [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I am working on a web project using velocity template and servlets. The code is a bit old and we are trying to refactor it before adding new functionalities. I am thinking of introducing dependency injection framework. Searching on net, I found spring DI, pico, guice as some of the options. But, not sure which is the right option. Ideally, I am looking for something easy to start with and lightweight.
Considering it is "a web project using velocity template and servlets", I suggest springframework. It is well documented, vastly used/tested, active community and will help with more then DI.

Why is hibernate usage declining? Where to? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I thought that hibernate is the most used Java ORM, by far. Is its usage declining? If so, where are people migrating to?
You are looking at search trends, not usage trends
A lot of people know Hibernate sufficiently for their daily needs, so they don't search as much for it. I expect this to be the dominant effect. Compare it for example with log4j which declines as well but certainly is still heavily used (and no the decline can't be explained with slf4j) http://www.google.com/trends?q=log4j%2C+slf4j
As mentioned above a lot of people are talking (searching) JPA although they might use Hibernate as the implementation.
Some people realized that maybe the whole ORM thing is a bad idea ... but that probably doesn't show significantly in the search trends
My guess would be it's JPA (of which Hibernate is also a provider). Because of this alias (which wasn't available in 2005) the declining trend for Hibernate may be misleading: some of the growing JPA uses are backed by the "declining" Hibernate, offsetting or even reversing the decline.

Designing composite webservices [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
How you do design composite webservices. Are there any frameworks available to let the developer simply concentrate on bussiness logic and to implement composite frameworks with some simple configuration.
I have read about SCA. But seems there is very less implementations of it.
Can some one suggest are there any frameworks which support ease of developing the composite webservices
An ESB caters this aspect to some extent. Please have a look at the open source WSO2 ESB built on top of Apache Synapse.
The WSO2 ESB comes with a large number of samples and please have a look at this sample too....
Thanks...

What are efficient and secure Java RPC options? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I'm looking for good Java RPC mechanisms that are
Secure
Efficient (Fast)
What are the options other than RMI?
You should also consider how you will integrate this RPC stack in your code, for instance, if you are using spring framework, you should have a look at the supported remoting protocols.
This will also give you some starting point to investigate on different RPC protocols.
One of the key point for performance of RPC is what kind of serialization is used underneath, have a look to this page for serialization API performance comparison.
Regards

Please suggest some tutorial for learning pointcut expression [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Please suggest some tutorial/cheatsheet for learning pointcut expression.
The AspectJ programmers guide has plenty examples, looks straightforward.
AspectJ in Action is also a great source of information on AOP and AspectJ.
Spring.Net has excellent documentation which can be downloaded from here: http://www.springframework.net/documentation.html
It has a very good general introduction to AOP and examples and sample AOP programs to get you started. Not knowing much about AOP, but knowing a bit about Spring.Net, I found this enough to get an AOP-based logging system up and running.

Categories

Resources