File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

passing and getting parameters

 
preethi Ayyappan
Ranch Hand
Posts: 518
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am calling one java standalone application from another standalone application like the following

I want to pass and get parameters in both the application.Is it possible in standalone application?

Thanks.
 
Campbell Ritchie
Sheriff
Pie
Posts: 47258
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you running two JVMs?

Do a search on JavaRanch; that sort of question comes up about every two weeks. Lots of possibilities:
  • You could connect the two together with Sockets.
  • You could create a class to embody data and serialise its instances from one application and deserialise them into the other application.
  • You could have a text file with data in, writing and rewriting it from the different applications.
  •  
    Rob Spoor
    Sheriff
    Pie
    Posts: 20380
    45
    Chrome Eclipse IDE Java Windows
    • 0
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    I have a question for you.

    Your code obviously recognizes class Ivr. Yet you still use reflection to create an instance. Why?

    First of all, why use Class.forName if Ivr is available; therefore Ivr.class is also available. That will return the same as Class.forName("Ivr").

    Second of all, why not say
    That's a) a lot better to read, and b) faster.
     
    I agree. Here's the link: http://aspose.com/file-tools
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic