Weblogic and Websphere communication!!

Hi Friends,
I have an EJB HelloWorld deployed on both servers(Weblogic and Websphere) and these beens are accessible easily from their respective client servlets, which is the easy part.
Now what I want to try is access the bean's methods on Weblogic server from a bean on Websphere server and vice versa. This is where I want some ideas from the gurus please.
e.g. hello() method of the EJB (HelloWeblogic) in Weblogic server prints the message "Hello from Weblogic" and the hello() method of the EJB (HelloWebsphere) in Websphere server prints the message "Hello from Websphere". Now I want to know what do I need to do so that I am able to execute hello() of the HelloWeblogic EJB, from HelloWebsphere EJB and vice versa.
I am also new to EJB, but I think I am making my way slowly.
Any help/ideas/code samples would be really appreciated.
Please feel free to ask any questions.
Regards
Rajeev

As far as I can see the standard way would be to lookup
the ejbs-home in the others JNDI context. After that proceed
as you are used to.
Troubles (or some unlikely behaviours) could occur if your beans are
served by the same interfaces.
But Dynamic Stub loading via RMI should prevent you from any problems with non existing stub/skels, etc.
You could only run into problems when stub/skel-implementation-classes where named equally (by full qualifier) in both app-servers. This should never happen. (weblogic.SomeWLStubClass != ...websphere...SomeStubClass)
Read RMI-Specification for further details on dynamic class-loading in
the RMI process:
http://java.sun.com/products/jdk/1.1/docs/guide/rmi/spec/rmi-arch.doc.html
or j2ee-tutorial on how to resolve JNDI-Contexts.
Hope it helps!
Alexander Sack

