LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-18-2009, 10:50 PM   #16
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51

All Linux distros are more-or-less the same. File locations can differ, and their may be other small diffrences, but all the code should be compatible (especially if your using a environment like Java (or I assume .NET/Mono)). The same goes more-or-less goes for other *nix varients.
 
Old 05-18-2009, 11:12 PM   #17
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi, mrtedweb -

1. As you probably know (having worked with it), COM/ActiveX is basically an "abstraction" technology. The name of the game is defining an interface, and hiding the implementation details.

2. Sockets are fairly low-level. This can be an advantage, and it can also be a disadvantage. It depends on how complex your distributed system becomes, and how robust it needs to be. If you're comfortable with sockets, and if sockets will suffice - good. Otherwise, you might need to look elsewhere.

3. Web services (for example, SOAP or WCF) might well be overkill.

4. If Java is an option, you might consider RMI. It's a relatively light-weight, robust middle ground between sockets (very low-level, you need to concern yourself with *all* system details) and Web Services.

Java RMI is an "open", portable standard that fills exactly the niche DCOM tried (and failed!) to satisfy.

Here are a couple of links that might help:

http://www.javacoffeebreak.com/artic...i/javarmi.html

http://java.sun.com/docs/books/tutorial/rmi/index.html

Last edited by paulsm4; 05-19-2009 at 08:33 AM.
 
Old 05-19-2009, 01:59 PM   #18
euroquisling
LQ Newbie
 
Registered: May 2009
Distribution: Debian, Ubuntu
Posts: 10

Rep: Reputation: 1
Sockets are way too low-level for simple applications, if you consider Python programming, which I greatly recommend to you, there's a great library called PYRO, from Python Remote Objects.

Pyro is fantastic, just register a Pyro client at the remote server, and call the remote object's methods *as if they were local*. It's even thread-safe with careful use (at least it turned out safe in my experience).

This is minimum server and client in Pyro

Code:
# Server:

    import Pyro.core

    class JokeGen(Pyro.core.ObjBase):
            def __init__(self):
                    Pyro.core.ObjBase.__init__(self)
            def joke(self, name):
                    return "Sorry "+name+", I don't know any jokes."

    Pyro.core.initServer()
    daemon=Pyro.core.Daemon()
    uri=daemon.connect(JokeGen(),"jokegen")

    print "The daemon runs on port:",daemon.port
    print "The object's uri is:",uri

    daemon.requestLoop()

# Client:

    import Pyro.core

    # you have to change the URI below to match your own host/port.
    jokes = Pyro.core.getProxyForURI("PYROLOC://localhost:7766/jokegen")

    print jokes.joke("Irmen")
Distributed objects do not get simpler than that.
 
  


Reply

Tags
com, linux



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
putty equivalent in Linux ? concoran Linux - Newbie 7 05-22-2008 04:34 AM
Is there a Linux equivalent to Stickies etotheidotpy Linux - Newbie 2 01-22-2008 10:30 PM
Linux Equivalent of Via Voice? marksgirl Debian 3 12-03-2006 06:14 AM
software equivalent in linux scng Linux - Software 1 09-04-2004 11:21 AM

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

All times are GMT -5. The time now is 11:28 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