mercredi 10 juin 2015

How to Convert RMI Call to Servlet Call

i want to change this rmi call to servlet call because java 8 is not supporting rmi please suggest me how to change this calling to servlet call

thanks in Advance


System.out.println("FINAL VERSION");
                            try {
                                System.out.println("Recherche du manager["+getCodeBase().getHost()+"]");
                                theManager=(Manager)Naming.lookup("//"+getCodeBase().getHost()+"/ManagerName");

                                System.out.println("Recuperation manager OK " + getCodeBase().getHost());

                                CategoryRoot = theManager.getCategoryRoot();

                                CategoryRoot = CategoryRoot.getCategory(topCategoryId);

                            }
                            catch (Exception e) {
                                    ed.setErrorDialog("Exception","Unable to connect to the server " + getCodeBase().getHost()+e);

                                    System.out.println(e.getMessage());
                            } 

                    // END FINAL VERSION
                    // 

Aucun commentaire:

Enregistrer un commentaire