Win a copy of Secure Financial Transactions with Ansible, Terraform, and OpenSCAP this week in the Cloud/Virtualization forum!

naresh govindaswmay

Ranch Hand
+ Follow
since Aug 15, 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 naresh govindaswmay

Dear all,
As of i am facing problem in JSTL, current i am working in JSTL with IBM Websphere application server i have placed Standard.jar and jstl.jar in the WEB-INF/lib path.still i am getting the exception while accessing the jsp page "javax.servlet.ServletException: file "http://sun.java.com/jstl/core"not found"
12 years ago
hi,
I am new to MQSeries i can ale to create the queue and queue manager .... i wants to know how to put a message and how to get the messages thruogh application

Thanks and regards
naresh
12 years ago
hi,
I am new to mq series.I my machine i have installed mq series software. I want help how to run a simple program like sending the messages and receiving message.please help me out of this

Thanks and regards
Naresh
12 years ago
hi
I am using postgres as a database i wants to convert the data type from BYTEA to STRING.Please any one help me out of this

Thanks and regards
Naresh Govindaswamy
hi,
I am new to java mail api.I am getting this exception while running the program java.lang.NoClassDefFoundError: com/sun/activation/registries/LogSupport.
i have setted the class path for activation.jar and mail.jar.here i am using the JBOSS 3.2.6 please help me out of this.

i have did the same program as Sevlet that time it is running corrctly with out throwing any exception at all.

please find the senerio and help me out of this.


Thanks and Regards
Naresh
13 years ago
hi friends
I am using EJB Message Driven bean datas were received in very fastest way(per min 200 msg) in the onMessage() in bean call.I am adding the msgs to the vector and passed to the other class.That class is doing all the database Operation.for this scenario i am using PreparedStatement and batchUpdation.In this class i am getting BatchException.I have attched the error log here and class code also.


this is the error lo
12:21:25,765 INFO [STDOUT] record size :1
12:21:25,765 INFO [STDOUT] Inisde the Tick data
12:21:25,765 INFO [STDOUT] db in end :EURNZD,04/04/2008,06:40:39,1.9983,1.9983,
1.9993,T
12:21:25,765 INFO [STDOUT] Error in updateMessageToDB :java.sql.BatchUpdateExce
ption: Batch entry 0 insert into tick(itemcode,date,time,last_price,bid_price,as
k_price)values(EURNZD,04/04/2008,06:40:39,1.9983,1.9983,1.9993) was aborted. Ca
ll getNextException to see the cause.
12:21:25,890 INFO [STDOUT] Inside the onMessage method
12:21:25,890 INFO [STDOUT] setdata
12:21:25,890 INFO [STDOUT] Inside the startmethod()
12:21:25,890 INFO [STDOUT] Inisde the updateMessageToDB method in the DBOperati
on[EURGBP,04/04/2008,06:40:39,0.7847,0.7847,0.7854,T]
12:21:25,890 INFO [STDOUT] record size :1
12:21:25,906 INFO [STDOUT] Inisde the Tick data
12:21:25,906 INFO [STDOUT] db in end :EURGBP,04/04/2008,06:40:39,0.7847,0.7847,
0.7854,T
12:21:25,906 INFO [STDOUT] Error in updateMessageToDB :java.sql.BatchUpdateException: Batch entry 0 insert into tick(itemcode,date,time,last_price,bid_price,as
k_price)values(EURGBP,04/04/2008,06:40:39,0.7847,0.7847,0.7854) was aborted. Ca
ll getNextException to see the cause.

class code


