• Post Reply Bookmark Topic Watch Topic
  • New Topic

Passing Data From One Application to Another Application

 
Rick Charles
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI Guyz........


Am new to JSP , I had a interview last week in which i have been asked this question

"HOW TO PASS ONE VALUE TO ONE APPLICATION TO ANOTHER APPLICATION"
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rick,
Please note:
Typing in all caps is the equivalent to yelling in a web forum and is considered rude.

If you find that you're not getting answers to your questions, you might want to view our list of tips for asking them here.
http://faq.javaranch.com/view?HowToAskQuestionsOnJavaRanch
 
Naseem Khan
Ranch Hand
Posts: 809
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well J2EE does not provide any way by which you can pass parameter from one application to another application. Maximum you can set attributes in application scope still in that case you can't get that object in another application.

But weblogic server does provide a way of doing it.

Naseem
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are any number of ways:

1) Make a request from one app to the other passing the value as a request parameter.
2) Use the DB as a common data share
3) Use the file system as a common data share
4) Use RMI, JMS or another of the Java alphabet soup technologies
5) other...
 
Muhammad Saifuddin
Ranch Hand
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Naseem Khan:
Maximum you can set attributes in application scope still in that case you can't get that object in another application.


yes you are right.

we have three major scope in Servlet and JSP. Application Scope is the highest scope,The application object is accessible from any JSP page instance running as part of any instance of the application within a single JVM. (The programmer should be aware of the server architecture regarding use of JVMs.)

is this possible by java.net.HttpURLConnection ?

Scope Object
[ August 08, 2006: Message edited by: saif uddin ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!