j2ee

Spring Framework 3.0 – Core

Spring Framework – Core View more presentations from Dmitry Noskov


Using Application Events – Spring framework

Spring Application contexts support a simple form of event publishing and subscription. This event mechanism can not be compared with other message queues and JMS like systems but can be useful for certain use cases like following: 1. Sending async email: While executing a user registration flow, system may want to send and email and [...]


Spring 3 – Synopsis, all modules

Spring 3 View more presentations from André Faria Gomes


Add Server address on page – Troubleshooting Load Balanced cluster

It is actually about a trick that can be used in a particular type of environment. When you are running your application in multi-server environment with load balancers enabled to distribute the load, you may require to know which server is serving the request in certain error situations. One very probable scenario is that during [...]


java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.lang.String

It happened with me while i was trying to extract a HTTPRequest parameter from an ActionInvocation object. I was writing an interceptor in Struts2 and was trying to check a request parameter. This is how you do it when you are in an interceptor: And it gave me following error: According to the Java Doc [...]