public void updateMessageToDB(Vector dataclone)
{
System.out.println("Inisde the updateMessageToDB method in the DBOperation" +dataclone);
PreparedStatement tick_pstmt=null;
PreparedStatement onemin_pstmt=null;
PreparedStatement fivemin_pstmt=null;
PreparedStatement tenmin_pstmt=null;
PreparedStatement thirtymin_pstmt=null;
PreparedStatement hourly_pstmt=null;
PreparedStatement daily_pstmt=null;
PreparedStatement weekly_pstmt=null;
dbcon=getDBConnection();
//System.out.println("after creating the connection");
synchronized (dataclone)
{
try
{


System.out.println("record size :"+dataclone.size());
dbcon.setAutoCommit(false);
tick_pstmt=dbcon.prepareStatement("insert into tick(itemcode,date,time,last_price,bid_price,ask_price)values(?,?,?,?,?,?)");
onemin_pstmt=dbcon.prepareStatement("insert into one_minute(itemcode,date,time,open_price,high_price,low_price,close_price)values(?,?,?,?,?,?,?)");
fivemin_pstmt=dbcon.prepareStatement("insert into five_minute(itemcode,date,time,open_price,high_price,low_price,close_price)values(?,?,?,?,?,?,?)");
tenmin_pstmt=dbcon.prepareStatement("insert into ten_minute(itemcode,date,time,open_price,high_price,low_price,close_price)values(?,?,?,?,?,?,?)");
thirtymin_pstmt=dbcon.prepareStatement("insert into thirty_minute(itemcode,date,time,open_price,high_price,low_price,close_price)values(?,?,?,?,?,?,?)");
hourly_pstmt=dbcon.prepareStatement("insert into one_hour(itemcode,date,time,open_price,high_price,low_price,close_price)values(?,?,?,?,?,?,?)");
daily_pstmt=dbcon.prepareStatement("insert into one_day(itemcode,date,time,open_price,high_price,low_price,close_price)values(?,?,?,?,?,?,?)");
weekly_pstmt=dbcon.prepareStatement("insert into one_week(itemcode,date,time,open_price,high_price,low_price,close_price)values(?,?,?,?,?,?,?)");

for(int i=0;i<dataclone.size();i++)
{

//String[] pricelist=((TextMessage)msglist.get(i)).getText().split(",");
String[] pricelist=((String)dataclone.get(i)).split(",");

if(pricelist.length==8)
{
//System.out.println("db in start :"+pricelist[0]+","+pricelist[1]+","+pricelist[2]+","+pricelist[3]+","+pricelist[4]+","+pricelist[5]+","+pricelist[6]+","+pricelist[7]);
String itm_name=pricelist[0];
String itm_time=pricelist[1];
String itm_date=pricelist[2];
String itm_open=pricelist[3];
String itm_high=pricelist[4];
String itm_low=pricelist[5];
String itm_close=pricelist[6];
String itm_type=pricelist[7];


if(itm_type.equals("O"))
{
System.out.println("Inside the one munite data in the DBOperation ");
onemin_pstmt.setString(1 ,itm_name);
onemin_pstmt.setString(2 ,itm_date);
onemin_pstmt.setString(3 ,itm_time);
onemin_pstmt.setString(4 ,itm_open);
onemin_pstmt.setString(5 ,itm_high);
onemin_pstmt.setString(6 ,itm_low);
onemin_pstmt.setString(7 ,itm_close);
//int onemin=onemin_pstmt.executeUpdate();
onemin_pstmt.addBatch();
}
else if(itm_type.equals("5"))
{
System.out.println("Inside the Five munite data in the DBOperation");
//System.out.println(itm_name);
fivemin_pstmt.setString(1 ,itm_name);
fivemin_pstmt.setString(2 ,itm_date);
fivemin_pstmt.setString(3 ,itm_time);
fivemin_pstmt.setString(4 ,itm_open);
fivemin_pstmt.setString(5 ,itm_high);
fivemin_pstmt.setString(6 ,itm_low);
fivemin_pstmt.setString(7 ,itm_close);
//int fivemin=fivemin_pstmt.executeUpdate();
fivemin_pstmt.addBatch();
}

else if(itm_type.equals("1"))
{
System.out.println("Inside the ten munite data in the DBOperation");
tenmin_pstmt.setString(1 ,itm_name);
tenmin_pstmt.setString(2 ,itm_date);
tenmin_pstmt.setString(3 ,itm_time);
tenmin_pstmt.setString(4 ,itm_open);
tenmin_pstmt.setString(5 ,itm_high);
tenmin_pstmt.setString(6 ,itm_low);
tenmin_pstmt.setString(7 ,itm_close);
//int tenmin=tenmin_pstmt.executeUpdate();
tenmin_pstmt.addBatch();
}

else if(itm_type.equals("3"))
{
System.out.println("Inside the Thirty munite Data in the DBOperation");
thirtymin_pstmt.setString(1 ,itm_name);
thirtymin_pstmt.setString(2 ,itm_date);
thirtymin_pstmt.setString(3 ,itm_time);
thirtymin_pstmt.setString(4 ,itm_open);
thirtymin_pstmt.setString(5 ,itm_high);
thirtymin_pstmt.setString(6 ,itm_low);
thirtymin_pstmt.setString(7 ,itm_close);
//int thirtymin=thirtymin_pstmt.executeUpdate();
thirtymin_pstmt.addBatch();
}

else if(itm_type.equals("H"))
{
System.out.println("Inside One Hour Data in the DBOperation");
hourly_pstmt.setString(1 ,itm_name);
hourly_pstmt.setString(2 ,itm_date);
hourly_pstmt.setString(3 ,itm_time);
hourly_pstmt.setString(4 ,itm_open);
hourly_pstmt.setString(5 ,itm_high);
hourly_pstmt.setString(6 ,itm_low);
hourly_pstmt.setString(7 ,itm_close);
int hourly=hourly_pstmt.executeUpdate();
//hourly_pstmt.addBatch();
}

else if(itm_type.equals("D"))
{
System.out.println("Inside the One Day Data in the DBOperation");
daily_pstmt.setString(1 ,itm_name);
daily_pstmt.setString(2 ,itm_date);
daily_pstmt.setString(3 ,itm_time);
daily_pstmt.setString(4 ,itm_open);
daily_pstmt.setString(5 ,itm_high);
daily_pstmt.setString(6 ,itm_low);
daily_pstmt.setString(7 ,itm_close);
//int daily=daily_pstmt.executeUpdate();
daily_pstmt.addBatch();
}

else if(itm_type.equals("W"))
{
System.out.println("Inside the One week data");
weekly_pstmt.setString(1 ,itm_name);
weekly_pstmt.setString(2 ,itm_date);
weekly_pstmt.setString(3 ,itm_time);
weekly_pstmt.setString(4 ,itm_open);
weekly_pstmt.setString(5 ,itm_high);
weekly_pstmt.setString(6 ,itm_low);
weekly_pstmt.setString(7 ,itm_close);
//int weekly=weekly_pstmt.executeUpdate();
weekly_pstmt.addBatch();
}

}
else
{
//tick updation
System.out.println("Inisde the Tick data");
String itm_name=pricelist[0];
String itm_date=pricelist[1];
String itm_time=pricelist[2];
String itm_last=pricelist[3];
String itm_bid=pricelist[4];
String itm_ask=pricelist[5];

System.out.println("db in end :"+itm_name+","+itm_date+","+itm_time+","+itm_last+","+itm_bid+","+itm_ask+","+pricelist[6]);

tick_pstmt.setString(1 ,itm_name);
tick_pstmt.setString(2 ,itm_date);
tick_pstmt.setString(3 ,itm_time);
tick_pstmt.setString(4 ,itm_last);
tick_pstmt.setString(5 ,itm_bid);
tick_pstmt.setString(6 ,itm_ask);
//int tick=tick_pstmt.executeUpdate();
tick_pstmt.addBatch();
int tick_result[]=tick_pstmt.executeBatch();

}

int tick_result[]=tick_pstmt.executeBatch();
int onemin_result[] = onemin_pstmt.executeBatch();
int fivmin_result[] = fivemin_pstmt.executeBatch();
int tenmin_result[] = tenmin_pstmt.executeBatch();
int thirtymin_result[] = thirtymin_pstmt.executeBatch();
int onehour_result[] = hourly_pstmt.executeBatch();
int daily_result[] = daily_pstmt.executeBatch();
int weekly_result[] = weekly_pstmt.executeBatch();

tick_pstmt.clearBatch();
onemin_pstmt.clearBatch();
fivemin_pstmt.clearBatch();
tenmin_pstmt.clearBatch();
thirtymin_pstmt.clearBatch();
hourly_pstmt.clearBatch();
daily_pstmt.clearBatch();
weekly_pstmt.clearBatch();
//UpdateionStatus=false;
//System.out.println(((TextMessage)msglist.get(i)).getText());

}

newinstance=true;
dbcon.setAutoCommit(true);
//System.out.println("Db Updation completed");
tick_pstmt.close();
onemin_pstmt.close();
fivemin_pstmt.close();
tenmin_pstmt.close();
thirtymin_pstmt.close();
hourly_pstmt.close();
daily_pstmt.close();
weekly_pstmt.close();
dbcon.close();
}
catch(Exception e)
{
try
{
//tick_pstmt.close();
//onemin_pstmt.close();
//fivemin_pstmt.close();
//tenmin_pstmt.close();
//thirtymin_pstmt.close();
//hourly_pstmt.close();
//daily_pstmt.close();
//weekly_pstmt.close();

}
catch (Exception E)
{
System.out.println("Exception while closing the connection"+E.getClass());
}

newinstance=true;

System.out.println("Error in updateMessageToDB :"+e);
}



please help me out of this.

thanks and regards

Naresh



hi,
I am also totally struggling in the JBOSS load balancing.can you give me the idea about the load balancing.

Thanks and regards
Naresh
13 years ago
hi,
can any body tell me how to check JMS message is persistence or not in the jboss.because of this problem i am getting the Heap error in the application server as well as our application.
hi,
I want to access the EJB Api method in my own class.For i need EJBObject.how can i create the EJBObject can any body help me out of this.

Thanks and regards

Naresh govindaswamy
hi,
//AdviceHome home=(AdviceHome) PortableRemoteObject.narrow(object, AdviceHome.class);
AdviceHome home=(AdviceHome)object;

I have a doubt in his two lines.i am getting the Home object from these two lines.i want to know the meaning of these line.Please help me out of this.


Regards
naresh
Thsi the error message i am getting now in the consoleE:\EJB\ejb practice>javac -d . *.java

E:\EJB\ejb practice>java com/ejb/example/AdviceClient
Exception in thread "main" java.lang.NoClassDefFoundError: com/ejb/example/Advic
eClient

E:\EJB\ejb practice>set classpath=%classpath%;C:\Program Files\Java\jdk1.5.0_06\
lib;

E:\EJB\ejb practice>java com/ejb/example/AdviceClient
Exception -->class javax.naming.NoInitialContextException


this is the error message i am getting now.

cheers
naresh
hi,
I have deployed my EJB jar into the JBOSS application server.Its deployed with out error.while accesing the jar into the client program i am getting NoInitialContextFactory exception please help out of this I have included all the xml file and client code.

ejb-jar.xml file

<?xml version="1.0"?>

<!DOCTYPE ejb-jar PUBLIC
'-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN'
'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>


<ejb-jar>
<enterprise-beans>
<session>
<display-name>AdviceBean</display-name>
<ejb-name>AdviceBean</ejb-name>
<!--<home>com.ejb.example.AdviceHome</home>
<remote>com.ejb.example.Advice</remote>
<ejb-home>com.ejb.example.AdviceHome</ejb-home>
<ejb-home>com.ejb.example.AdviceHome</ejb-home>
-->
<home>com.ejb.example.AdviceHome</home>
<remote>com.ejb.example.Advice</remote>
<ejb-class>com.ejb.example.AdviceBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
<ejb-client-jar>Advice.jar</ejb-client-jar>

</ejb-jar>

2.jboss.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS//EN" "http://www.jboss.org/j2ee/dtd/jboss.dtd">




<jboss>
<enterprise-beans>
<session>
<ejb-name>AdviceBean</ejb-name>
<jndi-name>AdviceBean</jndi-name>
<local-jndi-name>AdviceBean</local-jndi-name>

</session>
</enterprise-beans>
</jboss>


3.client Program


package com.ejb.example;
import java.rmi.*;
import javax.ejb.*;
import javax.naming.*;
import javax.rmi.*;
import java.util.Properties;
public class AdviceClient

{
public static void main(String str[])
{
new AdviceClient().go();
}
public void go()
{
try
{
Context ctx=new InitialContext();
Properties properties=new Properties();
//properties.put("");
//properties.put("");
//properties prop= new Properties();
properties.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");

properties.put(Context.PROVIDER_URL,"org.jnp.interfaces");
System.out.println("after the provider URL ");
//InitialContext ctx = new InitialContext(prop);
Object o=ctx.lookup("AdviceBean");
System.out.println("after the Object is looked up");
AdviceHome home=(AdviceHome) PortableRemoteObject.narrow(o,AdviceHome.class);
Advice advice=home.create();
System.out.println("this String from Ejb-->"+advice.getAdvice());
}
catch (Exception E)
{
System.out.println("Exception -->"+E.getClass());
}

}

}

this is my client program structure please help m eout of this.

cheers
Naresh.
hi,
I am trying to run my queuing application in my machine.but it is showing some exception.I have attached all the logs here please find the bug and let me know.It was running before i formate my machine after that it is not running.

this is the log

D:\live\JMSServer\ReceivingQ>java com/leader/chart/server/JMS/PriceUpdater -Xms5
12m -Xmx512m
After the org.jnp.interfaces
after the context creation
Error in PriceContainer :java.lang.ClassCastException: javax.naming.Reference
Error in PriceContainer in catch block :java.lang.NullPointerException

D:\live\JMSServer\ReceivingQ>pause
Press any key to continue . . .


these are all the jars i have set in the class path.


D:\live\JMSServer\ReceivingQ>set classpath=D:\jboss-3.2.6\driver\j2ee.jar;D:\jbo
ss-3.2.6\driver\pg73jdbc2.jar;C:\Program Files\Java\jdk1.5.0_12\lib;;C:\jboss-3.
2.6\client\jboss-common-client.jar;;C:\jboss-3.2.6\server\default\lib\jnpserver.
jar;;D:\jboss-3.2.6\driver\pg73jdbc2.jar;

thanks and regards
naresh
Respected Sir,

Sub: Requisition of Resignation- Reg.

Please accept this letter as my formal resignation letter. I am compelled to resign the job due to some personal reasons. Hence I request you to relieve me as early as possible. I will do my best to complete all the tasks assigned to me.

It has been a privilege working with Kapp software and look forward to your understanding of my circumstances. Thank you for the opportunities you have provided me during my time with the company.






Yours Sincerely,


M. LAVANYA
last formateee



WORK HISTORY
.....................


1. Language skills and ability to adapt to other cultures is helpful

2. Denote blood to patients where they admitted in Government hospitals.

3. I get highscores on my monthly evals for my work over my squad, also im well supervised and can able to do
anything.


4. KappSoftware, JM2- Java Programmer, 19-01-2007

5. I was expecting excepting to get more projects with good modules and as I except.

6. Since only for one year I had been in to this profession I do not have any compensation







JOB PERFORMANCE

.......................



1. Ability to cope with change and uncertainity,optimism, enthusiasm,energy and confidence all are my strengths and my weakness are caring and compassion not saying i dont have them but they can come back to bite me sometimes.

2.Client satifaction,Quality scores,Hardworking.

3.Good Points of rating :: Try to solve critical problems in project,Finishing the works with in the given deadlines.

Bad Points :: Not properly following coding standards.

4. When my salary increment issue comes, i discovered myself a problem in my job performance.To solve that problem i tried to improve my quality in my profession by hardworking.

5. I like to work in a group.


6. People who don't prefer to work in groups.


7.

8. When my supervisor was on leave, I managed the team with my team�s performance improvements, creating reports and shared with clients.

9. Regarding my profession I would like to avoid functional bugs.

10. Brand name, good salary, good work environment and better management.

11. The most difficult thing I found to do in my last job is keeping good coding standards.



CAREER GOALS
...............

1.To pursue a challenging career as software professional in a dynamic organization where I can contribute and perfect my skills.

2. To become a Technical Lead.

3. To be work with both functional and teachnical team.

4. Will be calculating my succcess based on the defect free delivery which myself and my team made in the past years--------------------
Thanks and Regards
Naresh govindaswamy