Solved

Jave System.out.println(resp)

Posted on 2013-05-13
5
351 Views
Last Modified: 2013-05-14
I'm a .Net developer but at my company wear many hats.

I have a JAR file I need to modify.

The jar is currently doing a response to a command screen.
while (true)
{
	String resp = cnx.getRawResponse();
	System.out.println(resp);
}

Open in new window


I would like to change that and do an out to a WCF or asynchronous load to send data to SQL Server.

I just need to be pointed in the right direction.

I have Eclipse and JDK loaded on my dev pc (64 bit)
0
Comment
Question by:lrbrister
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
ID: 39162105
I don't know about the WCF, but you need to use a PreparedStatement in that loop if you want to insert into a db

http://www.java2s.com/Code/Java/Database-SQL-JDBC/InsertRecordsUsingPreparedStatement.htm

Do the close stuff when you've come out of the loop
0
 

Author Comment

by:lrbrister
ID: 39162345
Going to try your examples today and get back to you
0
 

Author Closing Comment

by:lrbrister
ID: 39165808
Thanks
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 39165827
:)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
This video teaches viewers about errors in exception handling.
Progress
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question