Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / March 2007

Tip: Looking for answers? Try searching our database.

Is it possible to share a DBM/DBA style database between Java/Groovy/PHP ?

Thread view: 
wbsurfver@yahoo.com - 28 Mar 2007 05:16 GMT
We are choosing wiki and blog software which may bpth end up being
PHP, but if one was java based and the other PHP I was curious if PHP
and Java can read/write the same type of DBA/DBM style database which
I beleive is an object oriented style database that Perl/PHP use as I
have done some of this in Perl. I expect this ight be complex or not
possible, but I am curious. Otherwise two seperate systems based on 2
different languages could not share any code that created objects
rendered by the web server and there could not be a subsytem in one
language that the other interfaced with. The other possibility would
be an XML based solution, but not sure if the complexity on that would
be worth it or an easy sell to others. I had also seen a snip snap
wiki which is groovy based that caught my attention.
Martin Mandl - m2m tech support - 28 Mar 2007 09:14 GMT
On Mar 28, 6:16 am, "wbsurf...@yahoo.com" <wbsurf...@gmail.com> wrote:
>  We are choosing wiki and blog software which may bpth end up being
> PHP, but if one was java based and the other PHP I was curious if PHP
> and Java can read/write the same type of DBA/DBM style database which

Dear Wbsurfer,

if both languages have an interface to that database, there should be
no problem share the database. e.g. you can access the same MySQL
database from PHP, Perl, Pyton, Ruby, Java, ...

Good luck
  Martin
wbsurfver@yahoo.com - 28 Mar 2007 13:39 GMT
On Mar 28, 4:14 am, "Martin Mandl - m2m tech support"
<martin.ma...@gmail.com> wrote:
> On Mar 28, 6:16 am, "wbsurf...@yahoo.com" <wbsurf...@gmail.com> wrote:
>
[quoted text clipped - 10 lines]
> Good luck
>    Martin

 You couldn't have any common code or a reusable like modules between
the two of building and rendering objects.
You'd probably hsve to use the database to store such objects, and
you'd have to change the schema anytime a slight change in the data
type was made. In the same scenario with just one language you could
have a common code library which obviusly seems problematic with two
languages.
Lew - 28 Mar 2007 14:16 GMT
"wbsurf...@yahoo.com" <wbsurf...@gmail.com> wrote:
>>>  We are choosing wiki and blog software which may bpth end up being
>>> PHP, but if one was java based and the other PHP I was curious if PHP
>>> and Java can read/write the same type of DBA/DBM style database which
>> Dear Wbsurfer,

"Martin Mandl - m2m tech support"
>> if both languages have an interface to that database, there should be
>> no problem share the database. e.g. you can access the same MySQL
>> database from PHP, Perl, Pyton, Ruby, Java, ...

>   You couldn't have any common code or a reusable like modules between
> the two of building and rendering objects.
[quoted text clipped - 3 lines]
> have a common code library which obviusly seems problematic with two
> languages.

Your first question was about sharing databases. Martin's answer addressed
that. Your second question seems to be about sharing logic (modules), but I am
not sure I understood you completely.

Of course it's possible, in fact common to share code libraries among multiple
languages; no need even to limit it to two. This predates Java - CORBA doesn't
give a rat's a.s what languages are involved. Service-oriented architectures
(SOAs) have been around since before XML, too, but now with SOAP-based web
services it's almost trivial to share code, or more descriptively, services
without regard to the programming languages involved. I've worked on
SOAP-based systems that interoperated between .Net/C# (VB) and JEE platforms.

The issue of sensitivity to "slight" or even major data-model changes also
transcends the implementation language. It's a matter of architecture.

In one common approach, the data-access component presents an object model to
the rest of the application, while persisting data to a relational store. The
object and relational models depend on the requirements analysis and logical
design of the system. The choice of Java, C#, COBOL or machine language for
the implementation should affect only performance characteristics: man-hours
and calendar time to deployment, speed of data access and the like.

Whichever language you choose, if the data model changes you likely will have
to change application characteristics, too. How easy that is depends on how
the components interact, not the implementation language. In well-designed
applications one might change only a few XML deployment descriptors for most
alterations. SOA as an approach is popular partly because it adapts well to
design changes.

-- Lew


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.