EJB 3.0 architecture

EJB 2.1 client does JNDI lookup and gets Remote Home object stub, then asks the Home for a reference to the EJBObject interface and then client can call business method on the bean. Is EJB 3.0 business method invoke procedure same as EJB 2.1?
Thank you,
Dragan.
Edited by: Bobic on Apr 9, 2009 12:08 PM

Hi Dragan,
No, it's much simpler now. There are no longer any Home interfaces. The interface you write is called a business interface and you simply cast the result of the lookup to the business interface and call the business methods. In the case of Stateful session beans, the lookup has
the side-effect of creating a new stateful bean instance.
Note that this only applies to stateful and stateless session beans. The previous EJB 2.x Entity beans weren't changed due to
the introduction of the Java Persistence API.
--ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • EJB business model architecture + packaging

    Hello,
    During a development of large Web applications (ERP for example), how to organize the business model (EJB) tier?
    I thought of centralizing the business model of the entire application within only one (ejb) module whose each Web module would depend there. What do you think ?
    Then, how to package it ? All the modules (Web and business) in the same ear? It would be simplest but not the ideal solution. Because for each update I have to redeploy the entire application.
    Thank you.

    Thanks for your help mr_jaber.
    I would like just to know what is the best way to package and deploy large application to the application server.
    Is better to use a single ejb-jar module who contain all buisness logic or split the buisness tier in multiple ejb-jar ?
    I know there is the admin_client.jar utility who allows incremental or partial redeployment of EJB modules within an application running in an OC4J instance. This is fine..
    So.. I have to put all my modules in a ear archive or is better to deploy Web and EJB modules in standalone mode ?

  • EJB handle containing t3://null:7001

    I'm working on a cluster, using in-memory replication, on SunOs 5.6 (WLS
              5.01 sp1).
              I've 102 stateless session bean, and only 1 stateful.
              The stateful has in weblogic-ejb-home.xml the following:
              <weblogic-ejb-jar>
              <weblogic-enterprise-bean>
              <ejb-name>europortal.architecture.Customer.CustomerSession</ejb-name>
              <caching-descriptor>
              <max-beans-in-cache>100</max-beans-in-cache>
              <idle-timeout-seconds>10</idle-timeout-seconds>
              </caching-descriptor>
              <clustering-descriptor>
              <home-is-clusterable>True</home-is-clusterable>
              <home-load-algorithm>round-robin</home-load-algorithm>
              </clustering-descriptor>
              <jndi-name>europortal.architecture.Customer.CustomerSession</jndi-name>
              </weblogic-enterprise-bean>
              </weblogic-ejb-jar>
              I deploy all of the beans on both the instance of the cluster.
              The jsp using the stateful bean get the following error:
              java.rmi.NoSuchObjectException: Unable to locate
              EJBHome:
              'europortal.architecture.Customer.CustomerSession' on
              server: 't3://null:7001
              at java.lang.Throwable.fillInStackTrace(Native
              Method)
              at
              java.lang.Throwable.fillInStackTrace(Compiled Code)
              at java.lang.Throwable.<init>(Compiled Code)
              at java.lang.Exception.<init>(Compiled Code)
              at java.io.IOException.<init>(Compiled Code)
              at
              java.rmi.RemoteException.<init>(RemoteException.java:56)
              at
              java.rmi.NoSuchObjectException.<init>(NoSuchObjectException.java:50)
              at
              weblogic.ejb.internal.HomeHandleImpl.getEJBHome(HomeHandleImpl.java:68)
              at
              weblogic.ejb.internal.HandleImpl.getEJBObject(Compiled
              Code)
              at
              europortal.architecture.Customer.CustomerSessionWrapper.getFreePagesServiceL
              abel(CustomerSessionWrapper.java:261)
              at
              jsp_servlet._NASApp._EPApps._priveligeManager._jspService(Compiled
              Code)
              at
              weblogic.servlet.jsp.JspBase.service(Compiled Code)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled
              Code)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled
              Code)
              at
              weblogic.servlet.internal.RequestDispatcherImpl.include(Compiled
              Code)
              at
              weblogic.servlet.internal.RequestDispatcherImpl.include(Compiled
              Code)
              at EPApps.mainProcess.service(Compiled Code)
              at
              javax.servlet.http.HttpServlet.service(Compiled Code)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled
              Code)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              l.java:742)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              l.java:686)
              at
              weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
              Manager.java:247)
              at
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:363)
              at
              weblogic.socket.MuxableSocketHTTP.execute(Compiled
              Code)
              at weblogic.kernel.ExecuteThread.run(Compiled
              Code),
              while using the handle of the ejb and, finding it == null, tries to start
              again from the lookup.
              I've serialized the handle on a file, as soon as it was created, and inside
              it I can read the following:
              t3://null:7001 (it's not ASCII, but you can read it)
              It looks like an error in getting the address of the server...
              But everything works fine when I use a single WLS instance without cluster.
              Anyone can help?
              I enclose the code (CustomerSessionWrapper.java)
              [CustomerSessionWrapper.java]
              

    I checked with the developer on this and he says that you forgot to set
              weblogic.cluster.dnsName property. Please refer to the ejb documentation for more info on this.
              - Prasad
              Luca Relandini wrote:
              > I'm working on a cluster, using in-memory replication, on SunOs 5.6 (WLS
              > 5.01 sp1).
              > I've 102 stateless session bean, and only 1 stateful.
              > The stateful has in weblogic-ejb-home.xml the following:
              > <weblogic-ejb-jar>
              > <weblogic-enterprise-bean>
              > <ejb-name>europortal.architecture.Customer.CustomerSession</ejb-name>
              > <caching-descriptor>
              > <max-beans-in-cache>100</max-beans-in-cache>
              > <idle-timeout-seconds>10</idle-timeout-seconds>
              > </caching-descriptor>
              > <clustering-descriptor>
              > <home-is-clusterable>True</home-is-clusterable>
              > <home-load-algorithm>round-robin</home-load-algorithm>
              > </clustering-descriptor>
              > <jndi-name>europortal.architecture.Customer.CustomerSession</jndi-name>
              > </weblogic-enterprise-bean>
              > </weblogic-ejb-jar>
              >
              > I deploy all of the beans on both the instance of the cluster.
              > The jsp using the stateful bean get the following error:
              >
              > java.rmi.NoSuchObjectException: Unable to locate
              > EJBHome:
              > 'europortal.architecture.Customer.CustomerSession' on
              > server: 't3://null:7001
              > at java.lang.Throwable.fillInStackTrace(Native
              > Method)
              > at
              > java.lang.Throwable.fillInStackTrace(Compiled Code)
              > at java.lang.Throwable.<init>(Compiled Code)
              > at java.lang.Exception.<init>(Compiled Code)
              > at java.io.IOException.<init>(Compiled Code)
              > at
              > java.rmi.RemoteException.<init>(RemoteException.java:56)
              > at
              > java.rmi.NoSuchObjectException.<init>(NoSuchObjectException.java:50)
              > at
              > weblogic.ejb.internal.HomeHandleImpl.getEJBHome(HomeHandleImpl.java:68)
              > at
              > weblogic.ejb.internal.HandleImpl.getEJBObject(Compiled
              > Code)
              > at
              > europortal.architecture.Customer.CustomerSessionWrapper.getFreePagesServiceL
              > abel(CustomerSessionWrapper.java:261)
              > at
              > jsp_servlet._NASApp._EPApps._priveligeManager._jspService(Compiled
              > Code)
              > at
              > weblogic.servlet.jsp.JspBase.service(Compiled Code)
              > at
              > weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled
              > Code)
              > at
              > weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled
              > Code)
              > at
              > weblogic.servlet.internal.RequestDispatcherImpl.include(Compiled
              > Code)
              > at
              > weblogic.servlet.internal.RequestDispatcherImpl.include(Compiled
              > Code)
              > at EPApps.mainProcess.service(Compiled Code)
              > at
              > javax.servlet.http.HttpServlet.service(Compiled Code)
              > at
              > weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled
              > Code)
              > at
              > weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              > l.java:742)
              > at
              > weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              > l.java:686)
              > at
              > weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
              > Manager.java:247)
              > at
              > weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:363)
              > at
              > weblogic.socket.MuxableSocketHTTP.execute(Compiled
              > Code)
              > at weblogic.kernel.ExecuteThread.run(Compiled
              > Code),
              >
              > while using the handle of the ejb and, finding it == null, tries to start
              > again from the lookup.
              > I've serialized the handle on a file, as soon as it was created, and inside
              > it I can read the following:
              > t3://null:7001 (it's not ASCII, but you can read it)
              > It looks like an error in getting the address of the server...
              >
              > But everything works fine when I use a single WLS instance without cluster.
              > Anyone can help?
              > I enclose the code (CustomerSessionWrapper.java)
              >
              > Name: CustomerSessionWrapper.java
              > CustomerSessionWrapper.java Type: Java file (application/x-unknown-content-type-VisualCafeFile.Document)
              > Encoding: x-uuencode
              

  • Using HashMaps in an EJB

    Ok this is the second time Im posting this problem. Last time I posted all the details and it may have been more general. This time I will be more specific. The following are the requirement that we were given for a school assignment,
    Develop a prototype software module to implement a messenger service. Messaging
    Systems consist of one Messaging server and several clients. Message can differ from a simple text message to a complex object like an Image. System should include following components.
    � Messaging Server: A Messaging server will hold the message queue for our
    Messaging system (which you need to develop)
    � Messaging Queue: A Queue will hold the messages from the client. The
    messages on this queue will be MapMessages that will allow us to store
    name/value pair information about the message to be sent out
    � Message Client: A client will create a message, and put it on the Messaging
    Queue. This message will hold the information for the email message to be sent out
    � Message Driven Bean: A message driven bean will be responsible for taking in the Message MapMessage and for mailing it out.
    To develop the system you have to use EJB 3.0 architecture. Usage of Java Persistence
    API for modeling data would be recommended.
    I dont want the coding to develop the system, I have already created that part and it works perfectly when I send text or numbers as messages. What I need help is on how to handle a hashMap. Simply SET'ing and GET'ing a hashMap does not seem to work. If you good people can give me some pointers on how to set up the entity and how the GET'ing and SET'ing methods work in relation to the HashMap I would be a very happy and thankful guy indeed.
    P.S - The *** indicate 'ing. The forum seems to sensor those words.
    Message was edited by:
    jomanlk

    WELL I gone through your code in the link
    http://forum.java.sun.com/thread.jspa?threadID=5138929&messageID=9509475#9509475
    Well thats the important parts of the code. it works fine when I send >simple messages but when I try out the HashMap the servlet is >displayed but no messages are sent to the queue. It would be great if >anyone could help. The reason is simple;
    THE HASHMAP CONTAIN NULL VALUES AND YOU ARE SENDING NULL TO THE JMS SO NO OUTPUT.
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    response.setContentType("text/html;charset=UTF-8");
    String title=request.getParameter("title");
         System.out.println("TITLE IS     :"+title);
    String body=request.getParameter("body");
         System.out.println("BODY IS     :"+body);
    HashMap hm = new HashMap();
    //hm.put("title", request.getParameter("title"));
    //hm.put("body", request.getParameter("body"));
         hm.put("title",title );
    hm.put("body", body);
    if ((title!=null) && (body!=null)) {
    try {
    Connection connection = connectionFactory.createConnection();
    Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
    MessageProducer messageProducer = session.createProducer(queue);
    ObjectMessage message = session.createObjectMessage();
    // here we create NewsEntity, that will be sent in JMS message
    NewsEntity e = new NewsEntity();
    e.setTitle(title);
    e.setBody(body);
    e.setHm(hm);
    message.setObject(e);
    messageProducer.send(message);
    messageProducer.close();
    connection.close();
    // response.sendRedirect("ListNews");
    } catch (JMSException ex) {
    ex.printStackTrace();
    try out this code this modified code and allot some dukes if you succeed best of luck :))

  • Monitor socket with thread in WebLogic

    I've recently joined a company where a solution was put in place within web apps to monitor a socket. The socket communication comes from a C-based app sending in messages to a socket monitored by a thread.
    This was done in a web app that used WebLogic Express, with only JSP's and servlets. My question is...how appropriate is this architecture in a WebLogic server that will now call EJB's from this thread? How can I spawn this thread outside of a servlet, maybe a startup class? My services layer may receive RMI-based client calls, thus the servlet would not come into play.
    My thoughts are that this should become a JMS-based communication, but for the initial versions, we may not have time rehaul the messaging infrastructure.
    I'd appreciate any opinions on this....
    Chuck

    <p>cheinle,</p>
    <p>It's not clear from your post what it is you need to achieve. What protocol is your service layer using? Is your service layer <b>only</b> going to deal with synchronous RMI requests?</p>
    <p>Answering your first question the implementation you describe using WebLogic Express is also applicable to WebLogic.</p>
    <p>With respect to Servlets and EJBs a typical architecture would have HTTPServlets listen on a ServerSocect and dispatch requests to a service layer implemented in EJBs (in their own threads). You could implement your own Servlets to deal to with protocols other than HTTP.</p>
    <p>You can also provide an HTTP wrapper for your RMI service layer using servlets see here for an introduction to using HTTPServlets with RMI</p>
    <p>cheers</br>
    Hussein Badakhchani</br>
    www.orbism.com
    </p>

  • JSP and Client/Server Compatibility Issues

    For the new application that we have to design we have two groups of users
    - Group A requires admin access, high response time, better user feel and special previledges and are a few in number at limited locations.
    - Group B requires limited functionality, but are spread all over the world and they are huge in number.
    We are planning to provide Applet/Swing based client server architecture for Group A and JSP/EJB based J2EE architecture for group B users. common webserver would be used.
    Please advise what are are potential issues in this approach or do we have a better approach to achieve the same.

    GUI based applications are good but do you think that will it be maintainable and portable?.. Some of the GUI based applications are build on higher Java like 1.5.. i Presume you have the latest and other workstation have only 1.4 or 1.3, this can be n issue on GUI based applications especially on installation on each workstation.

  • Specification/Architectural question about EJBs and XML

    Hello,
    My problem is as follows: I would like for a session ejb to retrieve information from xml files (other that the ejb DDs of course...). I prefer the XML-file solution to the relational-database solution as it is more lightweight. (We haven't got the resources nor the skill to administrate a native xml database.) Am I allowed to read from the filesystem? What is the best architectural solution you would advise bearing in mind I need the information contained in the xml files to be available in java (in the session bean). Ideally I would drop xml files in a directory and they would automatically be parsed and taken into account by an ejb.
    I am available to provide more details if needed.
    Any clue welcome,
    Julien Martin.

    Hello,
    My problem is as follows: I would like for a session ejb to retrieve information from xml files (other that the ejb DDs of course...). I prefer the XML-file solution to the relational-database solution as it is more lightweight. (We haven't got the resources nor the skill to administrate a native xml database.) Am I allowed to read from the filesystem? What is the best architectural solution you would advise bearing in mind I need the information contained in the xml files to be available in java (in the session bean). Ideally I would drop xml files in a directory and they would automatically be parsed and taken into account by an ejb.
    I am available to provide more details if needed.
    Any clue welcome,
    Julien Martin.

  • Need EJB architecture diagram

    dear friends,
    I need EJB architectural diagram and if possible give me explanation also.
    thanks & regards,
    siva

    hi JavaDammGud,
    Thanks for ur help. i am new to EJB's . Now i found the way to move on EJB's. I searched with some key words. but i didnt understood the topics they given.
    thanking you,
    bye,....
    regards,
    siva

  • EJB Architecture

    What is the reason/inspiration/motivation behind the EJB architecture the way it is?
    Define two remote interfaces, one for the life cycle methods (Home) and one for the
    business methods (Remote) and a bean class that is shielded from the client.
    The client accessing the home interface to get a remote reference and so on.....

    The main reason for EJB architecture is the business logic is completely shielded from other stuff like transaction management, database connection management, etc.
    The main aim of EJB spec is to differentiate between the different role players.
    For eg.
    1. the application server providers provide support the EJB containers.
    2. The EJB container providers support for Enterprise Bean developers.
    3. The bean developers implement the business logic.
    It makes life more simple for the Bean Developer since he does not have to worry about what security mechanism implementation the container has, or what fail over mechanism the application server provides.
    Consider for example Weblogic Application Server. You code your business logic using EJB's.
    While coding your EJB's you don't have to worry about database connection management, transaction management, security management, any network programming (say web-enabling your application), fail-over mechanism, load balancing algorithm and so on.
    Rather the work load is distributed!!!
    Hope this helps..

  • General Architecture question - EJB

    I am working on defining an architecture to use for an application that will be providing maintenance for database tables (inserts/updates/deletes). My desires are to have the application distributed using Java Web Start.
    I am struggling with suggesting an EJB implementation for the database access or servlets that will access the database and issue the appropriate queries. One issue surrounding the database is that depending upon the user's login, they will be connecting to different databases. So, something would have to exist to determine which database to connect to and issue the queries.
    It sounds like the more object oriented approach would be to use an EJB architecture. If that is the case, since Java Web Start is what would be invoking the application, should a servlet invoke the EJB rather than directly from the application?
    Does the J2EE provide all that is needed to implement such an architecture? If so, what benefits do something like JBoss provide over Tomcat?
    I want to define the architecture before we start developing and any answers to the above questions or other suggestions are greatly appreciated.
    TIA

    So, something would have to exist to
    determine which database to connect to and issue the
    queries.Okay this could be a piece of logic after the user has provided username and password.
    Login page = JSP;
    Logic page = Servlet;
    It sounds like the more object oriented approach would
    be to use an EJB architecture. If that is the case,
    since Java Web Start is what would be invoking the
    application, should a servlet invoke the EJB rather
    than directly from the application?I haven't used Java web start, but the approach you use should depend on your products requirments for the services provided by the container.
    An EJB container provides massive advance over a servlet container, in terms of scalability, security etc.. and if this is necessary for your app then you should go with an EJB container. If not just go for some plain old servlets doing th SQL-DB access for you.
    Object orientation is the power of the java language, not specifically the power of the architecture. The architecture is based on some best practices. Do a search on the MVC pattern to learn more.
    Does the J2EE provide all that is needed to implement
    such an architecture? If so, what benefits do
    something like JBoss provide over Tomcat?Yes. JBoss provides the EJB container, Tomcat is the Servlet Container. They can be downloaded from JBoss together.
    I want to define the architecture before we start
    developing and any answers to the above questions or
    other suggestions are greatly appreciated.Good, that's the best thing to do. Design first. Take a look at Model View Controller.
    Regards
    T

  • EJB architecture...HELP!!!!!

    Is EJB framework based on MVC Architecture ? If no,
    what is underlying architecture for EJB. This may sound
    stupid for most of you, because EJB itself is a framework
    for developing distributed,server-side, scalable, enterprise
    application components. But does EJB have it's origins on
    MVC Architecture.
    I was not able to corelate any similarities between the two.
    Please do let me know your views.
    Thanks
    Sanjay.

    The combination of EJBs, Servlets and JSP provide for a MVC framework usage in Java.
    Model = EJBs
    View = JSPs
    Controller = Servlets

  • EJB 3.0 + JSF 1.2 architecture question

    Hi,
    I have some experience with EJB 2.x and now we are working on another project with EJB 3.0 + JSF. In our old project, we created an EJB facade in the JSF (as an app. bean) so every call to the backend originated from the JSF went through this facade. We had everything contained in one app. bean.
    But now, with the injection and annotations, how should we approach this? Should we contain all calls to the backend in one JSF bean or this is not neccessary anymore? Our next application will run in clustered env., back end and front end on different servers (both have two nodes), so we must call the EJBs from the session scope (at least I think so). How fast and resource consuming is the injection? We are speaking about thousands maybe tens of thousands users a day.
    Thanks for any advanced EJB hints.

    A typical setup is to use multiple EJBs each tailored for specific tasks. For example, you could create DAO EJBs and then put one or more service EJBs in front of them that does the calls to the DAOs and manages the transactions (basically performs the business logic). From your JSF managed beans you do calls to the service bean(s) only.
    As for injection and resource consumption: I wouldn't worry about such matters. The injection is at the core of EJB3 and therefore you should use it freely. Most bookkeeping is done at server startup anyway, the runtime impact should be neglectable. It makes no difference how many users your site has per day, it is the hardware that should be tailored to the demands.

  • EJB vs web services - architecture question

    I am about to be involved in architecting a new system that will have a very large amount of business rules. The application will be 3-tiered with the client application being a swing based java desktop application making requests of objects (ejb or other) to a j2ee application server.
    Im rather new to ejb development, having only built sample apps in the past. What im wondering is if there is a way to get around the RMI dependency for communitation between the client app and the server components. this is one reason im considering at least partial use of web services. ive become pretty good with apache soap, xml and seb services todate. however, i also need transaction support and im not sure if web services will do this yet. ive read about some work in this area.
    does anyone know of an (hopefully opensource) implentation of a SOAP-EJB and/or EJB-SOAP implementation layer ?
    The crux of the problem is that i need things like transactions and session management but i would like to communicate via soap and/or xml.

    Ive also seen a few examples of using a servlet as a request dispatcher to service the SOAP requests to EJB's. im just wondering if there was something available that will do this without having to roll my own so to speak. I want to be able to communicate with my ejb's over port 80, but in a secure way.
    Im also anxiously waiting for Apache Geronimo.

  • EJB Structure/Architecture

    Hi I'm going to begin a new project here im my company, and we have already a project running with EJB, the problem is that this other project was defined by another person here and I disagre with somethings but I would like to hear you all to see if these things I'm talking about is really wrong or not.
    Ok, lets start off, in the server side everything is defined exactly like usually, we have sessionBean implementing the right interface and a localHome and remoteHome an EntityBean very well written, but in the client side that is my point, there is a definition of a client and a helper that I think is totally wrong (or not, I don't know).
    The helper and client both implement an unique interface. The client only knows in wich helper use and a helper knows wich ejb connect to. Then supposing that we have a web environment using struts we would think like this, after the user submit an form the execution goes to a given action where I create my client and call a specific method wich will only call a helper wich will know where to connect to in my server.
    I don't think it should be like this but I don't think that the way this guy defined the things would be the better way, please I need suggestions, points and so on. If you need
    further informations about, please let me know.
    Thanks a lot
    Dorileo

    Ok, lets start off, in the server side everything is
    defined exactly like usually, we have sessionBean
    implementing the right interface and a localHome and
    remoteHome an EntityBean very well written, but in
    the client side that is my point, there is a
    definition of a client and a helper that I think is
    totally wrong (or not, I don't know).It sounds like a BusinessDelegate, which is not wrong at all.
    http://java.sun.com/blueprints/corej2eepatterns/Patterns/BusinessDelegate.html

  • Entity EJB Relationships Architectural Question

    I need to create a hierarchy of simple objects. I will call my object
    "Part" for simplicity. I have two Oracle tables to maintain my Part
    hierarchy. The first table contains the detail for the part: number and
    name. The second table maintains the relationship: parent_number and
    child_number. I built Entity EJBs with CMP for both tables, but I don't
    know if that is the "best practices" approach. If it is, how do I define
    the relationships (EJB 2.0)? If it is not, how would you build it?
    Thanks for helping me out,
    Thomas A. Valletta

    Thanks Slava,
    You deserve more than a free trip to a conference for the time and effort
    that you put into this board. I think you should be able to write this off
    as a charitable contribution on your taxes. If you need someone to sign the
    receipt, just let me know.
    Anyway, back to my hierarchy issue(s). I found some information that
    weblogic will set-up this kind of many-to-many relationship for you if you
    set it up correctly in the weblogic-cmp-rdbms-jar.xml and the ejb-jar.xml.
    So I went through the DTDs, but despite the examples the help is extremely
    vague. Has anyone done this? Could anyone recommend where I could find
    something more on the topic (books, magazine articles, online documentation,
    code, etc)?
    Thanks again,
    Thomas A. Valletta
    "Slava Imeshev" <[email protected]> wrote in message
    news:3ec552f9$[email protected]..
    Hi Thomas,
    "Thomas A. Valletta" <[email protected]> wrote in message
    news:[email protected]..
    I need to create a hierarchy of simple objects. I will call my object
    "Part" for simplicity. I have two Oracle tables to maintain my Part
    hierarchy. The first table contains the detail for the part: number and
    name. The second table maintains the relationship: parent_number and
    child_number. I built Entity EJBs with CMP for both tables, but I don't
    know if that is the "best practices" approach. If it is, how do I
    define
    the relationships (EJB 2.0)? If it is not, how would you build it?The best approach is the one that works for you. If the
    combination of two beans works, leave it as is and
    go ahead with next tasks.
    Regards,
    Slava Imeshev

Maybe you are looking for

  • How to change font size in Safari?

    Why is it when I set my fonts inside Safari to say, 18 for standard and 18 for fixed. It doesn't display that way. I keep getting the tiny font that I've always used.

  • Java.lang.NullPointerException with Tomcat  Servlet

    Hi, I have got in my database the year as a number (Integer) like 1973 whatever, and in my servlet i get the yearFrom and the yearTo. Then parse them into an integer but I get java.NullPointerException and I dunno why??? Then I put them in my SQL sta

  • Number of "songs available in iCloud" problem

    Everytime I update iTunes Match the number of "songs available in iCloud" is 1 extra to the amount of songs in iTunes on my Mac. For instance I currently have 12089 in iTunes, but updating iTunes Match always says I have 12090 songs available in iClo

  • Flash is not visible when transparent is set to true

    Hi everyone. I'm writing an application in HTML and Javascript which uses <OBJECT> and <EMBED> to display a flash. The flash is invisible when transparent = false in the application settings xml file. I used the following to HTML code to display the

  • Nokia Asha 202 - not opening a website

    My nokia Asha 202 is not working well. it's not opening this website Happy New Year 2015 Wishes (Quotes | Sms Messages) I tried again and again. also i have reseted my mobile but its not working Moderator's Note: The subject was changed as we have cr