Weblogic RMI MarshalledObject equivalent

Has anyone had experience with serializing a WebLogic RMI object for
later usage?
I have a need to take a Weblogic RMI service and serialize it to a
database.
In standard JDK 1.2 RMI, I would do this: (server-side)
interface IFoo implements java.rmi.Remote
class FooImpl implements IFoo extends UnicastRemoteObject
FooImpl myFoo= ...
java.rmi.MarshalledObject javaMarshalledObj= new
java.rmi.MarshalledObject( myFoo ); // MarshalledObject implements
Serializable
ByteArrayOutputStream bytearrayoutputstream = new
ByteArrayOutputStream();
ObjectOutputStream objectoutputstream = new
ObjectOutputStream(bytearrayoutputstream);
objectoutputstream.writeObject( javaMarshalledObj );
byte[] objectAsBytes= bytearrayoutputstream.toByteArray();
However, I cannot find a weblogic equivalent for
java.rmi.MarshalledObject.
I cannot find a weblogic.rmi.MarshalledObject class to use, or a
mechanism to turn a weblogic.rmi.Remote object into a java.rmi.Remote
object.
It seems this must already be done in the WL JNDI implementation-- does
anyone have suggestions on how to perform this conversion?
Thanks!
-Steve Roth, [email protected]

Just a clarification--
I'm looking to turn a weblogic.rmi.Remote object into a
java.io.Serializable object.
I'm looking for the call chain to make this transformation occur.
There is a call chain for java.rmi.Remote:
java.rmi.Remote someRemote= ...
java.io.Serializable someSer= new java.rmi.MarshalledObject( someRemote );
However, I cant find an equivalent chain taking a weblogic.rmi.Remote
object to a java.io.Serializable object since there is no
weblogic.rmi.MarshalledObject.
Thanks!
-Steve Roth, [email protected]
Steve Roth wrote:
Has anyone had experience with serializing a WebLogic RMI object for
later usage?
I have a need to take a Weblogic RMI service and serialize it to a
database.
In standard JDK 1.2 RMI, I would do this: (server-side)
interface IFoo implements java.rmi.Remote
class FooImpl implements IFoo extends UnicastRemoteObject
FooImpl myFoo= ...
java.rmi.MarshalledObject javaMarshalledObj= new
java.rmi.MarshalledObject( myFoo ); // MarshalledObject implements
Serializable
ByteArrayOutputStream bytearrayoutputstream = new
ByteArrayOutputStream();
ObjectOutputStream objectoutputstream = new
ObjectOutputStream(bytearrayoutputstream);
objectoutputstream.writeObject( javaMarshalledObj );
byte[] objectAsBytes= bytearrayoutputstream.toByteArray();
However, I cannot find a weblogic equivalent for
java.rmi.MarshalledObject.
I cannot find a weblogic.rmi.MarshalledObject class to use, or a
mechanism to turn a weblogic.rmi.Remote object into a java.rmi.Remote
object.
It seems this must already be done in the WL JNDI implementation-- does
anyone have suggestions on how to perform this conversion?
Thanks!
-Steve Roth, [email protected]

Similar Messages

  • Questions on Weblogic RMI

    Hi
              I've a few questions on WL RMI that I couldn't figure out from the
              documentation.
              Suppose I have a cluster containing Weblogic servers server1 and server2.
              Server1 hosts an RMI object o1 that is bind to the cluster wide JNDI tree.
              O1 implements remote interface i1 that has a method m1 which takes as an
              argument an object o2 implementing remote interface i2. That is:
              public class o1 implements i1 {...}
              public interface i1 extends weblogic.rmi.Remote {
              public void m1 (i2 _o2);
              public class o2 implements i2 {...}
              public interface i2 extends weblogic.rmi.Remote {...}
              Now if inside server2 I create o2 using the default constructor, lookup a
              reference to o1 and call method m1, will o2 get passed by value or by
              reference? Is there any way to control this? What if I don't use the
              constructor to create the object but the object is hosted in server2 and I
              get a reference to the object using JNDI lookup? In short, how does WL RMI
              decide when to pass an object by reference and when by value.
              I'm trying to increase the scalability of a system by distributing its
              modules as RMI objects to several machines running Weblogic server, and I
              need to know the details on how WL RMI works. The documentation seems to be
              rather inadequate...
              Thanks for reading this far :)
              - Juha
              

    Actually, O2 will always be passed by reference because it is an RMI object
              (i.e., it implements weblogic.rmi.Remote). If O2 were a non-RMI object, it would
              be passed by value if O1 is in a different process and by reference if O1 and O2
              are in the same process.
              Edwin Marcial wrote:
              > My 2 cents on this:
              >
              > I believe in this case, since O2 is a remote object, it will get passed by
              > reference. If it were not a remote object, it would be passed by value.
              >
              > Edwin
              >
              > "Juha Lindström" wrote:
              >
              > > Hi
              > >
              > > I've a few questions on WL RMI that I couldn't figure out from the
              > > documentation.
              > > Suppose I have a cluster containing Weblogic servers server1 and server2.
              > > Server1 hosts an RMI object o1 that is bind to the cluster wide JNDI tree.
              > > O1 implements remote interface i1 that has a method m1 which takes as an
              > > argument an object o2 implementing remote interface i2. That is:
              > >
              > > public class o1 implements i1 {...}
              > >
              > > public interface i1 extends weblogic.rmi.Remote {
              > > public void m1 (i2 _o2);
              > > }
              > >
              > > public class o2 implements i2 {...}
              > >
              > > public interface i2 extends weblogic.rmi.Remote {...}
              > >
              > > Now if inside server2 I create o2 using the default constructor, lookup a
              > > reference to o1 and call method m1, will o2 get passed by value or by
              > > reference? Is there any way to control this? What if I don't use the
              > > constructor to create the object but the object is hosted in server2 and I
              > > get a reference to the object using JNDI lookup? In short, how does WL RMI
              > > decide when to pass an object by reference and when by value.
              > >
              > > I'm trying to increase the scalability of a system by distributing its
              > > modules as RMI objects to several machines running Weblogic server, and I
              > > need to know the details on how WL RMI works. The documentation seems to be
              > > rather inadequate...
              > >
              > > Thanks for reading this far :)
              > >
              > > - Juha
              

  • I have a question about weblogic RMI , how can I resolve it.Thank you

    I have a question about the weblogic RMI .
    I have a program.web services+weblogic RMI +Data Sources When I run the program in the console application.it is ok.But When i run it with the web services(it 'is mean Get some parameter and run the different program).it's fail.The Exception is
    cannot assign instance of yype weblogic.rmi.RMIServices_1033_WLStub to field demo.RMIServer_1033_WLStub.stubinfo of type weblogic.rmi.internal.StubInfo in instance of demo.RMIEsrver_1033_WLStub
    how to resolve .Thank you.

    Hi Charles,
    Parental Controls has always had problems with https sites, no idea if it's fixed in 10.9.x or not.
    When you setup your Mac it shouldv'e made an admin account, are you not running from that account, or did you somehow change it to a Managed account???

  • Weblogic RMI question

    I am trying to implement a basic RMI class, using the example in "Programming Weblogic RMI" book. I used java rmic instead of wls rmic.
    The only difference from the book example is that I am tyring to bind remote object implementation from within a servlet GET/init. I am getting the following exception stack:
    java.security.AccessControlException: access denied (java.io.FilePermission <path>\user_projects\domains\my_domain\servers\my_ms1\tmp\_WL_user\MyApp\6210pw\war\WEB-INF\lib\_wl_cls_gen.jar read)
    at java.security.AccessControlContext.checkPermission(AccessControlConte
    xt.java:323)
    at java.security.AccessController.checkPermission(AccessController.java:
    546)
    I am not using a securitymanager explicitlty in my code, as adviced in the book.
    Please advise, what's going wrong here.

    I am trying to implement a basic RMI class, using the example in "Programming Weblogic RMI" book. I used java rmic instead of wls rmic.
    The only difference from the book example is that I am tyring to bind remote object implementation from within a servlet GET/init. I am getting the following exception stack:
    java.security.AccessControlException: access denied (java.io.FilePermission <path>\user_projects\domains\my_domain\servers\my_ms1\tmp\_WL_user\MyApp\6210pw\war\WEB-INF\lib\_wl_cls_gen.jar read)
    at java.security.AccessControlContext.checkPermission(AccessControlConte
    xt.java:323)
    at java.security.AccessController.checkPermission(AccessController.java:
    546)
    I am not using a securitymanager explicitlty in my code, as adviced in the book.
    Please advise, what's going wrong here.

  • Java.lang.NoSuchMethodError: weblogic.rmi.extensions.WRMIOutputStream

    Hi,
    I'm trying to run examples.jdbc.datasource.simplesql with Weblogic 5.1sp8,
    but am hitting this problem when it executes:
    An exception was caught. javax.naming.NamingException [Root exception is
    weblogic.rmi.ServerError: A Rem
    oteException occurred in the server method
    - with nested exception:
    [java.lang.NoSuchMethodError: weblogic.rmi.extensions.WRMIOutputStream:
    method writeObject(Ljava/lang/Ob
    ject;)V not found]]
    An exception was caught. java.lang.NullPointerException:
    Any pointers would be appreciated.
    Thanks,
    -Triet

    Hi..
    I guess itzz more of the service pack problems.
    Jars built on the later version won't work in the previous version (service packs) of weblogic.
    Try building a jar on the oldest version (service pack) u have and then try deploying it to the later version , i think it won't give u any problems.
    Try it out and let me know if u face any problems

  • Weblogic.rmi.internal.LocalServerRefMissing

    I am Attempting to serialize and deserialize a stateful session
    bean. The deserialization seems to be the problem. I have
    figured out that the line throwing the error is the "readObject"
    line.
    A similar problem was reported on Jan 31 2002, but the solution
    suggested deals with the "getEJBObject" line. I have tryed to
    implement this solution, as you can see below, but since the
    error I am getting is thrown before getting to that line, it
    makes no difference.
    The Exception I am getting is an "InvalidClassException".
    The message reads as follows = "weblogic.rmi.internal.
    LocalServerRefMissing no-arg constructor for class".
    As far as the "no-arg constructor" error goes, as I understand
    it I should not be having that problem. My Session bean
    implements the SessionBean interface and does not explicitly
    extend anything, so by default it extends Object, right?!
    Object has a no-args constructor, so there should be no problem.
    My code is as follows:
    ---SERIALIZATION---
    Handle msaHandle = contributions.getHandle();
    ObjectOutputStream toFile = new ObjectOutputStream(
    new FileOutputStream(handleFile));
    toFile.writeObject(msaHandle);
    toFile.close();
    ---DESERIALIZATION---
    ObjectInputStream fromFile = new ObjectInputStream(
    new FileInputStream(handleFile));
    Handle msaHandle = (Handle) fromFile.readObject();
    //MsaSession contributions =
    (MsaSession) msaHandle.getEJBObject();
    MsaSession contributions = (MsaSession) javax.rmi.PortableRemote
    Object.narrow(msaHandle.getEJBObject(), MsaSession.class);
    fromFile.close();
    I have tried to print "classname" (available in the
    InvalidClassException class), but only get null as the value.
    Anyone have any ideas?
    Matthew

    I am Attempting to serialize and deserialize a stateful session
    bean. The deserialization seems to be the problem. I have
    figured out that the line throwing the error is the "readObject"
    line.
    A similar problem was reported on Jan 31 2002, but the solution
    suggested deals with the "getEJBObject" line. I have tryed to
    implement this solution, as you can see below, but since the
    error I am getting is thrown before getting to that line, it
    makes no difference.
    The Exception I am getting is an "InvalidClassException".
    The message reads as follows = "weblogic.rmi.internal.
    LocalServerRefMissing no-arg constructor for class".
    As far as the "no-arg constructor" error goes, as I understand
    it I should not be having that problem. My Session bean
    implements the SessionBean interface and does not explicitly
    extend anything, so by default it extends Object, right?!
    Object has a no-args constructor, so there should be no problem.
    My code is as follows:
    ---SERIALIZATION---
    Handle msaHandle = contributions.getHandle();
    ObjectOutputStream toFile = new ObjectOutputStream(
    new FileOutputStream(handleFile));
    toFile.writeObject(msaHandle);
    toFile.close();
    ---DESERIALIZATION---
    ObjectInputStream fromFile = new ObjectInputStream(
    new FileInputStream(handleFile));
    Handle msaHandle = (Handle) fromFile.readObject();
    //MsaSession contributions =
    (MsaSession) msaHandle.getEJBObject();
    MsaSession contributions = (MsaSession) javax.rmi.PortableRemote
    Object.narrow(msaHandle.getEJBObject(), MsaSession.class);
    fromFile.close();
    I have tried to print "classname" (available in the
    InvalidClassException class), but only get null as the value.
    Anyone have any ideas?
    Matthew

  • Error when trying to acess a remote bean ??(weblogic.rmi.UnmarshalException

    hi,
    i have a component (with weblogic 5.1) one one system (say A).
    I have an application on other systen (say B) which must connect to that component and insert data in the database.
    when i am trying to acces
    i get this error...
    Exception javax.naming.CommunicationException [Root exception is weblogic.rmi.UnmarshalException: Unmarshalling return
    - with nested exception:
    [java.lang.ClassNotFoundException: class com.fn.trading.TDorderVettingSessionEJBHomeImpl_ServiceStub previously not found]]
    My Bean class Name is TDorderVettingSessionEJB.class in a package com.fn.trading..
    when i am running the application on the same system A the code is working. but giving priblem when accessed with system B.
    i tried to copy the bean class files in the system B also and kept in classpath..but still it did not work...
    regards
    sowjanya

    Set property weblogic.system.enableUnsafeClassloading=true

  • Java.lang.ClassCastException: Cannot narrow remote object weblogic.rmi.inte

    Hi,
    I am trying to deploy ejb3.0 on weblogic 10 server. I am able to find the JNDI name of the stateless session bean correctly, but getting an exception while narrowing it down. My ejb3.0 client is a standalone java client. I am trying to access the stateless session ejb3.0 bean.Please help me. i have been trying it for many days.
    thanks in advance,
    Sanjeev
    [sanpraka@localhost certEjb]$ java -cp ./:/usr/weblogic/bea/wlserver_10.0/server/lib/weblogic.jar:/usr/weblogic/bea/wlserver_10.0/server/lib/wlclient.jar com.titan.clients.Client
    Object is weblogic.rmi.internal.BasicRemoteRef - hostID: '5337880647112897730S:127.0.0.1:[7001,7001,-1,-1,-1,-1,-1]:wl_server:examplesServer', oid: '302', channel: 'null'
    java.lang.ClassCastException: Cannot narrow remote object weblogic.rmi.internal.BasicRemoteRef - hostID: '5337880647112897730S:127.0.0.1:[7001,7001,-1,-1,-1,-1,-1]:wl_server:examplesServer', oid: '302', channel: 'null' to com.titan.travelagent.TravelAgentRemote
    at weblogic.corba.server.naming.ReferenceHelperImpl.narrow(ReferenceHelperImpl.java:206)
    at weblogic.rmi.extensions.PortableRemoteObject.narrow(PortableRemoteObject.java:88)
    at weblogic.iiop.PortableRemoteObjectDelegateImpl.narrow(PortableRemoteObjectDelegateImpl.java:32)
    at javax.rmi.PortableRemoteObject.narrow(Unknown Source)
    at com.titan.clients.Client.main(Client.java:24)
    [sanpraka@localhost certEjb]$

    We have a similar problem. We have a web application (on server A) that invokes an EJB on a remote server (server B). This works fine, until we deploy another web application to server A at which point the existing web application starts to throw java.lang.ClassCastException when narrowing the remote EJB interface. The exception starts to be thrown at the moment the latter web application is deployed - start is not required.
    The latter web application contains (actually in APP-INF/lib) the old version of the EJB remote interface, that somehow gets to be loaded into the classpath of the existing web application. The solution is to delete the old version of the EJB remote interface from APP-INF/lib of the latter web application (we didn't need it anyway), but it would be interesting to know in which circumstances classes can get mixed between enterprise applications.
    I failed to reproduce the error in simple scenario, so this does not happen always.

  • Failover when using weblogic rmi

    does anyone that
    if i keep some plain java objects in collections in a RMI server using
    weblogic RMI.
    will the java objects be available to me on the new server it fails over to?
    iam using weblogic servber 6.0 sp 1
    the collections hold plain old java objects(POJO)
    Mridul Paliwal

    Hi Giuseppe --
    I would open a service request with Oracle support for this.
    -steve-

  • Getting :java.lang.ClassCastException: weblogic.rmi.internal.MethodDescript

    Hi I am getting the following exception:
    java.lang.ClassCastException: weblogic.rmi.internal.MethodDescriptor
         at weblogic.rjvm.MsgAbbrevInputStream.readClassDescriptor(MsgAbbrevInputStream.java:186)
         at weblogic.common.internal.ChunkedObjectInputStream$NestedObjectInputStream.readClassDescriptor(ChunkedObjectInputStream.java:300)
         at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:901)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:361)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:231)
         at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1181)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:381)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:231)
         at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:110)
         at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:123)
         at weblogic.jndi.internal.RootNamingNode_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:298)
         at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:93)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:267)
         at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    can any body explain the Cause for this exception and what will be the impact on the server.
    but if i restart the server the error is not coming

    Hi I am getting the following exception:
    java.lang.ClassCastException: weblogic.rmi.internal.MethodDescriptor
         at weblogic.rjvm.MsgAbbrevInputStream.readClassDescriptor(MsgAbbrevInputStream.java:186)
         at weblogic.common.internal.ChunkedObjectInputStream$NestedObjectInputStream.readClassDescriptor(ChunkedObjectInputStream.java:300)
         at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:901)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:361)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:231)
         at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1181)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:381)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:231)
         at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:110)
         at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:123)
         at weblogic.jndi.internal.RootNamingNode_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:298)
         at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:93)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:267)
         at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    can any body explain the Cause for this exception and what will be the impact on the server.
    but if i restart the server the error is not coming

  • Weblogic RMI error

    Dear all,
    I am using weblogic rmi. When I run the client, the following error
    appeared:
    java.rmi.UnmarshalException: failed to unmarshal class
    java.lang.Object; nested
    exception is:
    java.lang.ClassNotFoundException: Hello_WLStub
    --------------- nested within: ------------------
    weblogic.rmi.MarshalException: Remapped jndi exception
    - with nested exception:
    [java.rmi.UnmarshalException: failed to unmarshal class
    java.lang.Object; nested
    exception is:
            java.lang.ClassNotFoundException: Hello_WLStub]
    at weblogic.rmi.Naming.toWeblogicRmiException(Naming.java:289)
    at weblogic.rmi.Naming.lookup(Naming.java:78)
    at HelloClient.main(HelloClient.java:40)
    Server and client are 2 separate machine.However, when I copy
    Hello_WLStub.class to the client machine, it runs without problem.
    When weblogic do not download the stub class to client instead?
    Moreover, I found that all my startup classes must be placed inside
    E:\bea\wlserver6.0, otherwise those startup classes will not work. How
    to change this default location?Thanks!

    Dear all,
    I am using weblogic rmi. When I run the client, the following error
    appeared:
    java.rmi.UnmarshalException: failed to unmarshal class
    java.lang.Object; nested
    exception is:
    java.lang.ClassNotFoundException: Hello_WLStub
    --------------- nested within: ------------------
    weblogic.rmi.MarshalException: Remapped jndi exception
    - with nested exception:
    [java.rmi.UnmarshalException: failed to unmarshal class
    java.lang.Object; nested
    exception is:
            java.lang.ClassNotFoundException: Hello_WLStub]
    at weblogic.rmi.Naming.toWeblogicRmiException(Naming.java:289)
    at weblogic.rmi.Naming.lookup(Naming.java:78)
    at HelloClient.main(HelloClient.java:40)
    Server and client are 2 separate machine.However, when I copy
    Hello_WLStub.class to the client machine, it runs without problem.
    When weblogic do not download the stub class to client instead?
    Moreover, I found that all my startup classes must be placed inside
    E:\bea\wlserver6.0, otherwise those startup classes will not work. How
    to change this default location?Thanks!

  • Weblogic.rmi.internal.BasicRemoteRef and ClusterableRemoteRef

    Hi,
    I have a ejb3 stateless session bean deployed on a wls 10 mp1 cluster (1 Admin + 2 Managed Servers).
    The client side reference is a:
    weblogic.rmi.internal.BasicRemoteRef when invocations go to Managed Server1
    and
    ClusterableRemoteRef when invocations go to Managed Server2
    Is this indicative of a problem in cluster setup etc. ?
    Thanx,

    Hi ! I have a similar problem.
    I have an EJB3 stateless bean on a WLS clustered server, in the same machine, server1 and sever2.This EJB3 is deployed in a application called appli.ear
    My client is messageDrivenBean mdb deployed in another ear application client.ear , in the same machine, in the same clustered server.
    Sometimes, my client call is succesfull, but most often, my lookup fails with java.lang.class.cast Exception.This exception is thrown because i get weblogic.rmi.internal.BasicRemoteRef class from my lookup.When my call is succeful ,i get weblogic.rmi.internal.CollocatedRemoteRef class.
    Is it the same problem ? Must i get patch you are talking about?

  • Applet : Why Weblogic RMI is so huge ???

    Hi,
    I'm using Weblogic RMI in an applet, and the applet startup time is unacceptable.
    In order to find out what files are actually needed by the applet , instead of
    using a JAR file, I uncompressed weblogic.jar and looked at my web server log
    file as the applet was coming up. The log file is attached, so please take a look.
    Is there a way to load less stuff ?
    Thanks,
    Jarek
    [applet_startup.log]

    Okay, you obviously don't understand how the String class works.
    Your code is slow because the "+" operator for String objects doesn't really concat to the string, it creates a new String. Object creation takes time. Try using a StringBuffer instead.

  • Urgent help: how to create data source for Weblogic RMI driver

    Hi,
    Please let me how to create data source for Weblogic RMI driver using Administrator
    console.
    I understand that the following steps are required:
    1.Create connection pool for the RMI driver by specfiying URL as
    jdbc:weblogic:rmi and Driver as weblogic.jdbc.rmi.Driver. Now
    comes the problem.. what do put in properties text area? I am
    talking about key/value pairs required?
    2. Having done step 1 ( which I was not able to do) , create a new DataSource
    mapping to the connection pool created from step 1.
    How to accomplish step 1 ? I want to finally connect to Oracle
    database. Please help me.
    pradeep bhat

    DataSource will internally do that for you (It will use RMI internaly) . You
    dont have to worry about the details of using RMI driver. Thats what is a
    DataSource is for.
    sree
    "pradeep bhat" <[email protected]> wrote in message
    news:[email protected]...
    Hi Sree,
    What u have written is abt configuting Datasource for type 2 and
    4 drivers.
    But I want to know how to create data source for RMI driver. If
    I map this datasource to connection pool that is created for
    type 2 or 4 drivers, i don't understand why RMI drivers are
    required in first place. If i do map the data source to connection pool
    created
    for type 2 or 4 drivers then where i
    would not have used the URL as jdbc:weblogic:rmi and Driver as
    weblogic.jdbc.rmi.Driver.
    Hope u will help me.
    pradeep bhat
    "Sree Bodapati" <[email protected]> wrote:
    Hi Pradeep
    To create a connection pool you have to use a database driver not RMI
    driver. So use a thin driver or the WebLogic jDriver for Oracle to setup
    your connection pool. Once the connection pool is created you can create
    a
    DataSource and use this datasource to connect to the database.
    The RMI driver can be used to get connections from the database via the
    connection pool and in that case you dont need a datasource. Recommended
    approach is to use a DataSource.
    hth
    sree
    "PRADEEP BHAT" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    Please let me how to create data source for Weblogic RMI driver using
    Administrator
    console.
    I understand that the following steps are required:
    1.Create connection pool for the RMI driver by specfiying URL as
    jdbc:weblogic:rmi and Driver as weblogic.jdbc.rmi.Driver. Now
    comes the problem.. what do put in properties text area? I am
    talking about key/value pairs required?
    2. Having done step 1 ( which I was not able to do) , create a new
    DataSource
    mapping to the connection pool created from step 1.
    How to accomplish step 1 ? I want to finally connect to Oracle
    database. Please help me.
    pradeep bhat

  • WebLogic RMI vs. Sun's RMI

    Hi,
    Does anyone have any idea on how to get WebLogic to use Sun's RMI
    library instead of the WebLogic one. We have existing Java bytecode (no
    source) which uses RMI and will not run on WebLogic (it does however run
    fine from Apache Tomcat).
    Thanks,
    Efraim

    WebLogic will only internally utilize its own RMI implementation, however
    you should be able to cohabitate with Sun's RMI fine, the VM that WLS runs
    on still has the Sun RMI runtime. Can you provide more details?
    cheers
    mbg
    "jessica" <[email protected]> wrote in message
    news:3ea66683$[email protected]..
    >
    I also have this problem,could anyone help answer?
    Does that mean i have to convert source code to use weblogic rmi?Or I haveto
    define binding name in weblogic propertie file?If it is true and how to?
    efraim <[email protected]> wrote:
    Hi,
    Does anyone have any idea on how to get WebLogic to use Sun's RMI
    library instead of the WebLogic one. We have existing Java bytecode (no
    source) which uses RMI and will not run on WebLogic (it does however
    run
    fine from Apache Tomcat).
    Thanks,
    Efraim

Maybe you are looking for

  • Error in the SAP ERP 6.0 Installation

    Hello everybody, i have a error in the phase 43 of 46 in the ERP 6.0 Installation. Here are my UTL_configure_usages.log , i hope everone can help me by the solution. It´s my first time at the Installation of a SAP System. +Path   : Exception : The Us

  • Work item text not visible in SAP inbox

    Hi All, I have used standard task in custom workflow. On triggering task, workitem text maintained for workitem is not triggered under title colum in SAP inbox.Instead, workitem name is  visible in Inbox. Can you please guide how workitem text would

  • What is the best email application for OSX

    I have installed/purchased several applications for my MBP and MBA and most are acceptable (not great). But, all I've triedhave the same shortcoming.  That shortcoming is the poor perception that the user wants to drain all of the unread emails from

  • OEM 10G R2 - Configuration oms hangs

    Hello, I'm installing OEM10G Release 2 on a Suse Server 9, At the configuration panel, it hangs, configuration stays in éIn progress" The last lines in the details are: Operation Configuring OMS is in progress. OMS is being Secured and Lock is set to

  • Messzge d'erreur  lors du chargement d'Adobe Player sous windows 7Erreur lors de l'application du programme correctif au fichier C : \ Config.Msi\PTF6DD.tmp.

    Lors du chargement d'Adobe Player  sous Windows 7 le chargement se fait jusqu'à 97% et affiche le message d'erreur suivant: Erreur lors de l'application du programme correctif au fichier C : \ Config.Msi\PTF6DD.tmp. Il a sans doute été mis à jour de