EJB+struts or HIbernate ?

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

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

  • How can i Migrate from EJB Application to Hibernate

    Hi ,
    i have developed web services using EJBs. can i create web services for my hybernate application. can anybody please help me for that??
    please advice me how can i Migrate from my EJB Apps to Hibernate.
    thanks & Regards,
    nagalaxmi

    Hi
    Check this link
    http://www.devx.com/Java/Article/27954
    Sameer

  • Struts plus Hibernate

    I try integrate Struts and Hibernate. I create a simple blank project...
    You can download it from http://rapidshare.com/files/49730760/StrutsPlusHibernate.zip.html ( 20 KB you should add lib) . When I start Tomcat 5.5 I have an exeptions :
    SEVERE: Error loading WebappClassLoader
      delegate: false
      repositories:
        /WEB-INF/classes/
    ----------> Parent Classloader:
    org.apache.catalina.loader.StandardClassLoader@7b6889
    org.apache.struts.action.ActionServlet
    java.lang.ClassNotFoundException: org.apache.struts.action.ActionServlet
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1034)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3917)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4201)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
         at org.apache.catalina.core.StandardService.start(StandardService.java:450)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
    18.08.2007 13:55:59 org.apache.catalina.core.StandardContext loadOnStartup
    SEVERE: Servlet /StrutsAndHibernate threw load() exception
    java.lang.ClassNotFoundException: org.apache.struts.action.ActionServlet
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1034)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3917)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4201)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
         at org.apache.catalina.core.StandardService.start(StandardService.java:450)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)What's wrong ??
    Message was edited by:
    Del2

    This is what's wrong:
    ava.lang.ClassNotFoundException: org.apache.struts.action.ActionServlet
    I'm guessing that you either didn't put the Struts JAR in your CLASSPATH, meaning WEB-INF/lib of your web deployment, or you didn't declare the servlet in your web.xml.
    %

  • Is there any tutorial for integrating struts with hibernate using JDevelope

    Hi Everybody
    I am using Jdeveloper...and I want to know is there any tutorial available for usinfg struts and hibernate.
    If anybody knows abt them...plz tell me the links.
    Thanks and Regards
    K Sreenivas

    A tutorial about using hibernate in JDeveloper is here:
    http://www.oracle.com/technology/pub/articles/vohra_hibernate.html
    There are many papers and tutorials about Struts in JDeveloper - just go to the tutorials page and technical papers pages linked from the JDeveloper home-page.

  • What do I download for Struts/JSP/Hibernate?

    My organization has purchased a five-user license for "Workshop" and I would like to use it for Struts/Hibernate/JSP development. However, it's not clear what I need to download and install.
    I tried downloading and installing both of these files:
    workshopstudio102_win32.exe
    workshop102_win32.exe
    In both cases, after the dust settled there was no application called "Workshop" on my Windows XP system.
    There is now something called "WorkSPACE Studio 1.1." ("Space," not "shop.")
    What is "WorkSpace Studio?" I never heard of it before I ran this installer.
    What is the difference between "Workshop Studio" and "Workshop for WebLogic?"
    What do I download to get Eclipse-based Struts/JSP/Hibernate development tools?
    How do I install it?
    Thanks,
    Ethan
    Edited by ethanmichaels at 03/26/2008 4:48 PM

    Hi Ethan,
    The license you have purchased is for WorkshopStudio 10.2
    This allows you to develop Struts/Hibernate/JSP applications against both BEA and non BEA servers.
    Workshop for WebLogic allows users to develop applications against BEA WebLogic Servers and does not require a special license
    More information on Workspace Studio is available at http://edocs.bea.com/wlw/docs102/workspaceFAQ.html
    Hope this helps
    cheers
    Raj

  • EJB & struts

    iam a j2ee fresher working on EJB & struts
    plz guide me which tutorial is good for EJB & struts
    Right now iam studying from roseindia.net

    While JSe tutorials do not talk address Struts, we do have tutorials that discuss how to create EJBs as part of a larger tutorial objective.
    See the following URL, in particular Deploying and Executing a J2EE Application, and the tutorials on Session Beans and CMP.
    http://developers.sun.com/prodtech/javatools/jsenterprise/learning/tutorials/index.html
    You might also want to take a look at java.sun.com, where there
    is information specific to EJBs, and to blueprints for creating EJBs
    http://java.sun.com
    http://java.sun.com/reference/blueprints/index.html

  • Books on Struts and Hibernate

    Could anyone tell me the best(means best) books for Struts and Hibernate for beginner. As i've a sound knowledge of jsp and servlets, i would like to add this technology (Struts) in my project..

    Go to Amazon and type "Hibernate" into a search. You'll see all the Hibernate books available.
    "HIbernate In Action" is out of date now. There's a new one due out on 1-Nov if you can wait that long.
    %

  • 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.

  • What is a listener for/ especially in struts + tomcat + hibernate

    some example code sugguested that we should create a listener for the hibernate connection. i stil dont get it. anyone can explain this?

    The listener is the product that allows APEX to communicate with the App Server.. The supported App servers are WebLogic & GlassFish (for version 2.x of the listner, version 1.x allows the usage of Tomcat and OC4J)..
    In the prior database/app server setup you would use the HTTP server (Apache) with a mod called Mod_plsql to communicate between the app server and the database.
    With the APEX Listener 2.x you can use it to host RESTful web-services and allow your APEX apps to import Excel workbooks directly and also print PDF files similar to FOP.
    You really Can't share session state with other apps.. Why exactly would you want to do this??
    Re: Run java applets in APEX, No you can run them in the app server.. Apex can work with Oracle EBS, there is a posted whitepaper on this from Oracle:
    http://www.oracle.com/technetwork/developer-tools/apex/learnmore/apex-ebs-extension-white-paper-345780.pdf
    Thank you,
    Tony Miller
    SmartDog Services
    Austin, TX

  • Struts, ibatis, hibernate,  finally HELP!

    dear all expert...
    it might be a very stupid question but i don't know where to ask...
    first i would explain what i want to do:
    i want to make a program, like accessing data from database on the server...it would include verifying data, and all...you know secure database...that's the point...
    i ask about this to my friend...first he said, use tomcat, and friends...now, he said, struts and the gank...
    is there any one of you could please explain to me what the hell is those ganks?...and what is it for? i'm downloading those ganks and still guessing what kind of programs they are...i'd like to stop them downloaded if it's useless...
    i learn java a very basic one...like beans and before that...forms, applet...you know...all like that...but it was nothing to do with the real database and server...i learn how to access sql but just a "line"...just like that...nothing more...
    so i'd like to improve myself right now...but i don't know the steps...what software i must download...if my friends keep changing his mind like that, i would be the javatool collector, not programmer...
    please help me!...

    thanks duffymo...your advice really help me...yes,
    i've heard that jsp thing...and all...i'll try that
    one...yes, indeed. JSPs will be most useful.
    one more stupid question...i'm dowloading
    tomcat...and when i'm downloading it...i remember
    there were some (i don't know what to call it) tomcat
    support....like tomcat compatible, tomcat this,
    tomcat bla bla...
    do i have to download it all to make this tc work?I'm not sure I know what you mean, but these days all you have to do is download the Tomcat .exe installer and run it. If you're using a Windows machine it'll set up Tomcat as a service for you.
    Just one caveat about version: the latest Tomcat 5.5.x requires JDK 1.5. I'm using Tomcat 5.0.28, because it doesn't require JDK 1.5.
    Also - download the JSTL version 1.1 from Jakarta.
    anyway i'm downloading jakarta tomcat version 4 and
    there's also apache tomcat version 5...sorry if it's
    a morron question...really, i'm blank here...
    is ok if i use any one of those tc?...no problem,
    right?...the point is...there's gotta be a server
    here and it's tomcat you suggest...Tomcat will give you an HTTP Web server plus a servlet/JSP engine. Get started with that. I'd recommend version 5.0.28, unless you're already using JDK 1.5.
    %

  • Toplink+EJB+Struts

    Validation Error
    You must correct the following error(s) before proceeding:
    * JBO-29000: JBO-29000: Unexpected exception caught: javax.ejb.EJBException, msg=Transaction was rolled back: Excepción [TOPLINK-6007] (OracleAS TopLink - 10g (9.0.4.5) (Build 040930)): oracle.toplink.exceptions.QueryException Descripción de Excepción: Falta el descriptor de [class cl.accs.pac.toplink.Parameters]. Consulta: ReadAllQuery(cl.accs.pac.toplink.Parameters); nested exception is: Excepción [TOPLINK-6007] (OracleAS TopLink - 10g (9.0.4.5) (Build 040930)): oracle.toplink.exceptions.QueryException Descripción de Excepción: Falta el descriptor de [class cl.accs.pac.toplink.Parameters]. Consulta: ReadAllQuery(cl.accs.pac.toplink.Parameters)

    Hi Viral,
    We did software loadbalancing for testing purpose and it did work with 9.0.3.In production environments you may need to consider Hardware Loadbalancer.
    The following link may give you some insight.
    http://download-west.oracle.com/docs/cd/B10464_05/core.904/b10495/toc.htm
    Hope this helps.
    Giri.

  • 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.
    %

  • New website

    I want to make my own website, I have the knowledge of EJB, Struts, JSP, Hibernate and Spring. Which Technology should I use to make a basic website so that millions of people can access it. Website will also contain the discussion forum.

    I want to make my own website, I have the knowledge
    of EJB, Struts, JSP, Hibernate and Spring. Which
    Technology should I use to make a basic website If it's a basic Website, you won't need any of those technologies, since they'll be overkill.
    Website will
    also contain the discussion forum.There are a number of free java open-source forum software already available:
    http://www.java-source.net/open-source/forum-software

  • Struts - Hibernate

    Hi,
    I am currently working on a small (for me quite large) project with Struts.
    Some basic Information
    I am quite new to J2ee applications but decided to work with Struts, because there are more references of tutorials and I have little experience in it.
    For O/R mapping I use Hibernate.
    Now my Question:
    I represent my tables (stored in a MySQL database) as POJO and call them Business Objects (I am following the pattern, supposed in the book "Programmin Jakarta Struts").
    Anyway, I do not intend to send this BOs to the action since they often contain a lot of data I won't use.
    Therefore I planned to create single ValueObjects which is created by a ServiceInterface and which would contain, for example a person's name and sirname.
    If I need a more detail description I' will create another ValueObject wich extends the person's "BasicView" to a detail view.
    But the detail view is actually (in my app) nothing but the BO itself rewritten in another class.
    So I don't know if its a good approach.
    But therefore I am asking some experts, namely you!
    Any help would be appreciated
    Peter
    Message was edited by:
    Peterson

    I am quite new to J2ee applications but decided to
    work with Struts, because there are more references
    of tutorials and I have little experience in it.If you are new to J2EE, then avoid Struts and Hibernate AT ALL COSTS! They are horrible to work with and only cause pain, ESPECIALLY if you're doing a small project. Struts/Hibernate are buzzwords and everyone rushes in to use them, but mark my words, if you go down that path it will take you twice as long to code your app.

  • 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).

Maybe you are looking for