How to connect a Desktop app to a middle teir server app?

Please tell me if i have posted this in the incorrect forum.
I currently have a Desktop app that connects directly to a mySQL database. The persistence abilities have been really helpful since our database is still evolving. I have been frustrated by the differences in the SE persistence implementation. I have had to do some hackish things to ensure that the app retrieves the current information. I don't like connecting directly to the database from the desktop app, even though security is not a worry. I have been thinking that the best solution is to have a JEE app running that the desktop app connects to. This also would act as a sort of api for accessing our data, so if and when i create other client desktop apps i don't have to recreate the wheel. From what i gather i will want to run an application server such as tomcat or glassfish. I'm not sure if i understand why though. Since i have control of the server, couldn't i directly open ports for communication to the clients?
Assuming that there are many ways to pass information between them, advice on the most effective would be nice. I'm guessing serializing objects for passing would be the fastest, but using something like XML, would be a lot easier to monitor.
Although i have done a lot of reading, i'm still baffled by the EE lingo.
EJB: kind of like a modular program that facilitates server to server communication?
JSF: package up stuff for viewing/ running an application through a browser?
Servlets: Mystifying, which leads me to think that they are what i'm looking for.
Any advice would be helpful. I'm hoping that there is not some type of restriction in regards to connecting a JSE6 app to a JEE6 app. I basically want to have the best of both worlds.
Thank you,
Chip

Chipper wrote:
From what i gather i will want to run an application server such as tomcat or glassfish. I'm not sure if i understand why though.If you have a middle teir, you imply that you want frontend and a backend also, the function of the middle teir is to insolate and abstract the backend from the frontend. This is the significant difference from what you have now: client server--frontend and a backend.
The middle tier, as you have implied, is where you put your access to your backend. And, yes, you are creating an interface to your DB there, wherein you will develop an entire API for accessing your DB. This will give you added security by not letting your clients know anything about your backend.
Now, how do you access this middle tier? There are several options there, but a few options are:
1 - Running direct socket communication
2 - Web Services: code ran on the server to extend the functionality and open services on the middle tier.
3 - Applets: code ran in the browser on client side to access the server and it's services.
Assuming that there are many ways to pass information between them, advice on the most effective would be nice. I'm guessing serializing objects for passing would be the fastest, but using something like XML, would be a lot easier to monitor.At this point you are the only one that can answer that question: there are arguments for an against most method that could be picked. Let's take for instance an object that contains 1 usable byte of data. Is it better to serialize the object for that one byte? Send XML to a DB? Or, perhaps, just send the byte of info and synthesize appropriate key information? You have to look at what you are trying to achieve and your requirements.
Even a scratch of the surface discussion is not possible here, let alone, a howto on implementation for your enterprise. I suggest hitting the tutorials and finding a good book.
Do you have specific questions? Ones that can be answered in a paragraph or two.

