Application to application communication

Hi,
Is there some way by which I can commmunicate (invoke methods) from one
web service to another webservice if they are deployed on the same weblogic
server. (i dont want to invoke them by using SOAP which will invoke them
over the internet..) can they invoke it straight away without doing a 'look
back' on the internet.
Or will i have to replicate the full functionality in all the applications
using that functionality and when a change is made i have to do the same in
all applications.
Please help.....this is really critical as otherwise i'll have to replicate
a lot of code.
Pankaj

Thank you for the fast response.
Actually I have a set of EJBs which are interacting with the backend
database.
these are part of a particular application which is deployed as an ear file.
now Another applicatio needs to query the same database tables but the
output is in a different format. Example of this is that the basic EJB which
is interacting with the Database is being invoked by a web service EJB which
need to expose some columns of the database.
Now as each web service in weblogic 6.1 is packaged as an .ear file (i.e. an
application) and I havent put the original jar file in weblogic's classpath,
the web service EJB are not able to find the core EJBs and it gives a
ClassNotFoundException while deploying.
Another example is there is another application which has EJBs interacting
with the core EJBs but exposing the tables in a administrator module. Now
this module has added functionality for doing insert/ update to the
database, but it using the core EJB for doing select queries as it has got
methods for doing select based on various criteria.
For modularity purpose and for performance both were packaged as different
applications. The core EJB application is deployed but the other appications
are not getting deployed as they are refering classes in the core EJB and it
gives a ClassNotFoundException.
I am using Weblogic 6.1 with SP2 and Oracle 8i as my database.
I'll be really greatful if you can help me out.
Thanks,
Pankaj
"Michael Wooten" <[email protected]> wrote in message
news:[email protected]...
>
Hi Pankaj,
Is there some way by which I can commmunicate (invoke methods) >from one
web
service to another webservice if they are deployed
on the same weblogic server.(i dont want to invoke them by >using SOAP
which
will invoke them
over the internet..)This is not entirely an accurate statement ;-) I agree that the HTTPprotocol
will be used, but this does not neccessarily neccessitate the use of "theinternet".
For example, the "http://localhost" does not use "the internet" ;-)
Or will i have to replicate the full functionality in all the
applications using that functionality and when a change is made
i have to do the same in all applications.Whoa. Sounds like you might want to rethink the "block diagram" for thearchitecture
you are using with these services ;-)
At its core, the implementation for an RPC-style WebLogic Web service isjust
a stateless session EJB. Which means that every "best practice" you knowabout
EJB-based applications, can be used here ;-) If you have web services that"share
functionality", you should be using J2EE patterns (or just plain old OODprinciples,
e.g. inheritance) to encapsulate it. See:
http://developer.java.sun.com/developer/technicalArticles/J2EE/patterns/
and
http://www.theserverside.com/books/EJBDesignPatterns/index.jsp
for specifics.
That, or package that functionality in a .jar file, and include it in thepath
assigned to the "-classpath" option, of the java command used to startWebLogic
Server.
Regards,
Mike Wooten
"Pankaj" <[email protected]> wrote:
Hi,
Is there some way by which I can commmunicate (invoke methods) from
one
web service to another webservice if they are deployed on the same
weblogic
server. (i dont want to invoke them by using SOAP which will invoke them
over the internet..) can they invoke it straight away without doing a
'look
back' on the internet.
Or will i have to replicate the full functionality in all theapplications
using that functionality and when a change is made i have to do the same
in
all applications.
Please help.....this is really critical as otherwise i'll have toreplicate
a lot of code.
Pankaj