Similar Messages

  • Weblogic and websphere colocated?

    Has anyone ever had any experience running weblogic and websphere on the same machine? If so, what were your issues?
    Thanks in advance.

    Web sphere has a wide robust features which weblogic lacks some. Like the load balancing and admin console, clustering .
    In Weblogic In many cases, code for applications deployed on WebLogic Server is arbitrarily structured and depends on the build process to make sense of it all. The implication of this is that existing code organization will very likely have to be changed as part of the migration effort. This may be very difficult (or even impossible) to accomplish while maintaining links to your code's history. Some organizations choose simply to archive their history and start fresh.
    In WebSphere, Packaged with each module is an XML deployment descriptor that describes the organization of the components in the module and how they are configured at run time. hence applications can be migrated easily.

  • Weblogic and websphere

    hi
    could anybody tell what is the basic difference between weblogic and websphere.
    thanks
    suru

    Web sphere has a wide robust features which weblogic lacks some. Like the load balancing and admin console, clustering .
    In Weblogic In many cases, code for applications deployed on WebLogic Server is arbitrarily structured and depends on the build process to make sense of it all. The implication of this is that existing code organization will very likely have to be changed as part of the migration effort. This may be very difficult (or even impossible) to accomplish while maintaining links to your code's history. Some organizations choose simply to archive their history and start fresh.
    In WebSphere, Packaged with each module is an XML deployment descriptor that describes the organization of the components in the module and how they are configured at run time. hence applications can be migrated easily.

  • Connection Weblogic and Websphere MQ

    Can anybody help me how to connect Weblogic and Websphere MQ?

    If you are using the foreign JMS server then create the binding file for MQ. The binding file would contain host and port and other required details.
    Weblogic could understand the configuration details in that.

  • EJB communication between weblogic and websphere

    Hello:
    I have weblogic 7.1 instance running in machine A and websphere running in machine B. I want to make a call to the ejb deployed from weblogic to websphere. Any experience in this would be very helpful. Or pl. post the procedure.
    Thx in advance.

    I don't think that there is any magic here, although I've never tried it.
    All you need is the compiled EJBHome and EJBObject interfaces in the
    classpath of the calling EJB, get an InitialContext in the JNDI namespace of
    the target EJB container using the name of the JNDI InitialContext Factory,
    do a lookup on the bean making sure to do a PortableRemoteObject.narrow when
    you are casting the Home stub with the vendor specific version of
    PortableRemoteObject(and that may be the real trick), call the appropriate
    create method, and you are rolling.
    I guess the question becomes how to make sure that when you are calling
    PortableRemoteObject.narrow on the Home stub, that you get the vendor
    specific version for the EJB container and JNDI namespace from which you are
    doing the lookup.
    I guess the answer is, I'm guessing. Have you tried it?
    bill
    "nebs om" <[email protected]> wrote in message
    news:30035468.1103738722864.JavaMail.root@jserv5...
    Hello:
    I have weblogic 7.1 instance running in machine A and websphere runningin machine B. I want to make a call to the ejb deployed from weblogic to
    websphere. Any experience in this would be very helpful. Or pl. post the
    procedure.
    >
    Thx in advance.

  • Weblogic and Websphere intergration

    Hi,
    I would like to make a call from EJB bean deploeyd on WLS8.1 to another
    bean deployed on Websphere 6.0 but I have no idea how to do that.
    When I do sth like that in EJB in WLS:
    InitialContext tx = new InitialContext();
    Object obj =
    (Object)tx.lookup("corbaname:iiop:localhost:2809#comarch/test/ejb/BasicCalculator");
    I get the following exception:
    javax.naming.NameNotFoundException: Exception in lookup.:
    `comarch/test/ejb/Basi
    cCalculator' could not be found. Root exception is
    org.omg.CosNaming.Nami
    ngContextPackage.NotFound:
    IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
    at
    org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(NotFoundHe
    lper.java:72)
    at
    org.omg.CosNaming._NamingContextStub.resolve(_NamingContextStub.java:
    251)
    at
    weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:187)
    at
    weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:174)
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at examples.HelloBean.hello(HelloBean.java:71)
    BasicCalculator bean is deployed on websphere and websphere runs on
    localhost.
    What should i do to get it running?
    Any help appreciated.

    looser0 <[email protected]> writes:
    BasicCalculator bean is deployed on websphere and websphere runs on
    localhost.
    What should i do to get it running?
    Any help appreciated.This definitely works but there have been several patches to both
    products to support things well. First of all check what name you
    should actually use for websphere - I have a feeling that it has some
    bizarre prefix on all of its names. Next make sure you are running
    with WLS 8.1sp4. I don't know what version of WebSphere 6.0 you need -
    I know there were fixes in WAS 5.1.3.
    andy
    --

  • Weblogic and Websphere IIS plugin coexistence

    Hi Folks,
    I have a customer who is planning to migrate part of their webapps from websphere to weblogic, however they would like to share the same IIS webfarm for the existing appservers farms ... I wonder if anyone know how the appservers plugins will behave if I have both BEA ISSProxy and IBM WebSphere IIS plugin on the same server ... anyone can share experience on this? Is it even supported?
    BTW ... Weblogic is 8.1SP4 and WebSphere is 5.1 ...
    Thanks,
    Juan Pablo Chen

    Sure.. why wouldn't it be?
    If you are using 1 IIS instance, which I am assuming you are, just make sure
    you load the iisproxy.dll in high isolation.
    Regards,
    Eric
    "Alan Bub" <[email protected]> wrote in message
    news:[email protected]..
    >
    I have a requirement that I run two weblogic servers on the same box. Theserver
    run the same applications except that they have different port numbers. Iwould
    like to run these both through a single IIS server. Is this possible?
    Thanks
    Alan

  • SSL Between Weblogic and IBM MQ

    Dear All,
    I would like to know the SSL configuration steps between Weblogic and MQ Communication.
    The existing setup is, To put message in MQ, We are using MQ Java API directly. To get message from MQ, We are using JMS API with binding file.
    Now, we are in a position to enable SSL in those communication between Weblogic and MQ. Here Weblogic is Treated as Client & MQ is treated as Server. If any one throw some light here would be greatful for us to enable 2-way SSL.
    In High Level, Initially we planned for One-Way SSL like below,
    1. Create the Trust Store in MQ Server
    gsk7capicmd -keydb -create -db "/var/mqm/qmgrs/WLMQTest/ssl/WLMQTest.kdb" -pw serverpass -type cms -expire 365 -stash -fips
    2. Create Self-Signed Certificate Initially for MQ Server
    gsk7capicmd -cert -create -db "/var/mqm/qmgrs/WLMQTest/ssl/WLMQTest.kdb" -pw serverpass -label ibmwebspheremqwlmqtest -dn "CN=WLMQTest,O=,C=" -expire 365 -fips -sigalg sha1
    gsk7capicmd -cert -extract -db "/var/mqm/qmgrs/WLMQTest/ssl/WLMQTest.kdb" -pw serverpass -label ibmwebspheremqwlmqtest -target "/var/mqm/qmgrs/WLMQTest/ssl/*WLMQTest.crt*" -format ascii -fips
    3. Create the Key Store in Weblogic Server
    keytool -genkey -alias mydomain -keyalg RSA -keystore keystore.jks -keysize 2048
    4. Copy the Public SSL Server Certificate to the Weblogic Server
    Copied the WLMQTest.crt from MQ Server into a directory under Weblogic Server Domain
    The below command list the content of the keystore.jks
    keytool -list -keystore keystore.jks
    Keystore type: JKS
    Keystore provider: SUN
    Your keystore contains 1 entry
    mydomain, Dec 26, 2011, PrivateKeyEntry,
    Certificate fingerprint (MD5): E7:B6:4C:02:A7:DE:A3:66:27:66:38:A1:87:DF:8F:0F
    And tried to import the WLMQTest.crt
    keytool -import -alias mydomain -file WLMQTest.crt -keystore keystore.jks -storepass serverpass
    We got the error like below,
    keytool error: java.lang.Exception: Public keys in reply and keystore don't match
    5. Configuring the Channels.
    Please advice, Is it a right way? Positively expected your valuable comments
    Edited by: user10094300 on Dec 26, 2011 1:17 AM

    Check this:
    http://www.ibm.com/developerworks/websphere/library/techarticles/0510_fehners/0510_fehners.html

  • Weblogic vs Websphere

    I know that this has been asked a few times but I couldn't find any recent comparisons.
    So - my company is going to adopt a J2EE platform and wants to buy an appserver. We've narrowed it down to Weblogic 8.1 or Websphere 5.2
    I know that early versions of Websphere got slated - but can anyone advise on how improved 5.1 is
    Also we are mixed ability team with some newbies to Java. We want to adopt a uniform IDE.
    Any comments on WSAD versus Weblogic Workshop. Are people using othe IDEs alongside either Websphere Server or Weblogic Server
    I like the look of Workshop - but it clearly isn't as big as WSAD - and also Weblogic have introduced the concept of Java Controls which definitely isn't standards based. However our team leader thinks that this could be an easy entry point for less experienced Developers. Any comments on any of these products much appreciated

    Hi,
    I was looking for a comparison against the latest versions of Weblogic and websphere. I was looking at the string of posts and came to a conclusion that you were in the same situation months before and you have nailed your choice as weblogic. Could you please give me some information regarding that?
    Basically am preparing a presentation with performance, scalability, features, ease of development, IDE effeciency, Integration abilities, Webservices capabilities, licensing cost and so on.

  • Weblogic and Webspehere comparison

    Hi All,
    Has any one done comparison between weblogic and websphere ? Can I get
    the details on how these products compare ?
    Thanks
    Prasad

    I'm trying XSQL Servlet version 1.0.0.0 with Weblogic 5.1.
    In my weblogic.properties file I have
    weblogic.httpd.register.*.xsql=oracle.xml.xsql.XSQLServlet
    I also have
    weblogic.httpd.servlet.classpath=d:/weblogic/myserver/servletclasses;d:/xsqlservlet_v1_0_
    0_0/lib;d:/xsqlservlet_v1_0_0_0/lib/oraclexmlxsql.jar;d:/xsqlservlet_v1_0_0_0/lib/oraclex
    sql.jar;d:/xsqlservlet_v1_0_0_0/lib/xmlparserv2.jar;d:/xsqlservlet_v1_0_0_0/lib/classes11
    1.zip
    I have been getting this error:
    java.lang.NoClassDefError: oracle/xml/xsql/XSQLDocHandler ....
    This might be caused by some incorrectly assigned classpath (i.e. does the XSQL Servlet classpath go to the weblogic.httpd.classpath or should it be defined in another path or classpath -- Weblogic seems to have several).
    Also, some init args can be set for servlets. Which args need to be set for the XSQL Servlet?
    In general, what is the configuration with Weblogic?
    null

  • What is the role of J2EE compared with WebLogic and Tomcat?

    Now that J2EE play the role of Web Services Container and Logic Services Container
    What does WebLogic do?and What does Tomcat do?
    Do they collided with each other?

    WebLogic (and WebSphere, JBoss, and Sun ONE) are all J2EE application servers. Each of them has an HTTP server and servlet/JSP engines built-in. They can handle HTML pages, JSPs, EJBs, messaging, transactions, two-phase commit to databases, etc.
    Tomcat is just a servlet/JSP engine with an HTTP server built in. It can handle HTML pages, servlets, and JSPs, but it can't run EJBs for you. If you want to stick EJBs into a servlet or JSP, you'll have to get them from a J2EE app server.
    No, WebLogic is a superset of Tomcat. It has an HTTP server and a servlet/JSP engine, so WebLogic can happily exist without Tomcat.
    If you'd like, you can have both Tomcat and WebLogic. Let Tomcat handle the servlet and JSP requests and leave the EJB enterprise stuff to WebLogic. You might use this arrangement when you'd like to have a Tomcat server running in a DMZ and a WebLogic app server inside the second firewall. Tomcat can then do authentication and forward requests back to WebLogic. - MOD

  • Best application servers: weblogiv and websphere?

    Hi I have heard that if I want to do JSP on NT with IIS the most widely adopted middleware is weblogic and websphere is this true? Which is the most expensive and which is the easiest for a beginner to get to grips with?

    If you are a beginner with JSPs and Servlets, but want to work with the J2EE component model strictly for developer purpose, have a look at Reisen, JBoss, JRun (dev edition), and Tomcat. My preferred container is Tomcat but running with Apache rather than IIS. I've spent one too many times reimaging drives after virus fiascos. If you want to get grips with the two mentioned, check their web sites... the documentation is quite vast.

  • Mule, Weblogic and MQ JMS : deadlock problem

    Dear Oracle community,
    We are hosting our Mule ESB (3.1) application on a Weblogic 10.3 (11g) server and are using IBM Websphere MQ's JMS solution (with libraries version 7.0.1.7).
    The problem we are facing is that JMS connections are created by one of Weblogic's worker (thread) and the close() method for those connections are not necessarily called by the same thread.
    This is bad because from what I know this behavior is undefined from JMS specification
    (see http://docs.oracle.com/cd/E15051_01/wls/docs103/jms/design_best_practices.html#wp1061413 ) and it is a blocker issue in our case because this lead to a deadlock.
    Do someone has any idea how to enforce the fact that the same thread do create and close the connection through Weblogic and/or Mule configuration (without re-implementing the connector) ?
    Thanks in advance for your help,
    Best regards,
    Y.
    PS : I've already posted this question on Mule ESB's forum : http://forum.mulesoft.org/mulesoft/topics/mule_weblogic_and_mq_jms_deadlock_problem
    Edited by: user7428803 on May 14, 2012 2:26 PM

    I hope you found a solution by now, but as an FYI:
    * The JMS specification specifically requires that JMS providers support the ability to call connection.close() and session.close() from an arbitrary thread even when another thread is making calls on these objects. It furthermore goes into some detail about the expected behavior of these calls. The best practices link you cited alludes to this: "The JMS Specification states that multi-threading a session, producer, consumer, or message method results in undefined behavior +except when calling close().+"
    * Depending on your use case, you may not need to use Mule to integrate MQ with WebLogic. WebLogic supports a variety of options for integrating MQ directly without the use of third party tooling. See http://download.oracle.com/docs/cd/E17904_01/web.1111/e13727/interop.htm .
    Tom

  • Websphere Community Server

    Hi All,
    As per the supported platforms -
    "Support of WebSphere and WebLogic Editions
    Network Editions of the Applications Server listed above are NOT supported. The Express Edition of WebSphere and WebLogic application servers are supported. "
    Does this include Websphere Community Server and if so are there any plans to support it in the future?
    Cheers,
    Erik.

    Does Websphere support JEE 1.4 and JAX-RPC?
    Did you try creating an EAR in JDeveloper and deploying to Websphere? any specific errors?

  • Crystal Report 9.0 and Websphere

    hi can any body give me some steps regarding
    integration of crystal report and websphere
    i have already search this forum and i got lot many topics
    regarding this but all were using cyrstal report version 8 and 8.5
    which requires mandatory using IIS server which i dont wont to use
    i want a pure websphere and 9.0 version communication
    i had read the docs whihc states that 9.0 supports but i dont know how?
    can any bosy help regarding this

    here's the report code
    <%@ page contentType="text/html; charset=utf-8" %>
    <%@ page session="true"%>
    <%@ page import="javax.servlet.jsp.*"%>
    <%@ page import="java.util.Locale"%>
    <%@ page import="java.net.*" %>
    <%@ page import="java.text.DateFormat" %>
    <%@ page import="javax.servlet.jsp.JspWriter"%>
    <%@ page import="javax.servlet.http.HttpServletRequest" %>
    <%@ page import="javax.servlet.http.HttpSession" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.data.*" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.application.*" %>
    <%@ page import="com.crystaldecisions.report.web.viewer.*" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.exportoptions.*" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.definition.*" %>
    <!--Code Starts here ........... -->
    <%
    System.out.println("$$$$$$$$$$$$$$$$$$$$$$$$");
    String reportName=(String)request.getAttribute("ReportName");
    String requestNumber=(String)request.getAttribute("RequestNumber");
    String requestNumber="RPT_112";
    System.out.println("********************");
    ParameterField newParameter = new ParameterField();
    ParameterField newField = null;
    System.out.println("@@@@@@@@@@@@@@@@@@@@@@@@@");
    ParameterFieldDiscreteValue newValue = null;
    System.out.println("^^^^^^^^^^^^^^^^^^^^^^^^^^");
    try{
    ReportClientDocument rptClientDoc = new ReportClientDocument();
    //System.out.println("11111111111111111111111111");
    /* Change DCWKS0241AB to the name of Machine where RAS is installed for ex like DCWKS0237 */
    rptClientDoc.setReportAppServer("DCWKS0241AB");
    System.out.println("22222222222222222222222222");
    /* Change this E:\\Crystal\\Reports\\ to the path where your reports are kept */
    String reportPath="E:\\RAS\\Reports\\Percentages.rpt";
    rptClientDoc.open (reportPath, 0);
    rptClientDoc.getDatabaseController().logon("bbva","bbva");
    System.out.println("After Creating the Client Document on the Report");
    /* folowing Code remove any default value to the report and append the request number in the input parameter*/
    newField = (ParameterField)rptClientDoc.getDataDefinition().getParameterFields().getField(0);
    newField.copyTo(newParameter,true);
    newParameter.getCurrentValues().removeAllElements();
    newValue=new ParameterFieldDiscreteValue();
    newValue.setValue(requestNumber);
    newParameter.getCurrentValues().add(newValue);
    /* Just for Testing Purpose
    Values v=newParameter.getCurrentValues();
    IValue iv=v.getValue(0);
    System.out.println("---> "+iv.computeText());
    rptClientDoc.getDataDefController().getParameterFieldController().modify(newField, newParameter);
    /* Specifying the Format */
    PDFExportFormatOptions PDFExpOpts = new PDFExportFormatOptions();
    //Create the ExportOptions object, set the PDF export options, and set the format type to PDF.
    ExportOptions exOpts = new ExportOptions();
    exOpts.setFormatOptions(PDFExpOpts);
    exOpts.setExportFormatType(ReportExportFormat.from_int(ReportExportFormat._PDF));
    System.out.println("After Setting the format");
    System.out.println("Before getting source");
    //Create the ReportExportControl object and set the report source to the report that will be exported to PDF.
    ReportExportControl expViewer = new ReportExportControl();
    System.out.println("Before getting source");
    expViewer.setReportSource (rptClientDoc.getReportSource());
    System.out.println("3");
    //Set the export options to the ReportExportControl object.
    expViewer.setExportOptions(exOpts);
    System.out.println("After Setting the Export Options to the ReportExportControl object.");
    //Set the exported report to display in the browser.
    //The setExportAsAttachment method is set to false by default. If it is set to true the user will be presented with the File Download dialog box to save the exported report to disk.
    expViewer.setExportAsAttachment(false);
    //Export and view the report.
    expViewer.processHttpRequest(request, response, (getServletConfig()).getServletContext(),null);
    System.out.println("After Exporting and viewing the report back in the Browser.");
    //Destroy the control.
    expViewer.dispose();
    catch (Exception e)
    out.write("Error: Open" + e.toString() + "\n");
    %>

Maybe you are looking for

  • Nokia Podcasting v.1.20 bug report: does not disco...

    The version of Podcasting included on current device Software Updates (v. 1.20.0) no longer disconnects wi-fi after performing an automatic download. Previous versions would disconnect wi-fi after it had been used to download podcasts. With the new v

  • Noise correction dissapearence

    Noise correction tab dissapeared in the develop module

  • Requiring selection with cfform and cfselect

    I would like to have CF enforce the required="yes" attrribute of the cfselect tag as the documentation says it should. I've seen this discussed before here, but no resolution. The documentation of the required parameter says: ============ quoted text

  • IBooks PDF's from iPad2 to Mac?

    I have an ipad2 with numerousPDF's in folders within iBooks.  Bought a MacBook Pro last summer and the folders show upon it in iBooks but they are empty. How do I get the PDF's to show in the folders?

  • File missing on iPhone?

    After syncing music has completed my iphone has one less item (song) that what is in my iTunes library. Does anyone know why this is, or are the playlists counted as a file that doesn't actually transfer to the iphone?