Corba server objects

Just like we have EJB's which can be accessed by Corba clients using RMI/IIOP,
can we have pure Corba objects on the server side (e.g. java IDL servants) in
Weblogic ? If so, how to deploy them into the Weblogic server? How to bind a Corba
object to JNDI? Or, is it that Weblogic can only support EJB, and RMI server side
objects?
Thanks,
Sashi

Sashi,
We have a similar requirement. What we've done is to launch Orbix (orbixdj) and
NS within a startup class. It's a proxy pattern where the Impl's simply delegate
the service to the EJB. Our key requirements were that:
1) painful - needed to support legacy clients that were using proprietary orbix
bind().
2) support corporate defined IDL for integration with OSS systems
We wanted the services co-located if possible since the proxy was only an
integration technique. Everything seems to be working fine but we haven't put
heavy stress on it yet. This is on Solaris 2.8 with NT & Solaris c++ clients.
Wanting to make it portable I've also tested it on Linux/BEA/JacORB. Worked
fine. I can send a copy of the startup class if this is something similar to
what you're looking for. Would be interested in knowing if anybody else has
tried something similar.
Wayne Lund
Principal Technical Architecture
Emerald Solutions
!www.emeraldsolutions.com
Sashi Reddy wrote:
Andy,
Is there a correlation between weblogic JNDI, and COSNaming services?
How does a C++ client that tries to invoke a server side RMI object
(EJB, or otherwise) do the lookup ? Will it be a corba type lookup?
In that case how does it get translated to JNDI ?
- Sashi.
Andy Piper <[email protected]> wrote:
"Sashi Reddy" <[email protected]> writes:
Just like we have EJB's which can be accessed by Corba clients usingRMI/IIOP,
can we have pure Corba objects on the server side (e.g. java IDL servants)in
Weblogic ? If so, how to deploy them into the Weblogic server? Howto bind a Corba
object to JNDI? Or, is it that Weblogic can only support EJB, and RMIserver side
objects?You can do this, but you have to start an ORB - weblogic does not
provide this support itself. You could use the JDK orb but that's pretty
limited.
andy

