Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Executing an application stored in COMPUTER from MOBILE\CELLPHONE

 
Harish Tiruvile
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to execute a normal java program (without using server) from Mobile using J2ME ..

Say for example i worte HelloWorld.java program ...
i stored that program in my machine which is having IP addredd XX.XX.XXX.XX .Now i want to call that program from J2ME program .

Here i am not using any Servers ...

Is there any way to execute that program without using servers...
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sort of, you can have a listener program running on your machine that when called will trigger the program. The listener could be a Servlet, or you could use Sockets.

Mark
 
Harish Tiruvile
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Mark Spritzler ,

sir,I got one more doubt after implementing servlet as a listener..To invoke servlet\Java application,i need to enter in to my company network to acces system where i stored ordinary servlet\java program.

Question:If i use Servlet or socket as a listener ,then can i access My company network.

I am asking because ,without RAS card i cannot access My company network from Laptop(since i am using wireless intenet connection)or from home .

So is there any feature in J2ME through which i can access company network from My mobile to call servlet\socket program.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simply remember that your cell phone is completely outside of any "network" so to connect into a network you need exactly what you would need if you were using a computer in the library to try to connect to your work's network. Someway in, so you need some open port in your Office Network that the J2ME app can get into and pass security credentials, which could be a public/private key with SSL.

Mark
 
David Aslan
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're not doing something illegal are you?

One way to do this is to get a GSM Modem (like iTegno). Get an SMS Server (like NowSMS) to wait for the SMS and then launch your app (can be any app, exe, etc.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic