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.

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???

  • StuckThreadMaxTime,"weblogic.rmi.internal.dgc.DGCClientImpl$HeartBeat@53ce6

    Hi guys!
    I am having a problem suddenly with weblogic application server on aix box. I am getting error after couple of users login.managed Server is getting shutdown. Here is the description of the error.
    <weblogic.health.CoreHealthMonitor> <<WLS Kernel>> <> <BEA-000337> <ExecuteThread: '47' for queue: 'weblogic.kernel.Default' has been busy for "717" seconds working on the request "weblogic.rmi.internal.dgc.DGCClientImpl$HeartBeat@53ce690f", which is more than the configured time (StuckThreadMaxTime) of "600" seconds.>
    Please suggest something to fix this problem.can you explain how we can check thread dumps in weblogic on unix environment.
    -Chandu

    Paul Eddington wrote:
    Thanks for the response.
    We don't have any connection pools defined.
    The application we have deployed gets information from the DB all the time. But it makes it's own connection. We connect to an Oracle 9i DB running on a different server. We are running on AIX 5.3 servers.
    Thanks again
    PaulHi. nevermind about the pool question. If/when you get that sort of message you want to get a thread
    dump of the server or find the log where it shows the full stacktrace of that thread. The message
    simply says a thread has been busy or hanging longer than the WLS limit (configurable). The thread
    could be hung on a lock, waiting for the DBMS, in an infinite loop, os simply not done yet with
    some job that is taking more than the stuck-thread-limit. WLS doesn't actually know what the
    thread is doing...
    Joe

  • WebLogic RMI security

    Hello,
    I'm planning to create some client-server applications using the WebLogic
    RMI implementation but I'm a little bit worried about the security issues
    that can be raised.
    Basically, I don't know whether or not WebLogic provides dynamic class
    loading (RMIClassLoader). If so, how to prevent this to happen, since I want
    to make it sure that no hostile client will be able to hack my application
    in that it will download some classes that will mess with my data.
    Anybody has any comments on that?
    Thanks in advance for any help.
    Andre Mendonca
    [email protected]

    Just to make things clearer, this is the RMI specification from Javasoft
    (very interesting, by the way):
    "When parameters and return values for a remote method invocation are
    unmarshalled to become live objects in the receiving JVM, class definitions
    are required for all of the types of objects in the stream. The
    unmarshalling process first attempts to resolve classes by name in its local
    class loading context (the context class loader of the current thread). RMI
    also provides a facility for dynamically loading the class definitions for
    the actual types of objects passed as parameters and return values for
    remote method invocations from network locations specified by the
    transmitting endpoint. This includes the dynamic downloading of remote stub
    classes corresponding to particular remote object implementation classes
    (and used to contain remote references) as well as any other type that is
    passed by value in RMI calls, such as the subclass of a declared parameter
    type, that is not already available in the class loading context of the
    unmarshalling side."
    My question is: If a client invokes a method in the object residing in the
    weblogic server, passing as a parameter an object that the server doesn't
    know, will weblogic try to download the class from the client location?
    Continuing: later in the specification, one can read:
    "For every class descriptor read from an RMI marshal stream, the
    resolveClass method reads a single object from the stream. If the object is
    a String (and the value of the java.rmi.server.useCodebaseOnly property is
    not true), then resolveClass returns the result of calling
    RMIClassLoader.loadClass with the annotated String object as the first
    parameter and the name of the desired class in the class descriptor as the
    second parameter. Otherwise, resolveClass returns the result of calling
    RMIClassLoader.loadClass with the name of the desired class as the only
    parameter."
    So, can I set this property to false in the StartWebLogic.cmd file and
    expect weblogic not to download any unknown code? Will weblogic classloader
    understand it? What's the default behavior of weblogic server?
    By the way, I'm using WLS 4.5.1, in a windows NT environment.
    Thanks in advance.
    Andre Mendonca
    [email protected]
    "Andre Mendonca" <[email protected]> wrote in message
    news:[email protected]...
    Hello,
    I'm planning to create some client-server applications using the WebLogic
    RMI implementation but I'm a little bit worried about the security issues
    that can be raised.
    Basically, I don't know whether or not WebLogic provides dynamic class
    loading (RMIClassLoader). If so, how to prevent this to happen, since Iwant
    to make it sure that no hostile client will be able to hack my application
    in that it will download some classes that will mess with my data.
    Anybody has any comments on that?
    Thanks in advance for any help.
    Andre Mendonca
    [email protected]

  • 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

Maybe you are looking for

  • Adobe Photoshop cs5 error "0xc0000001d"

    i have a problem Adobe Photoshop cs5 error "0xc0000001d" and how to fix it? how i can fix it and why i have this error? Giorgi Siphrashvili Financial expert [personal info removed]

  • Display Mirroring Problem

    I am running OSX 10.6.8 on a 27" iMac. I have my HDTV connected via the Mini DisplayPort. The only way I have been able to use my TV as a monitor (e.g., to play a movie on the iMac and watch it on the TV) is to mirror the displays. The problem with t

  • PGI-No Accounts maintained for company code clearing between company codes

    Dear Expetrs, When i am doing PGI getting error that is no accts maintained for company code clearing between 0010 to 0035. This is intercompany process. In our intercompany company codes is 0010 and 0020. So we maintained already clearing acconuts b

  • Having problems with swap image (roll over effect)

    I am trying to do a roll over state (swap image) for a linked item on my mock up. I've done this for other pages in the same file, but for some reason on another page, when I build the second state, insert the slice, and  create the swap image on the

  • Junk e-mail help

    I have three e-mail accounts sent to my phone from GMail. One of them keeps letting all the junk mail through. How can I stop it?