Dynamic ejb lookup

Hello Community,
Question for u :)
I have a necessity to dynamically lookup for ejbs' and call methods on them. I am using EJB 1.0 on VAJ. I have the string values of the home, remote and the JNDI names. I need to read those values and lookup for the bean, and call methods. I have this.
String h = "MyEjbHome";
String r = "MyEjbRemote";
String jndi = "MyEjb";
I need to do something like this..
//parenthesis on LHS is just to explain the pbm
(MyEjbHome) home = jndicontextfactory.lookup(jndi, Class.forName(h));
(MyEjbRemote) remote = home.create();
remote.myMethod();
Now if u visualize the problem here, on the left hand side how can i dynamically give the type as (MyEjbHome) or (MyEjbRemote) when all I know is their names which are strings?
Please share ur knowledge. Thanks

Hi I tried this and it worked. But the thing is even though I tried PortableRemoteObject.narrow() I was still gettting ClassCastException. So I had to use reflection. Now the code looks something like this, and it works.
// child home
Object obj = newContext.lookup(childJNDI);
// get the create method
Method m = obj.getClass().getMethod("create", null);
// create the remote inteface for child
Object objRemote = m.invoke(obj, null);
// cast the child remote to the parent remote
ParentRemote re = (ParentRemote) PortableRemoteObject.narrow(objRemote, ParentRemote.class);
re.soSomething();
Thanks much for your help. I appreciate it.
look at this:
http://forums.java.sun.com/thread.jsp?forum=13&thread=2
8593

