LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-01-2004, 06:26 PM   #1
JLindenmuth
LQ Newbie
 
Registered: Mar 2004
Posts: 5

Rep: Reputation: 0
Cross platform client/server + web?


My company is about to embark on a long term development effort (2 years) to create a new client/server + web application. Since a few hundred clients are using our existing Microsoft VC++ front-end, we need to maintain a thick-client Microsoft GUI application. However, I'd like to develop much of the new business logic to be cross-platform. This way we could port the server side code to Linux when we rollout a web-based version of the software.

So here's my 2 questions (we're traditionally a Microsoft shop, but prefer to migrate all in-house servers to Linux, so excuse my ignorance):

1. Given that we must use Microsoft for our client, what language and middleware would best enable us to utilize the same server-side code on both Linux and Windows?

2. Can we get php/apache to interface with our database using the cross-platform server code we developed for our Microsoft application? Would we use CORBA/COM/OTHER?

Thanks in advance,
 
Old 09-02-2004, 05:18 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
It depends what should the server do. If it's possible to write it in something like PHP or Python, great. Will work on both Linux and Windows. If it's a 'standard' shop+database, go for Apache+MySQL( or PostgreSQL if you need more advanced stored procedures etc, but AFAIK Postgres doesn't have a Windows version, so database server should be separate if you choose it)+PHP.

The server may also run a kind of wrapper translating requests from front-ends (but it depends on the front-end, if it can be modified to work as a web browser, it should be the way to go).

PHP has commands to connect, issue commands etc to the database. No extra layer is added. But if the database is custom it's possible to write an Apache module that will handle the database.
 
Old 09-03-2004, 07:36 AM   #3
JLindenmuth
LQ Newbie
 
Registered: Mar 2004
Posts: 5

Original Poster
Rep: Reputation: 0
We're planning on using PostgreSQL for the database (particularly since v8 has a win32 port), but I'm not sure what to do for the application layer (e.g. middleware/business logic). We are planning to write this all in standard C++ to enable cross platform capabilities when we decide to go with the web. I'm not sure what our options for getting this C/C++ code running as the application layer in Linux between the web and database layers. Would we use CORBA or COM, or something else? Does anyone have experience with a 3-tiered architecture where the application layer was compiled for multiple platforms?

Thanks,
 
Old 09-03-2004, 03:56 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Well, you can use C/C++ program as one of the layers and it's even possible to write it in such a way that it compiles on both platforms. But it must be strict ANSI then.
It may also use Corba. I'd recommend to make a project of your application (libraries to do which tasks you need) and then try to find cross-platform ones. You'll be able to find them, IMHO.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setup PPPOE Server on Linux and let the client over a cross cable. Deepti_s Linux - Networking 4 07-12-2013 12:44 PM
Best cross platform ide? bobwall Programming 3 11-10-2011 03:16 PM
cross platform c++ nyomon Programming 6 07-03-2005 03:24 PM
Cross platform VNC ®åD\° Linux - Software 1 08-03-2004 04:04 PM
Cross Platform biggiefatts Linux - Software 4 06-04-2002 03:00 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration