dcsimg
How can to integrate two Java applications?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Chandrasekhar_S
Posted On:   Friday, December 7, 2001 08:30 PM

Hi, My problem is, I have a application(say,ModelApp)developed in java and I want integrate this application with another application developed in java(say,ViewApp). The things I like to do is 1.From the application ModelApp,I want to invoke the other application ie ViewApp.The called application must run as a separate process. 2.In the application ModelApp there will be tree showing various files. When I double click a file, the second application,ie ViewApp must get opened with that file. The file name must be passed as an argument to the second application,ie ViewApp.The ViewApp is just a tool to view various files. Hope many of you can help    More>>

Hi,

My problem is,

I have a application(say,ModelApp)developed in java and I want integrate this application with another application developed in java(say,ViewApp).

The things I like to do is

1.From the application ModelApp,I want to invoke the other application ie ViewApp.The called application must run as a separate process.

2.In the application ModelApp there will be tree showing various files.

When I double click a file, the second application,ie ViewApp must get opened with that file.

The file name must be passed as an argument to the second application,ie ViewApp.The ViewApp is just a tool to view various files.

Hope many of you can help me.

Thanks in advance.

Regards

Chandrasekhar.S

   <<Less

Re: How can to integrate two Java applications?

Posted By:   Andreas_Schaefer  
Posted On:   Thursday, December 13, 2001 06:02 PM

Maybe JMX is an overhead but you can do this with JMX and therefore
I will explain how to do it:




  1. Create a MBean around the class you have which contains
    the method you want to access from the other application.
    You can use either Standard MBeans (Java Interface) or Dynamic MBean.


  2. When you start your application you create an MBeanServer


  3. You create and register your MBean(s) at startup


  4. You install and configure a JMX Connector (Sun's JDMK, AdventNet
    or jboss.org) for remote access.


  5. The client access the remote MBean through the JMX Connector
    and call the method exposed by the MBean.




Hope this helps - Andy
About | Sitemap | Contact