EJB question

Dear fellow Java developers:
I have a very straightforward question regarding ejb deployment using weblogic. In using the "jar" command of java, I have seen in various tutorials on ejb various uses of the command and want to know what is in fact happening.
Question 1:
the command:
c:\jar cvf PRE_HelloworldEJB.jar -C ejb_build META-INF -C ejb_build com
---------> what does the -c command mean, and what does the line
"-C ejb_build META-INF -C ejb_build com" do?
Question 2:
what is the difference between
c:\jar -cv0f tmp_day05_SignOn.ar META-INF day05
and this line:
c:\jar cvf PRE_HelloworldEJB.jar -C ejb_build META-INF -C ejb_build com
other than the name of the files? I mean what is the difference between jar -cvf and jar -cv0f????
Question 3:
In the following line:
c:\java weblogic.ejbc -keepgenerated -g -deprecation build\tmp_day05_SignOn.jar build\day05_SignOn.jar
what is the function of -keepgenerated -g -deprecation??? are they required?
Question 4:
what do the commands -g and -d mean?
I am sorry for the simplicity of the questions, but I am trying to be thorough. I appreciate any and all help.
Take care.
Sincerely;
Fayyaz

As far as weblogic commands are concerned the options tht u have asked are
-d : sets the destination directory for the generated XML files. This directory must exist before you run DDConverter
-keepgenerated :saves the intermediate Java files generated during compilation.
-C is a jar option that switches to a specified directory and includes the following file/files
jar cf0v does not do any zip compression.it stores only
hope that helps
cheers
sicilian

