473,396 Members | 1,886 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.

Implementing an external datasource

On the WebLogic side of our development team, we use JNDI and access
datasources that are defined outside the actual application. This is an
advantage in several ways... Not the least is becasue our DBA's insist on
having different names for the development and production versions of the
databases. So I've had to recompile or reconfigure my web apps in order to
move them to production. To me this is a bit against the entire purpose of
development. If I have to change my code to move it to production, then
that code hasn't been tested... etc.. etc.. etc..

So... It seems to me there must be a way to implement an external
datasource as we do with WebLogic and java. Then, all I'd have to do is
update the database name in the datasource and my application would require
no changes at all.

Can someone point me in the right direction to do this? Thanks.

Jerry
Nov 19 '05 #1
4 1132
Data Connections are intended to be stored in the web.config file where they
may be updated without the necessity of compiling them.

Of course it's best to encrypt the connection information. Here's an article
on how to do so:

http://www.codeproject.com/aspnet/eReach_Demo.asp

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Jerry Camel" <rl*****@msn.com> wrote in message
news:OU****************@TK2MSFTNGP09.phx.gbl...
On the WebLogic side of our development team, we use JNDI and access
datasources that are defined outside the actual application. This is an
advantage in several ways... Not the least is becasue our DBA's insist on
having different names for the development and production versions of the
databases. So I've had to recompile or reconfigure my web apps in order
to
move them to production. To me this is a bit against the entire purpose
of
development. If I have to change my code to move it to production, then
that code hasn't been tested... etc.. etc.. etc..

So... It seems to me there must be a way to implement an external
datasource as we do with WebLogic and java. Then, all I'd have to do is
update the database name in the datasource and my application would
require
no changes at all.

Can someone point me in the right direction to do this? Thanks.

Jerry

Nov 19 '05 #2
That's the solution I was using... But technically, this involves changing
"tested" code when moving it from development to production. I was looking
to see if there was a way to control the datasource outside the apps...
Kinda like we used to with ODBC DSNs.

For now, web.config will have to do...

Thanks for the feedback.

Jerry

"S. Justin Gengo" <sjgengo@[no_spam_please]aboutfortunate.com> wrote in
message news:e8**************@TK2MSFTNGP10.phx.gbl...
Data Connections are intended to be stored in the web.config file where they may be updated without the necessity of compiling them.

Of course it's best to encrypt the connection information. Here's an article on how to do so:

http://www.codeproject.com/aspnet/eReach_Demo.asp

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Jerry Camel" <rl*****@msn.com> wrote in message
news:OU****************@TK2MSFTNGP09.phx.gbl...
On the WebLogic side of our development team, we use JNDI and access
datasources that are defined outside the actual application. This is an
advantage in several ways... Not the least is becasue our DBA's insist on having different names for the development and production versions of the databases. So I've had to recompile or reconfigure my web apps in order
to
move them to production. To me this is a bit against the entire purpose
of
development. If I have to change my code to move it to production, then
that code hasn't been tested... etc.. etc.. etc..

So... It seems to me there must be a way to implement an external
datasource as we do with WebLogic and java. Then, all I'd have to do is
update the database name in the datasource and my application would
require
no changes at all.

Can someone point me in the right direction to do this? Thanks.

Jerry


Nov 19 '05 #3
Sorry, why does it mean changing code? If you store the connection
information (encrypted or not) in the configuration file, then it wouldn't
require any changes. You may need to write a utility to quickly encrypt a
value and store it in the file, so you don't have to do it yourself if you
want to go the encrypted route.

"Jerry Camel" <rl*****@msn.com> wrote in message
news:eo**************@TK2MSFTNGP09.phx.gbl...
That's the solution I was using... But technically, this involves
changing
"tested" code when moving it from development to production. I was
looking
to see if there was a way to control the datasource outside the apps...
Kinda like we used to with ODBC DSNs.

For now, web.config will have to do...

Thanks for the feedback.

Jerry

"S. Justin Gengo" <sjgengo@[no_spam_please]aboutfortunate.com> wrote in
message news:e8**************@TK2MSFTNGP10.phx.gbl...
Data Connections are intended to be stored in the web.config file where

they
may be updated without the necessity of compiling them.

Of course it's best to encrypt the connection information. Here's an

article
on how to do so:

