FDS+Spring+Hibernate

If any body has worked with FDS /Hibernate/Spring
pls post the sample.
regards
anil

The posts here that point to examples of Spring + FDS and
separate examples of Hibernate + FDS and then say combining the two
should be easy seem to be missing the point. This is not as easy an
straight forward as it seems it should be.
Spring + Hibernate + FDS is a completely different animal
because you are getting Spring to handle the Session Factory
configuration and your DAO's as Spring beans but you also want the
handling of lazy initialization and proxy serialization as shown in
the HibernateAssembler.
The current HibernateAssembler code handles all of the
Hibernate setup. I would much rather have Spring do this. What I
would like is for my HibernateProxy's for non initialized
associations to be serialized rather than traversed resulting
LazyInitializationExceptions. The HibernateAssembler seems to
tackle this with a very mysterious piece of code:
PropertyProxyRegistry.getRegistry().register(HibernateProxy.class,
new HibernatePropertyProxy());
PropertyProxyRegistry and HibernatePropertyProxy are not
documented anywhere, and in fact a Google on PropertyProxyRegistry
returns 0 results. However, my intuition tells me this piece of
code should tell serialization to proxy the HibernateProxy with a
flex class called HibernatePropertyProxy which will just serialize
an id of an association rather than attempting to serialize the
uninitialized associated class.
I cannot get this to work though and as there is no
documentation and no discussion on these classes, I have no way of
verifying it. If my intuition is correct, this is a very useful
mechanism. I only wish it was documented b/c if it did work as
expected it would make a Hibernate + Spring + FDS implementation
pretty easy.
Anyone know anything about this?