Similar Messages

  • EJB question: How to use abstract class in writing a session bean?

    I had written an abstract class which implements the session bean as follow:
    public abstract class LoggingSessionBean implements SessionBean {
    protected SessionContext ctx;
    protected abstract Object editRecord(Object obj) throws Exception;
    public LoggingSessionBean()
    super();
    private final String getBeforeUpdateImage(Object obj) throws Exception {
    // implement the details of extracting the backup image ...
    public void setSessionContext(SessionContext ctx)
    this.ctx = ctx;
    private final void writeThisImageToDatabase(String aStr) {
    // connect to database to write the record ...
    public final Object update(final Object obj) {
    try {
    final String aStr = getBeforeUpdateImage(obj);
    writeThisImageToDatabase(aStr);
    editRecord(obj);
    } catch (Exception e) {
    ctx.setRollbackOnly();
    This abstract class is to write the backup image to the database so that other session beans extending it only need to implement the details in editRecord(Object Obj) and they do not need to take care of the operation of making the backup image.
    However, some several questions for me are:
    1. If I write a class ScheduleSessionBean extending the above abstract class and the according 2 interfaces ScheduleSession and ScheduleSessionHome for this session bean (void update(Object obj); defined in ScheduleSession), do I still need to write the interfaces for LoggingSession and LoggingSessionHome?
    2. If I wrote the interface LoggingSession extending EJBObject where it defined the abstract methods "void update(Object obj);" and "void setSessionContext(SessionContext ctx);", that this meant I needed to write the ScheduleSession to implement the Logging Session?
    3. I used OC4J 9.0.4. How can I define the ejb-jar.xml in this case?

    Hi Maggie,
    1. do I still need to write
    the interfaces for LoggingSession and
    LoggingSessionHome?"LoggingSessionBean" can't be a session bean, because it's an abstract class. Therefore there's no point in thinking about the 'home' and 'remote' interfaces.
    2. this
    meant I needed to write the ScheduleSession to
    implement the Logging Session?Again, not really a question worth considering, since "LoggingSessionBean" can't be an EJB.
    3. I used OC4J 9.0.4. How can I define the
    ejb-jar.xml in this case?Same as you define it for any version of OC4J and for any EJB container, for that matter, since the "ejb-jar.xml" file is defined by the EJB specification.
    Let me suggest that you create a "Logging" class as a regular java class, and give your "ScheduleSessionBean" a member that is an instance of the "Logging" class.
    Alternatively, the "ScheduleSessionBean" can extend the "Logging" class and implement the "SessionBean" interface.
    Good Luck,
    Avi.

  • Stateless Session Bean + EJB Question + Jboss

    Hello,
    If I have a stateless session bean on a linux machine and it works locally what do i need to do to access a method in the session bean from a remote windows machine.
    I would like to be able to execute my client jar file on a windows machine and have it access the jboss server on the linux machine. what do i need to do?
    i have the session bean working locally on both windows and linux machine. do i need to to have a JSP/Servlet to access the session bean? can the session bean not be accessed directly? what should my classpath look like? do I need to include extra jar files in my client jar file.?
    Thanks,
    Joyce

    Thanks guys for the help but I am still a little lost.
    My Client windows machine has the client jar file and all the other jar files. This is my client class
    package helloworld.client;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import java.util.Hashtable;
    import java.util.Properties;
    import helloworld.interfaces.HelloWorldHome;
    import helloworld.interfaces.HelloWorld;
    public class HelloClient
         public static void main(String[] args)
              Hashtable prop = new Hashtable();
              prop.put ("java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces");
              prop.put ("java.naming.provider.url","jnp://172.16.220.160:1099");
              prop.put ("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
              try
                   Context ctx = new InitialContext(prop);
                   Object obj = ctx.lookup("ejb/helloworld/HelloWorld");
                   System.out.println(obj);
                   HelloWorldHome home = (HelloWorldHome)javax.rmi.PortableRemoteObject.narrow(obj, HelloWorldHome.class);
                   HelloWorld helloWorld = home.create();
                   String str = helloWorld.sayHelloEJB("JOYCE is COOL");
                   System.out.println(str);
                   helloWorld.remove();
              catch(Exception e)
                   e.printStackTrace();
    I get a NullPointer ie the home object is null. The IP address is the IP of the Linux machine that has Jboss running on.
    Questions are:
    1. Do I need to have Tomcat running on my client machine if I am to connect via HTTP? Does this alter my client code.?
    2. My JNDI lookup is what is causing the problem. Does my jboss.xml and my ejb-jar.jar look okay to you.
    jboss.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS//EN" "http://www.jboss.org/j2ee/dtd/jboss.dtd">
    <jboss>
    <enterprise-beans>
    <session>
    <ejb-name>helloworld/HelloWorld</ejb-name>
    <jndi-name>ejb/helloworld/HelloWorld</jndi-name>
    </session>
    </enterprise-beans>
    <resource-managers>
    </resource-managers>
    </jboss>
    ejb-jar.jar
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar >
    <description>No Description.</description>
    <display-name>Generated by XDoclet</display-name>
    <enterprise-beans>
    <!-- Session Beans -->
    <session >
    <description><![CDATA[No Description.]]></description>
    <ejb-name>helloworld/HelloWorld</ejb-name>
    <home>helloworld.interfaces.HelloWorldHome</home>
    <remote>helloworld.interfaces.HelloWorld</remote>
    <ejb-class>helloworld.session.HelloWorldBean</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Bean</transaction-type>
    </session>
    <!--
    To add session beans that you have deployment descriptor info for, add
    a file to your merge directory called session-beans.xml that contains
    the <session></session> markup for those beans.
    -->
    <!-- Entity Beans -->
    <!--
    To add entity beans that you have deployment descriptor info for, add
    a file to your merge directory called entity-beans.xml that contains
    the <entity></entity> markup for those beans.
    -->
    <!-- Message Driven Beans -->
    <!--
    To add message driven beans that you have deployment descriptor info for, add
    a file to your merge directory called message-driven-beans.xml that contains
    the <message-driven></message-driven> markup for those beans.
    -->
    </enterprise-beans>
    <!-- Relationships -->
    <!-- Assembly Descriptor -->
    <assembly-descriptor >
    <!-- finder permissions -->
    <!-- transactions -->
    <!-- finder transactions -->
    </assembly-descriptor>
    </ejb-jar>
    Do I need RMI ? Do I need to concern myself with CORBA? All Im looking for is a step by step to understanding what I need to configure? Is their some way I can debug?
    Thanks alot,
    Joyce

  • Simple Java EJB question.

    When it comes to EJB v3 Remote and Local interfaces,
    (With JBoss EJB Container Software in mind, for this question,)
    -Does the Remote interface for the EJB include method signatures from the Bean class
    -that are to be seen
    -that are to be hidden?
    -Does the Local interface for the EJB include method signatures from the Bean class
    -that are to be seen
    -that are to be hidden?
    Which is which for
    -EJB 2.1 ?
    -EJB 3.x ?
    - is EJB 3.x reverse compatible in that it allows use of the javax.ejb.* interfaces,
    and would accept a EJB 2.1 approach, or does it force one to use Annotations
    exclusively?
    Edited by: Zac1234 on Jul 21, 2010 5:21 PM

    muiajc wrote:
    I know this is a simple question, but I can't search for the answer to this because it involves syntax that Google and the like don't seem to search for..
    I am trying to figure out some Java code that I have found. I would like to know what:
    a[--i] and a[++j] mean.
    It mean increase/decrease the int i/j by 1. This is done before it gets you the value of a[]. for example if i=5 and you said a[--i] it is really a[4] and i is now equal to 4;

  • EJB Question Please help me

    Hi
    I am preparing for certification exam. I don't know the correct answer of these question. Please help me.
    Regards
    Arghya Banerjee
    ========================================================================
    1. While testing a BMP Entity Bean, a developer discovers that a transaction rollback does not cause a rollback of the changes made to the bean as it should. Which of the following should the developer suspect?
    A.     The ejbPassivate() method has a bug.
    B.     The ejbStore() method has a bug.
    C.     The ejbCreate() method has a bug.
    D.     The datastore does not support JTA.
    E.     The transaction does not implement javax.transaction.UserTransaction.
    Select 2 answers.
    2.     A Servlet must perform 3 operations that are independent of one another. They are time consuming with each operation consuming about 10 msec of CPU. The Servlet's response depends on the completion of all three operations. The developer decides to perform each operation on a separate worker thread to run them concurrently. Which of the following describe important parts of this implementation?
    A.     The Servlet should implement MultiThreadModel
    B.     The Servlet should implement SingleThreadModel
    C.     Access to the HttpSession must be synchronized.
    D.     The worker threads must not write to the ServletOutputStream.
    E.     The worker threads must not read from the ServletInputStream.
    Select the best answer.
    3. A client invokes the create() method on an CMP entity bean. Which of the following is a correct sequence in which the operations mentioned below are performed?
    a.     Container creates an EJBObject.
    b.     EJB home object invokes ejbCreate() on Bean instance
    c.     Bean instance is associated with EJBObject.
    d.     Container creates new bean instance.
    e.     Container calls setEntityContext() on bean instance.
    f.     Container creates the bean representation in a database.
    g.     ejbPostCreate() method is invoked on bean instance.
    A.     b -> f -> a -> c -> g
    B.     b -> a -> f -> c -> e -> g
    C.     a -> d -> c -> b -> e -> g -> f
    D.     a -> d -> c -> b -> f -> g -> e
    E.     a -> c -> e -> b -> f -> g
    Select the best answer.
    4.     A Web site is getting a lot of 'hits' and the amount of session data managed by the server is becoming too large for it to handle. Which of the following are appropriate ways to solve the problem?
    A.     Expand the capacity of the server.
    B.     Add additional servers to share the load.
    C.     Store the session data in a Cookie.
    D.     Store all session data in hidden fields on the web pages that are served.
    5. A developer wishes to make a server function available to an applet via a Servlet. The applet passes the Servlet a serialized object as an argument. How should the developer implement the Servlet?
    A.     Sub-class HttpServlet and create an ObjectInputStream from the
    ServletInputStream in the doGet() method.
    B.     Sub-class HttpServlet and create an ObjectInputStream from the
    ServletInputStream in the service() method.
    C.     Sub-class GenericServlet and create an ObjectInputStream from the
    ServletInputStream in the doGet() method.
    D.     Sub-class GenericServlet and create an ObjectInputStream from the ServletInputStream in the service() method.
    Select the best answer.
    6. While testing a CMP Entity bean, a developer discovers that a change to one of the bean's properties is not being reflected in the database that contains the bean data. What are possible causes?
    A.     The ejbStore() method has a bug.
    B.     The ejbCreate() method has a bug.
    C.     The setter for the property has a bug.
    D.     The mapping of container managed fields to database fields has a bug.
    E.     The deployment descriptor has a bug.
    F.     The ejbLoad() method has a bug.
    Select 4 answers.

    Hi Arghya ,
    From where you have taken these quetions , are they from the book.
    1. While testing a BMP Entity Bean, a developer
    discovers that a transaction rollback does not cause a
    rollback of the changes made to the bean as it should.
    Which of the following should the developer suspect?
    A.     The ejbPassivate() method has a bug.
    B.     The ejbStore() method has a bug.
    C.     The ejbCreate() method has a bug.
    D.     The datastore does not support JTA.
    E.     The transaction does not implement
    javax.transaction.UserTransaction.
    Select 2 answers.
    D,B If the Transaction is rolled back there are the possibility that either the datasource doesnot support it or the bean is updating the inconsistent data, so mostly problem in ejbStore() where there is a database update.
    2.     A Servlet must perform 3 operations that are
    independent of one another. They are time consuming
    with each operation consuming about 10 msec of CPU.
    The Servlet's response depends on the completion of
    all three operations. The developer decides to perform
    each operation on a separate worker thread to run them
    concurrently. Which of the following describe
    important parts of this implementation?
    A.     The Servlet should implement MultiThreadModel
    B.     The Servlet should implement SingleThreadModel
    C.     Access to the HttpSession must be synchronized.
    D.     The worker threads must not write to the
    ServletOutputStream.
    E.     The worker threads must not read from the
    ServletInputStream.
    Select the best answer.
    Now here what is the worker Thread should not write to output stream as if it does then there will be wrong formatting of the data, we are bothered about to improve the throughput so we have spawned three worker thread.Also there is no dependency so D is proper one
    3. A client invokes the create() method on an CMP
    entity bean. Which of the following is a correct
    sequence in which the operations mentioned below are
    performed?
    a.     Container creates an EJBObject.
    b.     EJB home object invokes ejbCreate() on Bean
    instance
    c.     Bean instance is associated with EJBObject.
    d.     Container creates new bean instance.
    e.     Container calls setEntityContext() on bean
    instance.
    f.     Container creates the bean representation in a
    database.
    g.     ejbPostCreate() method is invoked on bean
    instance.
    A.     b -> f -> a -> c -> g
    B.     b -> a -> f -> c -> e -> g
    C.     a -> d -> c -> b -> e -> g -> f
    D.     a -> d -> c -> b -> f -> g -> e
    E.     a -> c -> e -> b -> f -> g
    Select the best answer.
    Client invokes the create method on the home which inturn prepares the EJBObject and attaches the bean instance to the EJBObject and returned the reference to the client.So the option E.
    >
    4.     A Web site is getting a lot of 'hits' and the
    amount of session data managed by the server is
    becoming too large for it to handle. Which of the
    following are appropriate ways to solve the problem?
    A.     Expand the capacity of the server.
    B.     Add additional servers to share the load.
    C.     Store the session data in a Cookie.
    D.     Store all session data in hidden fields on the web
    pages that are served.
    You have to use the Load balancing tech , go for distributed technology B , the processing speed is now the criteria so you distribute the work.
    5. A developer wishes to make a server function
    available to an applet via a Servlet. The applet
    passes the Servlet a serialized object as an argument.
    How should the developer implement the Servlet?
    A.     Sub-class HttpServlet and create an
    ObjectInputStream from the
    ServletInputStream in the doGet() method.
    B.     Sub-class HttpServlet and create an
    ObjectInputStream from the
    ServletInputStream in the service() method.
    C.     Sub-class GenericServlet and create an
    ObjectInputStream from the
    ServletInputStream in the doGet() method.
    D.     Sub-class GenericServlet and create an
    ObjectInputStream from the ServletInputStream in the
    service() method.
    Select the best answer.
    I have to refer some docs for this
    6. While testing a CMP Entity bean, a developer
    discovers that a change to one of the bean's
    properties is not being reflected in the database that
    contains the bean data. What are possible causes?
    A.     The ejbStore() method has a bug.
    B.     The ejbCreate() method has a bug.
    C.     The setter for the property has a bug.
    D.     The mapping of container managed fields to database
    fields has a bug.
    E.     The deployment descriptor has a bug.
    F.     The ejbLoad() method has a bug.
    Select 4 answers.
    If there is the problem in the deployment descriptor then there ejb will not deploy at all .As the problem comes in updating I can make so no problem in the ejbCreate() also , but then many other consideration has to be taken .So I have my answer as
    A,C,D,F
    That is all I can say.
    Regard
    Vicky

  • Tuxedo calling EJB question

    Folks,
    I have read some documentation about WTC and got in doubt.
    In order to have the EJB access from Tuxedo service, I have to make it as an EJB 2.0 putting the RemoteHome and Remote as some Weblogic Tuxedo classes.
    That is fine.
    My question: does the method name have to be "service" always?
    I saw that in the example and could not find any other example. Also, testing, it has not executed with any other name.
    http://download.oracle.com/docs/cd/E12840_01/wls/docs103/pdf/wtc_atmi.pdf&chrome=true
    Could you someone give me any light? :-)
    Thanks in advance.

    Hi Richardinho,
    Are you access Tuxedo Service through EJB? or trying to call an EJB from Tuxedo Service?
    If you are accessing Tuxedo Service using an EJB, it should work with any name (EJB name and method can have any name you want).
    Regards,
    Ahsan

  • Basic JNDI et EJB question

    Hello,
    I have a client accessing an EJB deployed in an EJB container.
    import javax.naming.*;
    Context ctx = getInitialContext();
    DemoHome dhome = (DemoHome) ctx.lookup("MaDemo.DemoHome");(getInitialContext returns a Context object and there is no directory server on the machine).
    My questions are as follows: Why don't I need a directory server? Am I not using JNDI here? Don't you need a directory server when you use JNDI?
    Thanks in advance,
    Balteo.

    in short no you don't always need a directory server. You use JNDI with JMS operations and there is no directory server associated with that. JNDI (Java Naming and Directory Services) has many uses.
    One such use is with JMS,and yet another is with LDAP. Seems like you are just doing a lookup with in the namespace.

  • Remote client accessing ejb - question

    This may be a very simplistic question, but here goes -
    scenario: I have a J2EE application running on a server Y with session beans/entity beans.
    I need a remote client on machine X to access EJB objects on Y.
    I have set the initial conext with INITIAL_CONTEXT_FACTORY, PROVIDER_URL etc...
    But, in order to narrow the reference of the object returned by lookup() method, I need to instantiate the Home object of my session (or entity) bean ...
    here's my problem: How do I instantiate EJBHomeInterface or EJBRemoteInterface, when they do not exist on the remote client machine?? (does this have something to do with the stub??)
    THANKS!

    This answer assumes you're using Weblogic, although most any other EJB container has a facility for this. Basically you need to distribute a client jar file with the client. This client jar is created during the EJB compile/deployment process and creates a jar separate from the normal jar file associated with your deployment. This jar file contains the class stubs you need to call for and use EJB's on a remote client.
    I hope this makes some sense.
    SeanB

  • Beginner's EJB Question

    I've been going through the J2EE tutorial and generally understand how it works but I have a question about application clients. I get the general concept that a client uses JNDI to look up the environment entry to find an EJB. However, I think my question is "how does the JNDI entry get set in the application client's machine?" In a web client it makes sense to me because the JSP hits the server (and the server is where the JNDI entry is). On the application client the only way I can think that the entry gets there is through maybe a jar file created when the application is compiled on the app server. My guess is that that's packaged with the application client and each user who installs the application client has to put the jar in their classpath. Is that correct?
    In a very much related question, I'm also wondering how the client calls methods on the enterprise beans. I assume that the jar files have some code in them that make a network connection to the app server. I just wanted to verify that my understanding of how this all works is correct.

    I've been going through the J2EE tutorial and
    generally understand how it works but I have a
    question about application clients. I get the
    general concept that a client uses JNDI to look up
    the environment entry to find an EJB. However, I
    think my question is "how does the JNDI entry get set
    in the application client's machine?" In a web
    client it makes sense to me because the JSP hits the
    server (and the server is where the JNDI entry is).
    On the application client the only way I can think
    k that the entry gets there is through maybe a jar
    file created when the application is compiled on the
    app server. My guess is that that's packaged with
    the application client and each user who installs the
    application client has to put the jar in their
    classpath. Is that correct?
    Not really. JNDI binding exists on server only. When client does a lookup it connects to server's naming service (via remote call) and asks an object with specific JNDI name.
    In a very much related question, I'm also wondering
    how the client calls methods on the enterprise beans.
    I assume that the jar files have some code in them
    m that make a network connection to the app server.
    I just wanted to verify that my understanding of how
    w this all works is correct.
    Yes, it's correct. Code that makes a network connection is called a stub (or client stub). For some app. servers (SUN AS) you need to generate stubs of EJB's and put them into clien't classpath. For others (JBoss) it's not required, because a stub can be downloaded from server.

  • Simple rmi-ejb question

    Hi all!
    I'm a new to ejb, just started, for the beginning got an exception:
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:640)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
         at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:280)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
         at SimpleEjbTest.main(SimpleEjbTest.java:19)when trying to
      private static Context getInitialContext(String url, String user, String password) throws
          NamingException {
        Hashtable h = new Hashtable();
    //    h.put(Context.INITIAL_CONTEXT_FACTORY,
    //          "WHAT IS HERE?????");
        h.put(Context.PROVIDER_URL, url);
        h.put(Context.SECURITY_PRINCIPAL, user);
        h.put(Context.SECURITY_CREDENTIALS, password);
        return new InitialContext(h);
      }What to put into INITIAL_CONTEXT_FACTORY?
    Or you know easier way to make an InitialContext?
    Using jndi.properties? But what should it be then??
    Please help!
    Thanks a lot to alL!!
    Best regards, Boris.

    well, since you don't specify your app server, how's this?
    weblogic.jndi.WLInitialContextFactory
    if that doesn't work, try this
    com.inprise.j2ee.jndi.CtxFactory
    if that doesn't work, try this
    com.evermind.server.rmi.RMIInitialContextFactory
    if that doesn't work, try this
    org.jnp.interfaces.NamingContextFactory
    if that doesn't work, try this
    com.ibm.websphere.naming.WsnInitialContextFactory
    And if that doesn't work, look through your docs again, or maybe try google. Note that whatever you do, you have to have the appropriate jars on your classpath.
    Good Luck
    Lee

  • EJB question....Help

    I got a enterprise session bean that retrieves data from the database(MS Access). The bean also sets the data into some local variables. The question is, how do I retrieve those data back to my JSP pages and display it to the client?

    This isn't exactly a "new to Java" topic, but - the short answer is you get a reference to the home interface of your session bean via a JNDI lookup, then call create to get your implementation, then just call a get method from that. Check out the tutorials or google for "accessing Session Bean from Servlet" or some such.
    Good luck
    Lee

  • Simple EJB Question

    Given the following example, what is the result of the System.out.println? MyBean is a stateless session bean and is deployed on a separate machine than the client code and the Customer class is deployed on both machines. Notice that MyBean modifies the Customer object by calling its setName() method.
    // Client code
    Customer cust = new Customer();
    cust.setName("Mickey Mouse");
    Context initial = new InitialContext();
    Object objref = initial.lookup("MyBean");
    MyBeanHome home = (MyBeanHome)PortableRemoteObject.narrow(objref, MyBeanHome.class);
    MyBean bean = home.create();
    bean.foo(cust);
    System.out.println("name=" + cust.getName());
    public class Customer implements java.io.Serializabale {
    ��private String name = null;
    ��public String getName() { return name; }
    ��public void setName(String aName) { name = aName; }
    public class MyBeanEJB implements SessionBean, SessionSynchronization {
    ��public void foo(Customer cust) {
    ����cust.setName("Donald Duck");
    ��}

    The value will be "Mickey Mouse".
    If you want to know the value in the EJB you'll need to code
    System.out.println("name=" + bean.getName());assuming that name is exposed on the EJB.
    Your Customer instance is passed to the EJB by value not by reference. So changing any value on the client or server is not going to affect the values on the server or client.
    Dave

  • General EJB Questions

    Greetings,
    1. Can an EJB call/execute an external program written in another language such as C, C++ or FORTRAN?
    2. If an EJB can, where could I find some example source?
    3. Where can I find info on the limitations of EJBs?
    Thanks,
    MJ

    send
    all the java related questionsI sent them already. Check the third trash can in the
    alley on the other side of the road.It's already been emptied. If you're lucky you can intercept the dumb truck on the way to the mindbend.

  • Beginner entity EJB question.

    Hi,
    I am researching into whether to use JDO for my application.
    I have read that polymorphism, inheritance and complex relations are absent from EJB's. Is this true? I am thinking that maybe the place where I have read this are biased towards JDO, which is why they have stated this, and would like to get a neutral opinion.
    Also, I read at JDOCentral that The acceptance of the Java Community Process� (JCP) JSR 243, also known as JDO 2.0, is in jeopardy. The recent vote by the JCP Executive Committee in the so called Public Review Ballot resulted in 5 YES votes and 10 NO votes and 1 abstention. I am a little confused. I keep hearing that JDO is so good, if that is the case, why was it rejected?
    You see, I am going to use it for my project, cos I read so many good things about it, but am now unsure of whether to use it, cos if it was really that good, there would not have been 10 votes against.
    Any advice would be appreciated.
    Thanks.

    I am researching into whether to use JDO for my
    application.Good to see the sensei reseaching :)
    I have read that polymorphism, inheritance and
    complex relations are absent from EJB's. Is this
    true? I am thinking that maybe the place where I have
    read this are biased towards JDO, which is why they
    have stated this, and would like to get a neutral
    opinion.There are many threads on the forum as well as on http://theserverside.com on the same.
    Also, I read at JDOCentral that The acceptance of
    the Java Community Process� (JCP) JSR 243, also known
    as JDO 2.0, is in jeopardy. The recent vote by the
    JCP Executive Committee in the so called Public
    Review Ballot resulted in 5 YES votes and 10 NO votes
    and 1 abstention. I am a little confused. I keep
    hearing that JDO is so good, if that is the case, why
    was it rejected?Might have something to do with EJB 3.0
    http://blog.hibernate.org/cgi-bin/blosxom.cgi/2004/05/07#ejb3
    This blog discusses about the problem with JDO specs.
    You see, I am going to use it for my project, cos I
    read so many good things about it, but am now unsure
    of whether to use it, cos if it was really that good,
    there would not have been 10 votes against.This should really prevent you from using it! If JDo fits your design, you might still use it. But consider taking a look at Hibernate!
    Cheers!
    ***Annie***

  • WLS 6.0 and 6.1 ejb questions

     

    Home and Bean Stubs are serialized dynamically. They are not generated when
    you do the ejbc.
    "Bart Simpson" <[email protected]> wrote in message
    news:[email protected]..
    >
    6.1 does not generate stubs anymore.What do you mean? Can you please explain?
    Where can I read more and find more information about this?
    Thank you so much,
    -Bart

Maybe you are looking for

  • HP Envy 13 Battery issues

    Hi I have an HPEnvy 13 notebook with the battery & slice battery it came with.  I noticed recently that with the battery plugged in and the AC adaptor connected it would say "plugged in, not charging" and it would never power on when using battery on

  • Access via 'NULL' object reference not possible   - GET_RANGE_TABLE_OF_SEL_

    Hi Guru's,    i am new for WebDynpro programming.I am trying to use select-options tutorial. System showing select options and table binding on screen when i test the application. I have using search button to get the value which user will i/p.for th

  • Warning messages in DB13

    When I run UPDATE Statistics in DB13, it is giving warning, "BR0988W Bitmap index /BI0/F0FIGL_C01~12 selected for checking statistics - please activate the monitoring attribute for table SAPSR3./BI0/F0FIGL_C01". Can anyone please advice on this issue

  • MS Word Reports-how to use bookmarks

    I am using the labview report writing tools to produce an MS Word report. I have produced several headings, information strings, tables etc. I need to use "Word Insert Object.vi" to place certain objects such as excel charts at certain places in the

  • CP 6 Neospeech and Loquendo Speech agents

    Hi All, I recently updated to CP 6.0. Can anyone point me in the right direction to find the updated text to speech agents for NeoSpeech and Loquendo that work with CP 6? I currently have 5.5 installed. I've looked everywhere but I can't find it. Man