EJB, Hibernate, Struts

I want to implement web based project for complex bussiness logic fo finance
I thought of using EJB but somany people advise me to not use it because of its complexity
and try for hibernate or Struts.
so can you give me some views regarding to comparison between EJB,Hibernate,Struts
or some points that help me to select one of them based on my requirement ?
on which criteris I can do selection amoung them ?
thanks in advance

Question 1:
what do you use/choose and why:
EJB+struts or Hibernate ?Spring and Hibernate.
Question 2:
Which is the best IDE for Hibernate?IntelliJ is the best IDE for everything.
%

Similar Messages

  • Can we use ejb in struts framework?

    can we use ejb in struts framework?I need the reasons for both yes or no answers.

    This question is not appropriate for this forum, which deals with the J2EE SDK. Have you looked at the Struts documentation? Have you performed a Google search? If you had, you would have found the answer....
    -Ian Evans

  • EJB, Hibernate or TopLink?

    Hi all,
    In our company we are using an Oracle database, and we have a lot of java applications running on our application servers. In the future for our new applications we want to change the way we persist our data to the database and we are doubting between EJB 3.0 when the specs are final, Hibernate and Oracle TopLink.
    Which could be the best choice regarding installed base, stability, performance, maintainability and scalability.
    Hope to hear from you.
    Regards,
    Ronald

    See answer in Re: EJB, Hibernate or TopLink?

  • Oracle Database Lite deploying EJBs and struts

    I need to deploy my enterprise application on Mobile server. My application uses EJBs and struts, are EJBs and Struts supported by Oracle Database Lite Mobile server? If yes do we need to do anything different for deploying EJBs on Mobile Server?
    Regards
    Roomap

    Already posted a response to this here today
    New Application

  • EJB ot Struts

    Hello!
    We have to develop web based complex application that will be accessed by user over internet.
    No page should take more then 10 sec to download.
    We have two options
    (1) JSP + Servlet + EJB
    (2) JSP + Servlet + Struts
    If both solutions implemented in most optimized way, which one be the fastest?
    I have impression that Struts is bit slower then EJB.
    Reg,
    Chetan

    there is no OR there.
    Comparing EJB and Struts is like comparing roads and
    cars.Exactly. EJb is a methodology to develop business components that require transaction support, security levels, asyncronous messaging etc.
    These are but a few rqeuirements you should find answers for within the context of your requirements/project.
    Struts is a framework that's used to build web-applications.
    In short, the issue is not limited to speed (Is struts faster or ejb faster, in which case, almost all real time applications would have been developed on struts alone :))
    Its more a design / scalability /robustness/ development time /rampup curve / maintainability etc question.
    my 2 cents..
    cheers,
    ram.

  • XML , hibernate & struts (or JSP)

    Hi all,
    Wishes for the day.
    I have a question about how to start. I need to develope an a programme which parses the given RSS document (http link - online) and store the data of RSS document in SQL database. The columes would be the tags of the given RSS document. Than I need to display the results from the database to the JSP page using Struts or JSP. I am suppose to use Hibernate to perform database oprations (storing,retriving and editing).
    If anybody have time, than please tell me how to start. Please stick with me.

    Integrating Hibernate with JSF in JDeveloper 10.1.3
    http://www.oracle.com/technology/pub/articles/vohra_hibernate.html

  • Eclipse Tomcat Hibernate Struts - JDeveloper OC4J migration problem.

    In my current project, everybody uses Eclipse and Tomcat as development environment. I decide to try JDeveloper in this project. Not that this configuration works with eclipse WPT.
    When I try to open project, I get an error as below.
    Target URL -- http://127.0.0.1:8988/PSSO/index.html
    30.Haz.2008 21:50:03 oracle.classloader.util.ClassLoadLogger log
    WARNING: Code-source D:\atilla\projects\javaProjects\meteksan\EclipseWorkspace_RTUK\BuildScripts\DirectoryThirdPartyLibraries\jta.jar (from <classpath> in D:\atilla\projects\javaProjects\meteksan\EclipseWorkspace_RTUK\PSSO\WebContent) has the same filename but is not identical to /E:/downloads/tools/jdevstudiobase1111/j2ee/home/lib/jta.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in E:\downloads\tools\jdevstudiobase1111\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.web.PSSO:0.0.0.
    30.Haz.2008 21:50:03 oracle.classloader.util.ClassLoadLogger log
    WARNING: Code-source E:\downloads\tools\jdevstudiobase1111\jakarta-struts\lib\struts.jar (from <classpath> in D:\atilla\projects\javaProjects\meteksan\EclipseWorkspace_RTUK\PSSO\WebContent) has the same filename but is not identical to /D:/atilla/projects/javaProjects/meteksan/EclipseWorkspace_RTUK/BuildScripts/DirectoryThirdPartyLibraries/struts.jar (from <classpath> in D:\atilla\projects\javaProjects\meteksan\EclipseWorkspace_RTUK\PSSO\WebContent). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.web.PSSO:0.0.0.
    08/06/30 21:50:17 Hibernate: select t.name, sa.value from RTUK_PSSO.ytk_sistem_attribute sa, RTUK_PSSO.ytk_attribute t where sa.attribute_id = t.id
    21:50:20,687 ERROR ActionServlet:364 - Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown, so marking the servlet as unavailable. Most likely, this is due to an incorrect or missing library dependency.
    javax.servlet.ServletException: org.hibernate.QueryException: ClassNotFoundException: org.hibernate.hql.ast.HqlToken [from tr.com.meteksan.genel.gnlKurumOrganizasyon.GnlKurumOrganizasyon ko order by ko.organizasyonKodu]
    at tr.com.meteksan.web.plugin.InitSozlukDegerleriPlugIn.init(InitSozlukDegerleriPlugIn.java:49)
    at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:869)
    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)
    what is interesting is that
    first query with hibernate works, but second query does not works.
    My JDeveloper as below
    CVS Version Internal to Oracle JDeveloper 11g Technology Preview 4 (client-only)
    Java(TM) Platform 1.5.0_15
    Oracle IDE 11.1.1.0.22.49.49
    Versioning Support 11.1.1.0.22.49.49
    I wonder if it is related to struts and jta jars defined twice.

    There might be a problem with the OC4J not finding the hibernate library you are trying to use.
    Try setting the library also in the tools->embedded OC4J preferences.

  • Hibernate+Struts

    Hi everyone
    I've already posted this java programming subforum but they adviced me to post in databases or in struts forums, so I repeat it here:
    First of all thanks for reading my post.
    I've been looking for it on internet for a week but there are different opinions about it. Is it necessary to develope a plug-in in order to integrate hibernate with struts or is it enough adding the hibernate.cfg.xml and hibernate libraries into the project?? I made the second choice.
    The fact is that my hibernate project works correctly, but when I integrate it with struts in order to access the database from the web browser, i get a null pointer exception error just when it tries to create the sessionFactory. I have placed de hibernate.cfg.xml in webapps/projectname/src/hibernate.cfg.xml
    Looking around, I've seen that the hibernate.cfg.xml in the hibernate project is
    <hibernate-configuration>
    <session-factory>
    <property name="connection.username">root</property>
    <property name="connection.url">
    jdbc:mysql://localhost:3306/pymmet
    </property>
    <property name="dialect">
    org.hibernate.dialect.MySQLDialect
    </property>
    <property name="connection.password">tilour</property>
    <property name="connection.driver_class">
    com.mysql.jdbc.Driver
    </property>
    <property name="myeclipse.connection.profile">pymmet</property>
    <mapping resource="pymmet/Presupuesto.hbm.xml" />
    <mapping resource="pymmet/Factura.hbm.xml" />
    </session-factory>
    </hibernate-configuration>
    but in the hibernate.cfg.xml that's been copied into the project in webapps (tomcat), the mapping resources are missing.
    Could it be the problem? If it weren�t, anyone knows why is giving me that error?
    Thank you very much

    I second Duffy's comments on the matter of your screen name. Pick one and stick with it. If you forget your password there's a reminder link.
    Your previous question:
    http://forum.java.sun.com/thread.jspa?threadID=5204193&messageID=9815526
    Right. Struts and Hibernate have NOTHING to do with one another. One's an MVC web framework and the other is an ORM framework.
    Furthermore, nothing about either Struts or Hibernate will cause the hibernate.cfg.xml file to be amended during deployment.
    If you've got a different set of contents in your configuration file at the destination from the one you had at the target then:
    1. Some other process is amending it during deployment (unlikely)
    2. You're not deploying the file you think you're deploying (likely)
    3. You're not deploying anything, you just think you are (fairly likely).

  • Need an example on Hibernate-Struts

    Hi,
    I need a working example on Hibernate with Struts.
    I am trying to do an example, but not getting.
    So, if anybody is having pls post it.
    Regards
    Veeru

    Hi,
    Workflow document information:
    Check these links.
    http://www.sapgenie.com/workflow/index.htm
    /people/ginger.gatling/blog/2005/12/01/link-workflow-business-objects-to-your-collaboration-tasks
    http://help.sap.com/saphelp_nw04/helpdata/en/92/bc26a6ec2b11d2b4b5006094b9ea0d/content.htm
    http://help.sap.com/saphelp_bw33/helpdata/en/92/bc26a6ec2b11d2b4b5006094b9ea0d/content.htm
    http://help.sap.com/saphelp_bw31/helpdata/en/8d/25f94b454311d189430000e829fbbd/content.htm
    http://www.sap-press.com/product.cfm?account=&product=H950
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
    http://www.workflowing.com/id18.htm
    http://www.e-workflow.org/
    http://www.sap-img.com/workflow/sap-workflow.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
    http://www.sap-img.com/workflow/sap-workflow.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
    &**********Reward points if helpful**************&

  • EJB from Struts.

    Hello All,
    I am writing an action class in struts that needs to call a method from stateless session bean. I allready wrote and tested my stateless session bean from Universal Test Client. It's working fine.
    Can anyone please let me know what exectly would be steps for calling that method from Action class. i know steps i.e
    1.Taking Initial context
    2. lookup the bean using JNDI
    3. call method
    Do i need to put some entry in my web.xml file for EJB.
    Please help me out.
    but i need more specific solution. Sample code will be highly appreciated. JNDI name for my bean is ejb/ejbs/com/ibm/TestHome.
    Thanks in advance.
    pn24256
    Message was edited by:
    pn24256

    Yes you are right. You don't need to put any thing in your web.xml. You just need to know your EJB JNDI name.
    1. Get the initial context
    2. Get the EJB Home class
    3. Get the local/ remote inetrface from ur home class
    4. And call you EJB method.
    That's all you need to do.
    Pls find below sample code.
    1. MappingServiceLocalHome mappingServiceHome = (MappingServiceLocalHome) ServiceLocator.lookupLocalHome("MappingServiceLocalHome", MappingServiceLocalHome.class);
    2. MappingServiceLocal service = mappingServiceHome.create();
    3. latLngvo = service.getGeocodedAddress(address, zipCode, city, stateCode, country, countyName);
    The above code is sample, and JNDI look up was done in another class. Essentially first step is to get ur EJB home class through JNDI steps. and then get your local/remote interface from ur home class.
    and final step is to call your method inside your stateless session bean.

  • EJB / Hibernate

    Hi,
    I'm currently developing a web site using servlets/JSPs. I was thinking of using simply a MySql server as the database. But one of my co-developers told me that if I use EJB for persistence and hibernate for transactions I could improve the performance. Can somebody tell me if this is correct? What are the IDE's supporting these technologies? What happens if I use one of those either EJB or Hibernate for both transactions and persistence.

    I wouldn't say that using EJB and hibernate will improve your performance. There is no silver bullet to improve performance. You have to optimize YOUR app.
    I would say EJB would be overkill for most sites. Why bother with the complexity and overhead?
    Hibernate is a good recommendation - I wouldn't normally recommend it for performance, but for the Object-relational mapping it does in a generic way to work with any database.
    It comes down to how complex is your website? Is it distributed? How many users? How much data?
    Is your app actually having performance troubles? If not then why do all the extra work to "improve performance" that you don't need?

  • How to use my ejb with struts

    to access my entity EJBs, what have i to do?
    what methods should be defined in the session beans..
    and how to access them from the DataAction??
    my methods r for exemple to add a row in an entity that associate two entities, so i ve to check if the according rows exist in the two tables, else i have to add them and then add the datas in the relationship entity.
    any help pls?
    (i ve read many tutorials but i cant yet understand how to use the data controls and so on)

    Hi,
    you create a data control from the session bean, not the Entity bean. The session bean should expose a method that takes the required object parameters and then do the right thing as you explained it.
    Frank

  • EJB, Struts & Validating...

    Hi!
    I'm working with EJB using Struts.
    In my case I have, in my Form Class, a validation method to verify the form attributes (form fields) that is executed, as I understand it, automatically prior to doActionForward (in the Action class).
    Now, getting a validation failure, having set the desired error messages the application will respond back to what ...
    A piece of my struts-config.xml:
    <action path="/ManageReportedTime"
    type="systime.formaction.ManageReportedTimeAction"
    name="ManageReportedTimeForm"
    input="/jsp/employee/errors.jsp">
    <forward name="success" path="/jsp/employee/timereport-index.jsp"/>
    <forward name="error" path="/jsp/error.jsp"/>
    </action>
    The "input" key is the page receiving control after a validation error
    while "success" key is what to forward to when the action class methods is fulfilled without errors, finally the "error" key is the page to recieve control after a mapping.findForward("error") in the action class.
    Correct me if I'm wrong...
    The timereport-index.jsp ("success" key value above) is actually a frameset page containing four frames - three of them used to manage input and output of the form and one to show errors (the "input" key value) after validating.
    (I use the same form instance in all four pages)
    No i wonder if it's possible to have a different page to show validation errors while at the same time in other pages showing the form fields.
    The problem now seems how to target the frames in combination with setting the correct response pages in the xml file.
    Don't know if i stated the problem understandably, but hoping for the best
    /Rickard

    I do not understant way this question is in this section?
    Actually, you cannot define different pages in which you have show in different validation states(just one if validation was failed). But you can perform validation not olnly in form object but in action(may use some help class)- it is not good style when you use Struts framework, but the situation is not usual, and you can compromise.
    Good luck.

  • Best technology for web service - jsp vs ejb

    Currently we have our project fully done in jsp and servlets.
    Now we have decided to bring out a new version of the product.
    We are in thought of ejb and struts replacing jsp.
    But we need to know the advantages and disadvantages between jsp,servlets and ejb,struts for our task..
    Can anyone help in this to make our thoughts to work..
    Thanks in advance ..
    Bye
    Pradhip

    don't waste time in asking others
    i think it is better to use jsp and servlets
    if you don't know struts it is very difficult to study and impliment know
    you start learn struts know i hope u can impliment next time
    start with small example
    reffer jakartha struts and struts in action books to guide

  • EJB Vs strruts

    Hi,
    i am new to struts. i know the concepts of struts and ejb's. i can implement those individually.. now i want to integrare the ejb with struts.
    how can i do call the ejb from struts.. i was searched many sites but i didnt get solution...
    if anybody knows this please forward me the steps.....
    Rao

    Just a minute,
    One thing please be clear,
    EJB - Runs on a EJB Container. The EJB Container provides an EJB Service by binding the EJB Object on JNDI (Basically IIOP).
    Action Class/Servlets/JSPs - All these run on a servlet Engine or a servlet container. The container provides the service by HTTP.
    If you deploy both Servlets and EJB on a same server(which is not clustered) then we use the local interfaces to lokup the EJB Object on the JNDI namespace.
    If it is clustered, Then it is always safe to use the remote interfaces. to get the services.
    If the above is true, then the point on putting EJB JAR and Servlet WAR on same file or different files dose not come into picture. It is finally going to be deployed on respective containers only....!
    So I guess I also answered you question of calling EJBs from Struts.

Maybe you are looking for

  • Launch Java WebDynpro from R/3 with SSO

    Have a situation where I need to launch a Java WebDynpro application from directly from R/3 via the URL. I know this can be done via cl_gui_frontend_services=>execute, however, I do not know the implications in an SSO environment. If the R/3 system i

  • USR05 table - used in include MV50AFZ1

    Hi All! I have to allow the Post Goods Issue for one user and one specific plant. To do this: 1. I created one parameter ID which value is the Plant where the user have to be authorized to post goods. 2. I created two roles; the first has the authori

  • IDVD quit unexpectedly, xvid_codec plug-in

    "The application iDVD quit unexpectedly. The problem may have been caused by the XviD_Codec plug-in" What is this about? I don't have anything with xvid in the name installed....

  • Adobe Reader 9 will not let me change the voice for Read Aloud.

    I use two voices on my computer (which is a Mac notebook running Snow Leopard), Alex, the standard voice for English, and a German voice, Infovox Juiia. When I try to change from Alex to Julia to have a German languge PDF read aloud, I go to Preferen

  • Package can not resolve

    Hi I have this import package import java.util.regex.*; Now this package is only in 1.4 api not 1.3 api. I am using websphere 5.1 with follwoing jre IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v5\java\jre. but error message is com