Cours-Gratuit
  • Accueil
  • Blog
  • Cours informatique
home icon Cours gratuits » Cours informatique » Cours programmation » Cours JAVA » Applications JAVA

Application sur la gestion de vente avec JAVA

Application sur la gestion de vente avec JAVA
Participez au vote ☆☆☆☆☆★★★★★
Page suivante pour Télécharger

Application sur la gestion de vente avec JAVA

Cet article propose en détaille une application JAVA pour la gestion des ventes effectuées par des clients par internet gratuits et faciles à utiliser.

Vous pourrez télécharger le fichier au format zip il contient cle ode complet pour le client et le serveur

Application sur la gestion de vente avec JAVA à télécharger gratuitement, complet et pratique pour gérer les commandes de vos clients en tout simplicité.

Extrait du code source :

import java.rmi.Remote;

import java.rmi.RemoteException;

public interface Rem extends Remote{

            public String getMessage() throws RemoteException;

            public int addition(int x, int b) throws RemoteException;

}

…

import java.rmi.*; // For Naming, RemoteException, etc.

import java.net.*; // For MalformedURLException

import java.io.*; // For Serializable interface

/**

* Get a Rem object from the specified remote host. Use its methods as though it

* were a local object.

*/

public class RemClient {

            public static void main(String[] args) {

                        try {

                                   String host = (args.length > 0) ? args[0] : "localhost";

                                   String port = (args.length > 1) ? args[1] : "1099";

                                   // Get the remote object and store it in remObject:

                                   Rem remObject = (Rem) Naming.lookup("rmi://" + host + ":" + port + "/Rem");

                                   // Call methods in remObject:

                                   System.out.println(remObject.getMessage());

                                   System.out.println(remObject.addition(10, 5));                  

                        } catch (RemoteException re) {

                                   System.out.println("RemoteException: " + re);

                        } catch (NotBoundException nbe) {

                                   System.out.println("NotBoundException: " + nbe);

                        } catch (MalformedURLException mfe) {

                                   System.out.println("MalformedURLException: " + mfe);

                        }

            }

}

…

import java.rmi.*;

import java.rmi.registry.LocateRegistry;

import java.net.*;

// Taken from Core Web Programming from Prentice Hall and

// Sun Microsystems Press, and may be freely used or adapted.

/**

* The server creates a RemImpl (which implements the Rem interface), then

* registers it with the URL Rem, where clients can access it.

*/

public class RemServer {

            public static void main(String[] args) {

                        String port = (args.length > 0) ? args[0] : "1099";

try {

                                               LocateRegistry.createRegistry(Integer.parseInt(port));

                                               RemImpl localObject = new RemImpl();

                                               Naming.rebind("rmi://localhost:" + port + "/Rem", localObject)

} catch (RemoteException re) {

                                   System.out.println("RemoteException: " + re);

                        } catch (MalformedURLException mfe) {

                                    System.out.println("MalformedURLException: " + mfe);

                        }

            }

}

…

import java.rmi.*;

import java.rmi.server.UnicastRemoteObject;

/** This is the actual implementation of Rem that the RMI

* server uses. The server builds an instance of this, then

* registers it with a URL. The client accesses the URL and

* binds the result to a Rem (not a RemImpl; it doesn't

* have this).

*/

public class RemImpl extends UnicastRemoteObject implements Rem {

public RemImpl() throws RemoteException

{

}

public String getMessage() throws RemoteException {  

            return("Here is a remote message.");

}

@Override

public int addition(int x, int b) throws RemoteException {

            // TODO Auto-generated method stub

            return (x+b);

}

}

...

Decouvrir ces documents

  • Application Excel sur la gestion des ventes et de stock

    Application Excel sur la gestion des ventes et de stock

  • Application de gestion bancaire avec JAVA

    Application de gestion bancaire avec JAVA

  • Application JAVA sur la gestion club de sport

    Application JAVA sur la gestion club de sport

  • Application gestion d’agence de voyage avec JAVA

    Application gestion d’agence de voyage avec JAVA

  • Code source en Java sur la gestion étudiant

    Code source en Java sur la gestion étudiant

  • Application JAVA sur la gestion gestion agence de location de voitures

    Application JAVA sur la gestion gestion agence de location de voitures

  • Application java sur la gestion de personnel

    Application java sur la gestion de personnel

  • Application JAVA sur la gestion de planning

    Application JAVA sur la gestion de planning

Articles connexes

  • Exercice Visual Basic : Mini application de gestion de petit commerce
  • Exercices EA: gestion de vente
  • Application Python : gestion des comptes
  • Comment formuler le prix de vente ?
  • Dropshipping wish : caractéristiques et modalités de vente
  • Exercice Java : Programme de gestion de ligne d'autocar
  • Compromis de vente - (France )
  • TOP logiciels de gestion et planning d'horaire journalier et hebdomadaire
  • Contactez-nous
  • A propos de nous
  • On recrute
  • Rechercher dans le site
  • Politique de confidentialité
  • Droit d'auteur/Copyright
  • Conditions générales d'utilisation
  • Plan du site
  • Accueil
  • Blog
  • Finance et compta.
  • Formations Pro.
  • Logiciels & Apps
  • Organisation
  • Cours informatique
  • Aide à la rédaction
  • Etudes et Metiers
  • Science et Tech
  • Titans de la Tech
id 11354 02