http://www.somaco.co.uk/index.php?Itemid=26&id=49&option=com_content&task=view
http://dynamicjasperplayground.fdvs.com.ar/ar.com.fdvs.dj.example.djApp/djApp.html
For settings that are going to change across different environments like database connection, you should externalize them from your war file. So, you can have your war be environment agnositic. Then, you can promote via simply copying your war across different environments. In Spring, there are several ways to achieve this.
The first solutions you can get the detailed from here. For the 3rd solution, you can subclass XmlWebApplicationContext and override the loadBeanDefinitions method.
public class XmlWebApplicationContext extends
org.springframework.web.context.support.XmlWebApplicationContext {
private static ApplicationContextOverride eaco = new ApplicationContextOverride();
protected final void loadBeanDefinitions(final XmlBeanDefinitionReader reader)
throws IOException {
ArrayList allLocations = new ArrayList(); // get standard locations
String[] configLocations = getConfigLocations();
allLocations.addAll(Arrays.asList(configLocations));
allLocations.addAll(eaco.findFiles(configLocations));
for (String apc : allLocations) {
log.info("loading file: " + apc);
reader.loadBeanDefinitions(apc);
}
}
}
JMX is a technology that enables you to instrument applications for management, monitoring and configuration. Spring JMX module enables you to export Spring beans as Model MBean (ie dynamic) so that you can see inside your application and tweak the configuration even while the application is running.
To make your service configurable via JMX, you can follow the steps below:
Recently I have been asked, "Why you need JBoss if Tomcat and Spring already give you the stuff for Web application development?".Hmm… Good question. I have kept using JBoss as I used to do EJB development and I found JBoss is a great open source application server. Later, I adopted Spring POJO container and dropped EJB. However, I still continue to use JBoss because Spring will happily live within a JBoss-deployed WAR. So, I never ask myself this question. OK, let me step back and think over what else JBoss provides me apart from EJB support.
Here is the list I come out that I may use JBoss for:
Here is what I use Spring for:
How I move away from JBoss
Now, let me see whether I can live without JBoss. Here is what I can do if I move away from JBoss.
How do I feel after that
In conclusion, for simplicity, I believe I am good to move away from JBoss for my web application development. There are other benefits that drive me to move away from JBoss. Here are the list:
However, there are some areas I want to point out after I dropped EJB and go purely on POJO. Using Spring remoting is lightweighted. However EJB remoting has its own strength in terms of distributed transaction management. Without EJB, there is no distributed rollback. Follow up: I have found an article showing me how to do distribute transaction with Spring alone. I put the article reference below.
Reference
XA transaction using Spring http://www.javaworld.com/javaworld/jw-04-2007/jw-04-xa.html?page=1
To have an effective marketing strategy, you should follow the steps below:
We normally segment our audience based on the following characteristics:
For a market segment to be useful to marketers, it should meet some certain criteria:
How to target the segment you chose? There are many ways that you can do it: email, banner advertising or viral marketing. Here I will not go through each of them. I will focus on banner ad with behavioral targeting. The idea of advertisement is to drive more sell and profit to the company. To do that, you need to be targeted in order to make the advertiseing dollars you spent more effective. Segmentation is a good start. After that, you need to understand that the buying cycle of your product. It normally drives from customers’ needs. If there is a need, users normally start to do the information gathering and the buying window is open at that time. If you successfully push your relevant ads with the right message to them at that time, there is good chance they will react on your ad. The idea is simple but in practice it involves a lots of work. First, we need to gather enough information to segment our users. Normally, online traffic stream doesn’t contain demographic and psychographic info. That is why big giants like Google pay top dollars to buy the social networking site. They are not buying their tech but the huge user-based and site-stickiness.