Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

About Push Registry - Dynamic x Static registration

 
Wilder C Rodrigues
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, all!


This is the situation:

The first MIDlet is started and, in a dynamic way, register a socket connection on port 5000. After that the MIDlet is drestroyed.

The second MIDlet is installed and it has a static socket connection on port 5000 defined in the JAD file.

Is it followed by a sucessfully installation?

If an inbound connection on pot 5000 is detected, what's happen?

Thanks,
Wilder
SCPJ 1.4
SCDJ 1.4
SCWCD 1.3
SCBCD 1.3
 
Aryan Khan
Ranch Hand
Posts: 290
Java Oracle Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good question...

Ok for static we know that 2 midlets suites accessing same port can not run or be installed at the same time..

For dynamic connections...after the application is installed and registers a connection, even after it is destroyed the list of dynamically registered connections are saved, so it means that they must be resereved for this MIDlet...so any other MIDlet suite trying to use should fail to install...
HTH
ASK
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!