IDL Design and Client program

Hello forum, I've got a problem with IDL and interfaces design and with client program.
In my database, I have 3 tables: Calendar, Group, Staff. Each employee (of staff) has a calendar and belongs to several groups. So, I have designed the IDL as -->
module com
     module gmsoft
          module model
               module interfaces
                    struct GroupInfo
                         long id;
                         string description;
                    struct CalendarInfo
                         long id;
                         string description;
                    typedef sequence<GroupInfo> GroupList;
                    struct StaffInfo
                         long id;
                         string first_name;
                         string second_name;
                         string phone1;
                         string phone2;
                         string mobile;
                         string fax;
                         CalendarInfo calendar;
                         GroupList groups;
          module controller
               module interfaces
                    interface IControllerManager
                         boolean addStaff(in com :: gmsoft :: model :: interfaces :: StaffInfo staff);
                         boolean removeStaff(in com :: gmsoft :: model :: interfaces :: StaffInfo staff);
                         boolean updateStaff(in com :: gmsoft :: model :: interfaces :: StaffInfo staff);
                         com :: gmsoft :: model :: interfaces :: StaffInfo getStaff(in long id);
};As you can see, I've designed only one interface, the IControllerManager which will manage all requests in order to get an employee, or save one...
I don't know what the best is, if I have to design a StaffInfo (CalendarInfo and GroupInfo) as a structures(struct) or interfaces (interface).
I've tested both forms: As structures, I found the following problems:
1) On the client side, I can create an object of StaffInfo and pass it as a parameter to addStaff of the remote controller object. Is this object passed by value or by reference is it is created as a structure?
2) Using structures I can't use inherintace. (idlj mapped structures as final classes).
As interfaces:
1) I can't create objects of StaffInfo on the client side, because StaffInfo inherits from StaffInfoOperations, and the implementation (of remote interface) inherits form StaffInfoPOA that inherits from StaffInfoOperations. So, how can I create an object of StaffInfo on the client side, and pass it as a parameter to addStaff, for example? Is it possible?
Thanks for all in advance.
I will appreciate your help a lot.

ygetarts wrote:
Meh. Decoding the packets will present a challenge. And like I said if it turns out the connection is encrypted it won't work.Well, if you have any better ideas, I'm more than willing to listen. Thanks for the other response.Well if I were you I think I would give up on the project as a whole. I am wary of tasks that rely on reverse engineering or things like packet capturing because if for no other reason than you could spend alot of time on something and have it break in two seconds when they change the protocol or move to SSL or whatever.
To me it just seems like not a good plan. But that's me.
As far as you go. From a technical perspective this is about as good as it's going to get for you I think.

