Binding custom objects in weblogic JNDI

I noticed that if I bind a custom object, the object is not available after the weblogic
restart. Is there anyway to bind an object permanently in the weblogic JNDI..

In article <[email protected]>, [email protected] says...
Murali <[email protected]> wrote:
I noticed that if I bind a custom object, the object is not available after the weblogic
restart. Is there anyway to bind an object permanently in the weblogic JNDI..No.
Perhaps what your trying to accomplish could be handled via a startup
class that did the bind for you.
Bob

Similar Messages

  • Bind custom object in weblogic server start

    I want to bind my custom object to jndi when weblogic server start. how can i do?

    Bonjour Yiwen,
    That could easily done by registering a startup class in weblogic server that will do the binding of the object in the JNDI tree (it can also create all the subcontexts you need).
    Below is some code that works fine on WLS 5.1:
    a.. a custom object
    package StartupJNDI;
    public class CustomObject extends Object
    protected String name;
    public CustomObject ( String aszName )
    name = aszName;
    public String getName()
    return name;
    public void setName(String newName)
    name = newName;
    a.. a startup class
    package StartupJNDI;
    import javax.naming.*;
    public class Registration
    public Registration()
    InitialContext initCtx = null;
    try
    initCtx = new InitialContext ();
    initCtx.bind ( "Startup Registered Object" , new CustomObject ( "This is a void object" ) );
    catch ( Exception ex )
    ex.printStackTrace ( System.err );
    public static void main(String[] args)
    new Registration();
    a.. a startup class in weblogic.properties:
    weblogic.system.startupClass.JNDIStartupRegistration=StartupJNDI.Registration
    Please, be sure that the path to these classes is also registered in the WEBLOGIC_CLASSPATH system property (e.g. : in your startweblogic.cmd file on Windows NT).
    You can check that the object is bound in the JNDI tree through the console.
    Hope this helps,
    Cordialement,
    Etienne
    Yiwen Tian <[email protected]> a écrit dans le message : [email protected]..
    >
    I want to bind my custom object to jndi when weblogic server start. how can i do?
    [att1.html]

  • How to add a custom jndi object into weblogic jndi context.

    Hi,
    I noticed that there is a standard way of adding jndi entry in the weblogic jndi context. One is through the console by specifying the jndi name (e.g DataSource) and this is added in config.xml and in its appropriate "jdbc/xxx-jdbc.xml". The question now is, I have an object which I would like to be included in the global weblogic jndi context.
    <entry key="java:comp/env/jms/wsnotificationCF">
    <bean class="org.apache.activemq.ActiveMQConnectionFactory">
    <property name="brokerURL" value="tcp://localhost:61616"/>
    </bean>
    </entry>
    or
    <entry key="java:comp/env/obj/UUID_CLASS_KEY" value="org.apache.servicemix.bpe.uuid.ActiveMQUUIDService"/>
    This is just a sample of a possible entry. Is there then a way I could add this object in weblogic jndi context ?
    Regards,
    Fritz

    Hi,
    I noticed that there is a standard way of adding jndi entry in the weblogic jndi context. One is through the console by specifying the jndi name (e.g DataSource) and this is added in config.xml and in its appropriate "jdbc/xxx-jdbc.xml". The question now is, I have an object which I would like to be included in the global weblogic jndi context.
    <entry key="java:comp/env/jms/wsnotificationCF">
    <bean class="org.apache.activemq.ActiveMQConnectionFactory">
    <property name="brokerURL" value="tcp://localhost:61616"/>
    </bean>
    </entry>
    or
    <entry key="java:comp/env/obj/UUID_CLASS_KEY" value="org.apache.servicemix.bpe.uuid.ActiveMQUUIDService"/>
    This is just a sample of a possible entry. Is there then a way I could add this object in weblogic jndi context ?
    Regards,
    Fritz

  • Regular RMI server object with WebLogic JNDI

    Is that possible to register a regular RMI object with WebLogic JNDI
    tree? I was building a simple program (using javac and rmic only) based
    on the java.rmi.* (without changing the import statements to
    weblogic.rmi.*) and using the weblogic.jndi to register the server
    object. Below is some piece of code,
    Context ctx = null;
    Hashtable ht = new Hashtable();
    ht.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.WLInitialContextFactory");
    ht.put(Context.PROVIDER_URL, "t3://172.20.20.20:7001");
    ctx = new InitialContext(ht);
    ctx.bind("HelloServer", obj);
    The code failed for the following reason,
    javax.naming.NamingException. Root exception is
    java.rmi.MarshalException: failed to marshal public abstract void
    weblogic.jndi.internal.NamingNode.bind(java.lang.String,java.lang.Object,java.util.Hashtable)
    throws javax.naming.NamingException,java.rmi.RemoteException; nested
    exception is:
    java.rmi.server.ExportException: A description for
    examples.rmi.hello.HelloImpl was found but it could not be read due to:
    [Failed to find examples.rmi.hello.HelloImpl_WLStub or
    examples.rmi.hello.Hello_WLStub for class examples.rmi.hello.HelloImpl]
    java.rmi.StubNotFoundException: Failed to find
    examples.rmi.hello.HelloImpl_WLStub or examples.rmi.hello.Hello_WLStub
    for class examples.rmi.hello.HelloImpl
    at
    weblogic.rmi.internal.BasicDescriptor.<init>(BasicDescriptor.java:101)
    at
    weblogic.rmi.internal.BasicRuntimeDescriptor.<init>(BasicRuntimeDescriptor.java:50)
    at
    weblogic.rmi.internal.DescriptorManager.resolveClass(DescriptorManager.java:55)
    at
    weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManager.java:39)
    at
    weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManager.java:30)
    at
    weblogic.rmi.internal.OIDManager.getRequestDispatcher(OIDManager.java:281)
    at
    weblogic.rmi.internal.OIDManager.getReplacement(OIDManager.java:270)
    at
    weblogic.rmi.internal.OIDManager.replaceObject(OIDManager.java:98)
    at
    weblogic.common.internal.ChunkedObjectOutputStream.replaceObject(ChunkedObjectOutputStream.java:55)
    at
    weblogic.common.internal.ChunkedObjectOutputStream$NestedObjectOutputStream.replaceObject(ChunkedObjectOutputStream.java:239)
    Any idea?
    - SteveC

    "Pyung Yoon" <[email protected]> writes:
    MediatorInterface mediator = (MediatorInterface) java.rmi.Naming.lookup("rmi://localhost:7001/TestMediator);This implies JRMP which the server does not support. You need to use t3 or iiop.
    andy

  • Is there a way to register declaratively a custom object into WL JNDI

    Is there a way to register declaratively a custom object into WL JNDI. (either through Admin console, or config.xml)
    This is how we are doing it inside jetty environment config file.
    JNDI name is enterprise/cms/PerforceEnv, and the reference object is com.enterprise.content.repository.scm.PerforceSettings.
    <Configure class="org.mortbay.jetty.webapp.WebAppContext">
    <New id="PerforceEnv" class="org.mortbay.jetty.plus.naming.Resource">
    <Arg>enterprise/cms/PerforceEnv</Arg>
    <Arg>
    <New class="com.enterprise.content.repository.scm.PerforceSettings">
    <Set name="executablePath">${p4.exe}</Set>
    <Set name="port">${p4.port}</Set>
    <Set name="user">${p4.user}</Set>
    <Set name="client">${p4.client}</Set>
    <Set name="debug">${p4.debug}</Set>
    <Set name="password">${p4.password}</Set>
    <Set name="sysroot">${p4.sysroot}</Set>
    <Set name="sysdrive">${p4.sysdrive}</Set>
    </New>
    </Arg>
    </New>
    </Configure>
    Thanks

    right click on the element on element panel on the right and choose rename. Or rename on the left panel on the top. You can give them any name you like just do not start with a number or special character.

  • Binding huge object to the jndi tree.

    Hi we are loading all the master tables in to objects at the app server startup (SUN ONE 7) and then binding the whole object to the jndi tree. All the tables data in text files comes to about 5 MB and the serilized object with data to about 8 MB. But when the app server tries to bind the object the app server process consumes over 500MB of ram and gives OutOfmemoryError as the total ram is 512MB. why is it consuming so much memory. It does bind an object of about 5 MB but when trying to lookup subsequent to the first lookup it fails. Is this a bug or what??? the same thing works perfectly with Weblogic and Websphere and also Weblogic is very efficient in memory consumption and response time is amazing. For a 5 MB object the lookup takes about 5Secs in Weblogic and about 15Mins in Sun One. We might have to drop the Sun One App Srv and go for Weblogic though we dont want. This same thing is working with about 4MB object in Sun One but takes about 45 Mins to 1 Hour to finish the serialization etc for jndi .Kindly provide some guidance.Thanks in advance.

    True. At the end I configured the value as a "server property". The cool thing about configuring the jndi tree is that it is replicated in a cluster.
    Obviously the values that I inserted affected all the applications, like the url of our SOA server.

  • Can we bind hibernate sessionFactory to weblogic JNDI from remote client?

    Hi,
    Is it possible to bind a hibernate sessionfactory from a remote jee client application to weblogic 10.3 server ?
    Thanks
    ow005480

    Hi Michael,
    Please make sure that your Mail Session "mail/MYAPP_MAIL" is targeted to the same Server where you are trying to deploy your Spring based application. It means in the JNDi tree of the Server do you see the JNDI name "mail/MYAPP_MAIL" where you are trying to deploy your application?
    You can check the JNDI tree of your server using AdminConsole after login please nevigate to the following :
    AdminConsole---->Servers ----[SERVER_NAME] click ----> (View jndi tree) link
    Thanks
    Jay SenSharma
    http://middlewaremagic.com/weblogic/  (Middleware Magic Is Here)

  • How to bind an object to JNDI tree in iAS?

    Hi all,
    When I try to bind a string object to jndi tree, the following exception
    occurs:
    javax.naming.NamingException: Unable to get object instance from reference.
    Roo
    t exception is javax.naming.NamingException: Can't bind instance of class
    java.lang.String
    at com.netscape.server.jndi.RootContext.bindCtx(Unknown Source)
    at com.netscape.server.jndi.RootContext.rebind(Unknown Source)
    at com.netscape.server.jndi.RootContext.rebind(Unknown Source)
    at javax.naming.InitialContext.rebind(InitialContext.java:385)
    at jsp.APPS.bmx.test2._jspService(test2.java:76)
    at jsp.APPS.bmx.test2.service(test2.java:42)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
    Source)
    The code fragment is:
    Context ctx = new InitialContext();
    String str = "hell,every one!";
    ctx.rebind("abc", str);
    Can anyone give some help? Thanks in advance.
    Johnson

    To bind an object into the JNDI tree check the documentation here:
    http://e-docs.bea.com/wls/docs81/jndi/jndi.html#475702
    If this is to be used by all your applications that you deploy on the server check out the startup/shutdown class documentation here:
    http://edocs.bea.com/wls/docs81/ConsoleHelp/startup_shutdown.html
    Cheers
    IV

  • Custom Objects in JNDI Not Being Replicated in Cluster

    I know this is going to end up being something really simple, but I can't find
    any docs or other posts on it.
    I have a simple two node weblogic 7.0 cluster. In a startup class that is deployed
    to the cluster I check for and create a subcontext. This subcontext will just
    hold custom objects when a node comes up. When a node does come up, one of the
    web applications binds a non-RMI custom object to the subcontext created via the
    startup class.
    Once both nodes in the cluster are up I can see via the weblogic console's "View
    JNDI tree" feature that the custom object bound on node 1 is only visible in the
    JNDI tree of node 1. Similarly the object bound on node 2 is only visible in
    the JNDI tree of node 2.
    Is the JNDI tree that is visible via the console the JNDI specific to the node
    and not the clusterwide JNDI tree? Do I have to do something special to get access
    to the cluster wide JNDI tree (for instance when creating an InitialContext)?
    Is there a way to view the cluster wide JNDI tree?
    Thanks for any information.

    Hi Matt,
    how did you compile t3 stubs,there are -clusterable or something like this
    option shat should make replicatable-aware stubs.
    "Matt" <[email protected]> wrote:
    >
    I know this is going to end up being something really simple, but I can't
    find
    any docs or other posts on it.
    I have a simple two node weblogic 7.0 cluster. In a startup class that
    is deployed
    to the cluster I check for and create a subcontext. This subcontext
    will just
    hold custom objects when a node comes up. When a node does come up,
    one of the
    web applications binds a non-RMI custom object to the subcontext created
    via the
    startup class.
    Once both nodes in the cluster are up I can see via the weblogic console's
    "View
    JNDI tree" feature that the custom object bound on node 1 is only visible
    in the
    JNDI tree of node 1. Similarly the object bound on node 2 is only visible
    in
    the JNDI tree of node 2.
    Is the JNDI tree that is visible via the console the JNDI specific to
    the node
    and not the clusterwide JNDI tree? Do I have to do something special
    to get access
    to the cluster wide JNDI tree (for instance when creating an InitialContext)?
    Is there a way to view the cluster wide JNDI tree?
    Thanks for any information.

  • Properly binding an object to a custom component.

    I am apparently not doing this. What am I missing to properly
    bind an
    object from a repeater looping over an array of object to the
    custom
    component called in the repeater?
    <mx:Repeater
    id="dayCells"
    dataProvider="{days}"
    startingIndex="{weekRows.currentItem}"
    count="7">
    <mx:GridItem
    width="14%"
    borderColor="black"
    borderThickness="1"
    borderStyle="solid">
    <mx:Label
    text="{dayCells.currentItem.formatedDate}" />
    <ian:dayFormat2
    drawData="{dayCells.currentItem as drawDay}"
    test="{dayCells.currentItem.formatedDate}" />
    </mx:GridItem>
    </mx:Repeater>
    {days} is an array of drawDate.as objects returned with a
    remoteObject.
    I can correctly bind properties of these drawDate objects in
    the
    lable and the test property of the dayFormat2
    customComponent. But I
    can NOT correctly bind the entire object over to dayFormat2.
    What am I
    missing?
    My current version of dayFormat2.mxml, I have tried several
    alternatives
    for this file.
    ?xml version="1.0" encoding="utf-8"?>
    <mx:VBox xmlns:mx="
    http://www.adobe.com/2006/mxml"
    width="100%">
    <mx:Script>
    <![CDATA[
    import drawDay;
    //Define public variables
    [Bindable]
    public var drawData:drawDay;
    [Bindable]
    public var test:String;
    ]]>
    </mx:Script>
    <mx:DateFormatter id="dayNum" formatString="DD" />
    <mx:HBox
    backgroundColor="0x002649"
    width="100%"
    horizontalAlign="right">
    <mx:Label
    text="{test}"
    color="white" />
    <mx:HBox
    backgroundColor="0xAF1E2D"
    horizontalAlign="center">
    <mx:Label
    text="{dayNum.format(drawData.date)}"
    color="white" />
    </mx:HBox>
    </mx:HBox>
    <mx:Label text="foobar" />
    </mx:VBox>
    The first label bound to the test String works correctly. The
    second
    label bound to the drawData drawDay object date property does
    not work
    correctly.
    What is the proper way to bind this object?

    I have struggled with this all day and made no headway. The
    only
    strange thing I get is with this line:
    <mx:Label text="{dayCells.currentItem.toString()}" />
    outputs [object Object]
    Not the expected string from this drawDay.as function.
    // toString()
    public function toString():String
    return "Date: " + formatedDate;
    Ian Skinner wrote:
    > I am apparently not doing this. What am I missing to
    properly bind an
    > object from a repeater looping over an array of object
    to the custom
    > component called in the repeater?
    >
    > <mx:Repeater
    > id="dayCells"
    > dataProvider="{days}"
    > startingIndex="{weekRows.currentItem}"
    > count="7">
    > <mx:GridItem
    > width="14%"
    > borderColor="black"
    > borderThickness="1"
    > borderStyle="solid">
    > <mx:Label
    > text="{dayCells.currentItem.formatedDate}" />
    > <ian:dayFormat2
    > drawData="{dayCells.currentItem as drawDay}"
    > test="{dayCells.currentItem.formatedDate}" />
    > </mx:GridItem>
    > </mx:Repeater>
    >
    > {days} is an array of drawDate.as objects returned with
    a remoteObject.
    > I can correctly bind properties of these drawDate
    objects in the lable
    > and the test property of the dayFormat2 customComponent.
    But I can NOT
    > correctly bind the entire object over to dayFormat2.
    What am I missing?
    >
    > My current version of dayFormat2.mxml, I have tried
    several alternatives
    > for this file.
    >
    > ?xml version="1.0" encoding="utf-8"?>
    > <mx:VBox xmlns:mx="
    http://www.adobe.com/2006/mxml"
    width="100%">
    > <mx:Script>
    > <![CDATA[
    > import drawDay;
    >
    > //Define public variables
    > [Bindable]
    > public var drawData:drawDay;
    >
    > [Bindable]
    > public var test:String;
    > ]]>
    > </mx:Script>
    >
    > <mx:DateFormatter id="dayNum" formatString="DD" />
    >
    > <mx:HBox
    > backgroundColor="0x002649"
    > width="100%"
    > horizontalAlign="right">
    > <mx:Label
    > text="{test}"
    > color="white" />
    > <mx:HBox
    > backgroundColor="0xAF1E2D"
    > horizontalAlign="center">
    > <mx:Label
    > text="{dayNum.format(drawData.date)}"
    > color="white" />
    > </mx:HBox>
    > </mx:HBox>
    >
    > <mx:Label text="foobar" />
    > </mx:VBox>
    >
    > The first label bound to the test String works
    correctly. The second
    > label bound to the drawData drawDay object date property
    does not work
    > correctly.
    >
    > What is the proper way to bind this object?

  • ClassCastException while looking up RMI objects bound to weblogic.JNDI under WLS 6.1

    We deploy a servlet (in a single .war archive) establishing a RMI connection to
    an external Java object bound into weblogic JNDI (WLS 6.1).
    We get a ClassCastException on invoking JNDI lookup:
    Servlet failed with Exception>
    java.lang.ClassCastException: $Proxy67
         at com.thyssenkrupp.tks.tnt.admin.rmi.ClientServlet.init(ClientServlet.java:81)
         at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:698)
         at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:641)
         at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:586)
         at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:366)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:240)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2390)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1959)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    Curiously we don't observe these problems when we include all the classes of the
    remote application in the classpath of the WebLogic Server. Actually we want to
    avoid including external classes in weblogic.classpath for (hot) deployment reasons.
    It also seems that problems don't occur when accessing the remote object from
    an independent client application.
    We expect this to be a classloader conflict within WLS 6.1
    Does anybody know a solution to our problems?
    Thanks for suggestions
    Andreas Koerner

    There was a similar bug that was supposedly fixed in WL 6.1 SP 2. I had
    filed a bug on this myself, and was given a patch for SP1, you should be
    able to ask for the patch for CR060416.
    Peter Mularien
    Deploy Solutions, Inc.
    Andreas Koerner wrote:
    >
    We deploy a servlet (in a single .war archive) establishing a RMI connection to
    an external Java object bound into weblogic JNDI (WLS 6.1).
    We get a ClassCastException on invoking JNDI lookup:
    Servlet failed with Exception>
    java.lang.ClassCastException: $Proxy67
    at com.thyssenkrupp.tks.tnt.admin.rmi.ClientServlet.init(ClientServlet.java:81)
    at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:698)
    at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:641)
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:586)
    at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:366)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:240)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2390)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1959)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    Curiously we don't observe these problems when we include all the classes of the
    remote application in the classpath of the WebLogic Server. Actually we want to
    avoid including external classes in weblogic.classpath for (hot) deployment reasons.
    It also seems that problems don't occur when accessing the remote object from
    an independent client application.
    We expect this to be a classloader conflict within WLS 6.1
    Does anybody know a solution to our problems?
    Thanks for suggestions
    Andreas Koerner

  • Using JNDI to bind any object

    Hi,
    I intend to bind a few objects in JNDI context so that they can later be just looked up and then used.
    I can use code like this:
    =========
    Hashtable env = new Hashtable();
    env.put(Context.PROVIDER_URL, SOME_PROVIDER_URL);
    env.put(Context.SECURITY_PRINCIPAL, "user");
    env.put(Context.SECURITY_CREDENTIAL, "passwd");
    Context ctx = new InitialContext(env);
    context.bind("name", object);
    =========
    This object can later be looked up. So far so good. However, this will bind the object in the same VM "only".
    Is there any way of calling something like:
    ====
    someOC4JClass.getNamingService().bind("name", object);
    ===
    so that the underlying naming service takes care of making this object available across JVMs?
    Any help/pointers will be highly appreciated.
    Thanks,
    Ravi

    Ravi -- Currently OC4J's internal JNDI is not a global JNDI shared by all OC4Js. One way to approach this problem would be to bind the objects in some global / common JNDI like OID.
    Thanks -- Jeff

  • Bind remote object to JNDI tree

    I want to create a JNDI tree in the same JVM with remote object, and then I have two problem:
    1> Should I bind remote object or its stub to the JNDI tree?
    2> How to look up the JNDI tree to get the binded stub from the client side? (Suppose server ip is 192.168.99.42)
    I hope a gentleman would give me a piece of code, so i would be much clearer. Thanks a lot!

    Hi,
    Refer http://java.sun.com/products/jndi/tutorial/objects/storing/remote.html
    -amol

  • Configuring &Implementing custom UUP  in Weblogic portal server 10.2

    Hi,
    Please try to post some reply..it's urgent.............
    I'm trying to implement a custom UUP for external RDBMS(Oracle) in Weblogic 102. protal server.
    when I'm trying to publish the application it's giving the following error message:
    <Dec 19, 2008 12:47:11 PM IST> <Error> <Lease> <BEA-403300> <JNDI entry of timer/PortalTimer was not found in JNDI tree. Message is: javax.naming.NameNotFoundException: While trying to look up timer/PortalTimer in java:comp/env.; remaining name 'timer/PortalTimer'.
    javax.naming.NameNotFoundException: While trying to look up timer/PortalTimer in java:comp/env.; remaining name 'timer/PortalTimer'
         at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1138)
         at weblogic.jndi.internal.ApplicationNamingNode.lookup(ApplicationNamingNode.java:143)
         at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:254)
         at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:367)
         at weblogic.jndi.factories.java.ReadOnlyContextWrapper.lookup(ReadOnlyContextWrapper.java:45)
         Truncated. see log file for complete stacktrace
    >
    My connection methods are written here:
    Note: I've configured a datasource in the weblogic servre admin console named: IBDataSource JNDI name : jdbc/IBDS.
    Also i've gone through the documentation and changed the p13n-profile-config.XML accordingly and made a new property set in the Datasync project with the required property neames.
    my p13n-profile-config.xml entry looks like this....
    <property-adapter>
         <name>myuup</name>
         <property-mapping>myuup</property-mapping>
         <ejb-jndi>UUPEjb.jar#CustomEntityPropertyManager</ejb-jndi>
         <adapter-property>
              <name>IBDataSource</name>
              <value>jdbc:bea:oracle://192.168.0.112:1521</value>
         </adapter-property>
         <adapter-property>
         <name>UUPExampleCache</name>
         <value>UUPExampleCache</value>
         </adapter-property>
    </property-adapter>
    protected Connection getConnection() {
              try {
                   DataSource dataSource = getDataSource();
                   return dataSource.getConnection();
              } catch (SQLException ex) {
                   throw new ConfigurableEntitySystemException(ex);
         protected DataSource getDataSource(){
              DataSource ds = null;
              try {
                   ds = (DataSource) getEnvironmentProperty(DATA_SOURCE);
              } catch (Exception ex) {
                   throw new ConfigurableEntitySystemException(ex);
              return ds;
         protected final Object getEnvironmentProperty(String propertyName) throws NamingException {
              Object envProperty = null;
              InitialContext jndiContext = new InitialContext();
              String lookupName = ( (new StringBuffer("java:comp/env/")).append(propertyName) ).toString();
              System.out.println("The lookup name is" + lookupName );
              envProperty = jndiContext.lookup(lookupName);
              System.out.println("The value of envProperty is " + envProperty);
              return envProperty;
    My ejb.jar.xml entry contains:
    <resource-ref>
    <res-ref-name>jdbc/IBDS</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    and Weblogic-ejb-jar.xml entry contains:
    <resource-description>
    <res-ref-name>jdbc/IBDS</res-ref-name>
    <jndi-name>jdbc/IBDS</jndi-name>
    </resource-description>
    When we try to access the propertyset in the portal admin console the following error message is given:----
    <Dec 19, 2008 5:38:59 PM IST> <Error> <PortalAdminTools> <BEA-415125> <A ToolsException occured trying to get the resources for com.bea.p13n.controls.exceptions.P13nControlException: Remote exception trying to get properties for user weblogic__svcAdminEditor, property set RecentFavoriteItems, property RECENT_ITEM:RecentFavoriteItems.
    com.bea.portal.tools.common.exceptions.ToolsException: com.bea.p13n.controls.exceptions.P13nControlException: Remote exception trying to get properties for user weblogic__svcAdminEditor, property set RecentFavoriteItems, property RECENT_ITEM
         at com.bea.portal.tools.ugm.controls.ProfileManagerControlImpl.getPropertyValues(ProfileManagerControlImpl.java:544)
         at com.bea.portal.tools.ugm.controls.ProfileManagerControlBean.getPropertyValues(ProfileManagerControlBean.java:534)
         at com.bea.jsptools.patterns.item.ItemService$DefaultItemServiceImpl.getItems(ItemService.java:515)
         at com.bea.jsptools.patterns.item.ItemService$DefaultItemServiceImpl.addItem(ItemService.java:447)
         at com.bea.jsptools.patterns.item.ItemService$DefaultItemServiceImpl.addRecentItem(ItemService.java:226)
         Truncated. see log file for complete stacktrace
    com.bea.p13n.controls.exceptions.P13nControlException: Remote exception trying to get properties for user weblogic__svcAdminEditor, property set RecentFavoriteItems, property RECENT_ITEM
         at com.bea.p13n.controls.profile.PropertyControlImpl.getProperty(Unknown Source)
         at com.bea.p13n.controls.profile.PropertyControlBean.getProperty(Unknown Source)
         at com.bea.portal.tools.ugm.controls.ProfileManagerControlImpl.getPropertyValues(ProfileManagerControlImpl.java:512)
         at com.bea.portal.tools.ugm.controls.ProfileManagerControlBean.getPropertyValues(ProfileManagerControlBean.java:534)
         at com.bea.jsptools.patterns.item.ItemService$DefaultItemServiceImpl.getItems(ItemService.java:515)
         Truncated. see log file for complete stacktrace
    java.rmi.RemoteException: EJB Exception: ; nested exception is:
         com.bea.p13n.usermgmt.profile.ProfileSystemException: ClassCastException trying to instantiate [UUPEjb.jar#CustomEntityPropertyManager] as a [EntityPropertyManager].
         at weblogic.ejb.container.internal.EJBRuntimeUtils.throwRemoteException(EJBRuntimeUtils.java:101)
         at weblogic.ejb.container.internal.BaseRemoteObject.handleSystemException(BaseRemoteObject.java:830)
         at weblogic.ejb.container.internal.BaseRemoteObject.handleSystemException(BaseRemoteObject.java:779)
         at weblogic.ejb.container.internal.BaseRemoteObject.postInvoke1(BaseRemoteObject.java:500)
         at weblogic.ejb.container.internal.StatelessRemoteObject.postInvoke1(StatelessRemoteObject.java:57)
         Truncated. see log file for complete stacktrace
    com.bea.p13n.usermgmt.profile.ProfileSystemException: ClassCastException trying to instantiate [UUPEjb.jar#CustomEntityPropertyManager] as a [EntityPropertyManager].
         at com.bea.p13n.usermgmt.profile.internal.ProfileManagerImpl.lookupPropertyManager(ProfileManagerImpl.java:1156)
         at com.bea.p13n.usermgmt.profile.internal.ProfileManagerImpl.getEntityPropertyManagerByRef(ProfileManagerImpl.java:1098)
         at com.bea.p13n.usermgmt.profile.internal.ProfileManagerImpl.getPropertyMap(ProfileManagerImpl.java:1286)
         at com.bea.p13n.usermgmt.profile.internal.ProfileManagerImpl.getEntityPropertyManagerRef(ProfileManagerImpl.java:1199)
         at com.bea.p13n.usermgmt.profile.internal.ProfileManagerImpl.getEntityPropertyManager(ProfileManagerImpl.java:1087)
         Truncated. see log file for complete stacktrace
    java.lang.ClassCastException: com.coles.ecom.ib.uup.CustomEntityPropertyManager_qp0u4g_EOImpl
         at com.bea.p13n.usermgmt.profile.internal.ProfileManagerImpl.lookupPropertyManager(ProfileManagerImpl.java:1125)
         at com.bea.p13n.usermgmt.profile.internal.ProfileManagerImpl.getEntityPropertyManagerByRef(ProfileManagerImpl.java:1098)
         at com.bea.p13n.usermgmt.profile.internal.ProfileManagerImpl.getPropertyMap(ProfileManagerImpl.java:1286)
         at com.bea.p13n.usermgmt.profile.internal.ProfileManagerImpl.getEntityPropertyManagerRef(ProfileManagerImpl.java:1199)
         at com.bea.p13n.usermgmt.profile.internal.ProfileManagerImpl.getEntityPropertyManager(ProfileManagerImpl.java:1087)
         Truncated. see log file for complete stacktrace
    >
    Edited by: user10728655 on Dec 19, 2008 4:09 AM

    There isn't a specific list of pro's / con's. Here are a few of the factors.
    a. Is this a custom UUP we are talking about or out of the box UUP? (determines effort time saved)
    b. What other features of WLP will be used? Will say for e.g. entitlements be used , and is so will they be based on UUP properties ? will content selectors be used? will segments be used? What are you hoping to accomplish by using the UUP? (determines what benefits you get)
    c. Are there any search related requirements based on the UUP (e.g. find all users with a UUP of country='US'?) How pure should your design be i.e. do you only interact with supported BEA API's or are you willing to go to the db directly , with the knowledge that future releases may cause your code to break? (UUP's arent good for searching , you can however go directly to db or use a custom UUP)
    d. what sort of caching is possible for the data(i.e is the data very time sensitive or mostly static)? what sort of updates are done ? is it one property at a time or multiple properties? is the UUP read only?How much flexibility do you need with transactions? (UUP go well with non time sensitive data which isnt updated by means other than the UUP).
    regards
    deepak

  • Javax.naming.NameAlreadyBoundException: Failed to bind remote object

    I am getting an error while deploying wli-ejbs.ear file. This ear uses oracle thin drivers to connect to database. But while deploying i am receiving an error as below. Can anyone please help me to solve this problem?
    Deployer:149033]preparing application wli-ejbs on managed2_cvf01
    [Deployer:149033]preparing application wli-ejbs on managed1_cvf01
    [Deployer:149033]prepared application wli-ejbs on managed1_cvf01
    [Deployer:149033]prepared application wli-ejbs on managed2_cvf01
    [Deployer:149033]activating application wli-ejbs on managed1_cvf01
    [Deployer:149033]activating application wli-ejbs on managed2_cvf01
    [Deployer:149034]An exception occurred for task [Deployer:149026]Deploy application wli-ejbs on cvf01_cluster.: weblogic.management.DeploymentException:
    Exception:weblogic.management.ApplicationException: activate failed for calendar/oracle
    Module: calendar/oracle Error: Exception activating module: EJBModule(calendar/oracle,status=PREPARED)
    Unable to deploy EJB: RemoteCalendarBean from calendar/oracle:
    [EJB:011008]Unable to bind EJB Home Interface to the JNDI name: RemoteCalendarBean.
    javax.naming.NameAlreadyBoundException: Failed to bind remote object (ClusterableRemoteRef(704752282736664516S:172.24.206.163:[7003,7003,7004,7004,7003,7004,-1,0,0]:172.24.206.163:7003,172.24.206.163:7003:cvf01:managed1_cvf01 null)/948 [com.bea.wli.calendar.api.BusinessCalendarHome+javax.ejb.EJBHome+weblogic.ejb20.interfaces.RemoteHome]) to replica aware stub at RemoteCalendarBean(ClusterableRemoteRef(704752282736664516S:172.24.206.163:[7003,7003,7004,7004,7003,7004,-1,0,0]:172.24.206.163:7003,172.24.206.163:7003:cvf01:managed1_cvf01 [704752282736664516S:172.24.206.163:[7003,7003,7004,7004,7003,7004,-1,0,0]:172.24.206.163:7003,172.24.206.163:7003:cvf01:managed1_cvf01/944, -8505871579836432025S:172.24.206.163:[7005,7005,7006,7006,7005,7006,-1,0,0]:172.24.206.163:7003,172.24.206.163:7003:cvf01:managed2_cvf01/1008])/944 [com.bea.wli.calendar.api.BusinessCalendarHome+javax.ejb.EJBHome+weblogic.ejb20.interfaces.RemoteHome]); remaining name ''
    at weblogic.rmi.cluster.ClusterableRemoteObject.onBind(ClusterableRemoteObject.java:177)
    at weblogic.jndi.internal.BasicNamingNode.bindHere(BasicNamingNode.java:347)
    at weblogic.jndi.internal.ServerNamingNode.bindHere(ServerNamingNode.java:124)
    at weblogic.jndi.internal.BasicNamingNode.bind(BasicNamingNode.java:291)
    at weblogic.jndi.internal.WLEventContextImpl.bind(WLEventContextImpl.java:279)
    at weblogic.jndi.internal.WLContextImpl.bind(WLContextImpl.java:386)
    at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.activate(ClientDrivenBeanInfoImpl.java:1141)
    at weblogic.ejb20.deployer.EJBDeployer.activate(EJBDeployer.java:1385)
    at weblogic.ejb20.deployer.EJBModule.activate(EJBModule.java:631)
    at weblogic.j2ee.J2EEApplicationContainer.activateModule(J2EEApplicationContainer.java:3315)
    at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2194)
    at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2167)
    at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.activateContainer(SlaveDeployer.java:2503)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(SlaveDeployer.java:2421)
    at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2138)
    at weblogic.management.deploy.slave.SlaveDeployer.commitUpdate(SlaveDeployer.java:676)
    at weblogic.drs.internal.SlaveCallbackHandler$2.execute(SlaveCallbackHandler.java:35)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)

    run the sync.bat file as mentioned in the instructions...
    or through EBCC(select sampleportal-project dir, app name "sampleportal")...
    good luck
    Vijay
    "ellen" <[email protected]> wrote:
    >
    I installed sampleportal and did all the changes according to the documents,
    when
    the server started, there is this error:
    Unable to deploy EJB: CatalogWebService from catalogwe.jar:
    Unable to bind EJB Home Interface to the JNDI name: sampleportal.BEA_commerce.CatalogWebService.
    The error was: javax.naming.nameAlreadyBoundException: Failed to bind remote
    object...to
    replica aware stub at CatalogWebService; remaining name'sampleportal.BEA_commerce'
    After the server started with the above error, I tried to run the app, here
    is what
    occured:
    PortalPersistenceManager: portal'sampleportal/sampleportal' not found.
    Has anybody seen this before?
    Ellen

Maybe you are looking for

  • Exporting .ac3 2.0 from Final Cut.... SILENCE!

    Hi, I'm trying to export a .ac3 (Dolby 2.0) from a Final Cut project, through Compressor. When the file is created, it is completely SILENCED: there is no sound throughout all its lenght. I've done it several other times, using the Compressor presets

  • Enhancement for F-47

    Hi friends, Pls help me the BADI or any UserExit available for F-47 (Downpayment request).I've tried and no result i got. FYR.. My issue is I've to fix an enhancement not to save the posting if the downpayment value exceeds the actual amount of PO po

  • Set encoding to page footer using HSSF?

    Dear everyone I have a problem when i output excel file using HSSF. i don't know how to set 'UTF-16' encoding to page footer. Please help me, thanks a lot!

  • How to active 2012 RDS & domain server with one license

    I install Windows server 2012 for using remote apps on the virtual machine, and it require  installing the domain server to create the remote apps. Now I want to know how can I active both server with one license? Wayne Xuan

  • Installing CS3 screws up DNS?

    This is almost too strange to believe, but here are the facts: - New machine, Dell, XP, pretty much right out of the box - Norton 360 installed, everything is up to date - Windows Updates all up to date - Only other software installed is Flight Simul