Spring JSF integration: how to manage a bean and inject a Spring component/service?

@ManagedBean vs @Controller/@Component First of all, you should choose one framework to manage your beans. You should choose either JSF or Spring (or CDI) to manage your beans. Whilst the following works, it is fundamentally wrong: @ManagedBean // JSF-managed. @Controller // Spring-managed (same applies to @Component) public class BadBean {} You end up with two … Read more

What is the difference between a channel adapter and a messaging gateway pattern?

That’s a great question since they are similar in that they provide an application access to a messaging system. It is how they acheive it I think that differentiates them. The Channel Adapter pattern deals how to get data from an existing system without modifying that system. Typically the Channel Adapdter is implemented out-of-process. Examples … Read more

How to get LinkedIn r_fullprofile access?

QUESTION-1: For getting permission to access r_fullprofile, you will have to apply to become a member of a relevant Partner Program. Apply for partner status with LinkedIn, explaining what your integration is and how it works. If it meets the criteria of “we feel that they’re providing value to members, developers and LinkedIn,” then r_fullprofile … Read more

How do I use Browserify with external dependencies?

You can achieve that by using browserify-shim. Assuming that you’ve got a module named mymodule.js that depends on jQuery in the global scope with the following contents: var $ = require(‘jQuery’); console.log(typeof $); Install browserify-shim: npm install browserify-shim –save-dev In package.json file, tell browserify to use browserify-shim as a transform: { “browserify”: { “transform”: [ … Read more

When to use JMS and when to use REST? [closed]

Always use REST. It is the most modern, advanced and scalable integration approach available today. Load balancing a REST based service is achieved simply with hardware or software HTTP load balancer and can be considered just as free as load balancing in JMS. MOM (Message Oriented Middleware) doesn’t scale easily (but may scale big enough … Read more

Spring JSF integration: how to inject a Spring component/service in JSF managed bean?

@ManagedBean vs @Controller First of all, you should choose one framework to manage your beans. You should choose either JSF or Spring (or CDI) to manage your beans. Whilst the following works, it is fundamentally wrong: @ManagedBean // JSF-managed. @Controller // Spring-managed. public class BadBean {} You end up with two completely separate instances of … Read more