Thursday, February 9, 2012

Oracle Weblogic Server CLASSPATH

Setting up CLASSPATH in Weblogic Server:

Oracle WebLogic Server installs the following script that you can use to set the classpath that a server requires
  • WL_HOME/server\bin/setWLSEnv.cmd (on Windows)
  • WL_HOME/server/bin/setWLSEnv.sh (on UNIX)
In addition, WebLogic distribution server includes shell scripts that you can use to start the server. These scripts, which are located in the domain directories under the config directory of your WebLogic Server distribution, automatically set up the CLASSPATH variable in the shell before starting the server.

Read more...

Tuesday, January 24, 2012

Java Spring Framework Dependency Injection Variants

Variants in Java Spring Framework Dependency Injection:

Constructor dependency Injection: Dependencies are provided through the constructors of the component.
Setter dependency injection: Dependencies are provided through the JavaBeanstyle setter methods of the component and are more popular than Constructor dependency injection.

Constructor Dependency Injection Syntax:
public class ConstructorInjection
{
private Dependency dep;
public ConstructorInjection(Dependency dep)
{
this.dep = dep;
}
}

Setter Dependency Injection Syntax
public class SetterInjection
{
private Dependency dep;
public void setMyDependency(Dependency dep)
{
this.dep = dep;
}
}

Read more...
Blog Widget by LinkWithin

JS-Kit Comments

  © Blogger template Newspaper III by Ourblogtemplates.com 2008

Back to TOP