473,624 Members | 2,154 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

java rmi skeleton

50 New Member
hello all,
im trying out examples for java rmi but am having a problem.. the skeleton is not being generated, only the stub is generated.
i have an example with the following classes:
Account.java( which is the interface definition)
AccountImpl.jav a (contains implementation for the remote interface)
AccountServer.j ava
AccountClient.j ava

i have already set my classpath, etc..
to compile i did the following:

javac Account.java
javac AccountImpl.jav a
javac AccountServer.j ava
javac AccountClient.j ava
rmic AccountImpl


To run:
start rmiregistry
java -Djava.security. policy=mypolicy AccountServer
java -Djava.security. policy=mypolicy AccountClient

mypolicy is the name of my file where i have stored the policy thing..

when i look in my folder after compiling and running the program i find the AccountImpl_Stu b class but i dont find the skeleton!!
how do i generate the skeleton???
i have tried other examples also but its the same

plzz help
thx
Jan 31 '09 #1
3 3981
JosAH
11,448 Recognized Expert MVP
What Java version are you running? Skeletons and stubs are outdated nowadays. Read the latest version of the RMI tutorial. Things have been made easier over the years.

kind regards,

Jos
Jan 31 '09 #2
poopsy
50 New Member
i have java 1.6 installed.
i am doing this for a lab test coz i've been told that we should see both the stub and skeleton in the folder..
Jan 31 '09 #3
JosAH
11,448 Recognized Expert MVP
@poopsy
If you read that tutorial you'll see that nowhere the RMI compiler (rmic) is used anymore because it isn't needed anymore and you most certainly don't need those skeleton classes anymore. Follow the example (the pi calculator) and see a working rmi application.

kind regards,

Jos
Jan 31 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

5
3378
by: apchar | last post by:
I am trying to use php as a kind of servlet to act as a middle man between a java applet and mysql. I know java has jdbc but it's flakey and painful. php access to mysql is much nicer. So I have: 1. An html page that holds the applet. 2. a php page that accepts data submitted to it by the applet via the $_POST array and writes it to the mysql database. This page never makes it to the browser window. 3. a simple Thank you page that shows...
4
2750
by: Edvard Majakari | last post by:
Greetings, fellow Pythonistas! I'm about to create three modules. As an avid TDD fan I'd like to create typical 'use-cases' for each of these modules. One of them is rather large, and I wondered if it would be easy enough to create a code skeleton out of unit test module. Consider the following, though contrived, unit test code snippet: ==========================================================================
4
13215
by: Skeleton Man | last post by:
Hi, Upon installing Oracle 9i (9.2.0.1.0) on a Debian box, the whole install process completes, but when I get to the very end and it trys to setup configuration assistants, all three fail with the following error: "jre was not found in /ora/9iR2/oracle.swd.jre/bin/i386/native_threads/jre" I have tried symlinking the i386 and i686 directories as has been suggested from a search of forums..
3
13572
by: Jim Garrison | last post by:
I need to create a ResultSet in an Oracle Java Stored Procedure and return it to a PL/SQL caller. I've done quite a bit of research in Oracle's manuals and on the Web, and have found lots of references to going the other direction (PL/SQL passing/returning REF CURSOR to Java), and Java returning an existing ResultSet (obtained from the databse) as a REF CURSOR to PL/SQL. Neither of these is what I'm looking for. My Java stored...
0
2064
by: danjourno | last post by:
I have a number of xsd files defining schema for web services that are in pairs of a Request.xsd (to define the structure of a request) and a Response.xsd (to define the structure of a response). What I am trying to do is a) use these files to build a WSDL file and from there b) build the basic skeleton Java classes needed to create this rpc web service (using WSDL2Java or something). I am wondering if anyone has any advice on the first...
1
5368
by: Emanuele Parati | last post by:
I created a Web Service from a WSDL that come from Java (apache soap). It contains the definition of Vector as complex type: <schema targetNamespace="http://xml.apache.org/xml-soap" xmlns="http://www.w3.org/2001/XMLSchema"> <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> <complexType name="Vector"> <sequence> <element maxOccurs="unbounded" minOccurs="0" name="item" type="xsd:anyType"/>
0
1230
by: feng | last post by:
I am getting error between my local code, that's making call to a remote object, and the called remote code. The error occoured after my remote object returns (I can debug to that point. And it shows the returned reference correctly) and before my calling code gets the returned reference back. The error says that the "Return argument has an invalid type". But it only happens in some cases, not always. Looks like it is the stub/skeleton...
2
2311
by: davidson1 | last post by:
Hai friends, To display skeleton of table we have in oracle desc student; name char(200) age number(10) In SQLSERVER do we have any command to display skeleton of table like above.
1
2003
by: mshroom12 | last post by:
Hello to all. I am having difficulty trying to do this Java project using Eclipse. The following is what I have to do. Election Day It's almost election day and the election officials need a program to help tally election results. There are two candidates for office -- Polly Tichen and Ernest Orator. The program's job is to take as input the number of votes each candidate received in each voting precinct and find the total number of votes for...
0
8234
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8172
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8677
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8620
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8474
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7158
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6110
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5563
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
1784
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.