Similar Messages

  • Applet, Application communication

    Hi
    Someone tell me how to do applet, application communication.
    I have one standalone application, running in server and receiving connection from applets and every min. the server has to send some data back to each apllet connected.
    How to do it... any sample or reffernces please..
    Thanks in advance
    Tomy

    Can you give me example codes using RMI / Socket
    thanks

  • Deployed DC's not appearing on the Application Communication: Configuration

    whenever i deploy any WD UI DC on the portal via NWDS , i am able to successfully deploy the DC.
    However i am not able to view any of my DC's on the the Application Communication: Confirguration in NWA.
    i have to assign the provider systems for the DCs, so i would require the DCs to appear.
    i am currently operating on CE7.2
    please help in this regard.

    Hi Ashwin ,
    While importing the service into your web dynpro you will be asked to create a new service group or use existing. If you have not selected both while importing the service the DC will not be available in the application communication as there is no service group present for that DC. So you can once again check whether a Service Group is created or not. Hope this helps.
    Regards,
    Rohit

  • Securing applications communications running in the same server

    Hi everybody,
    I want to share critical information between two applications (medical information about patients) using JMS queues, moreover due to this criticity i was planning to secure this communication using SSL. The problem is that one of the client applications, because of his architecture, have problems when accessing the JMS queues.
    But I have to say that both applications will run in the same server (physical machine), knowing that, what kind of security problems could we encounter if, finnally we don't cypher the communication?
    I guess that the danger is lower than if the two applications would run in different machines, wouldn't it?
    Thanks!!!

    hi,
    add crossContext="true" in server.xml under tomcatx.x\conf\ in your <Context tag

  • Application communication - Best practice

    Hello
    I am eager in understanding the best ways to create communication between applications (Server to client) in Java.
    In the past, I have attempted to make applications using the Socket and ServerSocket class. The concept works of course, but I was wondering if this technique is also being used on enterprise level.
    I would be most interested in:
    - A system that does not rely on request & response, so that the client can receive information without requesting any.
    - The ability for users to send and recieve String messages. (e.g. server announcements).
    - The ability for users to send and receive objects. (e.g. sending or receiving user information).
    - (optional) Security (e.g. encrypted information).
    - (optional) Possible communication with clients using different technologies (e.g. .NET client) while using a server in Java.
    Any information about this is greatly appreciated.
    Vincent

    A system that does not rely on request & response, so that the client can receive information without requesting any.Datagram
    The ability for users to send and recieve String messages. (e.g. server announcements).Ditto. Investigate Multicast also.
    The ability for users to send and receive objects. (e.g. sending or receiving user information).RMI.
    (optional) Security (e.g. encrypted information).SSL.
    Possible communication with clients using different technologies (e.g. .NET client) while using a server in Java.SOAP.
    I think you should spend a bit more time with Google, or better yet buy a book or three on Java networking. This one is good: [http://www.amazon.com/Fundamental-Networking-Java-Esmond-Pitt/dp/1846280303|http://www.amazon.com/Fundamental-Networking-Java-Esmond-Pitt/dp/1846280303]

  • Webdynpro application communication

    Hi,
    How the two webdynpro application can communicate to each other. i.e. one application is passing some parameter to another application.
    it is like JSP page, calling some application and passing the parameter along with the url.
    Is there any mechanism, we can pass the parameter in the web dynpro application url and use those value in the application.
    Please give some pointers.
    thanks.
    Regards,
    Sanjeev Mourya

    Hi Sanjeev,
    Check out the Go and Create Section : http://help.sap.com/saphelp_nw2004s/helpdata/en/15/0d4f21c17c8044af4868130e9fea07/frameset.htm
    You may also have a look at tutorial section in http://help.sap.com/saphelp_nw2004s/helpdata/en/dd/a7ea4248afb440e10000000a1550b0/frameset.htm
    Cheers,
    Sunil
    PS: Reward points for helpful answers.

  • Flex3 :application communicating to EJB Application.

    Hi
    I want to communicate to EJB Session Beans (J2EE server side Objects) from my Flex Application .
    I am getting confused , with waht to use like (LCD , BlazeDS or go for Granite )
    I am thinking to go for blazeds itself as it is open source and with all features of LCD , please share your ideas on this .
    I see that for Flex and EJB integration two files are compulsary
    1.remoting-config.xml
    2.services-config.xml
    Please tell me what should each of these xml file should contain .
    Thank you .

    Here's my getInitialContext() method :
    private Context getInitialContext() throws NamingException
    InitialContext initialContext = null;
    String providerURL = null;
    String initialContextFactory = null;
    String securityPrincipal = null;
    String securityCredentials = null;
    try
    loadProperties();
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, this.properties.getProperty("java.naming.factory.initial"));
    env.put(Context.SECURITY_PRINCIPAL, this.properties.getProperty("java.naming.security.principal"));
    env.put(Context.SECURITY_CREDENTIALS, this.properties.getProperty("java.naming.security.credentials"));
    env.put(Context.PROVIDER_URL, this.properties.getProperty("java.naming.provider.url"));
    initialContext = new InitialContext(env);
    catch(IOException ioe)
    this.logger.error("Could not load properties files \n",ioe);
    return initialContext;

  • Applications communication without network adapter

    Is it possible to communicate two executable applications on the same machine that does not have network adapter installed?

    I've already find it for win NT but I don't know where to look it for win95. Anyway, thank you very much for the good idea [I mean using of virtual adapter. ].

  • Cross Web Applications Communication in Portal

    does anybody knows how multiple web apps communicate in Portal? How are data exchanged?
    is there a global session or something like this?
    thanks and best regards
    carlo

    Viren,
    I guess you must choose the required version of BEx Web: SAP BW 2.x/3.x or SAP NetWeaver BI (valid for SAP NetWeaver 2004s and higher).   Please try by checking the SAP NetWeaver BI  for Iviews
    Ramana

  • How to communicating one application with another?

    I wanted to make a web site that have the ability to view,update,insert and delete record in a database. How to do that? How can one application communicate with another? example, I wanted to have XHTML communicate with Java and Java to communicate with my database that is pointbase database.

    Multi-tier application communication is a somewhat complex matter. It may be made using differents techniques and designs. But like Sum-shusSue said, a typical Java-based solution would use these Java technologies: JSP (Java Server Page) for the presentation side (the client), Servlet or EJB (Enterprise Java Bean) for the server-side logic. The communication with the Database is made through JDBC.
    I suggest that you take a look at the J2EE edition of Java. That stands for Java 2 Enterprise Edition and it is specifically made for enterprise system development, such as Servlet, JSP, EJB, etc...
    This is a whole lot of new subjects and, from my humble experience, it is not that easy. i.e. I would not recommend it for strict newbies. However, if you have some months of Java coding on your side, maybe you should take a look. You can check first the left menu of this site, you'll find, under Technologies the sub-menu J2EE. There's also, somewhere on the site, tutorials on differents J2EE topics. Finally, I would recommend you this book:
    Professional Java Server Programming, J2EE 1.3 Edition, edited by Wrox. Of course, there a lot of other books on hte market. J2EE is a hot topic!
    Hope this help...
    Simon

  • Security question - restricting access to a specific application

    Hello,
    Looking for suggestions on how I could limit connections to a database to a specific application. Here is the scenario.
    I have an application running from a desktop that has oracle accounts for each user. The user has a read only role by default that I cannot alter. This means that the user can use excel (for example) and bypass the application to look at sensitive data.
    I know I can lock down the desktop, remove excel, etc, etc. However, I'm looking for other options that could be used, be it process, additional Oracle software (the database is 10R2 enterprise edition), etc.
    Problems: The app doesn't identify itself internally. I can see the program, but that is easily faked so thus unreliable.
    Any suggestions at all?

    I'll look at VPD again, but don't think the vendor will support us if we do.
    We are unable to modify the app - third party supported
    exactly - dont want toad, excel, sql*plus, whatever accessing the db from the same host.
    thought above secure app roles as well, but need something concrete that I could validate agianst. If the app could call it and supply that, great but I cannot alter the application. I'm using secured app roles in an in house app and it does work well.
    looking with our ti staff about encapsulating the application communication through a secure vpn tunnel into the data zone. may be an option as all other connections would not make it through the firewall into the data zone. (everything is internal, just to be segmented).
    Edited by: GPC on Aug 26, 2010 12:18 PM
    Edited by: GPC on Aug 26, 2010 12:22 PM

  • How to Consume a WSDL file in Webdynpro JAVA Application 7.30

    Hi Experts,
    My requirement is,I have a wsdl file(Provided by the SAP PI) which i need to consume in Webdynpro Java 7.3(NWDS 7.30).
    I has been tried in the follwing way
    1.First click on the Model --> Adaptive Web Service Model -->Model Name--Package Name
    2.Choose Remote Location/File System.
    3.After that choose the WSDL file from my project which i added earlier.
    4.After that I get the node in the context menu.But I am uneble to set some data into the node and also uneble to get data data from the node
    After deploying my project I get the following error.
    Error ::
    The initial exception that caused the request to fail, was:
    com.sap.esi.esp.service.server.query.discovery.ExtendedServiceException: Configuration not found for service reference with ID: c73e38ff-a4d8-4e4c-89c2-827fd5cf17ac from application demo.sap.com/mwebsrvc. Either you have not assigned the Service Group to a Provider System or the generation of the configuration has failed. Check the configuration details from SAP NetWeaver Administrator -> Application Communication. --> Details about the Service Reference: {urn://TestSOAPtoRFCSender}SI_TestSOAPtoRFCSender_OB; Service Group: com.tsecl.SITestSOAPtoRFCSender_OB.pidev_nerapdrp_gov_in; Service Group Software Component: demo.sap.com/mwebsrvc; Service Group Application: demo.sap.com/mwebsrvc; Configuration state: Not configured
        at com.sap.esi.esp.service.server.dynamic.DIIServiceRefConfigContextImpl.prepareContext(DIIServiceRefConfigContextImpl.java:275)
        at com.sap.esi.esp.service.server.dynamic.DIIServiceRefConfigContextImpl.<init>(DIIServiceRefConfigContextImpl.java:59)
        at com.sap.esi.esp.service.server.dynamic.DIIContextCreatorImpl.createDIIServiceRefConfigContext(DIIContextCreatorImpl.java:18)
        at com.sap.engine.services.webservices.espbase.client.dynamic.configuration.DIIContextFactory.createDIIConfigurationsContext(DIIContextFactory.java:12)
        at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService_NewInstance(GenericServiceFactory.java:368)
        ... 67 more
    Please help me about this.
    Thanks and Regards,
    Amit Basak

    Hi Amit,
    Create provider system in NWA -> SOA management -> System Connections. After ping is successful go to NWA -> Application Communication and select your DC and assign the provide system for your service configuration group.
    I hope it will works fine as we also did the same.
    - Pradeep

  • ObjectNotExistsException after redeploying an application/DC

    Hi everyone,
    we have a curious problems with our CE 7.2 system. After each redployment we have trouble with the redeployed part. When we are in the Application Communication UI and select the respective component we get an "com.sap.esi.esp.lib.mm.config.exceptions.ObjectNotExistsException". Beside this we cannot use the process that is redeployed because it always shows a the same exception after executing it.
    We looked this behavior up in the internet and found this wiki entry: http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=235969131 In case 1 they described exactly our problem. But if we look and the solution they provide this way:
    1.Update your system as follows:
    u2022For NetWeaver CE 7.2, to SP6 (or later).
    u2022For NetWeaver 7.3, to SP4 (or later).
    2.There is also a workaround to undeploy the application completely, then deploy it, and create the provider assignment again (assign the service to the profile).
    Solution 1 sounds pretty good. But after checking the Support Packages that are available we noticed that SP 6 is not released yet. The release date is stated with October 2011.
    We then checked the second solution and it worked pretty good but it is really annoying to undeploy, redeploy and reconfigure the application each time we make a minor change. Can anybody point us to an easier solution for our problem? Or do we have to wait for SP 6 to get the easy solution?
    Thank you for your help,
    Matthias

    Hi,
    How many Domain Controllers are in the domain? Are they using static IP addresses? If not, please assign static IP addresses on DCs.
    In addition, would you please run DCdiag on a Domain Controller then post out the results?
    Best Regards,
    Amy

  • Use of Application Server

    Hi,
    I am trying to know the difference between Application Server and Web Server.I did lot of research on this..and found the below thread on the same..But..I didnt get it cleared.
    http://forum.java.sun.com/thread.jspa?forumID=31&threadID=759556
    It is given that Application Server serves business logic.But,IIS is a webserver and business logic sits on the same...
    I am not clear with this...
    Can anybody make it clear..What is the use of application server?
    Is Application Server always used along with web server?
    Is there something called Web Application Server?
    Those who worked with an application server..Please make it clear..
    Thanks
    Vasanth_Reddy

    A web server serves one purpose: serving requests from the web (http, ftp)
    An application server has a different purpose: providing a container in which applications can run. When writing those applications you don't really have to worry about transaction management, distributed systems, security... the appserver takes care of it for you.
    Is Application Server always used along with web server?Messaging systems are examples of appserver without webserver.(different applications communicating by sending messages through appserver). If the client of your enterprise application is no web application, but for example a desktop application, you don't need a webserver (unless you're communicating through webservices).
    Is there something called Web Application Server?They're probably not called like that, but most appservers ship with a built in webserver.

  • How is LabView interfaced to a C++ application?

    I'm working with a C++ programmer that has an application that I need to obtain data from and send the data to my LabVIEW application.  I assume that this would be a server/client relationship where I would be the client.  The C++ programmer feels that we should be able to do this by using what is called "named pipes."  I'm not sure how to approach this because I'm not an experienced programmer (which is why I use LabVIEW).
    In case it's relevant, I also have access to LabWindows/CVI v.8.1.1.  I don't know anything about LabWindows, athough I'm willing to learn if I need to.  I have the LabWindows product available because it is part of my quarterly NI Developer Suite update.
    I'd appreciate it if someone would steer me in the right direction by way of a knowledge base or other documentation.  I'm currently using the Professional version of LabVIEW, v.8.5 and Win XP.
    Thanks,
    Dave

    dj143 wrote:
    I'm working with a C++ programmer that has an application that I need to obtain data from and send the data to my LabVIEW application.  I assume that this would be a server/client relationship where I would be the client.  The C++ programmer feels that we should be able to do this by using what is called "named pipes."  I'm not sure how to approach this because I'm not an experienced programmer (which is why I use LabVIEW).
    In case it's relevant, I also have access to LabWindows/CVI v.8.1.1.  I don't know anything about LabWindows, athough I'm willing to learn if I need to.  I have the LabWindows product available because it is part of my quarterly NI Developer Suite update.
    I'd appreciate it if someone would steer me in the right direction by way of a knowledge base or other documentation.  I'm currently using the Professional version of LabVIEW, v.8.5 and Win XP.
    Thanks,
    Dave
    As has been already suggested, I'v written a pipe library for LabVIEW for Windows and made it available at www.openg.org. It's not released and still considered beta but it seems to work for what I needed it.
    As to using the Call Library Node, that would be only feasable if the C++ application would somehow offer a DLL function interface (standard C functions only) or be turned into a DLL althogether.  The Code Interface Node does not provide any advantages to the Call Library Node but has some serious disadvantages nowadays and should not be used for new developments anymore.
    As to other inter-application communication the crudest would be file IO, pipe is interesting but also a bit tricky, and TCP/IP is normally my first choice if I can use it. It's a bit more work on the server side usually than using pipes but it is rock solid, very well proven and last but not least has the additional benefit to support remote communication out of the box if that need ever should arise. And for most purposes it is not slower than pipes.
    Other more obscure things could be shared memory, or DDE (ouch), with the first also not being a standard LabVIEW supported technique (for some good reason actually) and the second being an old and slow legacy techique.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