Similar Messages

  • CORBA Server Deployment Problem

    Hi,
    I was trying to run the Hello CORBA Tutorial example included
    in Jdeveloper2.0. I got stuck with the "Deploying the CORBA
    Server Object" where Step 7 needed to use 2481 as IIOP port
    and Step 8 needed testing. Since I only configure 1521 TCP
    port in listner, I always got 'Can not find resource' error
    message when testing the connection. (I have pasted these
    two steps from the tutorial below).
    where/How do I configure the IIOP 2481 connection/listner?
    Where do I get IIOP? Please advise. Thanks.
    Mei
    ============================================================
    Step7 : For your ORB Connection Information, provide the host
    name of your database, the Service (SID), and port number(the
    default port for IIOP is 2481). If you do not know the values
    for these fields, contact your database administrator.
    Step 8: Test the connection by clicking Test Connection. The
    message, "Success!" appears if all goes well. Click OK to
    close the dialog box. MyCORBAConnection database connection
    is now selected in the connection list, and summary
    information appears below it. Click Next. ... ...
    ==============================================================
    null

    Hi
    If it is NT machine you can use 'Net8 Configuration Assistant' to
    create a listerner which can take IIOP connections. By default
    the listener listens on port 2481.
    Did you try putting 2481 as port number in the connection manager
    Check out the messages with subject
    ' Invincible iiop connection problem '
    and
    'How to get IIOP to work with port 2481'
    on this forum they have very useful info..
    Also check the Net8 documention for more info.
    regards
    mei (guest) wrote:
    : Hi,
    : I was trying to run the Hello CORBA Tutorial example
    included
    : in Jdeveloper2.0. I got stuck with the "Deploying the CORBA
    : Server Object" where Step 7 needed to use 2481 as IIOP port
    : and Step 8 needed testing. Since I only configure 1521 TCP
    : port in listner, I always got 'Can not find resource' error
    : message when testing the connection. (I have pasted these
    : two steps from the tutorial below).
    : where/How do I configure the IIOP 2481 connection/listner?
    : Where do I get IIOP? Please advise. Thanks.
    : Mei
    : ============================================================
    : Step7 : For your ORB Connection Information, provide the host
    : name of your database, the Service (SID), and port number(the
    : default port for IIOP is 2481). If you do not know the values
    : for these fields, contact your database administrator.
    : Step 8: Test the connection by clicking Test Connection. The
    : message, "Success!" appears if all goes well. Click OK to
    : close the dialog box. MyCORBAConnection database connection
    : is now selected in the connection list, and summary
    : information appears below it. Click Next. ... ...
    : ==============================================================
    null

  • Stateless EJB as CORBA callback objects

    I am trying to have an EJB working as a client of an external CORBA system that provides
    an asynchronous interface. This means the EJB has to provide the CORBA server with
    a Callback object implementing a particular CORBA interface. I'd like to have the
    EJB directly implement that interface, and use a reference to its remote interface
    as the object I pass in the method call: is it possible in some way? Right now I've
    tried passing context.getEJBObject()and I receive the following exception:
    java.rmi.RemoteException: EJB Exception: ; nested exception is: org.omg.CORBA.BAD_OPERATION:
    The delegate has not been set! minor code: 0 completed: No
    org.omg.CORBA.BAD_OPERATION: The delegate has not been set! minor code: 0 completed:
    No
    at org.omg.CORBA.portable.ObjectImpl._get_delegate(ObjectImpl.java:55)
    at com.inprise.vbroker.orb.ORB.getDelegate(ORB.java:1328)
    at com.inprise.vbroker.orb.CDROutputStream.write_Object(CDROutputStream.java:1494)
    at weblogic.iiop.UtilDelegateImpl.writeRemoteObject(UtilDelegateImpl.java:326)
    at javax.rmi.CORBA.Util.writeRemoteObject(Util.java:110)
    at Bank._AccountStub.balanceAndCallback(_AccountStub.java:87)
    at it.altoprofilo.mcss.prove.CorbaClient1EJB.getBalanceWithCallback(CorbaClient1EJB.java:99)
    at it.altoprofilo.mcss.prove.CorbaClient1EJB_4jr201_EOImpl.getBalanceWithCallback(CorbaClient1EJB_4jr201_EOImpl.java:78)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.sun.forte4j.j2ee.ejbtest.webtest.InvocableMethod$MethodIM.invoke(InvocableMethod.java:232)
    at com.sun.forte4j.j2ee.ejbtest.webtest.EjbInvoker.getInvocationResults(EjbInvoker.java:97)
    at com.sun.forte4j.j2ee.ejbtest.webtest.DispatchHelper.getForward(DispatchHelper.java:190)
    at jsp_servlet.__dispatch._jspService(__dispatch.java:116) at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

    Perhaps you can find the resolution for your problem
    in these documents:
    http://download-east.oracle.com/docs/cd/B10501_01/java.920/a96656.pdf
    http://download-east.oracle.com/docs/cd/B10501_01/java.920/a96659.pdf
    [email protected]
    Joel P�rez

  • Connections to a CORBA server

    Hi,
    We have developed the following for an action system written entirely in Java:
    - SQL Server database
    - CORBA server (connects to db using JDBC/ODBC)
    - Applet client connecting to server using CORBA technology.
    When we access the applet from the local computer using Internet Explorer everything works as it should, but when we access it from another computer in the network, a CORBA exception is thrown.
    Example: All services (NameService, CORBA server, webserver, etc) run on computer D200-01. When we access the website with the applet from this computer and type http://D200-01:8080/index.html in IE we get an applet and works as it should (Object transfer between server and client). Now, when we connect to the same url from D200-02, this exception is thrown.
    Could anyone help us.
    Many thanks!

    I am presently running an applet that is operating as both
    a corba server and a corba client.
    I am having a little problem with the corba server, but
    the client works find.
    What is the corba exception?
    I have found that java security policies, browser and
    JRE are all very important in this type of development.
    We are developing for mozilla (0.9.7) with JRE 1.4.
    We use the JRE policy tool to set the policy file as
    grant codeBase "http://192.168.1.27:8080/lms1/*" {
    permission java.security.AllPermission;
    We have to set the JRE ControlPanel to enable the
    -Djava.security.manager and
    -Djava.security.policy=http://xxx.xxx.xxx.xxx:port/location of policy file
    I think the JRE control panel is very important.
    You are probabaly failing on a java access violation but
    continuing through it. This will inhibit you from getting
    the correct object reference from the nameserver.
    When you try to connect with the bogus reference,
    you will then get a CORBA exception.
    Take a look at the JRE security settings.
    Mark

  • Iam trying to acces Remote corba Server

    im trying to access Remote corba Server from beans in WLS.
    the client program is corba client. When i ever that JSP page Excuted ,
    it is not able to find Remote Corba Server...what should i add to access
    that Corba Server.
    what classpath should i add in WLS.
    is there any examplein which corba client from bean call Remote Corba
    Server
    thanks
    khaleel.

    1)i start WLS by runnig "startWeblogic" in this file i set java_home =.\jre1_2\jre ..if i run using this
    ***orb class = class com.inprise.vbroker.orb.ORB id diplayed
    Error in binding Corba objects
    org.omg.CORBA.OBJECT_NOT_EXIST:
    Could not locate the following POA:
    poa name : /rx_agent_poa
    minor code: 0 completed: No
    Mon Oct 09 18:06:41 CDT 2000:<E> <ServletContext-General> Servlet failed with Exception
    2) but if i run the WEBLogic by seting java_home="jdk1.3"
    i get this out put
    ***** orb class = class com.sun.corba.se.internal.iiop.ORB
    java.lang.NoClassDefFoundError: com/inprise/vbroker/CORBA/portable/ObjectImpl
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:426)
    at weblogic.boot.ServerClassLoader.findLocalClass(ServerClassLoader.java
    :334)
    at weblogic.boot.ServerClassLoader.loadClass(ServerClassLoader.java:102)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
    at PreQual.PreQualManager.qualifyService(PreQualManager.java:66)
    at PreQual.Main.main(Main.java:40)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
    at weblogic.t3.srvr.StartupThread.doWork(StartupThread.java:148)
    at weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java
    :62)
    Tue Oct 10 00:23:01 CDT 2000:<E> <WebLogicServer> Failed to invoke startup class
    qualify=PreQual.Main
    java.lang.NoClassDefFoundError: RX/_preQualifyStub
    at PreQual.PreQualManager.qualifyService(PreQualManager.java:66)
    at PreQual.Main.main(Main.java:40)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
    at weblogic.t3.srvr.StartupThread.doWork(StartupThread.java:148)
    at weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java
    khaleel wrote:
    when i run the sample program as startup it prints
    *** orb class = class com.inprise.vbroker.orb.ORB
    Eduardo Ceballos wrote:
    When you run the sample program as a startup, what does the following print?
    //Initialize the orb
    org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(args,null);
    System.out.println("\n\n***** orb class = "+orb.getClass());
    Also, why is the 1.2 jre involved? You wrote that you've added an orb.properties file, in
    " i added orb.properties file in weblogic\jre1_2\jre\lib "
    I think that, for what you are trying to do, it might work better that you run in 1.2.
    In 1.3, you may also need to reset the property value for javax.rmi.CORBA.UtilClass and javax.rmi.CORBA.PortableRemoteObjectClass. If these are weblogic classes, set them to com.sun.corba.se.internal.javax.rmi.CORBA.Util and com.sun.corba.se.internal.javax.rmi.PortableRemoteObject, respectively. In
    1.3, we set them to to classes that only work to support our implementation of rmi-iiop.
    khaleel wrote:
    hi
    thanks for your help in advance...
    1)ya, i had set jspcomplier classpath and Servlet's loader's class path.
    i using WLS5.1 and jdk1.3... visibroker4.1....
    these are jsp.properties in properties page...
    weblogic.httpd.register.*.jsp=\
    weblogic.servlet.JSPServlet
    weblogic.httpd.initArgs.*.jsp=\
    pageCheckSeconds=1,\
    compileCommand=D:/jdk1.3/bin/javac.exe,\
    workingDir=E:/weblogic/myserver/classfiles,\
    verbose=true
    (2) i wrote standalone test program to comminicate with Corba Server, and
    executed it outside WLS and it runs succesfully... here is the code from
    that stand alone program which comunicates the server
    //Initialize the orb
    org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(args,null);
    // Get the preQualify Id
    byte[] preQualifyId = "Qualify".getBytes();
    RX.preQualify qualify = RX.preQualifyHelper.bind(orb, "/rx_agent_poa",
    preQualifyId);
    (3) when i tried this in startup class it gives this error
    Error in binding Corba objects
    org.omg.CORBA.OBJECT_NOT_EXIST:
    Could not locate the following POA:
    poa name : /rx_agent_poa
    minor code: 0 completed: No Mon Oct 09 23:26:51 CDT 2000:<E>
    <WebLogicServer>
    Failed to invoke startup class qualify=PreQual.Main
    (4) and when i tries this in servlet it again gives same error as in (3)
    more Info ---
    i added orb.properties file in weblogic\jre1_2\jre\lib
    thanks in advance
    your help will be appriciated..
    thanks
    khaleel

  • Create a site collection with dedicated content db with the help of server object model

    Hi,
     I have a requirement to implement a create a new site collection with dedicated content db. i have got 2 PowerShell scripts which does the same. first i will  create a content  db and then create the sitecollection with contentdb
    parameter with the created contentdb name.
    Now the site collection created must contain few doc libs and few splists with look up columns, people picker data type, multiline of text, single line of text,choice field. hence i am thinking the below approach:
     1) create a web template and include sp doclibs, splists , site columns in this.
     2) i am thinking of a ui design to create the below:
     These are called "projects" which is actually the site collection with the doclibs, splists and must be created by sharepoint admin on click of a link in my landing page.end users access these "projects"  aka 
    "site collections" and uploads the documents into these projects and collaborate.
    so my question is :  On click of a button can I create a site collection with a dedicated content db based on the web template created with the  hel of  server  object model?
    The other approach is on click of this button call the power shell script which accepts the sitecollection name and contentdb name as parameter. is this possible in  server obj.model ?
    passing a paramter from code behind- visual web part ui to power shell ?
    and it should create the site collec based on the web template and create the content db.
    my doubt #3 : will it not throw error "request timed out" when creating the site collec and contentdb from ui ?

    Try below:
    http://sharepoint.stackexchange.com/questions/21606/programmatically-create-a-site-collection-in-an-existing-mounted-content-databa
    PowerShell is just a wrapper for the object model. You shouldn't need to reference PowerShell in your feature, just create the new site collection with C# inside your feature. There's a blog post here that illustrates some code that may get you started.
    http://blog.mastykarz.nl/programmatically-creating-sites-site-collections-custom-web-template/
    http://blogs.msdn.com/b/vesku/archive/2014/06/09/provisioning-site-collections-using-sp-app-model-in-on-premises-with-just-csom.aspx
    # Enable the remote site collection creation for on-prem in web application level
    # If this is not done, unknon object exception is raised by the CSOM code
    $WebApplicationUrl = http://dev.contoso.com
    $snapin = Get-PSSnapin | Where-Object {$_.Name -eq 'Microsoft.SharePoint.Powershell'}
    if ($snapin -eq $null)
    Write-Host "Loading SharePoint Powershell Snapin"
    Add-PSSnapin "Microsoft.SharePoint.Powershell"
    $webapp=Get-SPWebApplication $WebApplicationUrl
    $newProxyLibrary = New-Object "Microsoft.SharePoint.Administration.SPClientCallableProxyLibrary"
    $newProxyLibrary.AssemblyName = "Microsoft.Online.SharePoint.Dedicated.TenantAdmin.ServerStub, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"
    $newProxyLibrary.SupportAppAuthentication = $true
    $webapp.ClientCallableSettings.ProxyLibraries.Add($newProxyLibrary)
    $webapp.Update()
    Write-Host "Successfully added TenantAdmin ServerStub to ClientCallableProxyLibrary."
    # Reset the memory of the web application
    Write-Host "IISReset..."
    Restart-Service W3SVC,WAS -force
    Write-Host "IISReset complete."
    If this helped you resolve your issue, please mark it Answered

  • Data Migration - SSIS Transfer SQL Server Objects Task or something else

    Can someone please kindly help me with this.
    Scenario
    I have a requirement to transfer selected tables and views (with a specific schema) between two databases which reside in two different servers. In the interest of clarity I will call my databases DB_A and DB_B respectively. Please note that these databases
    are NOT on the same server.
    Transfer of these objects (tables & views) happens once a month. 99% of the objects in question will be of the same name and schema between the two databases as the ones migrated from the previous month. However, metadata definitions may change on DB_A
    and those changes are supposed to be reflected on DB_B along with the associated data. This therefore means that each time a transfer/migration happens; objects in DB_B are dropped first and completely replaced by objects from DB_A.
    Problem
    What is the best way to achieve this?
    My first attempt has been a go on the Transfer SQL Server Objects Task
    in SSIS. The problem that I have is that when using Transfer SQL Server Objects Task
    I don’t know how to filter objects in DB_A so that only objects with a specified schema can be migrated.
    Transfer SQL Server Objects Task appears to be the best solution to me to accomplish my requirement but I can’t filter the desired objects by schema. Someone suggested using C# but my C# skills are not that eloquent.
    May someone kindly help please, or possibly suggest any other way which can be handy to fulfil my requirements.
    Many thanks,
    Mpumelelo

    Hi Prashanth
    Thanks for your response. There is one problem though in my case. I’m sorry I forgot to mention this in the original question. When the objects are moved from BD_A to DB_B the schema in DB_B changes. That is, schemas are not the same between the source and
    the destination database. How do I handle that with the solution that you have suggested?
    Many thanks,
    Mpumelelo

  • Getting 'File not found' error while using server object model code

    Hi,
    I am using server object model code to pull list data in a console application. My machine has standalone installation of SP 2010. I am getting error 'File Not Found', however the same operation is working fine with client object model code.
    Code I am using:
    string strURL=http://servername/sites/sitename;
    SPSite siteObj=new SPSite (strURL); //getting error here.
    I have already checked the below,
    1. Framework being used is 3.5.
    2. I have proper access to site.
    3. Running visual studio as admin.
    Any help is much appreciated.
    thanks
    Tarique
    thanks and regards Tarique Aslam

    Hello Tarique ,
    Couple of pints need to check:
    1. User running the console application needs to have at least read permission to the SharePoint databases
    2. Set application by changing the "Platform target:" option on the "Build" to "Any CPU"
    Also refer this similar thread:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/2a419663-c6bc-4f6f-841b-75aeb9dd053d/spsite-file-not-found
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • PowerPivot: data no longer available due to "the server object is not connected."

    Hi,
    I'm using Excel 2013 for building a PowerPivot model. Currently 2 table are inserted (txt files) which are related by a unique customer ID. 
    At for me random moments the connections with the files gets lost and no data is shown. Nevertheless, the number of rows and column headers are still visible. If I go the 'existing connections' and choose 'refresh' I got the following errror: "We couldn't
    refresh the connection, please go to existing connections and verify the connect to the file or server". If I try to edit the data ('edit connection') I see immediatly a preview of the date. But when I choose save I receive the following error: "unhandeld
    exception has occured in a component in your application ... The server object is not connected."
    Remarkebly I never had this problem with the same data in Excel 2010. Anyone an idea what could cause this problem and a way to work around this?
    Thanks in advance,
    Rolf

    I have the same error after installed Dec.9 updates, and then other thread suggest me remove them. it worked.
    Good luck. 

  • Is there any way to activate the keep identity setting when using a Transfer SQL Server Object Task?

    Is there any way to add the "Keep Identity" option to the tables selected for transfer in a Transfer SQL Server Object Task?  It seems that would be very useful, yet I can't find an easily available setting for it.  I would prefer to
    accomplish this within the Transfer SQL Server Object Task since it can copy any new fields added to the source tables, as opposed to having to rebuild a custom Data Flow Task any time a table structure is altered.  I thought setting "CopyPrimaryKeys"
    to True would do the trick, but I found that only ensures that the column settings are transferred; when the transfer happens, the destination id column is populated based on the specified seed and increment value, not what's actually in the source table. 
    I'd like to point out that replication isn't really an option here. This is a package that runs a few times a day to keep some data on our website up to date with data in our protected corporate environment.

    IIRW there is FastLoadKeepIdentity specifies
    whether to keep an identity in OLEDB destination 
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Can we write client object model code with Server object model?

    Hi everyone,
    I have to create one timer job using client object model (C#) in Sharepoint 2010 template on feature activation. Is it possible to write the code of client object in sharepoint empty project to create timer job? If yes/no? then why?
    Thanks in advance!!!

    Hi ShindeK,
    Yes you can used CSOM in Sharepoint but Timer jobs run directly on the server. The Client Side Object Model is a wrapper that brokers its calls to the server via the built in web services that SharePoint provides.
    You will not get any performance gains in this scenario using CSOM. You should use the full server object model of SharePoint
    SharePoint 2010 also has three Client Object Models (Managed, Silverlight, JavaScript) which are meant to be used by code accessing SharePoint remotely.
    --You can also used powershell script in timer job
    Chekc the link which cann help you step by step CSOM in Sharepoint timer job
    http://www.youtube.com/watch?v=Z7wHj-bSk0g
    You can also try the below link....
    https://bramdejager.wordpress.com/2013/08/02/using-csom-and-powershell-to-query-sharepoint-online-or-on-premise/
    http://stackoverflow.com/questions/3656920/run-sharepoint-timer-jobs-from-powershell
    Please mark the Answer and Vote me if you think that it will help you to resolved your issue

  • RMI-IIOP client - CORBA Server

    I already have a CORBA server in C++ which has already been written. I am trying to develop an RMI-IIOP client which would talk to this CORBA Server.
    The CORBA server has several interfaces that I would like to use with my RMI-IIOP client. How do I proceed?? Can somebody give me an example of an RMI-IIOP client? Basically my question is: how do I take the IDL and build an RMI-IIOP client with it???

    Hello
    I already have a CORBA server in C++ which has already
    been written. I am trying to develop an RMI-IIOP
    client which would talk to this CORBA Server.
    The CORBA server has several interfaces that I would
    like to use with my RMI-IIOP client. How do I
    proceed?? Can somebody give me an example of an
    RMI-IIOP client? Basically my question is: how do I
    take the IDL and build an RMI-IIOP client with it???The steps to do are the following:
    * Creating the Remote interface
    * Using the rmic compiler to genarate the IDL and the client stub.
    * Generating stub and skeleton of the C++ server using that IDL (the one you already made is no longer compatible)
    * Bulding up the new C++ server
    * Using a nameservice (tnameserver for example) and binding your server to that.
    * Writing the RMI-IIOP client
    I proceeded like this (using Visibroker 4.5 on the server side) and I was able to do it... but as you can see from my last post, I wasn't able to pass Strings from the client to the server.
    Bye

  • RMI server object lookup in a session bean

    Hi all,
    I am getting MarshalException when I call java.rmi.Naming.lookup() in a session
    bean. Following is the code and exception. Please note that I am using java.rmi
    package instead of weblogic.rmi and that both the session bean and RMI server
    object (a startup class) is deployed on the same machine.
    Thanks for your help in advance.
    // a simple, replica-aware session bean method
    // some code here
    try {
    MediatorInterface mediator = (MediatorInterface) java.rmi.Naming.lookup("rmi://localhost:7001/TestMediator);
    catch (Exception e) {
    // log the exception
    The exception:
    java.rmi.MarshalException: Error marshaling transport header; nested exception
    i
    s:
    java.io.EOFException
    java.io.EOFException
    at java.io.DataInputStream.readByte(DataInputStream.java:224)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:206
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:174)
    at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:318)
    at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
    at java.rmi.Naming.lookup(Naming.java:84)
    at test.mgmtop.CreateNetworkOpHandler.execute(CreateNetworkOpHandler.jav
    a:88)
    at test.mgmtop.CreateNetworkOpHandler.perform(CreateNetworkOpHandler.jav
    a:28)
    at test.ejb.MgmtServiceBean.create(MgmtServiceBean.java:57)
    at test.ejb.MgmtServiceSession_idi8yo_EOImpl.create(MgmtServiceSession_i
    di8yo_EOImpl.java:46)
    at test.ejb.MgmtServiceSession_idi8yo_EOImpl_WLSkel.invoke(Unknown Sourc
    e)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:346)
    at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerR
    ef.java:114)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:300)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
    eManager.java:762)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
    a:295)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
    .java:30)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)

    Hi Pyung,
    How about trying this instead:
    InitialContext ctx = new InitialContext();
    MediatorInterface mediator = (MediatorInterface) ctx.lookup("TestMediator");
    This assumes your startup class binds the Mediator to the JNDI name "TestMediator".
    - Matt
    Pyung Yoon wrote:
    Hi all,
    I am getting MarshalException when I call java.rmi.Naming.lookup() in a session
    bean. Following is the code and exception. Please note that I am using java.rmi
    package instead of weblogic.rmi and that both the session bean and RMI server
    object (a startup class) is deployed on the same machine.
    Thanks for your help in advance.
    // a simple, replica-aware session bean method
    // some code here
    try {
    MediatorInterface mediator = (MediatorInterface) java.rmi.Naming.lookup("rmi://localhost:7001/TestMediator);
    catch (Exception e) {
    // log the exception
    The exception:
    java.rmi.MarshalException: Error marshaling transport header; nested exception
    i
    s:
    java.io.EOFException
    java.io.EOFException
    at java.io.DataInputStream.readByte(DataInputStream.java:224)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:206
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:174)
    at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:318)
    at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
    at java.rmi.Naming.lookup(Naming.java:84)
    at test.mgmtop.CreateNetworkOpHandler.execute(CreateNetworkOpHandler.jav
    a:88)
    at test.mgmtop.CreateNetworkOpHandler.perform(CreateNetworkOpHandler.jav
    a:28)
    at test.ejb.MgmtServiceBean.create(MgmtServiceBean.java:57)
    at test.ejb.MgmtServiceSession_idi8yo_EOImpl.create(MgmtServiceSession_i
    di8yo_EOImpl.java:46)
    at test.ejb.MgmtServiceSession_idi8yo_EOImpl_WLSkel.invoke(Unknown Sourc
    e)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:346)
    at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerR
    ef.java:114)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:300)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
    eManager.java:762)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
    a:295)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
    java:30)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)

  • CMC tool raise http 404 error when viewing user security on server object.

    Description of Problem or Question:
    In investigating an issue promoting an LCM job, I attempted to use the CMC tool to look at the user security on a server object. When I executed the command the tool raised an error.
    HTTP Status 404 - /CmcAppActions/jsp/Shared_Rights/rights.face.
    type: Status Report
    message: /CmcAppActions/jsp/Shared_rights/rights.face
    description: The requested resource (/CmcAppActions/jsp/Shared_Rights/rights.face) is not available.
    Product\Version\Service Pack\Fixpack (if applicable):
    Business Objects XI 3.1 SP2
    Apache Tomcat 5.5.20
    Java 6.0.170
    Relevant Environment Information (OS & version, java or .net & version, DB & version):
    WIN Server 2003  Enterprise SP2
    Sporadic or Consistent (if applicable):
    Consistent error
    What has already been tried (where have you searched for a solution to your question/problem):
    I have done some research in service.sap.com and on the Web, but have found nothing concrete other than it appears to be an error in the install of the Tomcat server.
    Edited by: Jon Russell on Jul 9, 2010 12:20 AM

    Hi Alvaro,
    Forgot this thread was open as of yet. There was a solutio but nothing concrete I can offer to th user community. The reason i that this devolved into a Note to SAP and, as I recall, the solution was for a BO consultant to remotely access our development server for BO an bsically do "brain surgery" in the SQL Server db we had supporting BO. It was a difficult issue an eventually required direct intervention from SAP-BO.

  • Preventing garbage-collection of a RMIRegistered server object

    I am developping a client/server RMI application, and keep facing occasional ObjectNotFioundException: no such object in table, when the client tries to invoke method on the server stub retrived from the RMIRegistry.
    The Javadoc and online documentation say this means the server object has been GC'ed since it has been registered in the RMIRegistry.
    Following the advice found at: http://www.nabble.com/java.rmi.NoSuchObjectException:-no-such-object-in-table-t260095.html,
    I register the server in a RMIRegistry I obtain through LocateRegistry.getRegistry(), and not createRegistry().
    But I still face these exceptions.
    Assuming the issue is really due to the server object being garbage-collected, I tried to keep a static reference to the server but it didn't help (the Main class was probably garbage-collected itself).
    As a last hope, I've set up a "keep-alive" thread in the server VM, that keeps a direct reference to the server object (not the stub), and regularly invokes something on it. With this mechanism I never face the exception.
    This solution looks obviously clumsy.
    Is there a neater way to prevent garbage collection of the server object?
    Note that I use dynamic stubs (Java5-style).

    Without seeing some code, I'm not sure what you are doing. Also the link you supplied is broken.
    You always need to keep a live reference to your implementation class. How you do this is your business. Using a separate thread is over-kill.
    I set a reference to the implementation class in the start up class and use a never ending wait() to make sure the start up class thread (with the main()) lives forever.