Similar Messages

  • Is there a way to do that? To use dynamic EJB connections?

    Hello Developers,
    I have developed a security web application using EJB,
    Jaas with customer provider
    I used DBSystemLogin module
    I want to fined a way that the EJB connection change each time when the user login.
    I used the HR as the main schema.
    I created three schemas that I want to use them as users:
    -Lina
    -Salem
    -Ahmad
    I granted Roles to users on hr tables.
    additional, created my own roles in data base and granted to my users:
    ADMINISTRATOR  Lina - can see all records
    EMPLOYEE Ahmad -can see the records added by this employee
    CUSTOMER  Salem - can see the records belongs to this customer
    In developer 10.1.3.3
    I created Order Entity been using HR database connection, created session been,
    Modified web.xml:
    -security roles["ADMINISTRATOR","EMPLOYEE","CUSTOMER"])
    -Loginconfig (Form-based authentication: login page, error page)
    -Security constraints: ord on /faces/Orders.jsp to ADMINISTRATOR,EMPLOYEE,CUSTOMER.
    I created Orders.jsp page contains order table.
    Now, I want that when the user login as Lina to switch the EJB database connection to Lina, so the displayed order table achieves ADMINISTRATOR roles that created in database,means opening database session for user Lina and use it.
    and so on for user salem and ahmad.
    Is there a way to do that? To use dynamic EJB connections? To achieve authentication based connection? to implement the user database roles on the client side? To specify the database connection at run time?
    That is possible using forms but I don’t want to use forms.
    I want to reed the roles from database according to the user.
    I hope to get answers soon,
    thanks.

    Does JNDI do this job?

  • EJB lookup works in embedded OC4J but not stand-alone

    I use JDeveloper 9.0.3.1 to develop a combined web & EJB application. The EJBs are deployed on a 9.0.3 iAS server on a different machine.
    The EJB lookup is in a helper class that's called by the servlet. For EJB lookup, I use the class "com.evermind.server.rmi.RMIInitialContextFactory" as described by the OC4J servlet guide (http://download-uk.oracle.com/docs/cd/A97688_10/generic.903/a97680/develop.htm#1003973). So my code looks like this:
    Hashtable map = new Hashtable();
    map.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    map.put(Context.PROVIDER_URL, "ormi://server:port/app-business");
    map.put(Context.SECURITY_PRINCIPAL, "admin");
    map.put(Context.SECURITY_CREDENTIALS, "password");
    map.put("dedicated.rmicontext", "true");
    InitialContext context = new InitialContext(map);
    Object thing = context.lookup("MyEjb");
    EJBHome feedback = (EJBHome)PortableRemoteObject.narrow(thing, "com.company.ejb.MyEjbHome");
    The last insert into the map (map.put("dedicated.rmicontext", "true");) wasn't mentioned neither in the servlet guide nor the EJB one. But without it, I'd always get some "domain is null" error.
    Now this code above works flawlessly in the embedded OC4J of JDeveloper. But it always hangs in the "Object thing = context.lookup("MyEjb");" line when executed either in a stand-alone OC4J (the one from JDeveloper launched through the batch file in [JDeveloper directory]\jdev\bin\start_oc4j.bat) or in the OC4J in iAS.
    Does anybody know why this happens or how to fix it? I know that there are other ways of EJB lookup in servlets but since we also have plain Java classes for testing purposes that access EJBs, this seemed like the simplest thing to do for both Java classes and servlets.

    I was referring to the java client case where this optoin is not required. In general for web clients one doesn't use the rmi initial context to find the bean. This is because the bean and the webclient are both packaged in the same application. One defines the ejb-ref in the web.xml for the bean and then looks it using the default initial context. Something like
    Context ctx = new InitialCOntext();
    ctx.lookup("bean ejb-ref-name");
    However if you must use rmi for accessing the bean from the web client then the dedicated connection property is required.
    For java clients you would setup the rmi context environment.
    Since you are trying to use a common utility class for both java and webclient I would recommend that you look into packaging the java client as a j2ee application client. Basically in that case you would be able to define a ejb-ref in the aplication-client.xml and use the default initial context in code for both the cases.
    Hope that helps
    Dhiraj

  • EJB lookup returned stub from a different classloader.

    I've written an EJB for doing authenitcation. This EJB is accessed by an security-mbean (BEA's login module).
    - The EJB is deployed in an EAR.
    - The EJB-stubs are extracted and is included as part of the MBEAN Jar.
    When I hit a webapp causing the EJB lookup to occur, the stub object returned is created by the webapp's classloader. This cause a ClassCastException when trying to cast the returned home interface into the home interface of the MBEAN's classloader.
    Note that all this is happening on the same BEA server running WLS8.1.
    I don't want to put the EJB jar on the system classpath so I can redeploy the EJB, the Application's EAR and the MBEAN to a cluster.
    -alex

    Robert Greig <[email protected]> wrote:
    Thanks for responding to my question, which newsgroup is more appropriate for
    my line of question?
    But before I move this thread, I would like to add:
    I've already handled the recursion problem on top of the ejb-lookup before JNDI
    becomes avaliable (while doing server startup) problem.
    The advantage with the EJB model is this. By changing the host/port configuration,
    I can switch between a local-authentication server or a remote provide authentication
    server network configuration.
    If I were to include the necessary classes in the mbean JAR from our application,
    there maybe resources issues since I now have 2 classloaders loading my server-portion
    of classes. Not sure how that will workout with resources and all. This model
    has the disadvantage of any classes I have in the mbean JAR will require updates
    outside my EAR. This wroks against the EAR deployment model.
    -alex
    Alex Cheung wrote:
    I've written an EJB for doing authenitcation. This EJB is accessedby an security-mbean (BEA's login module).
    - The EJB is deployed in an EAR.
    - The EJB-stubs are extracted and is included as part of the MBEANJar.
    This isn't a good approach. You are pretty much stuffed mainly for the
    reasons you outline.
    Also note that if you continue to go down this road you will have to
    handle the potential recursion (i.e accessing an EJB will invoke a
    security call to your provider!).
    Why do you need to implement this as an EJB? The main advantages of EJBs
    are security and container managed transactions neither of which is
    relevant here surely?
    Robert

  • Dynamic EJB-QL

    Hi,
    Do you know if there is a way to define Dynamic EJB-QL?
    I know it is not part of the current spec, will it be for the next versions?
    T

    EJB 2.1 does not provide that support. However you can do that in OC4J 10.1.3 with EJB 3.0 where you can create a dynamic query:
    em.createQuery("UPDATE Address address SET address.city = 'Ottawa' WHERE address.city = 'Nepean'");
    int rowCount = queryRenameCity.executeUpdate();
    You can find more about this from http://www.oracle.com/technology/tech/java/ejb30.html
    OC4J 10.1.3Developer Preview has support features of EJB 3.0 draft specifications
    -Debu

  • EJB lookup from another EJB server

    Hi people,
    I have two application servers on two different computers. One
    of them contains an EJB, which I need to access from another EJB
    server. I know that I can achieve this using RMI, but will then
    security and transaction contexts be propagated to the called
    EJB?
    Sincerely,
    Sergei Batiuk.

    Here is the solution posted on another forum:
    [email protected] Dec 8, 6:03 am show options
    Newsgroups: ibm.software.websphere.studio
    From: [email protected]
    Date: 8 Dec 2004 06:03:04 -0800
    Local: Wed, Dec 8 2004 6:03 am
    Subject: Re: EJB lookup on from one server to another does not work
    Eric,
    I dealt with this same problem trying to run 2 local servers (websphere
    test servers), using 2 separate WSAD 5.1.2 workspaces. Running on 1
    server I have an application that contains an EJB, and running on the
    other server is an application that uses an access bean to make a
    remote call to my EJB, running on my other server. I too repeately
    received the "NameNotFoundException" when trying to lookup my EJB home
    reference.
    What you have to do to get around this is to modify the server
    configuration of the application that contains the EJB that you are
    attempting to call remotely. You must open the the server.wsi file for
    the server that is running the EJB and go to the "Configuration" tab.
    You must check the "Enable administrative console". Once this is
    complete, start your server. When it is started, right click on the
    server, and select "run administrative console". In the admin console,
    select
    servers -> application servers -> <your server> -> end points ->
    bootstrap address. For "host" you must change "localhost" to either
    your ip address or computer name (ive only tried my ip, but your
    computer name should work too). When building your properties to get
    the initial context, make sure you use
    "env.put(Context.PROVIDER_URL, "corbaloc:iiop:<the ip or computer name
    listed as the bootstrap host of server running ejb>:<the port listed as
    the bootstrap port of server running ejb, which is 2809 in your case>
    Restart your server and things should work.

  • EJB lookup on Remote Server or different domain fails

    Hi,
    I am having two different domain (domain1,domain2) respectvely. My ABC.ear j2eee application is deployed on domain2 and its iiop port is 33703.In domain1 i have xyz.war (web application) and it's IIOP port is 3700 .In xyz.war i am having CallEJB.jsp file.In this Jsp file i want to lookup an EJB Service called PaymentEJB(JNDI Name is ejb/PaymentEJB).
    The code is below
    InitialContext context=new InitialContext();
    Object objRef=context.lookup("corbaname:iiop:andaman:33703#ejb/PaymentEJB");
    I am getting the following error.
    [#|2005-12-14T16:42:03.422+0530|SEVERE|sun-appserver-pe8.1_02|javax.enterprise.resource.corba._DEFAULT_.rpc.transport|_ThreadID=11;|"IOP00410216: (COMM_FAILURE) Unable to create IIOP listener on the specified host/port: all interfaces/3700"
    org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 216 completed: No
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.createListenerFailed(ORBUtilSystemException.java:2661)
    My doubt is
    1.While starting domain1 and domain2 iiop listeners are started on the port 3700 and 33703.in that case why EJB lookup tries to create listener on one more time.
    2.I am looking the 33703 port only.but it tries to create port on 3700 why?
    3.It was working till JES2005Q1.Is there any patch i need to install? or i need to change anything in my code.
    I am frustrated with this error for past one week.I will be happy if some body will give me the peace of mind(thru some solution).

    Hi
    I found the solution for this issue.
    To lookup the EJB applications in web component,we should not set any thing in the Initial Context.i.e the lookup should be
    InitialContext initContext=new InitialContext();
    Object objref = initContext.lookup("java:comp/env/ejb/"+ejbName_);
    This will get you the Home object of the EJB you are looking.
    In your web.xml you should have the entry like below.(Just replace the ejbname which you are looking for)
    <ejb-ref>
    <ejb-ref-name>ejb/GetAssertionEJB</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <home>com.ssertion.GetAssertionHome</home>
    <remote>com.assertion.GetAssertionRemote</remote>
    </ejb-ref>
    In your sun-wb.xml,you should have the entry like below(Just replace the ejbname which you are looking for)
    <ejb-ref>
    <ejb-ref-name>ejb/GetAssertionEJB</ejb-ref-name>
    <jndi-name>corbaname:iiop:<hostname>:<iiopport>#ejb/GetAssertionEJB</jndi-name>
    </ejb-ref>
    Hope this works.

  • JNDI EJB Lookup fails on Remote Server

    Hi,
    I am having two different domain (domain1,domain2) respectvely. My ABC.ear j2eee application is deployed on domain2 and its iiop port is 33703.In domain1 i have xyz.war (web application) and it's IIOP port is 3700 .In xyz.war i am having CallEJB.jsp file.In this Jsp file i want to lookup an EJB Service called PaymentEJB(JNDI Name is ejb/PaymentEJB).
    The code is below
    InitialContext context=new InitialContext();
    Object objRef=context.lookup("corbaname:iiop:andaman:33703#ejb/PaymentEJB");
    I am getting the following error.
    [#|2005-12-14T16:42:03.422+0530|SEVERE|sun-appserver-pe8.1_02|javax.enterprise.resource.corba._DEFAULT_.rpc.transport|_ThreadID=11;|"IOP00410216: (COMM_FAILURE) Unable to create IIOP listener on the specified host/port: all interfaces/3700"
    org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 216 completed: No
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.createListenerFailed(ORBUtilSystemException.java:2661)
    My doubt is
    1.While starting domain1 and domain2 iiop listeners are started on the port 3700 and 33703.in that case why EJB lookup tries to create listener on one more time.
    2.I am looking the 33703 port only.but it tries to create port on 3700 why?
    3.It was working till JES2005Q1.Is there any patch i need to install? or i need to change anything in my code.
    I am frustrated with this error for past one week.I will be happy if some body will give me the peace of mind(thru some solution).

    http://docs.sun.com/source/819-0079/dgjndi.html
    This might help.

  • EJB lookup with weblogic?

    Hi, experts
    I have a question with the EJB lookup in weblogic, this is a question which has been asked many times when I google that. But likely there is not a clearly answer, so maybe I can get the answer from the experts?
    If we lookup an EJB, we need to use the "mappedName#interface_name" as the query name used in lookup method, Is this the only way that we query the EJB? Or is there any other ways we can simply the query name?
    Thanks for your time.

    Try posting in the forum dedicated to WLS EJB - WebLogic Server - EJB
    Also, why don't you explain what you're looking for exactly, how would you like to look up the EJB's, or are you asking for a best practice? Describing your use case will help get the best answer, right now your question is extremely generic.

  • Dynamic EJB Client

    Hi there,
    I've a runtime problem. I don't know until runtime which ejb my client program wishes to lookup. Is there anyway of creating/retrieving the instance of a bean at runtime and ivoking business methods on the remote interface dynamically.
    All information I have got is this.
    String MyEjbBindName = args[0];
    String MyEjbHomeName = args[1];
    String MyEjbRemoteName = args[2];
    String MyEJbMethodName = args[3];
    Any ideas would be greatly appreciated. Thanks,
    Raj.

    Hy,
    It is posible
    This is the code:
    ========================
    package com.somepackage;
    import java.util.Properties;
    import java.lang.reflect.Method;
    import java.lang.reflect.InvocationTargetException;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.ejb.EJBHome;
    import javax.ejb.EJBException;
    import javax.rmi.PortableRemoteObject;
    public class EjbProxy
    private Properties _prop = null;
    public EjbProxy()
    public EjbProxy (String initContextFactory, String providerUrl)
    setContextProperties (initContextFactory, providerUrl, null, null);
    public EjbProxy (Properties prop)
    setContextProperties (prop);
    public void setContextProperties (Properties prop)
    _prop = prop;
    public void setContextProperties (String initContextFactory, String providerUrl,
    String user, String password)
    _prop = new Properties ();
    prop.put (Context.INITIALCONTEXT_FACTORY, initContextFactory);
    prop.put (Context.PROVIDERURL, providerUrl);
    if (user != null)
         prop.put(Context.SECURITYPRINCIPAL, user);
         if (password == null)
              password = "";
         prop.put(Context.SECURITYCREDENTIALS, password);
    public void setContextUserParam (String user, String password)
    if (_prop == null)
    _prop = new Properties ();
    prop.put(Context.SECURITYPRINCIPAL, user);
    prop.put(Context.SECURITYCREDENTIALS, password);
    public EJBHome getHome (String beanJndiLookupName) throws EJBException
    try
    InitialContext ctx = null;
         if (_prop != null)
              ctx = new InitialContext (_prop);
         else
              ctx = new InitialContext ();
    Object home = ctx.lookup(beanJndiLookupName);
    EJBHome obHome = (EJBHome)PortableRemoteObject.narrow (home, EJBHome.class);
    return obHome;
    catch (NamingException ne)
    throw new EJBException (ne);
    catch (Exception e)
                   e.printStackTrace();
    throw new EJBException (e);
    public Object getObj (String beanJndiLookupName) throws EJBException
    try
    EJBHome obHome = getHome (beanJndiLookupName);
    //get the method of create
    Method m = obHome.getClass().getDeclaredMethod("create", new Class[0]);
    //invoke the create method
    Object obj = m.invoke (obHome, new Object[0]);
    return obj;
    catch (NoSuchMethodException ne)
    throw new EJBException (ne);
    catch (InvocationTargetException ie)
    throw new EJBException (ie);
    catch (IllegalAccessException iae)
    throw new EJBException (iae);
    =====================================
    You can also get the code an further explanations from
    http://www.javaworld.com/javaworld/javatips/jw-javatip118.html
    Here you have something similar, but not that good:
    http://www.devx.com/premier/mgznarch/javapro/2001/02feb01/ru0102/ru0102.asp
    Now, the idea is that you can lookup a bean by only using it's jndi lookup name!
    This works fine..
    But, you must have your home and remote interface in your application classpath,
    otherwise you'll be unable to compile your code!
    And even if you would compile it, javax.InitialContext.lookup wouldn't create your
    object(it also checks in your classpath).
    You don't need this, do you?
    have a nice day,
    rudi vaum
    [email protected]

  • Error while invoking EJB lookup

    Hello
    Outline:
    Two DCs, one containing some JPA code, exposing method as EJB. The other generated as WS skeleton from ESR.
    Code in WS method:
    TrainingSBLocal bean = (TrainingSBLocal) context.lookup("app.company.pl/training2ear/LOCAL/TrainingSBBean"); 
    causes:
    ClassCastException: class com.sap.engine.services.jndi.implclient.ClientContext:service:naming_com.sap.engine.boot.loader.ResourceMultiParentClassLoader_e5025_alive incompatible with interface pl.company.app.zss_prototyp.TrainingSBLocal:app.company.pl/training2ear_com.sap.engine.boot.loader.ResourceMultiParentClassLoader_1b7731b_alive
    ("at" replaced by _ )
    WS DC is dependent on EJB one in Design, Deploy and Runtime.
    Any suggestions?
    Thanks in advance.
    Regards
    Maciej

    Ok, I got it working now, I found there's an OC4J_Client.zip not just oc4jClient.jar which has to be included in the classpath.
    Thanks

  • Problem in ejb lookup

    Hi,
    I am new to J2EE and JDeveloper. I am trying to manually migrate one Oracle Form to J2EE. I have created two jsps. First JSP creates UI, does all the validation and then calls second jsp for processing. In second jsp I am trying to get homeinterface for ejb on which I will call database operations method. The problem I am facing is I am not getting what exactly should be entry for lookup(calling lookup on initail context). I tried to locate it in orion-ejb-jar.xml and also in ejb-jar.xml but didn't get it. Pls help me regarding the same.
    Regds,
    Sampada

    Well this is possible only in JDeveloper.
    In the web.xml, specify the details as
    <ejb-ref>
    <ejb-ref-name>ejb/EmployeeHome</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <home>EmployeeHome</home>
    <remote>Employee</remote>
    <ejb-link>Employee</ejb-link>
    </ejb-ref>
    </web-app>
    In the orion-ejb-jar.xml, specify the following
    <orion-ejb-jar>
    <enterprise-beans>
    <session-deployment max-instances="-1" name="Employee" location="ejb/EmployeeHome"/>
    <entity-deployment max-instances="-1" name="EmpEB" copy-by-value="false" data-source="jdbc/EmpDS" exclusive-write-access="false"/>
    </enterprise-beans>
    In the snippet above, i access a session bean, you change this according to ur settings.
    The client code has been already posted above.
    regards,
    Sachin

  • EJB lookup in a cluster (DNS names to servers mapping)

              I am using weblogic6.0 to setup a object clusters. Currently I have 2 physical
              machine each running one object server.
              I have a servlet in the web tier (it is not part of the cluster) that lookups
              the EJB's.
              From the documentation, I understand intialContext lookup should use one DNS name
              that maps to both the object servers.
              My question is how can I setup that ?
              - I tried the following, I am not sure if this is right
              I created a virtualhost with
              name: MyVirtualHost
              virtual host names : MyCluster (this is name of the cluster I had setup )
              Targets : MyCluster
              I tried looking up with
              t3//MyVirtualHost:7001 and t3//MyCluster:7001
              No luck in both the cases !!!!!
              Note : I restarted my weblogic servers after
              creating the virtual host. But I did not reboot my machine ( don't know if this
              is required )
              Please help !!!!
              Thanks
              Abi -
              

              You need add an entry in Domain Name Server to include your host1 and host2, and
              use it in your JNDI lookup. Or you can do:
              t3://host1,host2:7001
              Both ways should work. Will load balancing to two JNDI trees.
              Jim Zhou.
              "Abinesh Puthenpurackal" <[email protected]> wrote:
              >
              >I am using weblogic6.0 to setup a object clusters. Currently I have 2
              >physical
              >machine each running one object server.
              >
              >I have a servlet in the web tier (it is not part of the cluster) that
              >lookups
              >the EJB's.
              >
              >From the documentation, I understand intialContext lookup should use
              >one DNS name
              >that maps to both the object servers.
              >
              >My question is how can I setup that ?
              > - I tried the following, I am not sure if this is right
              > I created a virtualhost with
              > name: MyVirtualHost
              > virtual host names : MyCluster (this is name of the cluster I had
              >setup )
              > Targets : MyCluster
              >
              >I tried looking up with
              >t3//MyVirtualHost:7001 and t3//MyCluster:7001
              >
              >No luck in both the cases !!!!!
              >
              >Note : I restarted my weblogic servers after
              >creating the virtual host. But I did not reboot my machine ( don't know
              >if this
              >is required )
              >
              >Please help !!!!
              >
              >Thanks
              >Abi -
              >
              

  • Dynamic JDNI lookup problem in 10.1.3

    Hi:
    what I have intented to do is to acheive failover JNDI lookup. Through OC4J_10_1_3_service guide, I have to do EJB clustering first.Since I use a standalone version, I can'ot follow the steps from OC4J_10_1_3_EJB_Developer's_Guide. I just have test the 3 ways offered by EM of OC4J, and I also creat a opmn.xml file under opmn/conf. I use java.naming.provider.url","lookup:ormi://*****:23791/******",but I can not got the failover lookup sucessful even for just one time.
    So plz give me a hand,if u have any suggestions! 3x a lot !!!
    PS:Does 10.1.3 still support the "lookup:" prefix in "lookup:ormi://*****:23791/******"?

    We use the getVariableData with three parameters :
    " The signature of this function is
    bpws:getVariableData (variableName, partName?, locationPath?). The arguments are:
    1)variableName - the source variable for the data,
    2)partName - the part to select from the variable (optional),
    3)locationPath - provides an absolute location path (with / meaning the root of the document fragment
    representing the entire part) "
    Don't you need the partname as second parameter?

  • Ejb lookup and oc4j container startup

    I have a servlet that is set to auto start on container startup that does a lookup on a ejb in another container. jndi locates the ejbhome but fails to load the class for the ejb home. It knows the name of the class but the classloader cannot find it. This same servlet works fine after the container has started up.
    It feel the problem is a classloader problem or a restriction by oracle. Any help is appreciated.
    Why can't the OC4J default application that auto starts servlets at container startup not find the ejbhome class?
    David Jacobs

    We have previously done it, but it only worked when we are using in 10g AS R1. But now, we are porting to R2, but it doesn't work. We didn't do any other things, just a simple lookup using the url, context factory. In R1 it worked fine, in R2, we are encountering the same, NameNotFoundException. Hope someone could help us also with this. Another thing, when we are using ormi://<rest of url>, it doesn't return any exception and our application hangs, but if we use opmn:ormi://<rest of URL>, that's the time it throws the NameNotFoundException. In R1, we didn't have any problems.

Maybe you are looking for

  • Why can't I use my iCloud email as my Apple ID's primary email?

    I want to use my iCloud email as my primary email address so that I can recieve purchase receipts on this email without having to repurchase all my apps and have to juggle two IDs. Apple seems to not want to let me do this. Is there anything I can do

  • HT204135 how do i set my macbook air to only print in black and white

    How do I set my MacBook air (mountain lion) to only print in black and white?

  • Envy 17t recovery

    new envy 17t, well refurbished.  first, I delete a lot of the crapware.  I have about 40GB on a Win install that I need.  good.  now, I need to move to an SSD.  (why would anyone still use an HDD on a nice notebook?  beats me.) I first try Paragon OS

  • Unable to generate statistics for the table

    I have got a staging table of more than 600 columns which has got range portioning. Size of the table is 4GB. The average size of the row is around 3 MB. I have created a Functional index on one of the column ABC VARCHAR2(50) and it has only number v

  • Locator or Spatial?

    Please excuse my ignorance but I need a clarification. We are running Oracle 10g and I'm new to using the spatial technology. I am able to successfully create and populate a SDO_GEOMETRY column in a table and generate a spatial index. How do I know i