473,396 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

design for a simple file writer in j2ee environment

I need to do the following:
1) access the database with a simple query
2) post the results of that query to a file on a unix machine for nightly
ftp to a mainframe

I'm thinking of having either a new or existing data access object (DAO) do
the query and make a result set. What I'm debating, since its not a client
function, is whether to accumulate the results to data transfer objects
(DTOs), and then maybe pass them to a BDO to actually create the file? Or
should I just have one class do everything? Or something else.

I'm much better at writing code than designing, so I'd welcome your
opinions.

Thanks,
Eric
Jul 17 '05 #1
1 1819
Eric wrote:
I need to do the following:
1) access the database with a simple query
2) post the results of that query to a file on a unix machine for nightly
ftp to a mainframe

I'm thinking of having either a new or existing data access object (DAO) do
the query and make a result set. What I'm debating, since its not a client
function, is whether to accumulate the results to data transfer objects
(DTOs), and then maybe pass them to a BDO to actually create the file? Or
should I just have one class do everything? Or something else.

I'm much better at writing code than designing, so I'd welcome your
opinions.


Eric,

Ultimately it comes down to how flexible and re-usable you need the code
to be. All that stuff seems like overkill for what you are trying to do
-- unless this will be part of a larger app with re-usable modules.

BTW, most databases have some sort of utility for dumping data. E.g.,
SQL Server can output a result set as XML natively and Oracle has a XSU
utility to do it.

Ray

Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Herman | last post by:
Hi everyone, I'm currently studying for my Master's in Computer Science, and I will be working on my thesis this summer. I've been thinking about constructing a web services application for my...
13
by: Jonathan Li | last post by:
Hi there, I posted a thread in another group. I could not get satisfactory feedback. I would like to try if anybody in this group can help me out. My plan was, to develop components at server...
17
by: tshad | last post by:
Many (if not most) have said that code-behind is best if working in teams - which does seem logical. How do you deal with the flow of the work? I have someone who is good at designing, but...
7
by: Luca | last post by:
I am not a programmer but I do work in the ICT sector. I read somewhere that J2EE would be "dying" and that PHP would be taking its place soon... Is this complete crap or does it have some real...
4
by: alacrite | last post by:
I have a class that I want to turn its contents into csv file. I want to be able to set the value of the delimiter, the name of the file it gets saved to, the path of that file, and maybe a few...
0
by: YellowFin Announcements | last post by:
Introduction Usability and relevance have been identified as the major factors preventing mass adoption of Business Intelligence applications. What we have today are traditional BI tools that...
0
by: stmfc | last post by:
I am very new to j2ee applications and i need some help to set up my environment. I have some questions: 1-Can i use classical eclipse by adding j2ee.jar to the classpath to create dynamic web...
0
by: coldboyqn | last post by:
Hi you guy! I am using Visual Web Express 2008 to design a server controls (a component). The control is almost very simple. protected override void RenderContents(HtmlTextWriter writer)...
1
by: Swathika | last post by:
Hi, Sometimes, you never get chance to learn 'Advanced Design Concepts and Real-time Scenarios' from institutes or through book-learning. But, in my blog, I have gathered some of the amazing...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.