Similar Messages

  • How to connect captivate file in a database (MS SQL SERVER 2008)

    Hi...
    How to connect captivate file in a database (MS SQL SERVER 2008) ???
    Kindly response please..
    thanks!!!

    Hi there
    See if the link below helps you out.
    Click here to view
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • How to connect my desktop to my tv

    Can anyone direct me to a tutorial on how to connect my Pavilion Slimline s3120n to my HD tv?
    The computer came with the  built -in TV tuner card and various cables. I would like to watch the free Netflix "watch it now" movies on my big tv screen rather than my 19" computer monitor.
    Thanks for your help.

    Well, I looked into your tv tuner, and you can use S-Video for video and your audio cable, that should've came with the computer, to convert the headphone jack to audio Left and Right. The quality of that cable is going to be not very good so you may want to just get a dvd player and hook it up to the tv instead. Just letting you know of your options. ^_^;
    worked with HP employee for 2 years. Freelance tech support for 11 years.

  • How to connect to embedded POSTGRESQL on Mac OSX Lion Server

    Hi all,
    I've upgraded my Mac OSX 10.6 server to 10.7 server 2 days ago.
    My web sites databases are still under MySQL server cause it's still running after the upgrade.
    I manage to migrate the databases to PostgreSQL, so i've enabled the wiki from the server.app to launch the PostgreSQL server.
    I can see that it's now running through a ps -ef | grep sql and that it's listening on the unix domain socket 5432 with netstat -an | grep SQL in a terminal shell.
    The problem is that I'am unable to connect to it.
    I tried psql -U postgres, and installed the Navcat for postgreSQL Lite, but they failed to connec to the database server twith the same error :
    psql: could not connect to server : Permission Denied
    Is the server running locally and accepting connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?
    It seems that there is a permission problem on the Unix Domain Socket /var/pgsql_socket/.s.PGSQL.5432.
    It has a 0770 permission on it, but i don't know if it's relly the problem.
    I've compared with MySQL server, which I am able to manage through Navcat for MySQL Lite without any problem, and the socket permission are 0777 on /var/mysql/mysql.sock.
    Does somebody able to connect to the embedded PostgreSQL server ?
    Or am I doing something wrong ?
    Thanks.

    Thanks for your replies.
    I was able to connect but not from navcat
    sudo -u _postgres psql template1 (or your database name)
    I am able to connect using this command too
    1. Need to add yourself or the account accessing the database to Postgres Users group (use admin tools)
    So I agree that I have to add my user to the _postgres user group, but how do you did ?
    Using the admin tools, I did not find this Postgres Users group ?
    I don't understand why server's administrators are not members of this group already ...
    2. Create a role on database login in as _posgres
    Ok, I will do.
    3. To login in navcat you need to check socket to /var/pgsql_socket
    OK, I've already set the socket in Navcat to /var/pgsql_socket
    4. I was unable to enable TCP connection yet
    I am unable to enable it too. I tried to modify the config files in /var/pgsql, without success.
    I have no firewall on my server too, it's protected by my router's firewall and NAT.
    Thanks again for your help.

  • How to connect BR*TOOLS STUDIO to oracle on windows server

    HI ,
    We have some oracle databases on AIX and few on windows 2003 servers.
    BR*TOOLS studio connects fine to AIX systems but How to connect it to
    windows servers.
    I tried to use free utility "psexec". but then studio log shows following error.
    ERROR 2008/12/02 12:21:13 [Tools] Instance SLB reports
    exception while running job Control Files: CreateProcess: psexec
    vmsld2 -u slbadm -p ba5al1te brspace -confirm force -language E -
    user / -function dbshow -class cfinfo -file all_cf error=2
    However if I execute "psexec
    vmsld2 -u slbadm -p ba5al1te brspace -
    confirm force -language E -user / -function dbshow -class dbstate"
    remotely from dbstudio server at command line, it works fine.
    So, Is DB*TOOLS STUDIO only for UNIX systems or can it be used for
    WINDOWS also ? IF yes then How ??

    Hai,
    Have you followed the below mentioned steps:
    In your BR*Tools Studio home directory, call:
    In UNIX
    csh server.sh
    In Windows
    server.cmd
    This script starts a web application server based on Oracle Containers for Java
    EE (OC4J), which serves as the runtime platform for the web application of
    BR*Tools Studio server.
    You need to run this command whenever you want to start the server for
    BR*Tools Studio in future.
    2. Log on to BR*Tools Studio server through a web browser from any client
    using the following URL:
    https://<host>:<port>/studio
    Note
    (C) SAP AG September 2008 Page 11
    Once BR*Tools Studio server is available, a client logon window appears.
    Make sure that you have enabled pop-ups for this site so that the logon
    window is visible.
    You need to run this command whenever you want to start a client session
    with BR*Tools Studio.
    The client logon window provides you with a list of all instances currently
    maintained for administration with BR*Tools Studio. The only instance
    available directly after installation is the Server instance, with which you can
    maintain the server landscape.
    As far as I know there are some unresolved bugs still existing in BR tools studio which is under process.
    Since you are able to open the studio with AIX you should be able to open in Windows as well.
    Have you checked your Keystore file.
    Regards,
    Yoganand.V

  • How to connect to Akamai using RTMP SDK (Adobe Media Server Connector for C++)?

    We need to stream live video to Akamai using RTMP. But, we are trying to connect using ADOBE RTMP SDK (Adobe Media Server Connector for C++ 2.0.1), but have no idea regarding how to connect to Akamai using the SDK. How to make the SDK respond to the server challenges for password etc. If this can't be done using the RTMP SDK, we can use plain C++ for the purpose. But for that too, we don't have any idea regarding the steps involved to make it work. If anyone has any idea on how to connect to Akamai using the RTMP SDK or using plain C++ (a sample code will be very helpful), please help us out. If you can suggest any C/C++/.NET library too which will help us achieve it, we are ready to do so. Thanks in advance.

    hi,
    I am sorry I can not help you.  Could you do me a favor? I know you are using Adobe RTMP SDK.I want to know how to get it.
    I tried to contact adobe at [email protected] but it seems to be an invalid email address.if you know efficient way,
    please tell me.Thank you very much.

  • How to connect to desktop mac using iPhone. File sharing, ScreenSharing???

    Can you please explain how can I connect to my desktop using my iPhone like ScreenSharing will do or file sharing.
    Please describe step be step how to?
    Thank you,
    A new iPhone user who want to get the most out of it

    If by it you mean Mocha VNC, that is how it works. You can connect when you are not on your network but you will have to enable forwarding on you router if you have one.
    What is it tha you want to do remotly?
    This world of remote management is that of the IT tech. Mocha is for techs and people that get the technology they are using or are interested in getting it. It is not plug and play stuff. You have to be willing to learn a bit and then with that comes a lot of power.
    If you just want to turn it on and have it work anywhere you won't find that. The reason ports are blocked form the internet is to protect your computers from someone else doing exactly what you are trying.
    So if you want you can enable port forwarding for port 5900 on your router. The IP address VNC Mocha will need is now the IP address of your router. Create a second connection on the list in Mocha for this connection as it is different than the one that will work on your network. Your router will forward anything on that port to you computer. I have successfully done this. It isn't very fast i will say. The screen refresh is very slow. You need patience to get anything done. I needed a file from a PC i had at home. It took about 15 minutes to get that file moved on to my iDisk through running Firefox on the PC from several towns away using Mocha. I might have been on a slow internet connection too.

  • How to connect to desktop server.

    Hi.
    I want to know if exist some way of connect my cell to a desktop server using GPRS, MIDP 1.0 and CLDC 1.0 whitout use servlets in the server.
    Maybe use sockets???
    Or I have that use MIDP 2.0 for this?
    Thanks.

    Well, I am using this code for the client connection.
    public void runClient() {
              SocketConnection client;
              InputStream input;
              OutputStream out;
              try {
                   client = (SocketConnection) Connector
                             .open("socket://localhost:7231");
                   client.setSocketOption(SocketConnection.LINGER, 5);
                   out = client.openOutputStream();
                   out.write("Hello".getBytes());
                   input = client.openInputStream();
                   char c;
                   String s = "";
                   while ((c = (char) input.read()) != '\n') {
                        s += c;
                   pantalla.append(new StringItem("", s));
                   input.close();
                   out.close();
                   client.close();
              } catch (IOException e) {
                   pantalla.append(new StringItem("", "IOException"));
    And this for the Deskstop server connection.
    public void runServer(){
              ServerSocket server;
              Socket connection;
              OutputStream output;
              try{
                   server = new ServerSocket(7231,100);
                   connection = server.accept();
                   System.out.println("Connection completed");
                   output = connection.getOutputStream();
                   byte[] b = {'H','e','l','l','o'};
                   output.write(b);
              }catch (IOException e) {
                   // TODO: handle exception
    But in the emulator screen appear this Alert message
    Is it OK to Use Airtime?
    ClientConnection wants to send and receive data using the network. This
    will use airtime an may result in charges.
    Is it OK to use airtime?
    No Yes
    And when I select yes o no this block and happen not nothing else.
    What can I do?

  • How to connect W2k Desktop to Solaris(intel) Server

    Hi there, I am new to Solaris, I have successfully installed Solaris 8 (intel). I also configured my NIC. What are procedures or H/W requirement to connect to this Solaris Sever from other machine running W2K thru telnet/ftp

    Thnx for the responding Lee,
    Here is how I try to connect Solaris(intel) to W2k machine.
    On Solaris machine
    1. I installed network driver from Realtek (as my network card is generic Realtek card)
    2. Ran "sys-unconfig"
    3. Attach the network adapter card to the system
    4. At the OK prompt, type boot -r
    5. Provided required information as prompted.
    Here what happed if I connect Solaris machine to my DSL modem with network cable every thing goes fine.
    But as soon as I connect Solaris machine and w2k machine and boot Solaris I get the following message
    -Notice: RTLS start_board --Cable Connect Failed !!
    I get this message even if I try above mentioned step once again while having my w2k and solaris machines connect to each other via network cable.
    Could you figure out what could be the problem or What am I doing wrong
    do I need to something on my w2k machine before I try to configure my NIC on my solaris maching
    thnx
    -kb

  • How to connect two desktop computers to share processing power

    is there a way to link two computers together to share their processing ablility?
    And if there is a way can I connect to share it wirelessly?
    Also is it possible on both Mac and PC?

    No, to all 3, especially the middle one.

  • How to move Remote Desktop License's from one 2003 server to 2003/2008

    Hi Sir,
    We have one windows 2003 server with 5 Remote Desktop connection.
    Someone hack our server and all the files (including system files) had been corrupted. 
    Kindly guide us the procedure to move it another server 2003/2008.
    So, Please tell me the procedure recover/repair corrupted files.
    The virus is something like encrypted the file and given some email to decrypt.

    For migration of licenses read
    http://technet.microsoft.com/en-us/library/dd851844.aspx
    http://technet.microsoft.com/en-us/library/hh553155(v=ws.10).aspx
    https://blogs.technet.com/b/anthoben/archive/2010/05/13/migrating-your-terminal-server-license-server-from-windows-server-2003-to-2008.aspx
    http://yuridejager.wordpress.com/2011/11/10/migrating-terminal-server-licenses-from-windows-server-2003-to-windows-server-2008-r2-using-the-rd-license-manager/
    http://public.madeinengland.co.nz/how-to-transfer-terminal-services-licenses-in-windows-2003-2008-2012/Hope
    this helps you in migration
    Milos

  • How to Connect My Intranet Site to the Office's Server

    Hi,
    My boss recently wanted me to create an "intranet" site for the office. it bascially is supposed to be a one webpage with llinks to different folders on the server for greater ease for the sales reps. What are the steps to link the buttons on my page to these folders on the server?
    i can link buttons to folders on my desktop, but not the folders on my desktop that are connected to the server.
    Thanks,
    Matt

    I used the path you suggested and was directed to a screen saying I was not authorized to view the page. So I'm assuming it's a matter of my web admin granting the intranet i created access to these links?
    Thanks,
    Matt

  • How to connect to a printer in a windows 98 server

    Hi,
    I have a powerbook G4 and I've been tried so hard to a connect a printer in my small bussiness, but I realized that I have a Windows 98 server.
    How can I do this?
    Luciana

    I have not heard of a Windows 98 Server.
    Are you sure about this?

  • How to connect back a disconnected client on an rmi server

    I am making a client -server rmi game .
    if a client get disconnected (throwing a remote exception on the server) how can I
    have some other client or same client continue from the the same point as it got disconnected.
    it obvioulsy requires state preservation but how?

    well actually I am making a game.
    if a player logs out during the game , when the server
    tries to pass it information it gets a remoteexception at the server.
    What I need is that any other player could replace this loggged out player and should get the latest state of the game ie latest score (while other players coud play as much as they can without him) , latest turn etc.
    The game is coded in an object which contains the lates turn and score etc, but how do I give it out to a new player joining in the middle of the game?
    Also if the server keeps thrwoing remoteexceptions ,
    it might hang or might haveto be shut down to be restarted.

  • How to connect the  flex and css file on the server..

    when i work on my system, i just give source="abc.css" in style tag but when i upload its not working...can someone help me?

    A common practice is to place the CSS files under <src><assets><styles>  directory in your project.
    Then, in your MXML file  you  use them :<mx:Style source="/assets/styles/common.css"/> 
    When ready to publish to online server, you do as "Export release build" from your project menu.
    This will generate all you need files in the "bin-release"  directory in your project environment.
    You should upload all this content ( from the bin-release directory)  to your server.

Maybe you are looking for

  • How to use read text for VF03 for a particular header text ID...

    Hello Experts, How do we read the text from a given text ID? in my speccs, it says that I need to get the text from a given text ID for invoices(VF03). Thank you guys and take care!

  • Integrating Tomcat with Apache

    Hi there, I'm really stuck here. I'm trying to integrate Apache with Tomcate. Not having much luck. I have a number of things that aren't quite right. For whatever reason the connector (mod_jk2) between Apache and Tomcat isn't doing its thing. First

  • DW wont open PHP file

    I have a PHP page that include();s a file that contains the page's <html> tag and <head> and <frameset> sections ending with a <noframe> tag. When I open this page in DW, I find the DW has been quite confused by the file - it opens the source file of

  • ESS: Carrer and Job (Skills Profile)

    Hi,    I am getting the error as follows: com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException: Screen output without connection to user., error key: RFC_ERROR_SYSTEM_FAILURE      at com.sap.tc.webdynpro.modelimpl.dynamicrfc.Dynamic

  • How to start Lenovo Fullscreen Magnifier without Fn+Space key

    Hi, I use Lenovo Fulscreen Magnifier a lot, but sometimes I've got laptop closed connected to the external display and I need to run the utility. The problem is that the external keyboard doesn't have Fn key.  I would like to know if there is any pos