What is the remote JNDI for EJB 3.0 in Weblogic 10

I search the whole site, cant find any stuff about the Remote Business interface for a EJB 3.0,
I also try several string, only get a NameNotFoundException.
this is the thing I tried.
PackEARPack_jarEnterSvrBean_EnterSvr and EnterSvrBean#net.xxxx can get a object, but useless.
package net.xxxx;
import java.util.Hashtable;
import java.util.ResourceBundle;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import org.junit.Before;
import org.junit.Test;
public class TestA{
     @Test
     public void test() {
          ResourceBundle rb = ResourceBundle.getBundle("jndi");
          Hashtable<String, String> table = new Hashtable<String, String>();
          table.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");;
          table.put(Context.PROVIDER_URL, "t3://localhost:7001");
          table.put(Context.SECURITY_PRINCIPAL, "weblogic");
          table.put(Context.SECURITY_CREDENTIALS, "weblogic");
          Context context = null;
          try {
               context = new InitialContext(table);
          } catch (NamingException e) {
               e.printStackTrace();
          //print all result
          find(context, "net.xxxx.EnterSvrLocal");
          find(context, "net.xxxx.EnterSvr");
          find(context, "net.xxxx.EnterSvrBean");
          find(context, "net.xxxx.EnterSvrBean/remote");
          find(context, "net.xxxx.EnterSvrBean/local");
          find(context, "PackEAR/net.xxxx.EnterSvr");
          find(context, "PackEAR/net.xxxx.EnterSvrLocal");
          find(context, "PackEAR/net.xxxx.EnterSvrBean");
          find(context, "PackEAR/net.xxxx.EnterSvrBean/remote");
          find(context, "PackEAR/net.xxxx.EnterSvrBean/local");
          find(context, "PackEAR/Pack/net.xxxx.EnterSvr");
          find(context, "PackEAR/Pack/net.xxxx.EnterSvrLocal");
          find(context, "PackEAR/Pack/net.xxxx.EnterSvrBean");
          find(context, "PackEAR/Pack/net.xxxx.EnterSvrBean/remote");
          find(context, "PackEAR/Pack/net.xxxx.EnterSvrBean/local");
          find(context, "PackEAR/Pack.jar/net.xxxx.EnterSvr");
          find(context, "PackEAR/Pack.jar/net.xxxx.EnterSvrLocal");
          find(context, "PackEAR/Pack.jar/net.xxxx.EnterSvrBean");
          find(context, "PackEAR/Pack.jar/net.xxxx.EnterSvrBean/remote");
          find(context, "PackEAR/Pack.jar/net.xxxx.EnterSvrBean/local");
          find(context, "EnterSvr");
          find(context, "EnterSvrLocal");
          find(context, "EnterSvrBean");
          find(context, "EnterSvrBean/local");
          find(context, "EnterSvrBean/remote");
          find(context, "PackEAR/EnterSvr");
          find(context, "PackEAR/EnterSvrLocal");
          find(context, "PackEAR/EnterSvrBean");
          find(context, "PackEAR/EnterSvrBean/local");
          find(context, "PackEAR/EnterSvrBean/remote");
          find(context, "PackEAR/Pack/EnterSvr");
          find(context, "PackEAR/Pack/EnterSvrLocal");
          find(context, "PackEAR/Pack/EnterSvrBean");
          find(context, "PackEAR/Pack/EnterSvrBean/local");
          find(context, "PackEAR/Pack/EnterSvrBean/remote");
          find(context, "PackEAR/Pack.jar/EnterSvr");
          find(context, "PackEAR/Pack.jar/EnterSvrLocal");
          find(context, "PackEAR/Pack.jar/EnterSvrBean");
          find(context, "PackEAR/Pack.jar/EnterSvrBean/local");
          find(context, "PackEAR/Pack.jar/EnterSvrBean/remote");
          find(context, "EnterSvrBean#net.xxxx");
          find(context, "EnterSvrBean#net.xxxx.EnterSvr");
          find(context, "EnterSvrBean#net.xxxx.EnterSvrLocal");
          find(context, "EnterSvrBean#net.xxxx.EnterSvrBean");
          find(context, "EnterSvrBean#net.xxxx.EnterSvrBean/remote");
          find(context, "EnterSvrBean#net.xxxx.EnterSvrBean/local");
          find(context, "PackEARPack_jarEnterSvrBean_EnterSvr");
     private static void find(Context context, String str){
          try {
               Object o = context.lookup(str);
               System.out.println("success:"+str+", is class:"+o.getClass());
          } catch (NamingException e) {
               System.out.println("failed:"+str);
##################################################

I am having the same problem. Note what the API spec says
about mappedName at http://java.sun.com/javaee/5/docs/api/
If I take the default, which should be supported, and which seems to deploy normally, then there seems to be something missing from the JNDI tree (e.g. having the class: $Proxy126).
Can't the deployment generate a default object for the lookup?

Similar Messages

  • What is the new link for EJB known issues for OC4J 903

    This link does not work
    http://otn.oracle.com/tech/java/oc4j/htdocs/oc4j-known-issues.html ?
    can anyone point me to the right link?

    The release notes for 9.0.3 production version can be found at http://otn.oracle.com/docs/products/ias/doc_library/903doc_otn/sol.903/relnotes/oc4j.htm#1002341
    regards
    Debu

  • What is the best  way for using a  C++ in the EJB?

    What is the best way for using C++ in the EJB ie
    either 1. Socket programming
    2. JNI

    To what purpose?
    To use C++ in the client you could generate IDL from your remote interfaces and run that through your vendor's IDL-to-C++ processor.

  • What are the correct settings for my WRT54GS for using remote access on a Windows Home Server?

    I can not remotely access my Windows Home Server from outside.  What are the correct settings for my WRT54GS?

    I have opened ports 80, 443,and 4125 to PCP.  The  router address is http://192.168.1.1, my address is 221.40.138.170.
    Thank you.

  • What are the network requirements for the Remote Panel Server?

    What are the network requirements for the Remote Panel Server?
    I've been trying for a while now to setup a Remote Panel.  I can connect to my computers remote panel from other computers on my LAN but nowhere else.  
    When ever I use the web publishing tool it gives me a URL in this format:  http://Computer-Name.Corporate-Name.local:8086/VI-Name.html Apparently this means I have a local DNS server and this URL has no meaning from the public.
    When I try connecting with the Operate>>Connect to Remote Panel..., I get this error message:
    "Connecting to remote panel server...
    Remote panel connection refused by specified server: Make sure LabVIEW Web Server is enabled on specified server"
    I got the same error when I tried to host a remote panel from my laptop at home, on my Wi-Fi.  Is there some network or firewall setting I'm not seting?  Could it be my server or router or private network?
    My goal is to be able to host Remote Panels from my laptop while I am travailing internationally, by using 4G mobile internet.  Is that even passable?
    Solved!
    Go to Solution.

    Over_Nyquest
    Have you enabled the Remote Panel Server in the Web Server options on the server?
    Kyle B  |  Product Support Engineer  |  ni.com/support

  • TS1741 what is battery number for the remote control for apple TV

    What is the battery number for the remote control for apple TV

    Hello,
    should be CV2032 or BR2032.
    Hope that helps.
    Cheers

  • What is the exact syntax for calling remote function module.

    Hi to all
    1.....what is the exact syntax for calling remote function module.?
    Thanks and regards,
    k.swaminath reddy

    hi
    good
    Lets do simple example where you will first create a RFC in one server (say A) and create normal program in othere server (say B). Finally you will call the RFC in A from B.
    Do the following steps for creating RFC in server A.
    1. log on to server A
    2. go to se37
    3. Edit -> function groups-> create function group and give the function group name (say ZGRP).
    4. create a FM ( say Z_TEST_RFC) in se37 providing the function group which is created just now.
    5. go to attribute tab -> choose remote-enabled module from processing type.
    so that your FM will become RFC.
    6. provide the import parameter in import tab.
    we will provide only two import parameters.
    - parameter name : P_NUM1, typing: TYPE, associated type : I & check the pass value (all the parameters of RFC must pass by value).
    - parameter name : P_NUM2, typing: TYPE, associated type : I & check the pass value
    7. provide the export parameter in export tab.
    parameter name : P_SUM, typing: TYPE, associated type : I & check the pass value
    8. write the given simple code in source code tab.
    FUNCTION Z_TEST_RFC.
    P_TOT = P_NUM1 + P_NUM2.
    ENDFUNCTION.
    Do the following steps for creating ABAP program which will call the RFC in server B.
    1. se38 - > creat a program.
    2. write the given simple code.
    data tot type i.
    call function 'Z_TEST_RFC' destination 'XXXXXX'
    exporting
    p_num1 = 10
    p_num2 = 15
    importing
    p_tot = tot.
    write tot.
    please note that XXXXXX is RFC connection which is avialable in sm59 transaction in server A.
    -go to sm59 - > abap connection (list of RFC connection configurations are avialable). choose server B connection and replace it of XXXXXX in the code.
    finally you can execute the normal abap program that will call the RFC and display the result.
    reward point if helpful.
    thanks
    mrutyun^

  • What's the best APP for remote desktop viewing?

    There are so many ... !
    Also, what's the best app for file sharing between ipad and computer? Thanks!

    Yeah, I guess doing extensive editing with DTG isn't much fun. The only way to get it from DTG to Pages is to email the file from DTG to yourself. DTG lets you email any of its files. Then from the iPad's email, open the file in Pages (when you open the document there will be an "Open in Pages" button on the top right). However, the only way to get it back into DTG is to again email the Pages file back to yourself (as a Word file), open it from your computer, replace the old file with this one and then resync with DTG.
    There's also a bug in DTG's reader which tends to cut off one side of the doc when you scroll thru it. Hopefully DTG will have an update soon. They say it's coming on their app page. I think you'll be much happier with it when that happens.
    Go to App Support from the App page of FileBrowser in the App Store. There on the right of the opening web page you'll see setup instructions for the Mac and Windows XP (the Windows XP instructions work pretty much the same way for everything up to and including Windows 7). That should get you up and running with FileBrowser. It's really pretty easy once you know what to put in those blanks.
    Sorry you're not happy with these. Hope they get to be a better experience for you. Feel free to email me with any questions you may have.

  • What are the necessary elements in ejb-jar.xml with CMP entity bean

    What are the necessary elements in ejb-jar.xml with CMP entity bean
    Actually i am using webligic 8.1 and while deployment getting the error that
    some elements r missing
    Thanks
    Anand Pritam

    According to the ejb-jar.xml dtd ejb-name, ejb-class, persistence-type, prim-key-class, reentrant are the required elements for an entity bean.
    <!ELEMENT entity (description?, display-name?, small-icon?,
              large-icon?, ejb-name, home?, remote?, local-home?,
              local?, ejb-class, persistence-type, prim-key-class,
              reentrant, cmp-version?, abstract-schema-name?,
              cmp-field*, primkey-field?, env-entry*, ejb-ref*,
              ejb-local-ref*, security-role-ref*, security-identity?,
              resource-ref*, resource-env-ref*, query*)>

  • How to access the Remote Appserver thru EJB

    hi friends...
    How to access the Remote appserver thru EJB from a Portlet.
    I've tried but its not working u have any idea Plz help me out...
    The scenario is I have my portal running in my machine & appserver(weblogic) running in remote and want to access that appserver
    thru Remote EJB from my portal. I have tried with the t3 protocol and iiop but it is not working
    The code i have use
    Properties props = new Properties();
    props.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
    props.put(javax.naming.Context.PROVIDER_URL, "t3://10.1.87.46:7031");
    it is giving me a nullpointer exception when i try to access the method in the ejb , it is not able to call that method...
    Plz help me out to resolve this situation
    Thnx in Advance.....

    SanjayBala, just so you know that it is possible to create a database link in Oracle to non-Oracle databases in some circumstances. Look up Generic Connectivity aslo know as Heterogenous Services. With 11g Oracle has basically renamed the feature and replaced it with somethinkg named ike DG4ODBC.
    I have not spent time studying the details for DB4ODBC but with HS Oracle provided the interface and you had to obtain the necessary ODBC driver on your own. I had Oracle on AIX reading and writing to SQL Server on Windows but the developers chose to write a java program and connect to both via it. On Windows and Linux platforms the necessary ODBC drivers might be available without the requirement to go out and purchase one.
    The Oracle Open Gateway product is an advanced version of the above features with drivers for specific non-Oracle databases included like DB2 or Informix.
    HTH -- Mark D Powell --

  • What's the available value for weblogic.jsp.encoding in web application.

    Hi,
              I'm using chinese windows nt 4.0 and weblogic 5.1 sp6.When I did not set
              weblogic.jsp.encoding to GB2312 , when the jsp file contain's chinese , the
              output will be error .And when I did not set it , the output is correct, but
              when I use request.getParameter("SomeFormElement")(the element inputed
              chinese), the return value is error.
              How should I set weblogic.jsp.encoding value to satisfy all this problem?
              When I set the value to ISO-8859, there is an exception:
              java.io.UnsupportedEncodingException: Charset: 'ISO-8859' not recognized,
              and there is no alias for it in the weblogic.httpd.charsets property. So
              What's the available value for weblogic.jsp.encoding in web application?
              Pan
              

    hi ,
    i think the best way is to create java beans ,in that bean call your EJB ,
    and check the validation over there.
    and make that bean scope to session.
    in each and everypage try to check the session ,if it is not valid then forward to your login page...
    otherwise continue to give access to him like guest
    Regards,
    AfTaB

  • What is the latest version of EJB ?

    a) what is the latest version of EJB ? and
    b) what was the version prior to the latest version ?
    Any good book suggestion for option - b

    The latest version is EJB 3.0, which is part of Java EE 5.
    The spec can be found here :
    http://www.jcp.org/en/jsr/detail?id=220
    There's EJB 3.0 coverage in the Java EE 5 tutorial :
    http://java.sun.com/javaee/5/docs/tutorial/doc/
    You can find additional resources here :
    https://glassfish.dev.java.net/javaee5/ejb/
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • What are the setup requirements for QTP to recognize objects in Macro Media Flash?

    What are the setup requirements for QTP to recognize objects in Macro Media Flash? I have already installed Flex plug-in 4.6 in QTP 11 but QTP still could reconize any objects in the application.

    Over_Nyquest
    Have you enabled the Remote Panel Server in the Web Server options on the server?
    Kyle B  |  Product Support Engineer  |  ni.com/support

  • What is the Remote Desktop?

    This morning, I found three files: adoption.plist, tud.plist and utdcheckinDone from HD--Library--Application Support-- Apple Store again.  It came at 5:10am this morning.  I don't know where it got into my Mac.  Also, I found Remote Desktop from HD--Library--Application Support--Apple.  I didn't use Remote, but it was there.  What is the Remote Desktop?

    Thanks for telling that.  I was online awhite, then I turned around for sometime, when came back, window had slept and needed to sign in, but I couldn't.  Was that Apple's software for managing networded Mac systems lock me out?  Please reply me, I will appreciate that.  Why did it do that to me?  Why?  Do I need to go Apple to ask why?
    Thank you so much for this information. 
    I am worried about my Mac.  Do you know what is adoption.plist, utd.plist and utdcheckinDone?  If you can and know, please let me know what it is.  Thank you.  Appreciate that.  Good night
    Best Regard
    Rose

  • I wonder to know what is the enterprise solution for windows and application event log management and analyzer

    Hi
    I wonder to know what is the enterprise solution for windows and application event log management and analyzer.
    I have recently research and find two application that seems to be profession ,1-manageengine eventlog analyzer, 2- Solarwinds LEM(Solarwind Log & Event Manager).
    I Want to know the point of view of Microsoft expert and give me their experience and solutions.
    thanks in advance.

    Consider MS System Center 2012.
    Rgds

Maybe you are looking for

  • Black screen during windows 7 install on 27inch iMac

    My iMac turns to a black screen during windows 7 boot camp install. I can use the install disk on my wifes Macbook Pro so I know that the media is good.

  • Using Illustrator CS6, how to preserve drawn colors when Save For Web to PNG?

    Using Illustrator CS6 on Mac OSX 10.9.1: step 1. I open a new file for Web profile. step 2. I verify that File > Document Color Mode is RGB. step 3. I draw a square and set it's color to 0,103,197 (decimal). step 4. I click File > Save For Web step 5

  • Is this even possible...if so advice??

    Hi Everyone, So I need to tap into the great knowledge of others on here and see if anyone has either some advice or maybe recommended resources to check on this question. I am setting up a small business with a Mac Mini Server and my client asked me

  • Does skype run through safari?

    Hiya, I'm really not technically minded so please bare with me! My parents are going on a cruise to the Caribbean from the UK and we were trying to work out the best way to keep in touch. So me and my dad (we both have iphone 4's) have down loaded th

  • Deleting iMovie files & exported movies causes errors in all of iLife

    I just went through quite an ordeal... In an attempt to clean up some space, I deleted a bunch of my iMovie project files and movies after backing them up (files in the default Movies folder). I have deleted iMovie projects before with no issues. Thi