http://www.codeproject.com/aspnet/eReach_Demo.asp

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Jerry Camel" <rl*****@msn.com> wrote in message
news:OU****************@TK2MSFTNGP09.phx.gbl...
> On the WebLogic side of our development team, we use JNDI and access
> datasources that are defined outside the actual application. This is
> an
> advantage in several ways... Not the least is becasue our DBA's insist on > having different names for the development and production versions of the > databases. So I've had to recompile or reconfigure my web apps in
> order
> to
> move them to production. To me this is a bit against the entire
> purpose
> of
> development. If I have to change my code to move it to production,
> then
> that code hasn't been tested... etc.. etc.. etc..
>
> So... It seems to me there must be a way to implement an external
> datasource as we do with WebLogic and java. Then, all I'd have to do
> is
> update the database name in the datasource and my application would
> require
> no changes at all.
>
> Can someone point me in the right direction to do this? Thanks.
>
> Jerry
>
>



Nov 19 '05 #4
Only because we have to move the code, including the web.config to the
production server. So techinically we've edited the application files
between development and production. The powers that be view that as
changing the code.
"Marina" <so*****@nospam.com> wrote in message
news:O4*************@TK2MSFTNGP10.phx.gbl...
Sorry, why does it mean changing code? If you store the connection
information (encrypted or not) in the configuration file, then it wouldn't
require any changes. You may need to write a utility to quickly encrypt a
value and store it in the file, so you don't have to do it yourself if you
want to go the encrypted route.

"Jerry Camel" <rl*****@msn.com> wrote in message
news:eo**************@TK2MSFTNGP09.phx.gbl...
That's the solution I was using... But technically, this involves
changing
"tested" code when moving it from development to production. I was
looking
to see if there was a way to control the datasource outside the apps...
Kinda like we used to with ODBC DSNs.

For now, web.config will have to do...

Thanks for the feedback.

Jerry

"S. Justin Gengo" <sjgengo@[no_spam_please]aboutfortunate.com> wrote in
message news:e8**************@TK2MSFTNGP10.phx.gbl...
Data Connections are intended to be stored in the web.config file where

they
may be updated without the necessity of compiling them.

Of course it's best to encrypt the connection information. Here's an

article
on how to do so:

http://www.codeproject.com/aspnet/eReach_Demo.asp

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Jerry Camel" <rl*****@msn.com> wrote in message
news:OU****************@TK2MSFTNGP09.phx.gbl...
> On the WebLogic side of our development team, we use JNDI and access
> datasources that are defined outside the actual application. This is
> an
> advantage in several ways... Not the least is becasue our DBA's
insist on
> having different names for the development and production versions of

the
> databases. So I've had to recompile or reconfigure my web apps in
> order
> to
> move them to production. To me this is a bit against the entire
> purpose
> of
> development. If I have to change my code to move it to production,
> then
> that code hasn't been tested... etc.. etc.. etc..
>
> So... It seems to me there must be a way to implement an external
> datasource as we do with WebLogic and java. Then, all I'd have to do
> is
> update the database name in the datasource and my application would
> require
> no changes at all.
>
> Can someone point me in the right direction to do this? Thanks.
>
> Jerry
>
>



Nov 19 '05 #5

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

Similar topics

1
by: adeleinandjeremy | last post by:
I am taking a second programming course in Java and am currently attempting to apply what I have learned using Python instead. One thing that is puzzling me is how to use an iterator. I am...
3
by: Adelein and Jeremy | last post by:
I am taking a second programming course in Java and am currently attempting to apply what I have learned using Python instead. One thing that is puzzling me is how to use an iterator. I am...
1
by: Maurice | last post by:
Hi, We are implementing some wrappers in C++ according to the Adapter Pattern. The classes and their methods in the Adaptee classes (open-source library) have already the interface that we like,...
0
by: Brian Takita | last post by:
Hello, I am trying to Implement a DataSource property for a custom control using a ListView. This DataSource should be like all other DataSource properties for data bound controls in .NET. The...
0
by: Chankama | last post by:
Hi. I am attempting to display the contents of a database table on a CE device. I was using a DataTable object, as the datasource of the DataGrid, to accomplish this task. The problem with this...
0
by: Sameers (theAngrycodeR) via .NET 247 | last post by:
I think I will get MAD very soon. Its very weired problem I amfacing here. Let me explain. I have two DBF files from which I want to export data in CSVformat. I created a desktop application and...
0
by: JT | last post by:
This seems like it could be an asp.net bug. I am getting the following exception when I add OnSortCommand attribute to a datagrid. I have deleted the temp directories, rebooted etc and I have...
13
by: Tristan Wibberley | last post by:
Hi I've got implementing overloaded operator new and delete pretty much down. Just got to meet the alignment requirements of the class on which the operator is overloaded. But how does one...
8
by: chromis | last post by:
Hi, I'm writing a contacts section for a cms on a website, I've decided to write the section in OO code. So far I have my Contacts object and a page structure I would use for a procedural site. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...

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.