Simple RMI over HTTP in MIDP1.0 - open source project
Hi All,
For anyone interested in doing remote method calls (over HTTP) to a server from a MIDP 1.0 MIDlet there is an open source project now available for this. Please see MeRMI (Micro Edition RMI) at:
http://mermi.dev.java.net
You can use this to create a remote server class, much like you would in RMI. MeRMI then generates classes to do the remote communications for you. So you can just make nice, simple Java calls from your MIDlet, without having to worry about how the calls are passed to the server, etc. It's all pretty easy to use (especially if you have used RMI before) and takes a lot of the hard work out of building network applications.
The toolkit is completely free (LGPL) and open source, you can use the code and do what you want with it.
Hope it comes in useful to someone!
zonski.
Note: MeRMI does not support callbacks, but an event mechanism using blocking, polling requests can be used to create server to client messaging.
It sounds interesting. It is only for MIDP 1.0?, what about MIDP 2.0?
Similar Messages
-
What are the limitations of using RMI over http with EJB?
We have a requirement for an intranet application where the majority of the clients
(Swing clients) will be able to connect directly using either T3 or IIOP. However,
there are a number of clients that will need to traverse a firewall.
We could use SOAP, but I dont want to lose the value that RMI gives us (clustering,
security, statefullness support etc). I am thinking of using RMI over http - which
Weblogic supports.
I have been trying to find some documentation on the topic - but havent succeded
so far. What I would like to understand is: What limitations I would have using
RMI over http. Do I lose anything (apart from performance) using http?
Regards,
NickYou will have to enable tunneling on the server side and I have not heard of any
complaints of using it.
Shiva.
Nick Minutello wrote:
In fact, we are not using applets - and its not an internet application. We are
using Java Webstart and Swing on our intranet (the problem of the size of the
weblogic.jar is a pain - but well known)
The question for me is; Apart from performance, are there any limitations to using
RMI over http?
Can we also use JMS over http?
-Nick
Shiva Paranandi <[email protected]> wrote:
"Old wine new bottle".
The biggest problem with the approach of Applets like
stuff connecting to weblogic is the size of the classes that need to
be supplied to the
users. The applets/swing would need a lot of weblogic classes which you
need to
supply as jar file. This file can be in the order of MBs depending on
the
weblogic version. we had a similar kind of problem and migrated the applets
to use
servlets instead of directly invoking ejbs or jms topics etc. Having
the applets
connect
to servlets you would still benefit from the features of clustering etc.
and added to
that
you would reduce the number of remote calls.
Shiva.
Nick Minutello wrote:
We have a requirement for an intranet application where the majorityof the clients
(Swing clients) will be able to connect directly using either T3 orIIOP. However,
there are a number of clients that will need to traverse a firewall.
We could use SOAP, but I dont want to lose the value that RMI givesus (clustering,
security, statefullness support etc). I am thinking of using RMI overhttp - which
Weblogic supports.
I have been trying to find some documentation on the topic - but haventsucceded
so far. What I would like to understand is: What limitations I wouldhave using
RMI over http. Do I lose anything (apart from performance) using http?
Regards,
Nick -
Hi, I'm new to this forum and fairly new to Java. I'm trying to run RMI from an applet, it works fine on the LAN but has problems externally due to firewalls. I'm now trying to set up RMI over HTTP to negate this problem but cannot find the Java-RMI.CGI script anywhere. I'm using J2SDK1.4.0, if anyone knows where to get this and how to configure it for IIS5 I would be most gratefull.
The following is an example of java-rmi.cgi in Unix
#!/bin/sh
# This file handles rmi requests to download RMI code
# The work is done by the class:
# sun.rmi.transport.proxy.CGIHandler
# This class supports a QUERY_STRING of the form
# "forward=<port>" with a REQUEST_METHOD of "POST"
# The body of the request will be forwarded to the server (
# as aPOST request) to the port given in the URL. The response
# will be returned to the orginal requester.
# Set the path to include the location of the jdk to run
PATH=/opt/java/bin:$PATH
java \
-DAUTH_TYPE=$AUTH_TYPE \
-DCONTENT_LENGTH=$CONTENT_LENGTH \
-DCONTENT_TYPE=$CONTENT_TYPE \
-DDOCUMENT_ROOT=$DOCUMENT_ROOT \
-DGATEWAY_INTERFACE=$GATEWAY_INTERFACE \
-DHTTP_ACCEPT="$HTTP_ACCEPT" \
-DHTTP_CONNECTION=$HTTP_CONNECTION \
-DHTTP_HOST=$HTTP_HOST \
-DHTTP_USER_AGENT="$HTTP_USER_AGENT" \
-DPATH_INFO=$PATH_INFO \
-DPATH_TRANSLATED=$PATH_TRANSLATED \
-DQUERY_STRING=$QUERY_STRING \
-DREMOTE_ADDR=$REMOTE_ADDR \
-DREMOTE_HOST=$REMOTE_HOST \
-DREMOTE_IDENT=$REMOTE_IDENT \
-DREMOTE_USER=$REMOTE_USER \
-DREQUEST_METHOD=$REQUEST_METHOD \
-DSCRIPT_NAME=$SCRIPT_NAME \
-DSERVER_NAME=$SERVER_NAME \
-DSERVER_PORT=$SERVER_PORT \
-DSERVER_PROTOCOL=$SERVER_PROTOCOL \
-DSERVER_SOFTWARE=$SERVER_SOFTWARE \
sun.rmi.transport.proxy.CGIHandler -
RMI over HTTP: configuration
Hi,
I have a very basic RMI server that needs to be accesed from outside our network. There is a firewall that controls the access to the network. RMI server does not use any kind of callbacks or any other strange stuff.
What do I need to configure in order to make it work?
Thanks in advance
Jorge Ortiz ClaverNo I'm not using it through a firewall -- which is what rmi-over-http is touted for. Http works in the 10.1.3 standalone preview, but there seems to be a new httpS authentication mechanism. I think it was using Oracle's wallet or something.
received a nice little exception when reading the server keystore (created/self-signed w/ java keytool)
oracle.oc4j.security.ExchangingEncryptor$EncryptionException
at oracle.oc4j.security.ExchangingEncryptor.getDecryptedValue(ExchangingEncryptor.java:84)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview 4].server.rmi.TunnelledRmiServlet.readKeyExchangeCredentials(TunnelledRmiServlet.java:115)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview 4].server.rmi.TunnelledRmiServlet.authenticate(TunnelledRmiServlet.java:100)
Caused by: javax.crypto.BadPaddingException: Given final block not properly padded
at com.sun.crypto.provider.SunJCE_h.b(DashoA12275)
at com.sun.crypto.provider.SunJCE_h.b(DashoA12275)
at com.sun.crypto.provider.DESCipher.engineDoFinal(DashoA12275)
at javax.crypto.Cipher.doFinal(DashoA12275)
at oracle.oc4j.security.ExchangingEncryptor.getDecryptedValue(ExchangingEncryptor.java:70)
... 20 more -
Compression of RMI-over-HTTP/T3? Howto?
Hello *,
we have a Swing-based fat client talking to EJBs on the server.
We'd like to compress the RMI-over-HTTP stream between client and server. Can this be enabled out of the box (WLS 8.1) or can you recommend some tools to use?
Any pointer appreciated.
M.I dont think this can be done OOTB. You may have to use java.util.jar package to compress the data , and send it over the http and decompress it at the other end. If this is important for you, you should file an enhancement request with support@bea
-
DBAShell - New Open Source Project for Oracle DBA's
I'd like to have this project included in the Open Source Oracle tools list at: http://www.oracle.com/technology/community/opensource_projects.html
I've been an Oracle DBA for quite some time (since 7.0.13) and a developer for many years. One of the things I've always wished for was an easier way to set up environment variables for different Oracle Homes and a way to provide passwords to scripts without embedding them in plain-view.
About 3 years ago, I started a set of functions and scripts at my company that did exactly just that and provided many more functions for things like checking database status, running scripts quietly unless errors are detected, running actions in parallel (like fast shutdowns at once, or multiple analyzes), restarting databases in a guaranteed fashion, aliases to common folder locations, etc..
About a month ago, after putting all this time and effort into these scripts and using them in production all this time, I realized I wanted more out of the scripts like support for other databases and thought that it would be best if I gave it new life as an Open Source project.
So that is how http://sourceforge.net/projects/dbashell/ was started. Now its in a second release (DBAShell 0.85) that is more modular and would allow other people to easily add support for other OSs, other Shells, and other Databases.
Here is a description of the project from the latest news item:
DBAShell is a project based around Shell functions and scripts designed to make it easy for DBA's to use Databases in a command line environment. Currently supported is Oracle with ksh and bash on AIX, Solaris, Linux. The code base itself is 3 years old and has been in use in Production environments all of that time.
Features include:
* Automatic setting of all environment variables based on SID requested.
* Manage PATH's and other path like variables for each ORACLE_HOME needed.
* Run scripts with stored passwords (no more hard-coding of passwords!!)
* Automatically set SID based on Script location (makes it easier to share scripts between SID's)
* manage temporary script output and check for oracle errors in output
* check database status and versions from scripts
* stop/start databases in parallel (faster startup)
* compile all database objects
* analyze objects in parallel (Faster analyzes)
* set aliases and variables for common SID areas, etc..
* many helpful commands for common Oracle tasks
Over a thousand people have already downloaded the prior release and more are downloading every hour.
I'm seeking feedback from anybody that would be willing to take a look at the project, trying it out, give me any feedback you have on it, and perhaps even direct me to where I could best promote this project.
I wrote a tutorial that shows at a glance some of the more useful features of DBAShell:
http://sourceforge.net/docman/display_doc.php?docid=34041&group_id=170224
Main site:
http://sourceforge.net/projects/dbashell/
Documentation: http://sourceforge.net/docman/display_doc.php?docid=33704&group_id=170224
Download:
http://prdownloads.sourceforge.net/dbashell/dbashell-0.85.tar.gz?downloadAlways glad to have people thinking about the poor DBA's. Usually, the developers get most of the attention in open source.
-
DBAShell - Open Source project for Oracle DBA's
Ive been an Oracle DBA for quite some time (since 7.0.13) and a developer for many years. One of the things Ive always wished for was an easier way to set up environment variables for different Oracle Homes and a way to provide passwords to scripts without embedding them in plain-view.
About 3 years ago, I started a set of functions and scripts at my company that did exactly just that and provided many more functions for things like checking database status, running scripts quietly unless errors are detected, running actions in parallel (like fast shutdowns at once, or multiple analyzes), restarting databases in a guaranteed fashion, aliases to common folder locations, etc..
About a month ago, after putting all this time and effort into these scripts and using them in production all this time, I realized I wanted more out of the scripts like support for other databases and thought that it would be best if I gave it new life as an Open Source project.
So that is how http://sourceforge.net/projects/dbashell/ was started. Now its in a second release (DBAShell 0.85) that is more modular and would allow other people to easily add support for other OSs, other Shells, and other Databases.
Here is a description of the project from the latest news item:
DBAShell is a project based around Shell functions and scripts designed to make it easy for DBA's to use Databases in a command line environment. Currently supported is Oracle with ksh and bash on AIX, Solaris, Linux. The code base itself is 3 years old and has been in use in Production environments all of that time.
Features include:
* Automatic setting of all environment variables based on SID requested.
* Manage PATH's and other path like variables for each ORACLE_HOME needed.
* Run scripts with stored passwords (no more hard-coding of passwords!!)
* Automatically set SID based on Script location (makes it easier to share scripts between SID's)
* manage temporary script output and check for oracle errors in output
* check database status and versions from scripts
* stop/start databases in parallel (faster startup)
* compile all database objects
* analyze objects in parallel (Faster analyzes)
* set aliases and variables for common SID areas, etc..
* many helpful commands for common Oracle tasks
Over a thousand people have already downloaded the prior release and more are downloading every hour.
I'm seeking feedback from anybody that would be willing to take a look at the project, trying it out, give me any feedback you have on it, and perhaps even direct me to where I could best promote this project.
I wrote a tutorial that shows at a glance some of the more useful features of DBAShell:
http://sourceforge.net/docman/display_doc.php?docid=34041&group_id=170224
Main site:
http://sourceforge.net/projects/dbashell/
Documentation: http://sourceforge.net/docman/display_doc.php?docid=33704&group_id=170224
Download:
http://prdownloads.sourceforge.net/dbashell/dbashell-0.85.tar.gz?downloadAlways glad to have people thinking about the poor DBA's. Usually, the developers get most of the attention in open source.
-
ANN: Ajax4jsf . New Open Source project that brings AJAX capability to JSF
I would like to inform everybody about the new Open Source project - Ajax4jsf. It is hosted on java.net
URL: https://ajax4jsf.dev.java.net/
Ajax4jsf is a rich component framework that has been created exclusively to bring rich user interface functionality to the JavaServer Faces. It enables page-wide AJAX support instead of the traditional component-wide. It means you can define the event on the page that invoke AJAX request and area(s) of the page that should be synchronized with the JSF Component Tree after the AJAX request changes the data on the server according to the events fired on the client.
Actually, ajax4jsf is based on the framework, Alexander Smirnov introduced last summer ( http://smirnov.org.ru/en/ajax-jsf.html ) . He is an architect for ajax4jsf right now.
In addition to the features the previous version of his framework had, we already added the following:
* Framework for support easy change "look and feel" ( skinning )
* Support for handle off-page resources ( JavaScript, CSS styles, images, objects). Resources can be placed in application classpath ( for example, put in JAR), generated by program ( for example, paint images by Java2D or JAI ), with full caching support
* Templating system for easy creating components renderers ( using jsp-like xml template instead of direct call write...() methods )
* Special JTidy-based response filter - it can correct any HTML code from components to avoid incompatibilities with DHTML
Sergey : https://ajax4jsf.dev.java.net/You can find (simple) samples here:
[https://javaserverfaces.dev.java.net/servlets/ProjectDocumentList?folderID=4036&expandFolder=4036&folderID=0]
[http://www.coreservlets.com/JSF-Tutorial/]
You can find a HTML/rich text editor as JSF component in the Mojarra Scales component library: [https://scales.dev.java.net/htmlEditor.html]. -
Open source projects based on Oracle technology
Hello:
Here's a project for the open source page at
Open Source Projects for Oracle:
http://www.oracle.com/technology/tech/opensource/projects.html
The open source (GPL) ValueObjects Framework for ADF is available for download. It is a JDeveloper 10g 10.1.2 extension for building SOAP-compliant DTOs over ADF Business Components.
http://www.sourceforge.net/projects/valueobjects
Quick intro at http://valueobjects.sf.net
Screenshots at http://valueobjects.sourceforge.net/screenshots/screenshots.html
Thanks,
- Zak
[email protected]Hi,
Jim is right.
There is no way of converting/upgrading a VI to the newer version of LabVIEW without its block diagram. Below are a couple of KBs that discuss this issue:
How Do I Recover My Block Diagram If I Saved My VI with Options and Selected Remove Diagrams?
What Does it Mean When I Receive the Message "LabVIEW load error code 11"?
Feroz -
Open Source project - request for interest
Hi,
I know this may not be the most appropriate place for this but I couldnt find anywhere else. The project is due to start up in early 2006. The technology is Java based and supports J2EE. It enables developers to work at a high level and generate apps very quickly and more complex functionality can be built using Java to address requirements.
I thought I would post this here for anyone interested in participating in a new Open Source project for a Java development tool.
I apologise in advance if anyone gets upset over this post - but I thought Java developers should be aware of the project.
Thanks.
Be in at the start of an exciting new Open Source initiative!
If you're a Java developer and you'd be interested in participating in the development of a new UK-based Open Source project then read on.
The project would seek to take an existing, powerful J2EE-based rapid web application development tool on to the next level. Sitting happily alongside other well-known open source names such as Red Hat, MySQL and JBoss, it enables the building and deploying of J2EE-based web applications in a fraction of the time that it would otherwise take to develop them. But the possibilities are only limited by your imagination.
So, if you're interested in contributing to the evolution of this project please email us at [email protected] with your contact details and we will be in touch with you.Thanks for the ponter, I will check it out.
hth,
Sean -
Open Source Project Announcement...
I have started an open source project to build a module for
PHP4 that will allow direct calls to Tuxedo services from
the PHP script, the project name is php-tuxedo.
Think about it for a second... The ability from inside a
PHP web page to directly call already existing Tuxedo
services anywhere in your environment. Just like PHP can
open a database connection to Oracle or Sybase, it would
open a Tuxedo connection as a Tux client to a Tuxedo
middleware environment.
For those who have used PHP, you know how easy it is to
build dynamic web pages. But those pages are mostly limited
to database queries or flat file access for data. With this
project you could call all your existing enterprise Tuxedo
services directly. I believe this would be a very powerful
enhancement to PHP's capabilities.
To those familiar with Tuxedo, you know about how powerful
an implementation of Tux middleware services can be for
departmental and enterprise solutions.
I want to bring these two pieces together.
Project status. The project is in its early infancy, but
some parts are functional. I have successfully built a
client page that uses a STRING buffer to call a service with
tpcall and returns a STRING buffer back. Primitive? Sure,
but this is only the start. I have ideas of how to
implement many other functions and buffer types including
FMLs.
There is much work to do, but if you are interested please
check out http://php-tuxedo.sourceforge.net. There you can
download my first cut and more importantly follow the
project as it progresses. For the really ambitious I would
welcome any testing or development help on the project.
Please note I’m posting this note to several lists I don’t
normally monitor, so I may not see a reply on the list.
Hope to hear from you.
Brian Foddy
[email protected]You probably are able to do this already through Prolifics' XMLink product
http://www.prolifics.com/do/xml.html.
-James
"Brian Foddy" <[email protected]> wrote in message
news:[email protected]...
>
Open Source Project Announcement...
I have started an open source project to build a module for
PHP4 that will allow direct calls to Tuxedo services from
the PHP script, the project name is php-tuxedo.
Think about it for a second... The ability from inside a
PHP web page to directly call already existing Tuxedo
services anywhere in your environment. Just like PHP can
open a database connection to Oracle or Sybase, it would
open a Tuxedo connection as a Tux client to a Tuxedo
middleware environment.
For those who have used PHP, you know how easy it is to
build dynamic web pages. But those pages are mostly limited
to database queries or flat file access for data. With this
project you could call all your existing enterprise Tuxedo
services directly. I believe this would be a very powerful
enhancement to PHP's capabilities.
To those familiar with Tuxedo, you know about how powerful
an implementation of Tux middleware services can be for
departmental and enterprise solutions.
I want to bring these two pieces together.
Project status. The project is in its early infancy, but
some parts are functional. I have successfully built a
client page that uses a STRING buffer to call a service with
tpcall and returns a STRING buffer back. Primitive? Sure,
but this is only the start. I have ideas of how to
implement many other functions and buffer types including
FMLs.
There is much work to do, but if you are interested please
check out http://php-tuxedo.sourceforge.net. There you can
download my first cut and more importantly follow the
project as it progresses. For the really ambitious I would
welcome any testing or development help on the project.
Please note I'm posting this note to several lists I don't
normally monitor, so I may not see a reply on the list.
Hope to hear from you.
Brian Foddy
[email protected] -
Open Source Project Announcement...
I have started an open source project to build a module for
PHP4 that will allow direct calls to Tuxedo services from
the PHP script, the project name is php-tuxedo.
Think about it for a second... The ability from inside a
PHP web page to directly call already existing Tuxedo
services anywhere in your environment. Just like PHP can
open a database connection to Oracle or Sybase, it would
open a Tuxedo connection as a Tux client to a Tuxedo
middleware environment.
For those who have used PHP, you know how easy it is to
build dynamic web pages. But those pages are mostly limited
to database queries or flat file access for data. With this
project you could call all your existing enterprise Tuxedo
services directly. I believe this would be a very powerful
enhancement to PHP's capabilities.
To those familiar with Tuxedo, you know about how powerful
an implementation of Tux middleware services can be for
departmental and enterprise solutions.
I want to bring these two pieces together.
Project status. The project is in its early infancy, but
some parts are functional. I have successfully built a
client page that uses a STRING buffer to call a service with
tpcall and returns a STRING buffer back. Primitive? Sure,
but this is only the start. I have ideas of how to
implement many other functions and buffer types including
FMLs.
There is much work to do, but if you are interested please
check out http://php-tuxedo.sourceforge.net. There you can
download my first cut and more importantly follow the
project as it progresses. For the really ambitious I would
welcome any testing or development help on the project.
Please note I’m posting this note to several lists I don’t
normally monitor, so I may not see a reply on the list.
Hope to hear from you.
Brian Foddy
[email protected]Always glad to have people thinking about the poor DBA's. Usually, the developers get most of the attention in open source.
-
EJB 3.0 in a real world open source project. Great for coding reference!
If you are interested in seeing EJB 3.0 implemented in a real world project (not just examples) or if you are interested in learning how to use them I suggest you to take a look a the open source project Overactive Logistics.
It has been written totally using EJB 3.0 (session and entity beans) I found it very helpful in solving several technical situations I was facing.
You can get more information at:
http://overactive.sourceforge.netThanks for the ponter, I will check it out.
hth,
Sean -
Working on Open Source Projects for N00b programmers
Hi,
I have heard the suggestion on the forum that working on open source projects_ is a good way to refine your programming skill.
I am learning Object Oriented Programming concepts in my Java class. I have found that I am not getting as much practical experience* as I feel I need to really cement the concepts in practice, and to cement the concepts in my brain. I read the book a lot, and I get a lot of the theory, and I can make sense of all the book's code examples, but I feel like I need to start doing hands on code manipulation and/or problem solving to make these things stick in my brain.
Finally, I am genuinely a n00b, so even though I get all the concepts of OOP on a high level, I only have done pedagogical exercises, not any real practical experience. So I am looking for Open Source projects who's code isn't super intricate and will be manageable to decipher, based on my limited experience.
Also, if the projects are on cool interesting things like Open Office or Audacity or Mozilla Firefox or Miscellaneous Widgets (the kinds of things we use in everyday computer use, I know this varies from person to person, but anyway...) or Scientific/Mathematical Simulations etc, all those sorts of things would be cool.
Thanks a bunchinfinitelyLooping wrote:
I like you. A lot.
NO xxxxBoy, that just makes me want to bend over backwards to help you. -
SQLpython in Open Source Projects for Oracle
I'd like to strongly reccommend SQLpython ( https://twiki.cern.ch/twiki/bin/view/PSSGroup/SqlPython ) be added to the Open Source Projects for Oracle page ( http://www.oracle.com/technology/community/opensource_projects.html ). It's an SQL command-line client whose chief strength is incredibly convenient extensibility / personalizability. I've reviewed it briefly at http://catherinedevlin.blogspot.com/2006/05/sqlpython-sql-client-of-your-very-own.html
Thanks very much!We have made this addition.
Cheers, OTN
Maybe you are looking for
-
Can you manually move files within a folder to put them in a specific order?
I am new to mac, I was wondering if there is an app maybe that you could move files within a folder (ie photos) to make them in a specific order and then rename them, I used to be able to do this with my windows xp..... cant seem to make it happen wi
-
I installed Windows 8.1 64 on a T61 and would like to update bios
I am not able to run the Bios update... any ideas how how I can install the NEW BIOS? the latest bios is date 2012 I have a 2009 version. Ever since I updated the previous bios my computer is getting stuck OFF at times. So if figured if I update to t
-
Sometimes I want to email everyone in the gorup, sometimes only one or two subgroups. By defining subgroups of activities it is easier to keep members up to date in those groups.
-
Launched bridge, then all it says is waiting for Bridge CS6
trying to view my pictures on my computer in CS6 and I lauched Bridge and now all it says is "waiting for Bridge CS6" I have been using Lightroom 4 so I am not a complete idiot, just new to PS CS6. Any help is appreciated.
-
Airplay with wifi and no internet ?
I need to use only airplay, can I do it over a wifi network with no internet connection?