my dog learned polymorphism*
The moose likes Java Micro Edition and the fly likes jndi in midlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "jndi in midlets" Watch "jndi in midlets" New topic
Author

jndi in midlets

jawwad ahmed
Ranch Hand

Joined: Dec 01, 2001
Posts: 179
Can we use jndi in midlet application for locating the ejb.
Thanks
Michael Yuan
author
Ranch Hand

Joined: Mar 07, 2002
Posts: 1427
MIDP is not designed to work with enterprise Java backends. You should wrap your EJB functions in HTTP/XML (like web services) and access them through normal HTTP connections.


Seam Framework: http://www.amazon.com/exec/obidos/ASIN/0137129394/mobileenterpr-20/
Ringful: http://www.ringful.com/
jawwad ahmed
Ranch Hand

Joined: Dec 01, 2001
Posts: 179
That's ok.
but Actually when i send png format picture from website to mobile(as in my final year project).the mobile have to be connected in non-visual manner to that website(as in chatting soft ware but non visual).Then i can send card to mobile other wise with out creating socket how i will establish connection to particular mobile to whom i am sending.
thanks a lot.
jawwad ahmed
scjp
scwcd
Michael Yuan
author
Ranch Hand

Joined: Mar 07, 2002
Posts: 1427
I think your mobile device should create a socket connection to the image server and "pull" the image. It can check for new images every a couple of minutes to make it appear that the images are "push"ed over.
If you want the mobile device to accept inbound connections, you have to write some sort of server software to listen to a port. You image server also needsto know the IP of the mobile device at anytime. A lot of trouble.
jawwad ahmed
Ranch Hand

Joined: Dec 01, 2001
Posts: 179
Well thanks i think mobile have always to be connected to that server so when ever the server has to send message it search from the database and send the picture is it right.
Thanks.
jawwad ahmed
.........
scjp2
scwcd
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: jndi in midlets
 
Similar Threads
JTA objects
WA #1.....word association
lookup meaning?
ejb
J2EE technology would allow the system to interact with the LDAP server?