sharan vasandani

Ranch Hand
+ Follow
since Feb 22, 2007
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by sharan vasandani

what is the difference if we implement Serializable and provide writeObject() which does not have a call to writeDefaultObject()
writeObject() has only customized logic, no call to default serialization.

How is this different from implementing Externalizable?
what is the use/effect of changing the address on certmanger site compared to that of changing the address on prometric's site?
somebody please tell how to wrap text in jcombobox
14 years ago
hi,

can any one tell me how to distinguish whether the text entered in a editable combo box is edited one or selected one from the list.
14 years ago
can anybody tell how to wrap text in a editable combo box.
14 years ago
how to use key listener for editable combo box.
14 years ago
Hi All,

i want to wrap the text while in a JCombo box.

please reply soon.

thnks...
14 years ago
ok. i got it there is only the link, but the link says the product is still not available
i haved checked sun's site and there is a certification for 1.6, following is the link for it.

http://www.sun.com/training/certification/java/scjp.xml
hi

can anyone give some information about scjp 1.6, which is the book for it?
are there sufficient materials for it or not?

should we go for 1.5 or 1.6?

thanks
freddy i need some reasons to give to my boss, that why i like java, and why i want to pursue that line?

any suggestions?
14 years ago
hi everyone,

i want to present some compelling reasons for me wanting to make a career in java and specially j2ee?

can you please give some solid points on that and some links which answer my question? its urgent.
14 years ago
concentrate on bolded part

sprintContext.xml file


<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd">



<bean id="mfarDataSource"
class="org.springframework.jndi.JndiObjectFactoryBean"
lazy-init="true">
<property name="jndiName" value="java:comp/env/jdbc/MFAR" />
</bean>



<bean id="myDataSource"
class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"
lazy-init="true">
<property name="driverClassName" value="com.mysql.jdbc.Driver" />
<property name="url" value="jdbc:mysql://10.81.7.156:3306/mfar" />
<property name="username" value="root" />
<property name="password" value="password1" />
</bean>

<bean id="jdbcTemplate"
class="org.springframework.jdbc.core.JdbcTemplate" lazy-init="true">
<property name="dataSource">
<ref local="mfarDataSource" />
</property>
</bean>

<bean id="dbAccessManager" class="mfar.dao.DBAccessManager"
lazy-init="true">
<constructor-arg index="0">
<ref local="mfarDataSource" />
</constructor-arg>
<constructor-arg index="1">
<ref local="jdbcTemplate" />
</constructor-arg>
</bean>

<bean id="fundManager" class="mfar.manager.FundManager"
lazy-init="true">
<property name="dbAccessManager">
<ref local="dbAccessManager" />
</property>
</bean>

<bean id="applicationParameterManager"
class="mfar.manager.ApplicationParameterManager" lazy-init="true">
<property name="dbAccessManager">
<ref local="dbAccessManager" />
</property>
</bean>

<bean id="referenceFactory" class="mfar.ref.ReferenceFactory"
lazy-init="true">
<constructor-arg index="0">
<ref local="dbAccessManager" />
</constructor-arg>
</bean>

<bean id="securityManager" class="mfar.manager.SecurityManager"
lazy-init="true">
<property name="dbAccessManager">
<ref local="dbAccessManager" />
</property>
</bean>

<bean id="floatingRatesManager"
class="mfar.manager.FloatingRatesManager" lazy-init="true">
<property name="dbAccessManager">
<ref local="dbAccessManager" />
</property>
</bean>

<bean id="shareClassManager" class="mfar.manager.ShareClassManager"
lazy-init="true">
<property name="dbAccessManager">
<ref local="dbAccessManager" />
</property>
</bean>

<bean id="accountHeadManager"
class="mfar.manager.coa.AccountHeadManager" lazy-init="true">
<property name="dbAccessManager">
<ref local="dbAccessManager" />
</property>
</bean>

<bean id="coaManager" class="mfar.manager.coa.CoaManager"
lazy-init="true">
<property name="dbAccessManager">
<ref local="dbAccessManager" />
</property>
</bean>


<bean id="bscManager" class="mfar.manager.coa.BscManager"
lazy-init="true">
<property name="dbAccessManager">
<ref local="dbAccessManager" />
</property>
</bean>


<tx:annotation-driven transaction-manager="txManager"/>


<tx:advice id="txAdvice" transaction-manager="txManager">

<tx:attributes>
<tx:method name="*" />
</tx:attributes>
</tx:advice>

<bean id="txManager"
class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="myDataSource" />
</bean>


<bean id="accountRelationManager"
class="mfar.manager.coa.AccountRelationManager" lazy-init="true">
<property name="dbAccessManager">
<ref local="dbAccessManager" />
</property>
</bean>

</beans>


BscManager.java

package mfar.manager.coa;

import java.lang.reflect.Method;
import java.sql.Clob;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Date;
import java.util.Properties;

import org.springframework.jdbc.core.RowMapper;
import org.springframework.transaction.annotation.Transactional;


import mfar.bean.coa.AccountHead;
import mfar.bean.coa.BalanceSheetCategory;
import mfar.bean.coa.ChartOfAccount;
import mfar.dao.DBAccessManager;
import mfar.exception.MFARException;
import mfar.manager.IBeanManager;