Similar Messages

  • FDS and Hibernate dynamic mapping

    I am using FDS with hibernate
    (flex.data.assemblers.HibernateAssembler) to transfer data between
    the flex client and my JDBC database. This works really smooth, as
    long as I specify a server-side java class (POJO) in the
    <hibernate-mapping><class name="some.class"> attribute.
    As I dont really need these server-side java classes for
    anything else, I have tried to save some work by using the
    hibernate "dynamic-map" mode (<hibernate-mapping><class
    entity-name="some.entity">). But in this case, FDS does not map
    the result to the corresponding flex ActionScript class with the
    correct RemoteClass alias. The DataService "fill" method returns an
    ArrayCollection of "ManagedObjectProxy" items containing the field
    "$type$=some.entity" instead.
    Does FDS support hibernate dynamic mapping? Is there a
    workaround for this problem?
    Best,
    Per

    Hi Per,
    The Hibernate assembler doesn't currently support the
    dynamic-map mode, so for now you'll need your POJOs.
    Best,
    Seth

  • A beginner to design pattern(Struct,Spring & Hibernate framework)

    Actually I am beginner to MVC2 Approach of complex application incorporated by design pattern as Struct,Spring & Hibernate framework.
    Currently I am learning JSP Concepts,I have one doubt.
    (1)What are the things I should grasp even before taking off to Design pattern?
    Help me anyone plz?
    With Regards,
    Stalin.G

    [email protected] wrote:
    Actually I am beginner to MVC2 Approach of complex application incorporated by design pattern as Struct,Spring & Hibernate framework.
    Currently I am learning JSP Concepts,I have one doubt.Just one?
    >
    (1)What are the things I should grasp even before taking off to Design pattern?You should understand core Java very, very well.
    You should know JSPs using JSTL without scriptlets.
    You should understand relational databases and SQL.
    You should understand HTML and HTTP.
    Personally I think Struts, Spring, and Hibernate all at once are well beyond any beginner.
    It's hard to advise you on what to do without knowing your capabilities and the problem you're trying to solve, but I think you should try it first using just JSPs, servlets, and JDBC. Get that to work and then refactor it to use the frameworks. You'll understand and appreciate them more that way.
    %

  • Spring/Hibernate tier called from Java Stored Procedure

    Here is my scenario.
    Building out a new physical model alongside an old db.
    Two schema's inside same Oracle instance.
    We are building a new Java tier on top of the new schema using spring/hibernate.
    To maintain sync with the old db we are building a load of PLSQL code that will be called by PLSQL stored procs on the old schema.
    ====
    Now it occurred to me that if I could put a copy of my new java tier in the database itself then the trigger code on the old schema could call a java stored proc wrapper which in turn called into my new java tier inside the instance.
    This way I avoid duplication business logic in the db sync and the java middle tier. Basically I do away with the PLSQL sync code and just use the new java component.
    This clearly has advantages from an automated testing point of view too.
    So very interested in how/if anyone has made this work.
    Potential issues...
    - JVM version (outside the db we use Sun Java 5 - inside the db I'm not sure what is used).
    - How would spring access it's config files?

    user563578,
    You asked:
    interested in how/if anyone has made this workNot me.
    You also asked:
    Potential issues...
    - JVM version (outside db use Sun Java 5 - inside db not sure)
    - How would spring access it's config files?
    Oracle has its own JVM embedded in the database: OJVM
    In Oracle 8i it is compatible with JDK 1.2
    In Oracle 9i it is comaptible with JDK 1.3
    In Oracle 10g it is compatible with JDK 1.4
    You can access files outside of the database from OJVM, you just need to set correct permissions.
    Perhaps Kuassi Mensah's book, Oracle Database Programming Using Java and Web Services will be of help?
    Good Luck,
    Avi.

  • Jdev 11.1.2  Spring + Hibernate + Prime faces

    Jdev 11.1.2
    Spring + Hibernate + Prime faces
    I have a application developed using myeclipse for spring scaffold spring crud option . having problems deploying the ear to weblogic , so imported the project to jdeveloper 11.1.2 and trying to run in integrated weblogic server and running into below exception
    java.lang.NoSuchMethodError: javax.el.ELResolver.invoke(Ljavax/el/ELContext;Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Class;[Ljava/lang/Object;)Ljava/lang/Object;
         at com.sun.el.parser.AstValue.getValue(AstValue.java:111)
         at com.sun.el.parser.AstValue.getValue(AstValue.java:163)
         at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:219)
    to make weblogic use EL 2.2 Version jars included in my project I have added this to my weblogic-application.xml file
    <prefer-application-packages>
    <package-name>com.sun.el.*</package-name>
    <package-name>javax.el.*</package-name>
    </prefer-application-packages>
    And now running into this exception
    java.lang.ClassCastException: oracle.adf.share.el.ADFContextELResolver cannot be cast to javax.el.ELResolver
    I am not using ADF in my project , is there any configurations I can change to get this working
    Thank you for your time
    Best regards

    Check that your project properties->libraries don't contain ADF, and also check the web.xml file of your project to ensure no ADF enties in there.

  • IPlanet Compatibility with Spring/Hibernate

    Hi,
    I need to develop a J2EE application.
    I need to used iPlanet as a Web Server.
    I want to know the compatibility if iPlanet with Spring/Hibernate.
    Is it possible to develop an application using Spring/Hibernate if iPlanet is the Web Server.
    thanks

    Do you mean iPlanet Web Server 6.0? That's more than 7 years old. It's no longer supported by Sun and contains unfixed security vulnerabilities that make it unfit for production use. Modern versions of Spring and Hibernate won't work with the ancient version of the Java Servlet specification implemented by Web Server 6.0.
    Spring and Hibernate will, however, work with the current iteration of Sun's web server product, Sun Java System Web Server 7.0.

  • Install GWT, Spring, Hibernate, JBOSS

    I am new to Java.
    I am going to create a web application using Java, I was told I have to install GWT, Spring, Hibernate, JBOSS, JDK 6 and mySQL.
    I already install mySQL and JDK 6. Do I need to install Eclipse also?
    what's the pupose to install GWT, Spring, Hibernate, JBOSS? what's the relationship of them? is there any order to install them?
    Thanks very much.
    Andraw

    Andraw wrote:
    I just join a new company, they already create a project using all these tools, I just need to install these software in my computer, and run their project to get familiar with them slowly.And you told them that you have not done any Java in 7 years and don't have clue about any of those technologies?
    Then they should be prepared to provide some help with your start.
    Don't say no to me, I want to give it a try.Ok, I won't say no. I will still say you'll have a hard time. Be ready to learn a lot.

  • J2EE(Spring/Hibernate) application migration to ADF

    Hi,
    Is there any migration method to migrate J2EE(Spring/Hibernate) based application to ADF based applicaiton?
    Thanks

    Kind of depends on what you are looking to to use from the ADF stack.
    One option is to just build an ADF Faces UI on top of your existing backend (You'll just need to bring the Spring and Hibernate classes into JDeveloper).
    You should be able to also expose your Spring facades as ADF Data controls and use ADF Binding on top of them.
    Seems like this is what this guy did: http://blogs.oracle.com/michaellee/2009/08/creating_a_spring_adf_library.html

  • Parent Child Hierarchy with FDS and Hibernate

    I know my chances of getting heard here are slim, but I am at
    a dead end, so here goes.
    I have a four level hierarchy of objects
    PlanPoint
    ....UserScenario
    ........Scenario
    ............Competitor
    which have bi-directional one-to-many relationships between
    them.
    I have made sure that my hibernate mappings and FDS
    destination are matched and I definitely need to have managed
    associations as the graph of objects will grow large in my
    application (and besides, it is good development practice). So I
    have a fully formed project (or at least I think I do) and I get a
    duplicate object error.
    Right at the bottom I have an alternative that I have tried
    which gives a different error.
    Here is a snippet from my log... it picks up just after the
    message arrives
    2007-02-05 21:21:10,281 INFO [STDOUT] Hibernate: insert into
    COMPETITOR (COMPETITOR_ID, SCENARIO_ID, NAME, X, Y, RADIUS, ACTUAL,
    PROPOSITIONS, ORDER_SIZE, CONVERSION_RATE) values (null, ?, ?, ?,
    2007-02-05 21:21:10,281 INFO [STDOUT] Hibernate: call
    identity()
    2007-02-05 21:21:10,312 INFO [STDOUT] Hibernate: insert into
    SCENARIO (SCENARIO_ID, TITLE, SEQUENCE, POTENTIAL,
    USER_SCENARIO_ID) values (null, ?, ?, ?, ?)
    2007-02-05 21:21:10,312 INFO [STDOUT] Hibernate: call
    identity()
    2007-02-05 21:21:10,359 INFO [STDOUT] Hibernate: insert into
    USER_SCENARIO (USER_SCENARIO_ID, TITLE, PLANPOINT_ID, AUTHOR)
    values (null, ?, ?, ?)
    2007-02-05 21:21:10,359 INFO [STDOUT] Hibernate: call
    identity()
    2007-02-05 21:21:10,406 INFO [STDOUT] [Flex] Serializing
    AMF/RTMP response
    Version: 3
    (Command method=_error (0) trxId=8)
    (Typed Object #0 'flex.messaging.messages.ErrorMessage')
    rootCause = (Typed Object #1
    'org.hibernate.NonUniqueObjectException')
    throwables = (Array #2)
    [0] = (Ref #1)
    localizedMessage = "a different object with the same
    identifier value was already associated with the session:
    [pmco.pojos.Competitor#0]"
    message = "a different object with the same identifier value
    was already associated with the session: [pmco.pojos.Competitor#0]"
    identifier = 0
    cause = null
    throwableCount = 1
    entityName = "pmco.pojos.Competitor"
    messages = (Array #3)
    [0] = "a different object with the same identifier value was
    already associated with the session"
    destination = "competitor.hibernate"
    headers = (Object #4)
    correlationId = "BFAF11E0-6121-54BB-A836-93C81DAE7772"
    faultString = "Could not invoke sync method on data adapter
    for destination 'userscenario.hibernate' due to the following
    error: class org.hibernate.NonUniqueObjectException:a different
    object with the same identifier value was already associated with
    the session: [pmco.pojos.Competitor#0]."
    messageId = "78CB9396-9618-519F-8DB0-70D4E53357FE"
    faultCode = "Server.Processing"
    timeToLive = 0.0
    extendedData = null
    faultDetail = null
    clientId = null
    timestamp = 1.17071047039E12
    body = null
    Anyone got any ideas?
    I would provide my mappings and destinations but I can't fit
    them in a message

    Hi,
    thanks for the reply it was very helpful. I came to pretty
    much the same conclusion and started on the path of a re-write of
    the hibernate assembler myself. As far as I can tell the Hibernate
    Assembler is a Java Assembler, so there didn't seem much difference
    to me between fixing that one and writing another one. Adobe ship
    the code.
    Bit of a cheeky request, but I don't suppose you would be
    willing to share your assembler layer so I have a template against
    which to work? Biggest problem with this sort of activity is a lack
    of examples which makes it very slow going and largely trial and
    error.
    If you would like to know more about our application I will
    provide contact details so we can discuss.
    Simon
    PS Jeff Vroom posted a reply saying that the Adobe Hibernate
    Assembler didn't work properly with hierarchical data (which I
    imagine is every real application in the world), personally I think
    Adobe should fix it or pull it.
    http://tech.groups.yahoo.com/group/flexcoders/message/63961

  • Help me out with Directory structure for JSF+SPRING+HIBERNATE Project

    Hi frnds ,
    My name is Walter working for a startup software company . We are working on Hospital Management System (HMS) project .. MVC Architecture ...using Hibernate Spring and JSF ..we need to design Directory Structure for our project..
    plzz help me friends in suggesting MVC Directory structure ...? also plzz help me by directing me with the navigation flow?
    Thnxx in advance
    Regards
    Walter

    Thank you so much .. friends ..for your kind replies..thanks to Illu, anguquga and special thanks to BalusC for giving me the advice for hiring EE Artitech ..
    Anyways I have discussed with my teammates designing the directory structure
    anguquga your directory structure is close to what I have designed ..referiing to a sample application on web..
    Hospital Management system MVC architecture Directory structure
    This is the way the structure goes on ..
    model --> for Hibernate as well as Spring
    View --> for JSF
    src(-)
    |
    ------(-) java
         |
         -------(-) model
              |
              ------(+) businessobject
              |
              ------(-) dao
              |
              ------(+) hibernate
              |
              ------(+) exception
              |
              ------(-) service
              |
              ------ (+) impl
              |
              ------(+) util
              (-) view
              |
              ------(+) bean
              |
              ------(+) builder
              |
              ------(+) bundle
              |
              ------(+) servicelocator
              |
              ------(+) util
              |
              ------(+) validator
    (-) Web or WebRoot
    |
    ----- (-) JSP Files�etc.,
    |
    ----- (-) META-INF
    |
         ------     (+) Images
    |
         ------     (+) Scripts ==== CSS (cascading style sheets, JavaScript files etc.,)
    |
    ----- (-) WEB-INF =========xml files web.xml, faces-config.xml etc.,
         |
         -----(-) Classes
              |
    -----(-) HMS
    |
                   ----- (+) model
                   |
                   ----- (+) view
    |
    ----- (+) lib
    I am sure you may notice few errors .. if u find any plzz reply me back.... thnxx in advance for replies...and thnxx for giving your valuable replies...
    Walter (Kaleem)

  • Java Studio Creator -- web service -- spring -- hibernate -- database

    Hello,
    Has somebody already worked on an architecture 3 tier including : hibernate, spring, a deployment of the classes "spring" in wsdl (Web service).
    With Tomcat and Axis i deploy some web services (classes --> wsdl), with java studio creator i call the web service and the methods ...
    I would know if it possible to deploy some "spring" classes to have finally (wsdl) ?
    Thanks

    Heh heh heh....welcome to the club.
    There are <b>many</b> of us wanting to integrate Spring with JSC.
    I am working on doing this now, and plan to submit a quick tutorial on the subject to this forum once (if) I get it working.
    To start you off in the right direction though, here are some things I <b>think</b> you need to do.
    1) Make JSC Spring aware by adding the Spring.jar file in the Project Navigator (right click...Create New Library Reference).
    2) Add the package structure you need in Project Manager
    3) Add you Spring configuration file (application-context) in web/WEB-INF
    4) Add your ContextLoaderListener to web.xml.
    5) Get a servlet context and use it to get a WebApplicationContext
    6) Use that to retrieve the bean you need to work with

  • Jsf spring hibernate session

    Hi, I'm currently using hibernate spring and JSF  1/ the first problem In the JSF common header page I try to test if a bean is in the session scope in order to show login or logout link, and the test always fails : the logout link is always displayed.  the JSF page : [code] <f:subview id="header" >        <h:form id="headerForm"> <table cellspacing="0" width="100%"> <tr> <td align="left" valign="middle">           <img border="0" src="images/logo1.jpg"/> </td>  <td align="right" valign="middle"> <br> <!--Accueil< -->  <c:choose> <c:when test="${empty sessionScope.accountBean}">  <h:commandLink action="Sign on"> <h:outputText value="Sign on"/> </h:commandLink>  </c:when> <c:otherwise> <h:commandLink id ="logout" action="#{accountBean.logoutAction}" >      <h:outputText value="log out"/> </h:commandLink> </c:otherwise> </c:choose> </td> </tr> </table>  <table cellspacing="0" width="100%"> <tr> <td> <hr color="#99ca3c" size="5" noShade SIZE=1> </td> </tr> </table>       </h:form> </f:subview>   [/code]   The accountBean code : [code] public class AccountBean extends BaseBean{ //private Logger log = Log.getLog(this); private String uid; private String password;  private boolean loggedIn; private AdminService adminService; private Admin admin; public AccountBean() { this.logger.debug("Authentication"); this.loggedIn = false; uid=null; password=null; // admin=new Admin(); } public String loginAction() {           try { this.logger.debug("loginAction");  admin = adminService.login(this.uid, this.password); //this.serviceLocator.getUserService().login(this.username, this.password);                                if (admin != null) { if("".equals(admin.getUid())|| "".equals(admin.getPassword())){ this.loggedIn=false; String msg = "Le mot de passe et l'identifiant doivent etre saisis ";                     addErrorMessage(msg + ", saississez un mot de passe et un identifiant corrects"); return NavigationResults.RETRY; } else{                     this.loggedIn = true; HttpSession session = SessionUtil.getSession(); session.setAttribute("Admin", this.uid);                                          return NavigationResults.SUCCESS; }                }                else {                     this.loggedIn = false;                                          String msg = "Le mot de passe est incorrect ";                     addErrorMessage(msg + ", saississez un mot de passe correct");                     this.logger.debug(msg);                                          return NavigationResults.RETRY;                }           }           catch (UsernameNotExistException ue) {                String msg = "L'identifiant (login) est incorrect";                this.logger.info(msg);                addErrorMessage(msg + ", ressaysissez votre identifiant.");                                return NavigationResults.RETRY;           }           catch (Exception e) {                this.logger.error("Could not log in user.", e);                addInfoMessage("Could not log in user: Internal Error");                                return NavigationResults.FAILURE;           }      }            /**      * The backing bean action to logout a user.      *       * @return the navigation result      */      public String logoutAction() {           //this.clear(); FacesContext fc = FacesContext.getCurrentInstance(); HttpSession session = (HttpSession) fc.getExternalContext().getSession(false); session.invalidate();            this.logger.debug("Logout successfully.");                      return NavigationResults.MAIN;      }        public String getPassword() { return password; }  public void setPassword(String password) { this.password = password; }  public String getUid() { return uid; }  public void setUid(String uid) { this.uid = uid; }  public Admin getAdmin() { return admin; }   public boolean getLoggedIn() { return loggedIn; }  public void setLoggedIn(boolean loggedIn) { this.loggedIn = loggedIn; }  public void setAdminService(AdminService adminService) { this.adminService = adminService; }   }    [/code]  the faces managed bean configuration [code] <managed-bean-name>accountBean</managed-bean-name> <managed-bean-class>fr.cbmjadmin.views.bean.AccountBean</managed-bean-class> <managed-bean-scope>session</managed-bean-scope> <managed-property>      <property-name>adminService</property-name> <value>#{adminService}</value> </managed-property>    [/code] 2/ the second problem : my application shows a list of datas. I log on the application , i update this list outside the application ( by using sql command) , i try to list my data using the application : the application does not reflect the modifications. I logout using the log out link, then i log on and the application does not reflect the modifications.  what happens? How could I resove these problems. How can i logout properly? how can i show logout link when the user is logged in? and hide the log out link when the user is logout Thanks.

    For the first problem, you need to realize that the accountBean always exists since you configured it in the faces-config.xml. So you should use something else (like a property on the bean) to determine if the user has actually logged in.
    Secondly, but still on the first issue, it is preferable to use the rendered attribute on the standard JSF components in this situation, instead of the JSTL tags.
    Now, as to the second problem, there are a number of possibilities:
    - did you commit the changes to the database?
    - did you verify that another connection with the native db client can see the changes?
    - are you using a cache with Hibernate? Are you taking the proper steps to notify the cache it might have stale data?
    - are you keeping the list in session scope in your application? (Logging out doesn't clear the session unless you explicitly code it that way.)

  • JSF - spring - hibernate and session

    Hi,
    I'm currently using hibernate spring and JSF
    1/ the first problem
    In the JSF common header page I try to test if a bean is in the session scope in order to show login or logout link, and the test always fails : the logout link is always displayed.
    the JSF page :
    <f:subview id="header" >
        <h:form id="headerForm">
            <table cellspacing="0" width="100%">
        <tr>
            <td align="left" valign="middle">
                  <a href="front.jsf"><img border="0" src="images/logo1.jpg"/></a>
            </td>
        <td align="right" valign="middle"> <br>
       <!--<a href="front.jsf" rendered="#"> Accueil<</a> -->
        <c:choose>
                    <c:when test="${empty sessionScope.accountBean}">
                        <h:commandLink action="Sign on">
                            <h:outputText value="Sign on"/>
                        </h:commandLink>  
                    </c:when>
                    <c:otherwise>
                        <h:commandLink id ="logout" action="#{accountBean.logoutAction}" >
                             <h:outputText value="log out"/>
                        </h:commandLink>
                   </c:otherwise>
                </c:choose>
            </td>
        </tr>
    </table>
    <table cellspacing="0" width="100%">
        <tr>
            <td>
                <hr color="#99ca3c"  size="5" noShade SIZE=1>
            </td>
        </tr>
    </table>
         </h:form>
    </f:subview>The accountBean code :
    public class AccountBean extends BaseBean{
    //private Logger log = Log.getLog(this);
        private String uid;
        private String password;
        private boolean loggedIn;
        private AdminService adminService;
        private Admin admin;
        public AccountBean() {
            this.logger.debug("Authentication");
            this.loggedIn = false;
            uid=null;
            password=null;
           // admin=new Admin();
    public String loginAction() {
              try {
                        this.logger.debug("loginAction");
                         admin = adminService.login(this.uid, this.password);
                                    //this.serviceLocator.getUserService().login(this.username, this.password);
                   if (admin != null) {
                                if("".equals(admin.getUid())|| "".equals(admin.getPassword())){
                                 this.loggedIn=false;
                                    String msg = "Le mot de passe et l'identifiant doivent etre saisis ";
                        addErrorMessage(msg + ", saississez un mot de passe et un identifiant corrects");
                                 return NavigationResults.RETRY;
                                else{
                        this.loggedIn = true;
                                    HttpSession session = SessionUtil.getSession();
                                    session.setAttribute("Admin", this.uid);
                        return NavigationResults.SUCCESS;
                   else {
                        this.loggedIn = false;
                        String msg = "Le mot de passe est incorrect ";
                        addErrorMessage(msg + ", saississez un mot de passe correct");
                        this.logger.debug(msg);
                        return NavigationResults.RETRY;
              catch (UsernameNotExistException ue) {
                   String msg = "L'identifiant (login) est incorrect";
                   this.logger.info(msg);
                   addErrorMessage(msg + ", ressaysissez votre identifiant.");
                   return NavigationResults.RETRY;
              catch (Exception e) {
                   this.logger.error("Could not log in user.", e);
                   addInfoMessage("Could not log in user: Internal Error");
                   return NavigationResults.FAILURE;
          * The backing bean action to logout a user.
          * @return the navigation result
         public String logoutAction() {
              //this.clear();
               FacesContext fc = FacesContext.getCurrentInstance();
               HttpSession session = (HttpSession) fc.getExternalContext().getSession(false);
               session.invalidate();
              this.logger.debug("Logout successfully.");
              return NavigationResults.MAIN;
        public String getPassword() {
            return password;
        public void setPassword(String password) {
            this.password = password;
        public String getUid() {
            return uid;
        public void setUid(String uid) {
            this.uid = uid;
        public Admin getAdmin() {
            return admin;
        public boolean getLoggedIn() {
            return loggedIn;
        public void setLoggedIn(boolean loggedIn) {
            this.loggedIn = loggedIn;
        public void setAdminService(AdminService adminService) {
            this.adminService = adminService;
    }the faces managed bean configuration
    <managed-bean-name>accountBean</managed-bean-name>
        <managed-bean-class>fr.cbmjadmin.views.bean.AccountBean</managed-bean-class>
        <managed-bean-scope>session</managed-bean-scope>
        <managed-property>
         <property-name>adminService</property-name>
                <value>#{adminService}</value>
        </managed-property>2/ the second problem :
    my application shows a list of datas.
    I log on the application , i update this list outside the application ( by using sql command) , i try to list my data using the application : the application does not reflect the modifications. I logout using the log out link, then i log on and the application does not reflect the modifications.
    what happens?
    How could I resove these problems.
    How can i logout properly?
    how can i show logout link when the user is logged in? and hide the log out link when the user is logout
    Thanks.

    It depends on how you want to reprecate the session btwn instances or cluters
    there are three kinds File System, Memory to Memory, HA
    You can configure it from this property in the admin console
    Configuration on a cluster -> Availability Service -> Web Container Availability -> Persistence Type:

  • Spring/Hibernate/Hypersonic

    Sorry for post Spring questions here. But I believe only here I can meet gurus.
    Hi,
    I have download "Spring Live" sample example in order to learn Spring framework.
    I did not understand and "ant deploy", how a hypersonic data base could be created. But it is the case.
    I checked target "deploy" and "compile", nowhere could I see the creation of database.
    Any explaination?
    Thanks!
    PY
         <target name="deploy" depends="compile" description="Deploy application">
              <copy todir="${tomcat.home}/webapps/${webapp.name}" preservelastmodified="true">
                   <fileset dir="${web.dir}">
                        <include name="**/*.*" />
                        <exclude name="**/junit.jar" />
                        <exclude name="**/*mock.jar" />
                        <exclude name="**/strutstestcase*.jar" />
                   </fileset>
              </copy>
              <copy todir="${tomcat.home}/webapps/${webapp.name}/WEB-INF/classes" preservelastmodified="true">
                   <fileset dir="${build.dir}/classes" />
              </copy>
         </target>
    <target name="compile" description="Compile main source tree java files">
              <mkdir dir="${build.dir}/classes" />
              <javac destdir="${build.dir}/classes" target="1.5" debug="true" deprecation="false" optimize="false" failonerror="true">
                   <src path="${src.dir}" />
                   <classpath refid="classpath" />
              </javac>
              <!-- compile tests -->
              <mkdir dir="${test.dir}/classes" />
              <javac destdir="${test.dir}/classes" target="1.5" debug="true" deprecation="false" optimize="false" failonerror="true">
                   <src path="${test.src}" />
                   <classpath>
                        <path refid="classpath" />
                        <path location="${build.dir}/classes" />
                   </classpath>
              </javac>
              <!-- Copy hibernate mapping files to ${build.dir}/classes -->
              <copy todir="${build.dir}/classes">
                   <fileset dir="${src.dir}" includes="**/*.hbm.xml" />
              </copy>
         </target>

    I did not understand and "ant deploy", how a
    hypersonic data base could be created. But it is the
    case.It doesn't and it shouldn't. Creating a database is not a part of the application compilation or deployment. You might add something to execute a script for creating tables if you really wnat to.

  • Spring hibernate

    Hi,
    Please recommend good book or weblink for learning spring and hibernate to develop enterprise applications.
    Thanks,
    Manju

    The Spring documentation on integration is excellent: http://static.springsource.org/spring/docs/2.5.x/reference/orm.html
    There are numerous examples online via a trivial Google search to find additional examples for how to configure Spring and Hibernate.
    Hibernate's own site and the various JPA/ORM tutorials on the web are also excellent.
    In terms of how to develop an enterprise application, you will either receive requirements from your customers/stakeholders or you will need an idea of your own to implement something. There are a number of excellent books. Fowler's "Patterns of Enterprise Application Architecture" is a good one. The patterns are summarized here: http://martinfowler.com/eaaCatalog. Gregor Hohpe's "Enterprise Integration Patterns" is also excellent. There is a site for the book here: http://www.eaipatterns.com.
    - Saish

Maybe you are looking for

  • Getting ORA-06512: at "SYS.UTL_HTTP", line 1022 ORA-29270: too many open

    hi I am getting the following error while calling the procedure in the batch process ORA-06512: at "SYS.UTL_HTTP", line 1022 ORA-29270: too many open HTTP requests Could you please help me on this? As this is getting affected in the live databases. O

  • How can I return to the previous ios version?

    Version 7 is a step backward for me. >The Calendar does an awful job displaying the All-Day Events. >I can't figure out how to get the previous search page showing web search and Wikipedia search. >Where is an easy to follow description of the change

  • Adobe Flash player for Asus Transformer Pad

    We're Sorry This content requires Adobe Flash Player, which is not supported by your device. This content can be viewed on a desktop computer or on mobile devices that support Flash Player. Why adobe.com doesn't have opportunity download adobe flash

  • Alter tablespace command problem (sql statement))

    Hello, I have a table space named t_space2. I wanna add a datafile for this tablespace so I wrote on sql the following: Alter tablespace t_space2 add datafile 'D:\DATA\cust.dat' size 30 M; it gives me the following message: table space t_space2 doesn

  • Can I Change My name in the Profile

    Hi All, Don't mine any one that  I Asked this Q here How To Change My Name in the SDN Profile ??? I Given My Pet name At the Time of Registration in SDN. So I Want to Change My Display Name As Wel As The name in the Database I Tried Like this GotoMy