Re: Need a help

Per Nyfelt <[email protected]> Thu, 22 Sep 2005 20:04:46 +0200
Newsgroups gmane.comp.java.ozone.user
Organization New Field Consulting
Message-ID <[email protected]>
On Thursday 22 September 2005 11.10, digumarthi venkata sita rama swami wrote:
> This is venkata Prashanth,
>
> My problem is that when i am passing an object to a package
>
> Example:
>
>  My package name is Library and i am importing this package in My main
> class (MyLibrary). Now I am sending an object to the package Library from
> MyLibrary class. I am able to  receive the object in my Package Library,
> but I am not able to access the Data of that object ozone DataBase (ie. we
> r not able to access the methods which are declared in an interface out
> side this package and this interface is implemented by our main class
> MyLibrary)
>
> We r catching the object(through a method which is in the package) as
> follow's:
>
> Ex:
>
>
> //Main class MyLibrary
> import Library.*;
> class MyLibrary extends ozoneRemote implements LibInter

Wrong: the implementation class extends OzoneObject 
ozoneRemote does not exist however it is very similar to OzoneRemote which the 
Interface should extend.'

> {
> //LibInter----is Our Interface

>
> //Body;
> LibInter lb = (LibInter)(objectForName("my_first_book"));
> Lib l = new Lib();//l---object of class Lib which is in package Library

Lib must be either Serializable or an OzoneCompatible

> l.getVerified(lb);//passing lb to package
> }
>
>
>
>
> //This is package Library
> package Library;
>
> public class Lib
> {
Again this wount work: Lib must be either Serializable or an OzoneCompatible 
(e.g extend OzoneObject)

>
> public getVerified(object cc)
> {

This method declaration is not Java: You must return something!

>
> we r catching the object lb into cc
> //body of the method;
> //we r able to check whether we r retriving the correct object or //not,but
> we r unable to access the data of that object here //r their any methods in
> ozone to retrive the data of an object from the database ...if so please
> help us with an example;......if not please state alternative..... }

I do not know what you mean here but the code obvously dont compile because of 
all the typos. It hard for me to help you more at this point.

>
> }
>
> So this is r problem,please help us as soon as   possible

Asking for fast help is not helpful. Everyone is very busy and unlike some OS 
projects we do not have any people working on paid time but only on spare 
time volunteer basis.

Regards,
Per
>
> Bye


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php