/**
* This class communicates with the DBAccessManager for all actions relating to
* Balance Sheet Category.
*
* @author sharanv
*
*/

@Transactional

public class BscManager implements IBeanManager
{
continued...



BscAction.java

class BscAction extends ActionSupport
{
public BscAction()throws MFARException
{

ApplicationContext ctx = new ClassPathXmlApplicationContext("springContext.xml");------Blowing here
bscManager = (BscManager) ctx.getBean("bscManager");

retreiveAll();

}

continued....

tomcat giving error



javax.servlet.ServletException: Unable to instantiate Action, mfar.action.coa.BscAction, defined for 'balanceSheetCategoryAction_ra' in namespace '/controlled-view/coa'$Proxy15
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:518)
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:421)
concentrate on bolded part

sprintContext.xml file


<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd">



<bean id="mfarDataSource"
class="org.springframework.jndi.JndiObjectFactoryBean"
lazy-init="true">
<property name="jndiName" value="java:comp/env/jdbc/MFAR" />
</bean>



<bean id="myDataSource"
class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"
lazy-init="true">
<property name="driverClassName" value="com.mysql.jdbc.Driver" />
<property name="url" value="jdbc:mysql://10.81.7.156:3306/mfar" />
<property name="username" value="root" />
<property name="password" value="password1" />
</bean>

<bean id="jdbcTemplate"
class="org.springframework.jdbc.core.JdbcTemplate" lazy-init="true">
<property name="dataSource">
<ref local="mfarDataSource" />
</property>
</bean>

<bean id="dbAccessManager" class="mfar.dao.DBAccessManager"
lazy-init="true">
<constructor-arg index="0">
<ref local="mfarDataSource" />
</constructor-arg>
<constructor-arg index="1">
<ref local="jdbcTemplate" />
</constructor-arg>
</bean>

<bean id="fundManager" class="mfar.manager.FundManager"
lazy-init="true">
<property name="dbAccessManager">
<ref local="dbAccessManager" />
</property>
</bean>

<bean id="applicationParameterManager"
class="mfar.manager.ApplicationParameterManager" lazy-init="true">
<property name="dbAccessManager">
<ref local="dbAccessManager" />
</property>
</bean>

<bean id="referenceFactory" class="mfar.ref.ReferenceFactory"
lazy-init="true">
<constructor-arg index="0">
<ref local="dbAccessManager" />
</constructor-arg>
</bean>

<bean id="securityManager" class="mfar.manager.SecurityManager"
lazy-init="true">
<property name="dbAccessManager">
<ref local="dbAccessManager" />
</property>
</bean>

<bean id="floatingRatesManager"
class="mfar.manager.FloatingRatesManager" lazy-init="true">
<property name="dbAccessManager">
<ref local="dbAccessManager" />
</property>
</bean>

<bean id="shareClassManager" class="mfar.manager.ShareClassManager"
lazy-init="true">
<property name="dbAccessManager">
<ref local="dbAccessManager" />
</property>
</bean>

<bean id="accountHeadManager"
class="mfar.manager.coa.AccountHeadManager" lazy-init="true">
<property name="dbAccessManager">
<ref local="dbAccessManager" />
</property>
</bean>

<bean id="coaManager" class="mfar.manager.coa.CoaManager"
lazy-init="true">
<property name="dbAccessManager">
<ref local="dbAccessManager" />
</property>
</bean>


<bean id="bscManager" class="mfar.manager.coa.BscManager"
lazy-init="true">
<property name="dbAccessManager">
<ref local="dbAccessManager" />
</property>
</bean>


<tx:annotation-driven transaction-manager="txManager"/>


<tx:advice id="txAdvice" transaction-manager="txManager">

<tx:attributes>
<tx:method name="*" />
</tx:attributes>
</tx:advice>

<bean id="txManager"
class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="myDataSource" />
</bean>


<bean id="accountRelationManager"
class="mfar.manager.coa.AccountRelationManager" lazy-init="true">
<property name="dbAccessManager">
<ref local="dbAccessManager" />
</property>
</bean>

</beans>


BscManager.java

package mfar.manager.coa;

import java.lang.reflect.Method;
import java.sql.Clob;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Date;
import java.util.Properties;

import org.springframework.jdbc.core.RowMapper;
import org.springframework.transaction.annotation.Transactional;


import mfar.bean.coa.AccountHead;
import mfar.bean.coa.BalanceSheetCategory;
import mfar.bean.coa.ChartOfAccount;
import mfar.dao.DBAccessManager;
import mfar.exception.MFARException;
import mfar.manager.IBeanManager;

/**
* This class communicates with the DBAccessManager for all actions relating to
* Balance Sheet Category.
*
* @author sharanv
*
*/

@Transactional

public class BscManager implements IBeanManager
{
continued...



BscAction.java

class BscAction extends ActionSupport
{
public BscAction()throws MFARException
{

ApplicationContext ctx = new ClassPathXmlApplicationContext("springContext.xml");------Blowing here
bscManager = (BscManager) ctx.getBean("bscManager");

retreiveAll();

}

continued....

tomcat giving error



javax.servlet.ServletException: Unable to instantiate Action, mfar.action.coa.BscAction, defined for 'balanceSheetCategoryAction_ra' in namespace '/controlled-view/coa'$Proxy15
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:518)
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:421)