Similar Messages

  • Installed CS6 Design and Web - programs will not load

    After installing CS6 successfully (so it says), I can't get any of the programs to load. Illustrator, InDesign, and some of the others I am seeing an "application failed to initialize properly (0xc000001d)" which is reminiscent of the errors people were having with Photoshop CS5.5.
    However, for Photoshop, the error is an application shut-down... "Adobe Photoshop CS6 has encountered a problem and needs to close." I am running off of Windows XP with Service pack 3.
    I've spoken with tech support, and they have had me uninstall/reinstall several times (from the disc, without the disc, change some file names to .old... that sort of thing... also downloaded and ran Adobe Application Manager). Nothing has worked. Any advice? I'd even accept "your computer is old and toasted, get a new one" at this point.

    CS6 was tested with XP you didn’t give us your system specs.
    Bob

  • How to design a client-editable document?

    Hello there,
    I'm a graphic designer who, like many others (I hope), loathes working with the Microsoft Office applications to complete or edit any designs. Getting a Word doc from a client as their 'print-ready proof' will lead to my undoing someday.
    I would like to know if there is a way for me to create my designs using the Adobe CS programs (Photoshop, Illustrator, and, namely, InDesign), and also give my client the ability to make text edits once the design is complete without having to use the native Adobe CS program it was built in for editing. To be able to edit the document directly in Acrobat Reader, for example, or something similar.
    I'm not well versed, nor do I plan to be, in designing in Microsoft Office applications, and am trying to find a way to bridge that gap between designer and client-in-control.
    Many thanks in advance,
    -Jonathan W. Eitel

    Jonathan,
    Which application may be suitable for a given task depends on the amount and nature of the (non text) artwork, and on the number of pages to be made.
    InDesign is limited in artwork but strong in multiple pages.
    Illustrator (especially vector artwork) and Photoshop (especially raster artwork) are strong in (their different kinds of) artwork but weak in multiple pages.
    For some tasks it is convenient, or even necessary, to use at least two applications for the best result.
    A certain text editing can be done in Adobe Reader/Acrobat (Acrobat is the full version, Reader now has Adobe as the family name).
    Over time/versions, the text editing options in Reader/Acrobat and the multipage options in Illustrator/Photoshop have increased.
    You should know that bringing text from Worst into any of those applications means reprocessing it completely. Maybe especially in connexion with Illustrator it is advisable/necessary to get rid of coding, so stripping it in a raw text editor may be the (only) way.

  • How to run the client program in weblogic 8.1 server

    Hi
    I am new to EJB 2.0. I am deployed sucessfully a session ejb program.
    While running an ejb client program it throws an exception. In my session ejb program i created two jar file. one is sessionejb.jar and another one is sessionejbclient.jar. In sessionejb.jar contains home ,remote ,session bean class and deployment descriptor.In sessionejbclient.jar contains home,remote and client program. Both jar files are included in class path of environment variable( i am using Standalone server).
    Plese guide me how to run an session ejb client correctly.
    Regards
    Jaiganesh

    Both jar files are
    included in class path of environment variable( i am
    using Standalone server).did u include both these jars in the "weblogic's class path" ?
    in that case, it obviously wont work.
    what u need is an understanding of the following topics (i have described them briefly, but for details u can always check the documentation of weblogic):
    1. Class loaders in weblogic: there are various levels of class loaders. at the top is the weblogic's class loader. below it are various EARs' class-loaders. and so on....
    2. Packaging. You must ensure that in the same class loader, there are not two classes from 2 different jars.
    hope that helps

  • In RMI can I have server in j2se and client in j2me

    serious help needed guys
    I am doing final year project,
    I want to have a PC to run a server and client program on a mobile device.
    I am sending text messages from mobile device and those messages will be received by the server and displayed on the server itself
    Is it feasible to have a Remote Method Invocation like that?
    Please help, Thanks in advance

    serious help needed guys
    I am doing final year project,
    I want to have a PC to run a server and client program on a mobile device.
    I am sending text messages from mobile device and those messages will be received by the server and displayed on the server itself
    Is it feasible to have a Remote Method Invocation like that?
    Please help, Thanks in advance

  • Chat Server and Client Design

    Ola,
    I just want to make a simple Chat Program for intranet (LAN). I'm planning to use socket connection. What would be a good design for Chat Program? Both the Client and the Server are Java Application.
    Here is the diagram that I have in mind:
    ---- First the client login to Server:
    [Client A] ----> [Server]
    [Client B] ----> [Server]
    ---- Then Server add client in the container, Server put each connection from client to separate Thread, so it can handle multiple clients.
    ---- Then let's say Client A send message to Client B (or others). Server get the message from Client A, and my problem is how to get the Server to send the message to B. The only way that I know is to make each client act like its own server and listening to certain port number. That way the server can send the incoming message directly to the client.
    [Client A] ------> [Server] -----???---> [Client B]
    At this point I just have the Server listening to a port (ex. 10000). Should I have each client listening to a port number?
    Another design that I have in mind is to have only Server listening to port 10000. And have the client to poll the Server (ex. every 2 seconds) to check whether the server has new message for the client.
    The last design that I was considering is using RMI.
    Which approach that will best fit my case? What is the ideal design for making chat client server program? If you know any URL or Books that explains all these issue, please post them here. Any help will be appreciated.

    My approach (with tcp sockets) was the following:
    The server has two serversockets running.
    The client connects at the first one, which it will use
    for sending (any messages) and receiving a reply from the
    server ( an "ok" confirmation or so) .
    The client then connects at the second serversocket,
    which it uses for listening to the server.
    The second socket then also can be used for "alive" calls
    from the server periodically ( to kick out users, who
    have lost connection silently)
    Also the second socket, of course, is used as broadcast channel.
    Broadcasted messages can contain chat messages, information
    about a user, which has logged in or out ..
    When the server receives a (chat)message from a client, it
    first enters that message in its model and then broadcasts
    this message ( or more generally the changes in its model)
    to all clients including the client, who has
    sent the message, which only displays the message, when he
    has received it back from the server.
    This way, the order of messages displayed is the same for
    all clients - its a sort of synchronization process.
    Also, you don't need different ports ( for anything in principle ).
    Port 80 is enough.
    For multiple connections, you can send an integer as first
    data transfer, which acts as "virtual portnumber" and the
    receiver then can forward the socket to the associated threads.
    One thing to note for the broadcast process is, that you
    can't simply broadcast the messages in a loop, because this
    way, one veeery slow client would slow down the whole
    server. Therefore you will have to use threads for that.
    In the old (jdk1.3) way, the server would create a thread
    for each user who connects at the first serversocket,
    pass the socket (which it gets from the accept() method )
    to that thread, and this thread then would block while
    trying to receive, and after it had received something,
    it would call a synchronized method from the server,
    in which the server datamodel would be updated and
    broadcasts would be started ( in an other thread context ).
    A good way to speed up chat systems with heavy load is
    to use MultiCast sockets. But then you would have to
    use Datagrams (UDP).
    Another problem arises, when you want to go through
    firewalls. RMI has probs, and bidirectional transfer
    isn't allowed (some firewalls allow 1 request followed by
    1 answer and then cut the connection to my knowlegde)
    It's possible, but it's more complicated.

  • I'm a Graphic Designer and Animator with a Mid 2012 15" MBP...Programs slowing need up grade

    Hey everyoe,
    I'm a Graphic Designer and Animator with a Mid 2012 15" MBP. My programs get REALLY SLOW, ToonBoom Harmony and Sometimes Illustrator, HELP! I upgraded my Ram to 16GB LONG time ago and it's made a big difference but still the stuff I make is semi complicated/detailed I can't imagine this is the strength of my MBP I refuse to accept that. WIth that said HELP ME PLZ!!! I have deadlines and I dont know what else to do! Steve Jobs my life is your hands right now man...

    Maz0327,
    if you boot into Safe mode, log in, and run your graphic design and animation apps, do they run just as slowly then?

  • I currently run the Design and Web Premium CS6 on a first generation MacBook Air and want to buy a new MacBook Pro. How do I know whether I can install my Adobe programs onto the new computer? Because I know there is some kind of limit.

    I currently run the Design and Web Premium CS6 on a first generation MacBook Air and want to buy a new MacBook Pro. How do I know whether I can install my Adobe programs onto the new computer? Because I know there is some kind of limit.
    Also, I had to install the software twice on my same computer before because I had to reboot the computer. I don't know if this affects the limit.

    You are allowed to have two activated installations so there should not be a problem having working installations on the two machines.  If by chance you have somehow tied up two activations for the one machine you can have Adobe support help resolve that thru chat.
    Serial number and activation chat support (non-CC)
    http://helpx.adobe.com/x-productkb/global/service1.html ( http://adobe.ly/1aYjbSC )

  • I need to design and print enumerated event tickets.  What program on my Mac Book Pro should I use?

    I need to design and print sequential numbered event tickets.  What program on my Mac Book Pro should I use? i do not have  microsoft word nor do i want to download it , so just on the mac apps please ?

    This is for Pages '09, not possible in Pages 5 to my knowledge.
    See Numbered Tickets:
    http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=182&mforum=iworktips ntrick
    Peter

  • We are currently looking for a way to link images to a design file within programs like InDesign and Illustrator using an HTML link instead of a local file.  We are hosting our images in SharePoint and need the design file to retain it's links, no matter

    We are currently looking for a way to link images to a design file within programs like InDesign and Illustrator using an HTML link instead of a local file.  We are hosting our images in SharePoint and need the design file to retain it's links, no matter who on our network opens the design file.

    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • Can I put both RMI server and client in a same program

    hi everybody...
    I wanna know that can I use RMI server and client in a same program....My idea is like that I wanna use the same program for client and server....When I open my program, I can accept connection from other program and if I want to connect to others, I can also connect it. I expect you to understand my question. Here are the sample code for my program...
    package Chat.Rmi;
    import java.lang.*;
    import java.util.*;
    import java.rmi.*;
    import javax.swing.*;
    import java.net.*;
    import java.rmi.server.*;
    import java.rmi.registry.*;
    public class netKitManager implements netKitInterface{
        public netKitManager(){
            try{
            reg = LocateRegistry.createRegistry(4242);
            reg.rebind("NetKitServer",this);
            }catch(RemoteException re){
        public void DirectConnect(String ip){
            try{
            netUser = (netKitInterface) Naming.lookup("rmi://"+ip+":4242/NetKitServer");
            JOptionPane.showMessageDialog(null,"Connection succeded!");
            }catch(NotBoundException nbe){
                JOptionPane.showMessageDialog(null,"There is no server at specified IP address!");
            }catch(MalformedURLException mue){
                JOptionPane.showMessageDialog(null,"IP adress may be wrong!");
            }catch(RemoteException re){
                JOptionPane.showMessageDialog(null,"Remote exception occured!");
        public void SendMessage(String msg){
            try{
            netUser.SetMessage(msg);
            }catch(RemoteException re){
        public void SetMessage(String msg) throws RemoteException{
            chatKit.SetMessage(msg);
        private netKitInterface netUser;
        private Hashtable netUserList;
        private Registry reg;
    }

    Yes it can be done. I have done it.

  • CS6 Design and Web Premium Link is a zip file I need to run the program on my Windows 8.1

    I'm having trouble with the zip file for the Creative Suite CS6 Design and Web Premium. Please show me a link that I can run the program on my laptop. Thank you.

    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  12 | 11, 10 | 9,8,7
    Lightroom:  5.5 (win), 5.5 (mac) | 5.4 (win), 5.4 (mac) | 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • Run installation and uninstallation program as 32 bit process on 64 bit clients

    A silly question but need some more explanation...Can anybody elaborate what this option means and in what conditions this can be used? Does this has to checked all the time?
    Run installation and uninstall program as 32-bit process on 64-bit clients
    : Use the 32-bit file and registry locations on Windows-based computers to run the installation program for the deployment type.

    Check out Jason's great post on this topic:
    http://blog.configmgrftw.com/configmgr-2012-and-32-bit-application-installers/
    Jeff

  • Activating only one program from Design and web?

    So, I downloaded the trial of design and web and decided I only wanted to buy Photoshop because $1800 is a bit too much for me, but I need the program.
    I don't want to have to re-download it because it already took 3 hours for design and web to download.
    so is there a way to individually activate the programs, or is it a packaged deal?

    No, it's not possible. You need to download the separate program and install it.
    Mylenium

  • Does the Design and Web Premium for students program for Mac allow multiple downloads on other Mac computers? Can this program be upgraded to be used on windows as well?

    I am a university student that requires a second computer. However, I do not want to purchase a second Adobe Suite Design and Web Premium Program. Does this program allow for multiple downloads? I have a Mac laptop, and I bought the Mac version of the program, is there a way to upgrade it to use it on windows? Or will it only download on a Mac device?

    Chances are your license is only for the Mac platform.
    You are not really limited in the number of times you might download - just the number of installations you can have activated.  You can have activated installations on two machines, though they both have to be running the same platform.  If it is CS6 you can request a platform swap,but that doesn't sound like what you wish to do.

Maybe you are looking for

  • My ipod is not recognised by my computer and will not play at all

    My Ipod is jammed, it will not play on its dock or with ear phones. It just says do not disconnect. I tried to plug it into my computer but Itunes will not pick it up. It is being recognised by windows though. I don't know how to solve this problem a

  • How do I delete the previous owner's bookmarks from a Mac 13" from 2007?

    Thanks. I want to delete all of the current bookmarks. Thanks again

  • IMac 17" White Intel inverter cable

    I've replaced the LCD screen, but the cable, that comes out of the display and plugs into the inverter connector on the main circuit board, is to short. Is there an extension cable that I can purchase and where?

  • How to find out what type of usb is on my computer

    Can anybody help me find out what type of usb is fitted to our computers. we are about to buy an iPod for our son, he is useing a power mac g4 (agp graphic) & I have a Powerbook G4 titanium. but I cannot find out what is fitted any help would be appr

  • Converting binary to floating point?

    ok, i am programming a little java program at the consulter the main idea of the program is to convert a decimal number to IEEE (floating point) i am almost done except the exponent part i dont understand the logic behind it so, for example: -6.625 =