How to configure Hibernate in JBoss

Hi,
I'm using JBoss to run my application.
we are migrating complete application from JDBC to Hibernate,
Can any one explain how should i configure Hibernate in JBoss server
Cheers

Go through this tutorial: http://www.hibernate.org/hib_docs/v3/reference/en/html/tutorial.html
It explains how to setup hibernate.

Similar Messages

  • How to  configur hibernate in NetWeaver and how to use   in NETWEAVER

    Hi,
    Now i am useing Ejb's for my application in NetWeaver .
    Can i use hibernate instead of Ejb's in NetWeaver.
    if Ok,please tell me the procedure for how to configur hibernate and how to use.
    Thanqqqqqqq
    Guru

    You should read this documents first:
    Using Hibernate on SAP WAS - https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/2ae0614a-0601-0010-a491-a9a635f06613
    Hibernate on SAP NetWeaver - https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/14f55178-0801-0010-0bac-974ed17e51d3
    and then considering integration of your app with DAO design pattern proposed by Spring Framework. More on this is available here:
    Spring Integration on SAP NetWeaver - https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/73af6078-0801-0010-8fa1-deaa9647c5dd
    and here: http://static.springframework.org/spring/docs/1.2.x/reference/orm.html#orm-hibernate
    Regards,
      Marcin Zduniak

  • How to configure and use jboss cache

    Hi,
    I need to use Jboss Cache in our application,
    But i don't know anything about Jboss Cache...
    can u tell me requirements and configuration for this?
    and i am using jboss application server 3.2.3..
    and apache-ant-1.7.1, jdk1.6.0_06, jbosscache 2.2.0
    can u tell me how to configure and use jboss cache?
    Thanks & Regards
    Thilkumar

    Go to the JBoss web site and read up on the documentation there.
    And if you still have any questions you'll probably get better answers at the JBoss forums than in these forums.
    - Roy

  • How to configure datasource in JBOSS?

    Hi All,
    I want to configure datasource in JBOSS for oracle database? The constraints are
    1) The password should be in the encrypted format in the configuration file because I dont want to reveal my password to anyone.
    How can we acheive this.
    Can I do the encryption at the time of build(If yes how?)
    For any help Thanks in advance.
    Rajani Kanth

    Hi Rajani
    I was browsing the web looking for a way to solve the same problem.
    Have you every found a way to do this?
    I'm faced with the same problem: I must encrypt the user name and
    password.
    Did you find out whether JBoss has a way to accomplish this.
    Many thanks in advance.
    Serge
    [email protected]

  • How to configure automatic reloading the class in jboss-3.2.1_tomcat-4.1.24

    HI,
    In tomcat, web context is specified in Server .xml file with
    <!-- Tomcat Examples Context -->
    <Context path="/examples" docBase="examples" debug="0"
    reloadable="true" crossContext="true" />.
    this will deploy my examples webapplication in Tomcat server. And the property reloadable="ture" makes my life easiear. When even I change a .class, the class is automatically loaded in to memory with out restarting the server. Let me know the how to configure the same in Jboss-3.2.1_tomact-4.1.24 (auto-reload context) . Requesting for immediate solution

    I am running into the same problem. The only solution I know is to touch the application.xml which will reload the .ear file, which is not efficient in my case.
    Please let me also know if you have come across something else useful.
    Thanks,
    Mangal
    [email protected]

  • How to configure bc4j.xcfg ConnectionDefinition to JBoss 3.2.3?

    Hi,
    we have the following scenario here: a JClient for BC4J goes via Web Start
    and tries to communicate back to the AppModule deployed in JBoss 3.2.3 as
    Session Bean (BMT).
    We are using JDev 9.0.4.
    How can we configure the element <ConnectionDefinition> in common\bc4j.xcfg
    file in order to lookup the AppModule at JBoss?
    We were able to set up this scenario working in OC4J, but we are in trouble
    with JBoss.
    How can we change the following connection so it points to a JBoss app server?
    <ConnectionDefinition name="MyConnection">
    <ENTRY name="URL" value="ormi://myserver/"/>
    <ENTRY name="ConnectionName" value="MyConnection"/>
    <ENTRY name="user" value="admin"/>
    <ENTRY name="ConnectionType" value="OC4J"/>
    <ENTRY name="password">
    <![CDATA[{904}05E438994FF93]]>
    </ENTRY>
    <ENTRY name="JNDI_INITIAL_CONTEXT_FACTORY" value="com.evermind.server.rmi.RMIInitialContextFactory"/>
    <ENTRY name="DeployPassword" value="true"/>
    <ENTRY name="TARGET_NODE" value="http-web-site"/>
    <ENTRY name="DeployPassword" value="true"/>
    </ConnectionDefinition>
    Maybe it should look like this?
    <ConnectionDefinition name="MyConnection">
    <ENTRY name="URL" value="jnp://myserver:1099"/>
    <ENTRY name="ConnectionName" value="MyConnection"/>
    <ENTRY name="ConnectionType" value="JBoss"/>
    <ENTRY name="JNDI_INITIAL_CONTEXT_FACTORY" value="org.jnp.interfaces.NamingContextFactory"/>
    <ENTRY name="JNDI_URL_PKG_PREFIXES" value="org.jboss.naming:org.jnp.interfaces"/>
    </ConnectionDefinition>
    Hope somebody can help us.
    Eduardo.

    Frank,
    the reason we didn't deployed BC4J as a Web application is we weren't given options. Our contractor wanted a 3-tier application with rich client (JClient/Swing), an load-balanced application server and a legacy database at back end.
    The problem with the article "How Do I Deploy BC4J Applications to JBoss?" is that it doesn't mention how to configure common\bc4j.xcfg in order to connect with JBoss app server.
    The connection with the data source is ok.
    But how come the client would be able to lookup Remote Home interfaces through JNDI without knowing the protocol, host, port number and initial context properties specific to JBoss?
    Thanks,
    Eduardo.

  • How to configure JBoss for Oracle BPEL Process Manager

    an any body tell me , how to configure JBoss4.0.5 for Oracle BPEL Process Manager?

    http://download.oracle.com/docs/cd/E10291_01/doc.1013/e10538/toc.htm

  • How toremove messages from JMS Queue?how to configure queue in spring?

    Hi
    I have Confiured a JMS configaration in spring applicationConfiguaration.xml file
    <bean id="connectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
              <property name="brokerURL" value="tcp://localhost:61616"/>
              <property name="useAsyncSend" value="true"/>
         </bean>
         <bean id="queue" class="org.apache.activemq.command.ActiveMQQueue">
         <constructor-arg value="foo"/>
    </bean>
         <bean id="broker" class="org.apache.activemq.xbean.BrokerFactoryBean">
              <property name="config" value="classpath:activemq.xml" />
              <property name="start" value="true" />
         <!--          <property name="messageListener" ref="auditInterface"/> -->
         </bean>
         <bean id="auditInterface"
              class="org.springframework.jms.remoting.JmsInvokerProxyFactoryBean">
    <property name="serviceInterface" value="com.infiniti.gpn.auditing.AuditInterface"/>
    <property name="connectionFactory" ref="connectionFactory"/>
    <property name="queue" ref="queue"/>
    </bean>
         <bean id="listenerContainer" class="org.springframework.jms.listener.SimpleMessageListenerContainer">
    <property name="connectionFactory" ref="connectionFactory"/>
    <property name="destination" ref="queue"/>
    <property name="messageListener" ref="auditMessageListener"/>
         </bean>
    Sender is sedning messages continusly messages that messages r storing in queue , these r acupying more memory in RAM , due to that jboss is restarting for each request, is there any way to clean up messages in Queue ? if it is there then how will configure that queue in apllicationConfiguaration.xml file?
    Thanks in advance
    Nara

    I suggest posting your question on the [Spring Remoting and JMX forum|http://forum.springframework.org/forumdisplay.php?f=30].

  • How to remove messages from JMS Queue?how to configure queue in spring?

    Hi
    I have Confiured a JMS configaration in spring applicationConfiguaration.xml file
    <bean id="connectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
    <property name="brokerURL" value="tcp://localhost:61616"/>
    <property name="useAsyncSend" value="true"/>
    </bean>
    <bean id="queue" class="org.apache.activemq.command.ActiveMQQueue">
    <constructor-arg value="foo"/>
    </bean>
    <bean id="broker" class="org.apache.activemq.xbean.BrokerFactoryBean">
    <property name="config" value="classpath:activemq.xml" />
    <property name="start" value="true" />
    <!-- <property name="messageListener" ref="auditInterface"/> -->
    </bean>
    <bean id="auditInterface"
    class="org.springframework.jms.remoting.JmsInvokerProxyFactoryBean">
    <property name="serviceInterface" value="com.infiniti.gpn.auditing.AuditInterface"/>
    <property name="connectionFactory" ref="connectionFactory"/>
    <property name="queue" ref="queue"/>
    </bean>
    <bean id="listenerContainer" class="org.springframework.jms.listener.SimpleMessageListenerContainer">
    <property name="connectionFactory" ref="connectionFactory"/>
    <property name="destination" ref="queue"/>
    <property name="messageListener" ref="auditMessageListener"/>
    </bean>
    Sender is sedning messages continusly messages that messages r storing in queue , these r acupying more memory in RAM , due to that jboss is restarting for each request, is there any way to clean up messages in Queue ? if it is there then how will configure that queue in apllicationConfiguaration.xml file?
    Thanks in advance
    Nara

    Hi,
    Even i have a similar kind of requirement where in, i want to clear the JMS Queue Message programmatically, on certain condition.
    i am using Spring JMS. The JMS Queue has a listener. In the listener we want to clear the Queue contents based upon the condition.
    If anybody has any idea about this, please reply back.
    Thanks in Advance.
    Manjunath.

  • How to configure rules in J2EE application

    Please tell me how to configure rules in J2EE application. Configure rules in the sense before a page gets loaded a set of rules has to be fired automatically. A general idea how you would have been configured set of rules using java classes.
    If any one would have worked on rules. Please post the code snippets as well to get the idea on how to configure rules. Thnx a lot in advance.

    user13490100 wrote:
    ya I know wht am I doing..jt asking for suggestions on using hibernate and configuration files...rules generally on load of the page for example the update address page..the user is elibigible to edit this page only on certain conditions depends on the policy..is there any other ways of doing these?
    suggestion from side not necessary to take if u dont understand the question dont pass on the comments or type wht ever you want..You are not going to get an answer unless you clearly explain in standard English what your problem is.
    Things you might want to cover:
    --What these rules are (i.e. are they business rules, for example to check if a trade is fraudulent, or to decide if a plane has radar coverage in a particular location)
    --Where these rules are currently stored, if anywhere
    --What you're trying to do with these rules.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How  to configure website address to http request

    hi
    How to configure website address to http request
    (I want access JBOSS URL: http://localhost:8080/HIS/Login using website like www.HIS.com)
    Please help me.

    What I'm trying to do is connect my laptops built in wifi adapter to my home network and connect my usb wifi adapter to my phones hotspot then combine the bandwidth into one stream so that my speed is faster.

  • How to configure oracle listener profile for multiple oracle database

    Hi,
    I am going to install solution manager system in the same server of ERP EHP4 on Windows. Both DB are oracle.
    I'd like to know how to configure listener in this kind of envirnmonent.
    a. use two listener and different ports
    b. use same listener but different ports
    c. use same listener and same port
    Which is the correct mothed?
    And, after installation, there seem three set of profiles of listten, one for ERP, one for SLM, and the other for OS?(%windir%system32), which one is functional?
    Please advise.
    Thanks a lot.
    Regards,
    Alex

    Hi,
    standard installation is creating new configs for listener for each instance.
    I would recommend to use one listener per each instance.
    YOU CAN NOT HAVE one port number for two differnet systems!
    If you want to use one listener than you must adapt tnsnames.ora, listener.ora and ensure that both systems will use different port numbers.
    For example PORT= 15<system number>
    Peter

  • How to configure one TREX host with multiple index servers ?

    Hi All,
    Does anyone know how to configure TREX on the one host,
    with multiple index servers ?
    Reason for this is to make better use of resources available on the host server(4 Gig, 4 Processor, Windows2003), to improve the search performance of
    our KM content for portal users.
    I am using TREX 7 and have not been able to do this,
    despite reading the Single and Distributed install
    documentation.
    Any help would be appreciated.
    Regards,
    Andres

    Hi Andres,
    To make use of the RAM a Server provides you have to run two indexserver processes (each can then consume 2 GB);
    Proceed like this:
    1. Go to TREXdeamon.ini; check if section [indexserver2] is there (it is already provided, but not active in standard installation)
    2. In TREXdeamon.ini go to
    [daemon]
    references sections below
    programs=nameserver,preprocessor1,indexserver1,queueserver,alertserver
    and add indexserver2 here. Restart TREX; second porcess is then started; can be checked in TREX monitor in Portal as well
    3. To distribute existing indexes to the new process, start TREXadmintool and go to Index: Landscape
    Go to the last two columns and move the indexes (move master here/secondary mouse click)
    If you don't distribute the indexes the new index server process will be regarded when an new index is created.
    Hope this helps!
    cheers
    Bettina

  • How to configure request manager service for multiple website in one web application

    I have set up sp 2013 as below:
     web application : wa1
    site collection : sc1
    sp site: site1, site2
    I used 2 WFE, 1 APP, how can I use request manager service to control  site1 to wfe1, site2 to wfe2?
    Awen

    That's not what i'd describe as load balancing.
    A better description would be load-isolation. In your description then if the load on site1 was large (and growing) but site2 was quiet then site1 would struggle and eventually become unable to handle the number of users but site2 would still be ok. That's
    fine from a QOS point of view but it's not the norm for load balancing. It would work in simple scenarios but the out of the box load balancing tools are much better suited than that sort of approach.
    This article shows how to configure the RMS and may help show how your request is difficult to configure:
    http://www.harbar.net/articles/sp2013rm2.aspx

  • How to configure 3 different members under a single Month column

    Hi SAP Gurus,
      My client requirement is to show the report in following format, where under a Month column 3 different columns having
    1) Quantity (Number of unit ) of a product,
    2) its rate (Amount per unit), and
    3) Total (amount)    will appear in a single report.
       I have Month as a Time Dim, while Qty, Rate and Total are members of account dim.
    Que: How to configure such scenario in a single report?
    Jan.2011
    Product Category:            Qty (Input)   Rate (Input)   Total (Output)                    
    Product 1                                               
    Product 2                                             
    Product 3                                             
    Product 4                                             
    Group1                                             
         Where: Total = Qty X Rate                                        
    Thanks and Regards,
    SouarbhD

    Hi,
    Use an EVDRE to create your input schedule. You need to have one row with products and 2 columns with time and account. Choose the memberset options as per the requirement. For the accounts, is total calculated with a dimension formula? If yes, then you just need to enter the values for quantity and rate and send the data. The total will be calculated by the system and will be displayed automatically.
    Hope this helps.

Maybe you are looking for