J2EE Tutorial With Remote Client

Where can I find a J2EE tutorial that demonstrates a remote client accessing an EJB? The Sun tutorial are all localized examples. Does a remote client have to run on a J2EE server?
Thanks,
-Ray

Remote Clients do not have to run in a J2EE server. All you need is the j2ee.jar and your app server's required runtime jar file(s) e.g oracle9iAS(oc4j.jar) and the .properties files.
Let me know if you need any more information.

Similar Messages

  • Mouse Zoom with remote client

    Is there any way to perform a mouse zoom (hold down CONTROL and scroll up or down on the mouse) with the remote client? When I try this, it just zooms the screen on my own Mac.
    Thanks.

    Remote Clients do not have to run in a J2EE server. All you need is the j2ee.jar and your app server's required runtime jar file(s) e.g oracle9iAS(oc4j.jar) and the .properties files.
    Let me know if you need any more information.

  • It doesn�t work lazy loading with remote client (toplink)

    I am trying to use lazy loading in a @ManyToOne field but I get an exception. I have been reading in some oracle tutorials that it's necesary use -javaagent:.../lib/toplink-essentials-agent.jar for that it works because this argument activate dynamic weaving in JavaSE. I have put this command line argument javaagent but it doesn't work. Why? Can I have to do another thing? I have done a lot of tests in base to comments read in another forums but I only obtains an exception.
    Caused by: java.io.IOException: Mismatched serialization UIDs
    NOTE: The server use toplink and the remote client query the entitties through a session bean of the server. Besides, I am using Glassfish (Sun application server and toplink).
    Thanks in advance.
    hayken

    At first, thank you for your reply.
    I know that I haven´t explained the problem too well. I have a stateless bean with one remote method that execute a query an returns an entity like this
    @Entity
    public class ModuloEntity extends Serializable
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long idModulo;
    private String nombre;
    @ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="IdProyecto")
    private ProyectoEntity proyecto;
    The remote client invoke this method and in that moment I get this exception.
    21-may-2007 18:55:48 com.sun.corba.ee.impl.encoding.CDRInputStream_1_0 read_value
    ADVERTENCIA: "IOP00810211: (MARSHAL) Exception from readValue on ValueHandler in CDRInputStream"
    org.omg.CORBA.MARSHAL: vmcid: SUN minor code: 211 completed: Maybe
    at com.sun.corba.ee.impl.logging.ORBUtilSystemException.valuehandlerReadException(ORBUtilSystemException.java:7053)
    Caused by: java.io.IOException: Mismatched serialization UIDs : Source (Rep. IDRMI:com.syskonic.gesplan.entities.ModuloEntity:6D06A8C14D488FFF:8E6FC8687EA9E512) = 8E6FC8687EA9E512 whereas Target (Rep. ID RMI:com.syskonic.gesplan.entities.ModuloEntity:1C6925798CDFD3DF:3455DBF4457AE337) = 3455DBF4457AE337
    at com.sun.corba.ee.impl.util.RepositoryId.useFullValueDescription(RepositoryId.java:573)
    If I look the server log, I can see that the call has not been produced, it doesn´t show any exception. It looks that the object managed by the server and the remote client aren´t the same and the corba service doesn´t work when remote client call session method. If I change the ModuloEntity and remove the fetch attribute then all this process executes correctly. The problem is in this attribute.
    NOTE: I am using the javaagent command line argument.
    Hayken

  • Issues with remote client accessing EJB3

    Hi folks,
    I tested Weblogic 10.3 these days and had some trouble to access a stateless session bean (EJB3) via a remote Java client. My development system is Windows Vista 32bit.
    First, Weblogic doesn't like blanks in folder names! The Test Client throws an exception complaining that the business interface is not found:
    Exception in thread "Main Thread" java.lang.AssertionError: java.lang.ClassNotFoundException: ejb3session.Trader
    at weblogic.ejb.container.internal.RemoteBusinessIntfGenerator.generateRemoteInterface(RemoteBusinessIntfGenerator.java:69)
    at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.readObject(RemoteBusinessIntfProxy.java:205)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
    at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
    at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:197)
    at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:564)
    at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:193)
    at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:62)
    at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:240)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
    at weblogic.jndi.internal.ServerNamingNode_1030_WLStub.lookup(Unknown Source)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:392)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:380)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    at ejb3session.Client.lookup(Client.java:99)
    at ejb3session.Client.(Client.java:34)
    at ejb3session.Client.main(Client.java:61)
    Caused by: java.lang.ClassNotFoundException: ejb3session.Trader
    at weblogic.ejb.container.deployer.DownloadRemoteBizIntfClassLoader.getClassBytes(DownloadRemoteBizIntfClassLoader.java:85)
    at weblogic.ejb.container.deployer.DownloadRemoteBizIntfClassLoader.loadClass(DownloadRemoteBizIntfClassLoader.java:46)
    at weblogic.ejb.container.internal.RemoteBusinessIntfGenerator.generateRemoteInterface(RemoteBusinessIntfGenerator.java:66)
    In fact, the compiled class file of the business interface is located on the file system in a path that contains a blank. Debugging session shows that the internal weblogic class RemoteBusinessIntfGenerator fails to open the class file because of a wrong used URL file reference. If the path contains no blank, everything works fine. This is obviously a bug!
    Second, generics don't work in the business interface. As soon as I insert a generic return type or method parameter, I get an exception at runtime, no matter if the actually called method is generic or not:
    java.lang.NullPointerException
         at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.getTargetMethod(RemoteBusinessIntfProxy.java:162)
         at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:53)
         at $Proxy0.saveContact(Unknown Source)
         at Main.testIt(Main.java:45)
         at Main.main(Main.java:34)
    Third problem is already known by Oracle (CR373734): when using JPA and serializing entities to the remote client, serialization fails until you implement a writeObject() method in every entity.
    What is your experience concerning these issues? For my opinion quite severe bugs...
    Cheers, Thomas

    But most of the O/S like Linux ,Solaries does not allow blankspaces in the classpath. Only the O/S that does allow is Windows. and there are a lot of issues regarding the spaces in the classpath.
    If a blank in the classpath exist in the admin console as a remote start argument for a managed node, a patch exist.its CR375981.
    But for the above case 808498 (blank for remote client classpath) Engineering did not given any patch and asked to go with the work around ie not to use a blank in the classpath.
    Thanks !!

  • [Needing Help] J2EE proyect with Applet client

    Hello, I'm Maximiliano and I'm working in a proyect in J2EE.
    I'm using netbeans for developing.
    I'm trying to include a applet in my netbeans proyect but the netbeans IDE compile/save the classes in WAR/WEB-INF/classes and that folder it's not public, so i can't call my applet from my index.jsp.
    If i move the class file to the root of the WAR it works but the imports for mi ejbs are broken.(Because they're in /WEB-INF/lib)
    I've also tried to create a separate proyect for the applet and packaging all in a EAR package (with a simple ejb too) and it's not working either.
    What i need is if anyone can tell me how to call my packaged applet from my index.jsp
    I know including applets in html with <applet> tag but i cannot resolve the correct path to my applet, or if i have to modify my proyect.
    Thanks, Maximiliano.
    And example will be much apreciated.

    its a very good question actually - I have no idea how to achieve that. My gut feeling says that you certainly want to turn the applet into a separate project, as the applet is basically a client to your JEE environment and not part of the JEE application itself. Turning it into a separate war module seems like the thing to do - perhaps even put it outside your application EAR.
    The imports of the EJBs are not going to work in any case, even if you manage to get them on the applet's classpath. Your applet is not running on the server, thus it could only call EJB methods through the remote interface, for which you need a a set of libraries from the server and you somehow need to get the remote interface classes on the classpath of your applet - quite difficult to setup.
    If you want to invoke EJB methods from the applet, I would really suggest turning them into jax-ws webservices as that makes it such that you don't need any additional libraries to be able to do it. The Java 6 runtime already has jax-ws 2.x inside it, and it is dead easy to call a webservice from a client application.

  • J2EE questions with thick client

    I�m trying to move from an existing client-server Swing application (currently talks directly to a database via JDBC) to a 3-tier J2EE model. This is primarily so that I can use HTTP web services on port 80 to bypass firewalls, and to allow for future architectural expansion beyond the current Swing client. I am experienced with Java and Swing, but very new to J2EE, so I'm hoping that there are some obvious points that I am missing.
    I am surprised by the lack of 'thick client' examples, tutorials, and documentation that I see with J2EE - almost everything is oriented towards HTML web applications. Here are some questions that I have for using J2EE with a thick client (specifically Swing):
    * Where are business logic methods executed? On the client or the server? I get the impression that with J2EE and EJB, all business logic is executed on the server via RPC. Can I choose to have this done in the client instead? If so, how?
    * My Swing applications depend heavily on PropertyChangeEvents being fired from the data objects in order for me to update my UI. If the answer to the previous question is that all business logic is executed on the server, then is there a way for my client listeners to receive these change events? If not, how do I know when to update my UI?
    * If all business methods are executed on the server, what about accessor methods? Do those need to make a round trip for every call? I've read a little bit about Data Transfer Objects (DTO's) to solve this, but I don't completely understand the concept - if DTO's have no embedded business logic, then how do I know whether a particular getXXX() method has business logic attached to it, and therefore whether to reference the DTO or the server EJB object?
    Thanks for answers to these questions. Googling for 'J2EE' and 'thick client' came up with no useful information; I'm hoping to post a HOWTO that will help others after I get this running.

    The petstore sample application from blueprints (java.sun.com/blueprints) has an admin module which is a Java Webstart enabled "thick client" that gets business logic processing done on the server. Also the client chapter for the "designing enterprise apps with J2EE" book (also available as html from the same link) gives some tips on designing clients. These may be of help to you

  • Problem with remote debuging web start application

    Hi,
    There is the J2EE application with desktop client (it uses JNLP). In production everything is all right, but when i'm debugging it using eclipse, application always throws SecurityException (class "oracle.retail.sim.closed.item.StockItem"'s signer information does not match signer information of other classes in the same package). This occurs only when class loader is trying to load this class). Somebody have any sugestion? Where is the problem?
    Thanks in advance
    Best regards
    Neogen
    Edited by: neogen.pl on Oct 7, 2009 5:40 AM

    Hi,
      May be you can put an external breakpoint in the method "_get_attribute_rtti"(of class CL_WDR_CONTEXT_NODE_INFO).
    From that you can find out which attribute is causing the dump , and try to solve the issue . May be some data dictionary object is not transported to production.(Assuming that you have permission to put breakpoints in production system..:))
    Aditya.

  • Upgrade to SQL Anywhere16, is application w.Remote Client 9 running the same ?

    Hi SQLAnywhere folks,
    My customer is running SQL Anywhere9 + Remote Client 9(WinCE 5.0), however,
    they have to upgrade OS Windows sever 2003 to 2012, thus they have to upgrade SQL Anywhere 16.
    And I found from <http://scn.sap.com/docs/DOC-35934>
    " SQL Anywhere 16 database servers support connections from client applications using software from version 6.0.0 or
    later." i.e SQL Anywhere 16 supports Remote Client 9. Right ?
    Then the question is the applications with Remote Client 9(WinCE 5.0) are running well with SQL Anywhere 16.
    Any application modification required ?
    Any consideration/advice would be highly appreciated.
    Thanks a lot.
    JY Yang

    Hi Chris,
    Thanks for your reply.
    I'm afraid I don't have enough infomation how complex the application it is.
    Hence, we'll try it first, and then share the result.
    Thank you again.
    JH.

  • Re. J2EE Tutorial - Setting

    Hi,
    I am familiar to J2EE, but new to the new technlogies & working wth IDEs. I know this is not the right forum for my question, but i didn't find the best forum for my question. I have put the same question in J2EE SDK, so please ignore in that forum.
    I am learning with J2EE Tutorial with NetBeans. I create the examples on myself as mentioned in the tutorial. Currently, i m working on savingsAccount EJB. My problem is, on creating DB.
    I write
    asant -buildfile create-db.xmlas mentioned in tutorial.
    My root folder is D:\Trupti\Tutorials\J2EE-NB TUTORIAL\Projects
    I copied the common.properties & database.properties in my root folder. I needed to change my appserv folder, i did. Now still what is missing, y does it give this error msg. Where am i going wrong. If anybody can help would be really appreciative.
    On Dos prompt it gives as -
    D:\Trupti\Tutorials\J2EE-NB TUTORIAL\Projects\savingsAccount>asant -buildfile cr
    eate-db.xml
    Buildfile: create-db.xml
    startDB:
         [java] Server started, listening on port 9092, display level: 0 ...
    run:
         [java] *****************************************************************
         [java] -driver     com.pointbase.jdbc.jdbcUniversalDriver
         [java] -url        jdbc:pointbase:embedded:sample
         [java] -script     <none>
         [java] -user       PBPUBLIC
         [java] -password   PBPUBLIC
         [java] -autocommit true
         [java] -prompt2    true
         [java] -spoolfile  <none>
         [java] -silent     false
         [java] *****************************************************************
         [java] Database SAMPLE does not exist or cannot be found in database home \
    pointbase\databases specified either specify database.home=<folder> in pointbase
    .ini or use the <URL>;database.home=<folder> to indicate the database folder. po
    intbase.ini should be available in the current folder or you can specify the loc
    ation for pointbase.ini with java -D:property=value where "property" is pointbas
    e.ini and "value" is <path>pointbase.ini.
         [java] Java Result: -1
    BUILD SUCCESSFUL
    Total time: 3 seconds
    D:\Trupti\Tutorials\J2EE-NB TUTORIAL\Projects\savingsAccount>I hope i get some solution to it asap. If anybody has idea, which is the right forum for this question, please inform me.
    Thanks
    Trupti

    Well Lan, Yes I am using J2EE 1.4 Tutorial with Netbeans Version - the tutorial is specially designed to work with NetBeans & Sun AppSer.
    The tutorial says to run this command on command line. Here is the
    text from the tutorial that explains steps to create database:-
    Running the SavingsAccount Example
    Before you run this example, you have to create the database and deploy the
    SavingsAccount.jar file.
    Creating the Sample Database
    The instructions that follow explain how to use the SavingsAccountBean example
    with PointBase, the database software that is included in the Application
    Server bundle.
    1. In the IDE, choose Tools��PointBase Database��Start Local PointBase Database.
    2. Create the database tables by running the create.sql script.
    a. Make sure that the appsrv.root property in your
    <INSTALL>/j2eetutorial14/examples/ file points to the location of
    your local Application Server installation. ********* HERE MY FOLDER POINTS TO THE SERVER ************
    b. In a terminal window, go to this directory:
    <INSTALL>/j2eetutorial14/examples/ejb/savingsaccount/
    c. Type the following command, which runs the create.sql script:
    asant -buildfile create-db.xml
    3. In the Runtime window, expand the Databases node, right-click the
    jdbc:pointbase:server://localhost:9092/sun-appserv-samples
    node, and choose Connect. Type pbpublic as the password and click OK.
    Once the connection is established, expand the connection node�fs Tables node. There should be a node for the SAVINGSACCOUNT table.
    iS THEIR ANY OTHER WAY to run the create.sql script directly.
    Thanks
    Trupti

  • Obtain remote client IP address from webservice with WL 7.0.7

    Hi,
    Please Help!!
    I need to get the remote client IP address from inside a webservice but with WLS 7.0.7. I know it is possible with WL 8:
    WebServiceContext wsContext = WebServiceContext.currentContext();
    WebServiceHttpSessionImpl vHttp = (WebServiceHttpSessionImpl)wsContext.getSession();
    vHttp.request.getRemoteAddr();
    But WL 7 has not available WebServiceContext.currentContext() method.
    Thank you very much

    This was logged as an enhancement which I believe was hoping to make it into one of the later 6i releases of forms. Ref:<Bug:856958> if you can access via metalink or Support.
    Grant Ronald.

  • Problem in run remote client with appclient

    I am having problems to execute remote clients (remote machines) using script of client conteiner: appclient. Local it functions perfectly, however when executed in a remote machine, the application not run wheel.
    Thanks!

    Have you looked at the Developer's Guide?
    http://docs.sun.com/app/docs?q=clients&p=doc%2F819-0079
    Specifically the section on creating clients with and without the app client container?
    http://docs.sun.com/source/819-0079/dgacc.html

  • J2EE Tutorial - Application Client

    Hi,
    I've been trying to work through the J2EE Tutorial and I've come to a complete standstill at the EJB section. I have a few problems.
    First of all my deployment tool does not have a JNDI Names Tag as shown in the Mapping The Enterprize Beans Section (Chapter 19). How do I do this?
    I am getting the following error when I try to run my J2EE Application Client.
    Caught an unexpected exception!
    java.lang.ClassCastException
    at com.sun.corba.ee.impl.javax.rmi.PortableRemoteObject.narrow(PortableR
    emoteObject.java:229)
    at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:134)
    at ConverterClient.main(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.sun.enterprise.util.Utility.invokeApplicationMain(Utility.java:23
    7)
    at com.sun.enterprise.appclient.Main.<init>(Main.java:425)
    at com.sun.enterprise.appclient.Main.main(Main.java:97)
    Caused by: java.lang.ClassCastException
    at com.sun.corba.ee.impl.javax.rmi.PortableRemoteObject.narrow(PortableR
    emoteObject.java:212)
    Finally, can anybody recommend a good tutorial or book as I think the J2EE tutorial is unusually bad.

    http://docs.sun.com/source/819-0079/dgacc.html
    Finally, can anybody recommend a good tutorial or
    book as I think the J2EE tutorial is unusually bad.Search for Mastering EJB by Ed Roman. It should give a better understanding.

  • Easy print not working on a 64 bit Windows 8.1 client with Remote Desktop connection version 8.1

    Easy print is not working on a 64 bit Windows 8.1 client with Remote Desktop connection version 8.1 . Printers dont get redirected when you connect to the terminal server. The server we are connecting to has Windows 2008 server.  On 32 bit Windows
    7 and windows XP clients Easy print is working fine and printers get redirected in terminal server.

    I am having the exact same problem. Windows 7 works fine, but 8.1 will not redirect printers. Others said to check local policy terminal services settings and my setting are all set as they should.
    I think Windows 8.1 is not telling the terminal server what printers it has.

  • Tutorial on using client cert with Tomcat 5

    Hello,
    I'm looking for a tutorial on using client-cert method with tomcat 5.0.28 with jsp pages.
    I want to generate my own certs and keys.
    Is there anything like this on the web ?
    Thanks

    Maybe you could try searching the Tomcat mail archives or post your question to one of their mailing lists.
    http://jakarta.apache.org/site/mail.html

  • I unable to run ejb with application client using oc4j j2ee container

    Hi,
    I have installe oracle9i (1.0.2.2) oc4j j2ee container.
    I unable to run the ejbs . please help me how to run ejbs with application client and which files are shall configure.
    See the client application is :
    public static void main (String []args)
    try {
    //Hashtable env = new Hashtable();
    //env.put("java.naming.provider.url", "ormi://localhost/Demo");
    //env.put("java.naming.factory.initial", "com.evermind.server.ApplicationClientInitialContextFactory");
    //env.put(Context.SECURITY_PRINCIPAL, "guest");
    //env.put(Context.SECURITY_CREDENTIALS, "welcome");
    //Context ic = new InitialContext (env);
    System.out.println("\nBegin statelesssession DemoClient.\n");
    Context context = new InitialContext();
    Object homeObject = context.lookup("java:comp/env/DemoApplication");
    DemoHome home= (DemoHome)PortableRemoteObject.narrow(homeObject, DemoHome.class);
    System.out.println("Creating Demo\n");
    Demo demo = home.create();
    System.out.println("The result of demoSelect() is.. " +demo.sayHello());
    }catch ( Exception e )
    System.out.println("::::::Error:::::: ");
    e.printStackTrace();
    System.out.println("End DemoClient....\n");
    When I am running client application I got this type of Exception
    java.lang.SecurityException : No such domain/application: sampledemo
    at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java : 2040)
    at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java : 1884)
    at com.evermind.server.rmi.RMIConnection.lookup(RMIConnection.java : 1491)
    at com.evermind.server.rmi.RMIServer.lookup(RMIServer.java : 323)
    at com.evermind.server.rmi.RMIContext.lookup(RMIConext.java : 106)
    at com.evermind.server.administration.LazyResourceFinder.lookup(LazyResourceFinder.java : 59)
    at com.evermind.server.administration.LazyResourceFinder.getEJBHome(LazyResourceFinder.java : 26)
    at com.evermind.server.Application.createContext(Application.java: 653)
    at com.evermind.server.ApplicationClientInitialContext.getInitialContext(ApplicationClientInitialContextFactory.java :179 )
    at javax.naming.spi.NamingManager.getInitialContext(NamingManger.java : 246)
    at javax.naming.InitialContext.getDefaultInitialCtx(InitialContext.java : 246)
    at javax.naming.InitialContext.init(InitialContext.java : 222)
    at javax.naming.InitialContext.<init>(InitialContext.java : 178)
    at DemoClient.main(DemoClient.java : 23)
    .ear file is copied into applications directory.
    I have configured server.xml file like this
    <application name="sampledemo" path="../applications/demos.ear" />
    demos.ear file Contains following files
    application.xml
    demobean.jar
    Manifest.mf
    demobean.jar file contains following files
    application-client.xml
    Demo.class
    DemoBean.class
    DemoHome.class
    ejb-jar.xml
    jndi.properties
    Mainifest.mf
    Please give me your valuable suggestions. Which are shall i configure .
    Thanks & Regards,
    Badri

    Hi Badri,
    ApplicationClientInitialContextFactory is for clients which got deployed inside OC4J container..
    For looking up EJB from a stand alone java client please use RMIInitialContextFactory..So please change ur code....
    Also please check ur server.xml
    Since you have specified your ejb domain as "sampledemo"
    you have to use that domian only for look up..But it seems that you are looking up for "Demo" domain instead of "sampledemo" domain...So change your code to reflect that..
    Code snippet for the same is :
    Hashtable env = new Hashtable();
    env.put("java.naming.provider.url", "ormi://localhost/sampledemo");
    env.put("java.naming.factory.initial", "om.evermind.server.rmi.RMIInitialContextFactory");
    env.put(Context.SECURITY_PRINCIPAL, "guest");
    env.put(Context.SECURITY_CREDENTIALS, "welcome");
    Context ic = new InitialContext (env);
    Hope this helps
    --Venky                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for

  • Changing time stamp format in the file receiver adapter file name

    Hi all, How can we change the standard date time stamp from filename_yyyymmdd-hhmmss-mil to filename_yymmdd_hhmmss i.e.,  I want "underscores" instead of "hyphens" and also I do not want the MilliSeconds. I read in the forums that I have to use the c

  • Applet inside a JAR: Cannot access other classes within the JAR

    Hello, Description Web app + applet (packaged in a JAR) I have followed this tutorial JAR contents package mypackage SimpleApplet.class SimpleObj.class _"SimpleApplet" uses "SimpleObj"_ package mypackage; public class SimpleApplet extends JApplet {  

  • Error Executing J2EE server PLZ help

    Hi All Im using Windows 2003 professional J2SDK 1.3.0, J2SDKEE1.2.1 Please help me in this...can't able to start the server. When I gave j2ee -verbose, it gave the following result. D:\>j2ee -verbose J2EE server Listen Port: = 1049 org.omg.CORBA.INTE

  • IBook G3 external displays

    Looking to add on a external large screen display adjacent to my desktop/laptop iBookG3 which has one video out port. What requirements should I consider when purchasing one? Size wise I would consider 17" optimum. Connection requirements? Models to

  • Plz help.... EBay web service...

    Greetings all... First, I've gotten the SOAP Web service from Amazon to work which was an exciting moment for this old DBA who's trying this new fangled type of programming. Now, I'm trying to do the same for EBAY, but it seems different. For example