Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
zac_mathews
Posts: 29
Registered: 08-07-2008
Accepted Solution

Hi how to access a Local Web Servlet Hosted on LAN where BES is Running.

[ Edited ]

Hi,  

 

Please correct me if  I'm wrong when ever we open a connection from Java app from device using URL ending with " ;devices=false " connections will be made thru BES. So is there any way to access systems which is local to BES

 

Connector.open(http://google.com;deviceside=false);  connectes to google  so if I gave url like

Connector.open(http://198.168.1.xxx:8080/servletname;deviceside=false); can I connect to web server

 

 

I hope this will help to explain what I mean. ( I know it looks funny )

 

|----------------------------------------------|

|               LAN                                       |

|                                                              |

|   [local web server]   <----> [ BES 5.0 ] <---------------->[BB Device]

|                                                              |

|-----------------------------------------------|

 

 

 

  1.  Is it possiable  "from BB Device (using Java App on device **NOT FROM DEVICE BROWSER )" to access one of the web server ( tomcat which is not exposed to internet  ) which is hosted on one of the system on LAN where my BES server is running???....
  2. What will be the url format used on device  [for e.g.: Connector.open(http://192.168.1.xx:8080/servletname;deviceside=false); ] ...Will this do the job?...
  3. Do I have to do any changes to BES settings?

 

Please note all I have is bunch of simulators and trial BES which i have just downloaded .. :-)

 

Please help

 

Thanks in advance....

 

Zac

Please use plain text.
Developer
peter_strange
Posts: 14,614
Registered: 07-14-2008

Re: Hi how to access a Local Web Servlet Hosted on LAN where BES is Running.

The short answer to your question is yes, it is easy.

 

I could go in for the long answer, but I would be repeating stuff that is already explained in this Thread and the associated 'required reading'.  So please review this and then ask for further information where the idea is not clear to you.

 

http://supportforums.blackberry.com/t5/Java-Development/Connecting-your-BlackBerry-http-and-socket-c...

Please use plain text.
Developer
zac_mathews
Posts: 29
Registered: 08-07-2008

Re: Hi how to access a Local Web Servlet Hosted on LAN where BES is Running. Pe

Thanks peter thats brilliant... :smileyhappy:

Please use plain text.