Maybe you are looking for

  • Using 8 GB Flash Drive in 2nd gen mini

    I have a 2nd gen mini and recently the 4 GB hard drive died. I read that these can also use Flash Memory in place of the drive. I installed it using IFIXIT.COM's directions and everything worked out fine putting it back together but it still shows a

  • I can't update my podcasts! (error 39)

    Hi, I can't update any of my podcasts after I downloaded ituned 7.1 (the newest one) and it says that an unknown error has occured (error 39 . Please can you help me! thanks, chocular1

  • Sigh--- lost application data upon update to 2.1

    Hi. I just made the 'mistake' of updating my software this evening. I am now experienced in the frustration of "I've lost my application data!". But only on SOME apps. The other ODD thing is: I just did a safety sync moments before the update. I trie

  • Cannot get Leopard to install on Macbook

    I am trying to install Leopard on my Intel Macbook. The install disk told me I could not install Leopard on the macbook HD and told me to repartition in GUID format? However when I looked into this via disk utility I saw no option for this. The drive

  • Am I misunderstanding Useage

    I have infinity 1 and my Useage limit is 40 gigabytes. (I will try to use proper words rather tha GB or gB or gb). My normal average useage per month as advised by BT's monitor is approx. 10.5 gigabytes. This month as of the 29 September it is 27.72