Maybe you are looking for

  • Material item text not appearing in PO Print Preview

    Hi experts, We have created a new PO type .  We have assigned it with PO text via Spro>Purchasing>Purchase Order > Message > Text for messages > define text for purchase order Maintained text for document header Maintained  text for document item But

  • PowerPC G5 iMac only booting up in Safe-mode - Help!

    In July of 2005, I purchased my PowerPC G5 20" iMac, 2.0GHz, +260 GB harddrive and 2 GB of DDR SDRAM. It has been running so great that I even upgraded to Leopard OS 10.5.6 in June of 2011. However in Nov. 2011, the computer would freeze upon start-u

  • Problem with nvidia video card GTX670 in PS CC

    I have been using PE10, but have just installed Photoshop CC v. 13.1.2 x64.  Although my video card (nvidia GTX 670, 2 gb RAM) is recognized by Photoshop, when I check "use graphics processor" under "preferences/performance" the converted RAW image i

  • The itunes application could not be opened. an unknown error occurred (1301

    I launched iTunes 9.0.1 today and got this error: "The itunes application could not be opened. an unknown error occurred (13014)" An archived tip on the iTunes for Windows forum that suggested deleting the iTunes Library Genius.itdb. That didn't work

  • Uninstalling Quicktime from my Mac

    Hi, I've tried to uninstall quicktime 7.2 from my mac by removing the application and any related files I could find. But when I now try to install quicktime 7.1.6, the installer tells me 7.2 is still installed and it won't install. How can I remove