This week's giveaway is in the Beginning Java forum.
We're giving away four copies of Bad Programming Practices 101 (e-book) and have Karl Beecher on-line!
See this thread for details.
Win a copy of Bad Programming Practices 101 (e-book) this week in the Beginning Java forum!

anvi kon

Ranch Hand
+ Follow
since Jan 08, 2010
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
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 anvi kon

hi,

Can anyone help me to get the least values from the List?

Here is the code below.

List lst = getvalues(String s);

I have three values:lst.size() =3

150,25,250.

I need to sort it and get the lowest value 25.

How would I do that in java?

Thanks,





5 years ago
Hi,

Can anyone help me to publish messages(MSMQ) using NservieBus?

thanks
5 years ago
Hi,

Is that possible to send messages to MSMQ from java(not with JMS).?

I want to send XML object to MSMQ.

Can anyone help me giving some examples?

Thanks
5 years ago
Hi,

I am using excuetebatch of prepared statement to insert 600000 records into the Mysql database, but it is taking long time to process.Is there any way to make the process fast.


Thanks,
Hi,

I need to covert excel to csv without losing the excel format.

It should be exactly as original xls format without deleting the commas...

Thanks
6 years ago
Hi,
I have huge excel 60k data.Is any open source tool to import an excel to mysql database table?

Please let me know as soon as possible?

Thanks
6 years ago
I have update the code below:

String statementText= "LOAD DATA LOCAL INFILE \"" + filename + "\" INTO TABLE " + tablename + " FIELDS TERMINATED BY ','";

Still I get the same error:

Do I have to use jdbc driver 5 here fro MYSQL?

thanks for you reply.

I have tried the below.

String file = "C:/bulk/example.csv";

Still I am getting the same error.
Is any one can help me to load 10k data in to the mysql database table using java?

I have tried the code below.



I got the below error:

java.io.FileNotFoundException
MESSAGE: C:ulkexample.csv (The filename, directory name, or volume label syntax is incorrect)

STACKTRACE:

java.io.FileNotFoundException: C:ulkexample.csv (The filename, directory name, or volume label syntax is incorrect)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at com.mysql.jdbc.MysqlIO.sendFileToServer(MysqlIO.java:2820)
at com.mysql.jdbc.MysqlIO.readResultsForQueryOrUpdate(MysqlIO.java:2074)
at com.mysql.jdbc.MysqlIO.readAllResults(MysqlIO.java:1451)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1787)
at com.mysql.jdbc.Connection.execSQL(Connection.java:3277)
at com.mysql.jdbc.Statement.executeUpdate(Statement.java:1402)
at com.mysql.jdbc.Statement.executeUpdate(Statement.java:1317)
at org.jboss.resource.adapter.jdbc.WrappedStatement.executeUpdate(WrappedStatement.java:186)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.resource.adapter.jdbc.remote.WrapperDataSourceService.doStatementMethod(WrapperDataSourceService.java:394)
at org.jboss.resource.adapter.jdbc.remote.WrapperDataSourceService.invoke(WrapperDataSourceService.java:223)
at sun.reflect.GeneratedMethodAccessor133.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)
at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:74)
at org.jboss.resource.adapter.jdbc.remote.StatementInterceptor.invoke(StatementInterceptor.java:58)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
at $Proxy85.executeUpdate(Unknown Source)


thanks

hi,

I am passing an arraylist item to the following function. Can anyone tell is this correct way of doing? I have to see all the list items of lstHostNames

6 years ago
Hi ,

What are the steps to debug the javascript in MyEclipse IDE?

thanks,
Hi ,

I am using datetiempicker.js script for my calander.

I want to change the date format (11/1/2011)when I enter in the text box to (11/01/2011).

Can anyone help in this?

where do I have to change in the below script.




thanks,
Thanks for your reply.

Is there any other option to kill the process as I shown in my code for lookup? It was just hanging there, not coming out of the loop.



Hi,

Can you please give me some example in ejb using a thread to kill the process?


I never tried a thread in ejb .


thanks


Hi,

I have a code like this below. I want to kill out the process when proctime is greater than Max_time.


Can anyone help me please?

Thanks