Which better between Hibernate and EJB

Hello i am a new begginer in J2EE, i have some question
Which better between Hibernate and EJB ?
i still confuse when must using Hibernate or EJB, because as i know in EJB it can use datasource which can i map to Entity bean.
this function is same as Hibernate as i know.
if my concept is wrong please correct my concept
thx in advanced

fbrayuki.darmanto wrote:
Hello i am a new begginer in J2EE, i have some question
Which better between Hibernate and EJB ?Just to clarify, you mean EJB3.x, not the earlier versions.
Define "better".
They're actually pretty similar.
If you use Hibernate instead of EJB3 you don't need a full-blown Java EE app server. You can deploy apps on a servlet/JSP engine or on the desktop.
i still confuse when must using Hibernate or EJB, because as i know in EJB it can use datasource which can i map to Entity bean.
this function is same as Hibernate as i know.
if my concept is wrong please correct my concept
thx in advanced%

Similar Messages

  • Wht is the difference between hibernate and EJB 3.0

    What are the main features differences in Hibernate and EJB3.0. What one should we prefer to use. Can some one provide me links to work and learn on these two technologies in depth.

    Hello all,
    Apart from what we are discussing above there is one more intresting feature which allows to work with any database without modifying the code, this is becuase of hibernate layer in application. Hibernate sits in between you application's logic and database, and you access your database with the help of objects (POJO) and write the data accesing queries in Object form(HQL - Hibernate Query Language) which is indepened of all database. whenever you want to chage your backed database just change the configuration files(hibernate.cfg.xml) and you are done. Isnt is cool feature, you dont need to worry about the underlying database.
    Surya
    --Idea's can change everything                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Share Configuration Manager Entries between WebDynpro and EJB

    Hi there,
    I have an annoying problem: I would like to have a WebDynpro as full-blown configuration interface for my EJBs. As steted in the docu, it is not possible to share configurations between applications.
    With EJB and Web Modules I would just place them in the same Enterprise Application. But I cannot as WebDynpro projects to enterprise applications (as far as I know).
    Does anyone have a clou about I could manage this issue?
    Thanks!
    helge

    Hi Maksim,
    at the link you've provided it is described how to use the Configuration Manager within an EJB Module.
    My Problem is that I want to use it from an WebDynpro Application. But there I don't have a META-INF\application-j2ee-engine.xm to configure the dependency.
    This itself is not a problem since you can also access the Configuration Manager via JNDI.
    My problem now is that the EJB Module (more precise the enterprise application where the EJB Module is included) needs to share the configurtion with the Dynpro. But vi JNDI you only get the ApplicationConfigurationManager - which is application specific.
    So the question is how I could share the configuration between WebDynpro and EjbModule...
    Regards,
    helge

  • Shared classes between webapplication and ejb

    Hello,
    If I have some java classes that are used by both WebApplication and EJB, do
    I have to include those classes into both war and jar files?
    Regards,
    Peter

    Yes accorinding to WLS Documentation
    --Naggi
    "Programming today is a race between software engineers
    striving to build bigger and better idiot-proof programs, and the universe
    trying to build bigger and better idiots.
    So far, the universe is winning."
    "Peter Tsang" <[email protected]> wrote in message
    news:[email protected]..
    >
    Hello,
    If I have some java classes that are used by both WebApplication and EJB,do
    I have to include those classes into both war and jar files?
    Regards,
    Peter

  • Login pattern between Web and EJB

    Hi everyone,
    I'm looking for the best pattern to setup my web login system.
    (Login page in JSP-JSF and then user right).
    I know the J2EE pattern for communication between presentation and business tier as such as Business Delegate, Session Facade, Application Service, ...
    But,
    How do i have to implement to login check in my session bean ?
    How is keept the information about the current user (webSession or statefull bean) ?
    Anyway, is anyone can give me an exmaple of a typical implementation.
    Thank.

    Check out the InterceptingFilter pattern.
    That's the way to check if the user is logged into the system.
    But, i also would like to know, the best way to login the user,
    The action to do when the user submit the login page.
    One current practice is to store an object in the sessionScope of the Web presentation tier (for web, in my case) .
    So, i think about one way :
    I've got an entity Bean which represent the User Access for the application so that any kind of client use the same User Access.
    Can i write a method in my SessionBean (SessionFacade pattern) to get the
    transfert object representing the User an store this transfert object into the sesionScope ?
    (So, if the return is null, that's wrong login ).
    My SessionFacade would have an method like the following :
       public UserTo loginUser (String login, String password) throws RemoteException {
    } Thank's

  • What is relationship between javabeans and Ejb ?

    I am new to javabeans and Ejb .
    thanks in advance.
    zzl_hz_cn

    nada. null. nil. void. zero. zilch.

  • What is better between ECC and PI, RFC adapter or SOAP adapter?

    Hi experts,
    I have a couple of RFCs in my ECC system, so I need to publish a web service from PI to many customers.  I have two choices.
    1. SOAP to RFC, synchronous scenario, working well but generates traffic in RFCD queues
    2. SOAP to SOAP, synchronous scenario, publishing my RFC like web service in ECC.
    Questions:
    1. Which is better in performance?
    2. SAP says something about that?
    thank u for any response, regards.

    Hi Carlos,
    Normally i follow the theory that the best things are normally all that you can implement after evaluate the situtation of your company... This situation contain factors or variables as:
    1.- Technology: The kind of technology that your have in your hands (R3 or ECC, XI or PI 7.1 to up, etc...),
    2.- Time: the time that you have, to implement the "best solution" for your case,
    3.- Costs: maybe is not money directly when we implement internal projects or maybe yes, but this cost could represent the energies that you deliver with yourself with your "hard work", etc...
    4.- Knowledge: maybe you have the technology, the time, the costs, the resources, etc... but if you know that you can learn how to do it, but the time is not going to let you learn, well, you will need to reevaluate "your best solution", because instead of help you the first best solution is going to complicate your project, the costs and time can increase, etc...
    5.- Best practices: We have friends, manuals, forums, etc... where we can find best practices, as you are doing in this moment asking in this Community,
    After those variables and reading your cuestion, i can share you may opinion, that i hope can help you:
    1.- Measure it:
    a) if you have the RFCs ready to be used it, and you dont have time, implement this solution and in the future migrate to better solutions, although you can sell this project requesting more time but with the condition to implement this new solution, so maybe you can change this variable and then implement web services and not rfcs,
    b) if you have the RFCs, you have the knowledge to publish web services and you have time, implement this solution,
    2.-Why?:
    a) If we remember R3 helped us to implement interfaces with RFCs to PI,
    b) The new version called ECC, supports now "ABAP Proxies", with the objective to implement a natural "SOA" with SAP PI as "standard",
    c) So if you ask me, i prefer to implement a natural SOA considering web services, XML, WSDL, etc) than RFC, because here you are not using natural emisor to get a natural SOA and PI help us with their adapters to transform this RFC destination to one XML, etc...
    3.- RECOMENDATION:
    With the last subjective ideas, i recommend you follow the point 2, where is better use web services to implement a natural SOA (Service Oriented Architecture) than the RFC that is a technology that were used in the "R3" verions... Just evaluate the points that you need to be aware when you implement web services as timeouts, security, etc... just to solve it and then plan a "performance tunning", after this...
    @note: read: "text", as one suggestion that i consider as subjective or that you can not agree with the idea and use other solution or proposal.
    Best regards,
    Azael Navarro Jiménez

  • Co-location optimization between servlet and ejb?

    Find some similar posting in archive, but answers confused me.
    If I implement a sesion bean in WL6.1 with remote interfaces and call that session bean from the web tier (i.e. servlet) that is located in the same WL server, will co-location optimization occur.
    Some previous posting suggested optimization only occurs within the same classloader. My understanding is servlet have a different class loader than the EJB.
    So will co-location optimization still occur?
    Thanks
    Joe Wroblewski

    "Joe Wroblewski" <[email protected]> wrote in message news:32319370.1096294137900.JavaMail.root@jserv5...
    Find some similar posting in archive, but answers confused me.
    If I implement a sesion bean in WL6.1 with remote interfaces and call that session bean from the web tier (i.e.servlet) that is located in the same WL server, will co-location optimization occur.
    >
    Some previous posting suggested optimization only occurs within the same classloader. My understanding is servlethave a different class loader than the EJB.
    >
    So will co-location optimization still occur?In case of a servlet you will have co-location optimization if the ejb-jar and the war are in the same ear. Then was
    will inherit EJB classsloader. If it's not the case, pass-by-reference is not possble.
    Regards,
    Slava Imeshev

  • Problems with JNDI between JSP and EJB

    Good morning:
    I've got a problem related to EJB and JNDI.
    I want to run methods of an EJB that is in Weblogic, from a JSP that runs IPlanet. When I try to execute getInitialContext() I catch a NamingException. The error description is :Cannot instantiate class: weblogic.jndi.T3InitialContextFactory
    I have this code in the JSP:
    Context initialCtx;
    initialCtx = getInitialContext();
    private InitialContext getInitialContext() throws NamingException
    Properties p = new Properties();
    (Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.T3InitialContextFactory");
    (Context.PROVIDER_URL,"t3://atlas:7001");
    InitialContext ctx = null;
    ctx = new InitialContext(p);
    return ctx;
    Configuration:
    JSP runs in IPlanet 4.1 SP7
    EJB runs in a Weblogic 5.1. Atlas it's the server name
    IPlanet and Weblogic runs on differents machines.
    Can anybody help me?
    Thanks in advance
    David

    I have two weblogic jars (weblogicaux.jar and one service pack of weblogic) in the iplanet classpath.
    I don't know if I have to configure Weblogic with any special parameter (RMI/IIOP) or something similar in IPlanet.
    Can anybody help me?
    Thanks.

  • HT3180 When trying to play itunes and slideshows from my Mac book to Apple TV the small icon on the bottom right of the screen which switches between Computer and Apple TV doesn't always show up, and therefore the function doesn't work.  What's up?

    We are trying to play playlists and a slideshow from an Apple Macbook wirelessly to the Apple TV.  The small, upward arrow icon that appears on the bottom right of the screen (which allows you to pick Computer or Apple TV) doesn't always show up, and therefore, we can't get it to work.  Any thoughts?

    Airplay mirroring software will not work with anything below Mountain Lion 10.8 and an Apple computer from 2011 or newer.
    http://support.apple.com/kb/HT5404
    Go to "About this Mac" and tell us:
    1. What OS X version you are running
    And then click on "More Info" and tell us
    1. What year is your Macbook.
    Also tell us a little about your cable and Wireless setup.
    Maybe we can help.

  • Which is better for usb camera between VISA and imaqdx in labview 2010?

    i have done a program for usb camera to acquire images with imaqdx.
    now i want to know which is better between VISA and  imaqdx in labview 2010?
    i didn't study visa before
    thans for help.

    VISA is primarily used to communicate with instruments via GPIB/TCP-IP/Serial/USB. In order to use easily VISA with an instrument over USB the instrument must adhere to the USBTMC spec. A camera is not likely to have this. Otherwise you have to use USB RAW, and that requires detailed knowledge of the data that is transmitted by the instrument. Manufacturers rarely give this information out. Normally they will provide a DLL to communicate with the instrument.
    Thus, in your case, VISA is not going to be an appropriate API to use for a USB camera.
    Out of curiosity, what prompted this question?

  • Integration with Hibernate and KODO

    I'm aware that Coherence has some optimisation for distributed queries with indices etc, but are Hibernate/Kodo able to benefit from this? If you have any statistics or white papers covering query performance and optimisation between Hibernate and Kodo I'd be very interested.
         (From Paul Woodward).

    Hi Paul,
         At present, Kodo and Hibernate do not have direct support for our distributed query features.
         Note that if you use Coherence as a plug-in to your ORM provider, you still have the option of maintaining separate Coherence caches on which you may use distributed queries.
         Jon Purdy
         Tangosol, Inc.

  • Rmi and EJB

    Hi guys,
    i feel ejb is internally using rmi.Am i right?what are the differences between rmi and ejb and also what r the similarities?
    Thanks
    Regards
    Vivek.S

    RMI is just an API that allows Java classes to be invoked remotely. It uses Java Remote Method Protocol. But it also can use IIOP in which case this whole thing is called RMI-IIOP.
    RMI doesnt provide any component model like EJB, that has several types of components with well defined behavior and purpose.
    Since EJB's can be called remotely they may use JRMP but it's not mandatory.
    EJB's have to use IIOP as a connection protocol to ensure interoperability among EJB servers and CORBA ORB's. So EJB' s use RMI as an API, but they have to support IIOP and optionally some other protocols like JRMP. For example, WebLogic supports some interesting protocol called T3.
    best regards,
    Maris Orbidans
    SCJP SCWCD SCBCD

  • Best communication between ECC and PI

    Hi All
    SAP is planning to adapt Enterprise Service Architecture (ESA) in the journey towards Service Oriented Architecture (SOA).
    We are working on new implementation project. We have many asynchrounous scenarios. We would like to configure acknowledgements and also like to handle errors effectively.
    Could you please suggest which communication between ECC and PI  is preferrable?
    (Webservices, IDoc, BAPI or RFC)
    Thanks
    Sai

    IDoc, BAPI , rfc - all can be used for seamless communication between ECC and PI. It is totallu dependant on the application and way information is exchanged. For master and transactional data idoc are prefered as for the acknowledgements supported by it. Not sure how effeciently we can handle system and appl ack incase of bapi/rfc. but at the same time idoc will be a drawback for sync comunication where rfc/bapi is preferd. It is SOA or ESA the concepts build in SAP are targeted to serve the enterprise needs where idoc,bapi/rfc are used for servicing the business unit objectives

  • IMac wifi signal fluctuates between -24 and -80 other clients stable.

    I'm experiencing Airtunes dropouts. The problem seems to be fluctuations in signal strength as shown in the screenshot in this link: http://gallery.me.com/alex.slaets#100343/wifi&bgcolor=black .
    Network:
    3 Airtunes express in 802.11n only 5 GHZ mode, configured to extend the range of one wireless network.
    Clients:
    1 iPad.
    1 iMac.
    All software and firmware is on the very latest version.
    Observation:
    As shown in the image, the signal strength S/N remains stable at -24/-95 db for all clients in the network EXCEPT the iMac (22:FF) which fluctuates between -24 and -80 in 5 to 10 second cycles.
    The iPad (C8:FB) is located near the iMac and its signal, remains stable.
    Any ideas on what this might be ?

    Alex.Slaets wrote:
    Any ideas on what this might be ?
    _*wireless interference*_ ?
    any cordless phones nearby ?
    perhaps one of your neighbor's wireless networks is interfering with yours. download iStumbler (free) or AirRadar (it has a trial period) and note the channels other networks in your vicinity are broadcasting on. *change the channel(s) of your network as far away as possible from those*.
    JGG

Maybe you are looking for

  • Problem in RAR Background Jobs

    Hi Experts, We are facing a problem during Batch Risk Analysis- Batch Risk Parameters- System- RP1 Options- User Role Profile, Critical Actions and Role/Profile Analysis Management reports User and Role permission Level risks analysis run fine, but a

  • Corrupted Quicktime Program

    I currently have a corrupted version of Quicktime that will not allow me to uninstall(something about a file missing). It will not allow me to install my itunes/quicktime program for my ipod. How can I get rid of the corrupted quicktime program?

  • PHP/MYSQL Insert code

    I am new to php/MYSQL but I am trying to learn. I built an insert page using DW8. I was looking back over the code trying to figure it out. Is it just me or does dreamweaver an a bunch of junk to there code to do a simple insert from 4 form fields. C

  • CS3 5.0.3.662 - Unable to create shortcut to character style

    Hello, I'm trying to assignate a shortcut to different character styles through the edit style menu, however when I place the cursor over the shortcut square nothing happens while I try to input a shortcut for it. Any idea why this isn't working? I t

  • Get_ddl Not giving the entire DDL

    Hi, SQL> select dbms_metadata.get_ddl('TABLE','CS_CSG_SYSTEMS') from dual; DBMS_METADATA.GET_DDL('TABLE','CS_CSG_SYSTEMS')   CREATE TABLE "CUSTSRV"."CS_CSG_SYSTEMS"    (    "RECORD_NO" NUMBER(15,0),         "SY SQL> desc cs_csg_systems; Name