File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Connecting to Remote Data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Connecting to Remote Data" Watch "Connecting to Remote Data" New topic
Author

Connecting to Remote Data

Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1393
I am trying to develope a web application. I need to get and post data to several AS400 files. I have created a connection class that works only on a specific file. How can I create a connection class that stores the connection to a variable. Then use this variable in classes that have SQL strings that interact with the AS400 files.

This is my connection class:


I use the LogOnConnection conn = new LogOnConnection(); in a Servlet.

I need to be able to use the connection variable in the following:



However, I get a connot resolve on conn
sathish kumar
Ranch Hand

Joined: Feb 14, 2007
Posts: 47
Where is the Conn object initialization inside the method.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Connecting to Remote Data
 
Similar Threads
How do I get a Subset of a ResultSet
Test User Input Sting to Object
Dynamic JSP
Help with Remote Data
Creating Cewolf Combined Charts