Solved

Jave System.out.println(resp)

Posted on 2013-05-13
5
349 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
  • 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
 
LVL 8

Expert Comment

by:Manikandan Thiagarajan
ID: 39162314
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ejb wildfly example 2 28
How to parse the string and split the sub directory names in asp.net 7 59
add projects t working set in maven 2 24
java mysql insert application 14 29
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

820 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