Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
sebas2
Posts: 13
Registered: ‎08-17-2012
My Device: BlackBerry Bold 9790
My Carrier: Comcel
Accepted Solution

Can't resolve java.rmi.server

When I import java.rmi.server on a BlackBerry project it says "the import java.rmi.server cannot be resolved" (whereas in a normal Java project it works). Is java.rmi.server not supported on BlackBerry?

Please use plain text.
Developer
peter_strange
Posts: 19,601
Registered: ‎07-14-2008
My Device: Not Specified

Re: Can't resolve java.rmi.server

Not supported, sorry.

 

Look at the API, here it is for the latest release (7.1):

http://www.blackberry.com/developers/docs/7.1.0api/

Please use plain text.
Contributor
sebas2
Posts: 13
Registered: ‎08-17-2012
My Device: BlackBerry Bold 9790
My Carrier: Comcel

Re: Can't resolve java.rmi.server

Too bad :smileysad:
Please use plain text.
Contributor
sebas2
Posts: 13
Registered: ‎08-17-2012
My Device: BlackBerry Bold 9790
My Carrier: Comcel

Re: Can't resolve java.rmi.server

Hey how about JMS:

 

http://java.sun.com/developer/technicalArticles/Ecommerce/jms/

 

It seems available as a separate download. Would it work on BB?

 

Really I just need a way to communicate between two processes, and would like to avoid pipes and sockets. Any other suggestions?

Please use plain text.
Developer
peter_strange
Posts: 19,601
Registered: ‎07-14-2008
My Device: Not Specified

Re: Can't resolve java.rmi.server

Inter Process Communication is usually done using Global Events if the processes are completely different applications, or just a shared Queue if within an application.  Do a quick search on "Global Events" and  "IPC" on the forum to find out more. 

Please use plain text.
Contributor
sebas2
Posts: 13
Registered: ‎08-17-2012
My Device: BlackBerry Bold 9790
My Carrier: Comcel

Re: Can't resolve java.rmi.server

The two processes are of my app. Which queue are you talking about?
Please use plain text.
Developer
peter_strange
Posts: 19,601
Registered: ‎07-14-2008
My Device: Not Specified

Re: Can't resolve java.rmi.server

One you create yourself.  There is nothing built-in that you can use.

Please use plain text.
Contributor
sebas2
Posts: 13
Registered: ‎08-17-2012
My Device: BlackBerry Bold 9790
My Carrier: Comcel

Re: Can't resolve java.rmi.server

What underlying mechanism would you recommend for creating such a queue? Sockets? Pipes? Or is there a native (C++) API for this that can be used from Java through JNI?
Please use plain text.
Developer
peter_strange
Posts: 19,601
Registered: ‎07-14-2008
My Device: Not Specified

Re: Can't resolve java.rmi.server

Sorry, none of the above....

 

I would use RuntimeStore to create a simple collection Object that you treat as a queue - a Vector for example.

 

Here is how to create a Singleton in RuntimeStore that you use for this purpose:

http://supportforums.blackberry.com/t5/Java-Development/Create-a-singleton-using-the-RuntimeStore/ta...

 

I suspect there are various samples of Patterns that you can use to use this Collection to bump the Listening process as you wish - I'm not great on these sorts of things so I would not listen to my advice on how to do it.

 

And do a search for IPC on the forum.  Similar questions to this have been asked before and you will find the answers enlightening I think. 

 

 

Please use plain text.