XML Configuration or Annotations in Hibernate

I have been kicking Hibernate around for a couple of days and would like y'alls 2 cents. A bean can have its metadata set up in a *.hbm.xml configuration file or the same can be done via annotations, what has worked best and what have been the disadvantages of each?
I have used xml configuration in the past and having an xml file for each bean class got to be an annoyance once there were more then just a few beans to manage. With annotations the xml file would not be needed and the information would be in the bean class. I like this idea but since I have never used annotations extensively what issues have been encountered by y'all.

There are issues are around transparency. The idea of a POJO was originally that the code wasn't coupled to a framework. Annotations effectively do couple you to the framework again, but you have to ask "is this actually a bad thing?". Unless you're in the habit of chopping and changing persistence frameworks, then it's not so bad. I had an issue recently whereby I was generating classes from XML schemas as part of the build process, and couldn't easily put Hibernate annotations onto the classes without a manual step. I did actually find a JAXB Maven plugin that did it, but I went with XML config for persistence anyway as it gave me some extra control that the generated code didn't, namely some properties were transient as regards persistence, but still necessary on the beans
And there's the other reason you might not want to use annotations: when your DB schema changes, you have to recompile and re-deploy the code. How much of an issue that is, is entirely dependent upon your situation. It usually happens anyway

Similar Messages

  • Annotated configuration vs XML configuration

    I have to decide whether to move ahead and use Annotations for an application for a major enhancement task.
    XML configurations can be replaced with annotations for the following items:
    1. Spring related (EJB configurations, bean configurations (layers of dependent java classes getting injected))
    2. Hibernate related (getting rid of HBM XMLs)
    But, developers are not that keen to move ahead with the annotation thing, since during development they will have to re-compile every time there is a minor configuration change.
    Now, what I can foresee is that when the application is in production, there will be few (maybe none) configuration changes. So the XML files stay unchanged anyways and beats the no-need-to-re-compile logic!
    And yes, Client wants to shift to the latest and greatest of Spring and Hibernate. So just giving them new third party jars packaged with the application without introducing the usage of the new features, seem to be irrelevant!
    So how do I balance both ends and decide, keeping the developers at ease during development phase? Will it be a good idea to migrate from XMLs to Annotations as a separate developmental activity once the business enhancements are taken care of?
    Sorry if I was not able to express myself clearly. Please do revert in that case as well.

    LearningCurve wrote:
    I have to decide whether to move ahead and use Annotations for an application for a major enhancement task.
    XML configurations can be replaced with annotations for the following items:
    1. Spring related (EJB configurations, bean configurations (layers of dependent java classes getting injected))
    2. Hibernate related (getting rid of HBM XMLs)
    But, developers are not that keen to move ahead with the annotation thing, since during development they will have to re-compile every time there is a minor configuration change.Sounds like idiocy to me.
    First when I work on my computer nothing gets changed, period, until I decide to change. Thus I don't need to 'rebuild' anything because of some other change until I decide it is appropriate.
    Second I commonly rebuild everything from scratch for every single build. I simply do not trust the dependency checking system. And it is isn't like I am running on a 286 with 640k of memory. Builds often run so fast that I sometimes need to rebuild several times because I looked away momentarily and when I looked back the build is finished and I am not sure I started it.
    Third, what sort of "minor" change will require a rebuild every time such that it isn't accompanied by code changes as well? It is a 'minor' change to add a new column to the database but if the developer is updating to the code that uses that then they should be updating the database as well, and I can't imagine that taking less time than a complete rebuild.
    Fourth sounds like a bunch of cowboy programmers that like to stick their fingers in everything. Certainly where I have worked someone (me) would be solely responsible for the database layer. I wouldn't be making a "minor" change that didn't have code and database impacts.
    And yes, Client wants to shift to the latest and greatest of Spring and Hibernate. So just giving them new third party jars packaged with the application without introducing the usage of the new features, seem to be irrelevant!
    That isn't a reason. With no other requirement than "let it be new" that isn't point in favor. If the client is going to be actively messing with the code of the system then someone better looking into understanding exactly what it is that the client expects to be delivered.

  • How to configure Sesion Factory in Hibernate to implement getCurrentSession

    Hi,
    I am new in Hibernate and I am using an application where I need to improve the performance while uploading the users through a utility. While analyzing the system, I found that, to insert a single user there were around 8 hits are made to DB to get the information and based on that finally it inserts the user. The strange thing I have noticed is that for every hit, a new DB connection is opened in code using the snippet getHibernateTemplate().getSessionFactory().openSession();
    However, the connection is getting closed in finally block. But I think instead of using Open Connection; getCurrentSession can save time.
    Can any one suggest whether I am on right track?
    Also, when I have tried to use getCurrentSession I have simply replaced "getHibernateTemplate().getSessionFactory().openSession();" with "getHibernateTemplate().getSessionFactory().getCurrentSession();" from everywhere in code.
    But when I tried to run the Utility I got some Hibernate Exception stating "No Hibernate Session bound to thread, and configuration does not allow creation".
    Could anyone suggest do I need to configure anything else in my applicationcontext.xml to use the getCurrentSession() method.
    Thanks in advance.

    the method getCurrentSession() should be done using Singleton factory method so that you have only one connection per application. You can implement something like this as coded below:
    import java.io.File;
    import javax.naming.InitialContext;
    import org.apache.log4j.Logger;
    import org.hibernate.HibernateException;
    import org.hibernate.Session;
    import org.hibernate.SessionFactory;
    import org.hibernate.cfg.Configuration;
    import org.hibernate.cfg.Environment;
    * @author hennebrueder This class garanties that only one single SessionFactory
    *         is instanciated and that the configuration is done thread safe as
    *         singleton. Actually it only wraps the Hibernate SessionFactory.
    *         When a JNDI name is configured the session is bound to to JNDI,
    *         else it is only saved locally.
    *         You are free to use any kind of JTA or Thread transactionFactories.
    public class InitSessionFactory {
          * Default constructor.
         private InitSessionFactory() {
          * Location of hibernate.cfg.xml file. NOTICE: Location should be on the
          * classpath as Hibernate uses #resourceAsStream style lookup for its
          * configuration file. That is place the config file in a Java package - the
          * default location is the default Java package.<br>
          * <br>
          * Examples: <br>
          * <code>CONFIG_FILE_LOCATION = "/hibernate.conf.xml".
          * CONFIG_FILE_LOCATION = "/com/foo/bar/myhiberstuff.conf.xml".</code>
         private static String CONFIG_FILE_LOCATION = "<Path to hibernate.cfg.xml>";
         /** The single instance of hibernate configuration */
         private static final Configuration cfg = new Configuration();
         /** The single instance of hibernate SessionFactory */
         private static org.hibernate.SessionFactory sessionFactory;
          * initialises the configuration if not yet done and returns the current
          * instance
          * @return
         public static SessionFactory getInstance() {
              if (sessionFactory == null)
                   initSessionFactory();
              return sessionFactory;
          * Returns the ThreadLocal Session instance. Lazy initialize the
          * <code>SessionFactory</code> if needed.
          * @return Session
          * @throws HibernateException
         public Session openSession() {
              return sessionFactory.getCurrentSession();
          * The behaviour of this method depends on the session context you have
          * configured. This factory is intended to be used with a hibernate.cfg.xml
          * including the following property <property
          * name="current_session_context_class">thread</property> This would return
          * the current open session or if this does not exist, will create a new
          * session
          * @return
         public Session getCurrentSession() {
              return sessionFactory.getCurrentSession();
          * initializes the sessionfactory in a safe way even if more than one thread
          * tries to build a sessionFactory
         private static synchronized void initSessionFactory() {
               * [laliluna] check again for null because sessionFactory may have been
               * initialized between the last check and now
              Logger log = Logger.getLogger(InitSessionFactory.class);
              if (sessionFactory == null) {
                   try {
                        File f = new File(CONFIG_FILE_LOCATION);
                        cfg.configure(f);
                        String sessionFactoryJndiName = cfg
                        .getProperty(Environment.SESSION_FACTORY_NAME);
                        if (sessionFactoryJndiName != null) {
                             cfg.buildSessionFactory();
                             log.debug("get a jndi session factory");
                             sessionFactory = (SessionFactory) (new InitialContext())
                                       .lookup(sessionFactoryJndiName);
                             //sessionFactory = new AnnotationConfiguration().configure(System.getProperty("user.dir") + "\\" + CONFIG_FILE_LOCATION).buildSessionFactory();
                        } else{
                             log.debug("classic factory");
                             sessionFactory = cfg.buildSessionFactory();
                   } catch (Exception e) {
                        System.err
                                  .println("%%%% Error Creating HibernateSessionFactory %%%%");
                        e.printStackTrace();
                        throw new HibernateException(
                                  "Could not initialize the Hibernate configuration");
         public static void close(){
              if (sessionFactory != null)
                   sessionFactory.close();
              sessionFactory = null;
    }Test it and let me know.

  • Many-to-one relationship using annotations in hibernates...

    my pojo class is M_Product_Category
    package com.netree.model;
    import java.io.Serializable;
    import java.util.HashSet;
    import java.util.Set;
    import javax.persistence.CascadeType;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.FetchType;
    import javax.persistence.GeneratedValue;
    import javax.persistence.Id;
    import javax.persistence.Table;
    import javax.persistence.OneToMany;
    import javax.persistence.JoinColumn;
    @Entity
    @Table(name="m_product_category")
    public class M_Product_Category implements Serializable{
         @Id
         @Column(name="MPC_ID")
         @GeneratedValue
         private int mpc_Id;
         @Column(name="IsActive")
         private int isActive;
         @Column(name="Category_Name")
         private String category_Name;
         @Column(name="Category_Description")
         private String category_Description;
         @Column(name="Parent_MPC_ID")
         private int parent_MPC_ID;
         public M_Product_Category(){
         public M_Product_Category(int mpc_Id, int isActive, String category_Name,
                   String category_Description, int parent_MPC_ID) {
              super();
              this.mpc_Id = mpc_Id;
              this.isActive = isActive;
              this.category_Name = category_Name;
              this.category_Description = category_Description;
              this.parent_MPC_ID = parent_MPC_ID;
         public int getMpc_Id() {
              return mpc_Id;
         public void setMpc_Id(int mpc_Id) {
              this.mpc_Id = mpc_Id;
         public int getIsActive() {
              return isActive;
         public void setIsActive(int isActive) {
              this.isActive = isActive;
         public String getCategory_Name() {
              return category_Name;
         public void setCategory_Name(String category_Name) {
              this.category_Name = category_Name;
         public String getCategory_Description() {
              return category_Description;
         public void setCategory_Description(String category_Description) {
              this.category_Description = category_Description;
         @OneToMany(cascade=CascadeType.ALL)
         @JoinColumn(name="Parent_MPC_ID", referencedColumnName="MPC_ID")
         public int getParent_MPC_ID() {
              return parent_MPC_ID;
         public void setParent_MPC_ID(int parent_MPC_ID) {
              this.parent_MPC_ID = parent_MPC_ID;
    This is anothe pojo class i.e., ProductMaster:
    package com.netree.model;
    import java.io.Serializable;
    import javax.persistence.CascadeType;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.GeneratedValue;
    import javax.persistence.Id;
    import javax.persistence.JoinColumn;
    import javax.persistence.ManyToOne;
    import javax.persistence.Table;
    @Entity
    @Table(name = "M_Product_Master")
    public class ProductMaster implements Serializable {
         @Id
         @GeneratedValue
         @Column(name = "MPM_ID")
         private int mpmID;
         @Column(name = "Product_Name")
         private String productName;
         @Column(name = "Product_Description")
         private String productDescription;
         @Column(name = "Standard_Cost")
         private String price;
         @Column(name = "Image_URL_Big")
         private String image;
         @Column(name = "MPC_ID")
         private int mpc_id;
         public int getMpc_id() {
              return mpc_id;
         public void setMpc_id(int mpc_id) {
              this.mpc_id = mpc_id;
         private M_Product_Category product_Category;
         @ManyToOne(cascade = CascadeType.ALL)
         @JoinColumn(name = "mpc_id", referencedColumnName = "MPC_ID")
         public M_Product_Category getProduct_Category() {
              return product_Category;
         public void setProduct_Category(M_Product_Category product_Category) {
              this.product_Category = product_Category;
         public int getMpmID() {
              return mpmID;
         public void setMpmID(int mpmID) {
              this.mpmID = mpmID;
         public String getProductName() {
              return productName;
         public void setProductName(String productName) {
              this.productName = productName;
         public String getProductDescription() {
              return productDescription;
         public void setProductDescription(String productDescription) {
              this.productDescription = productDescription;
         public String getPrice() {
              return price;
         public void setPrice(String price) {
              this.price = price;
         public String getImage() {
              return image;
         public void setImage(String image) {
              this.image = image;
    util class...
    package com.netree.Util;
    import org.hibernate.SessionFactory;
    import org.hibernate.cfg.AnnotationConfiguration;
    public class HibernateUtil {
         public static SessionFactory getSessionFactory() {
              System.out.println("sessionFactory");
              AnnotationConfiguration annotationConfiguration = new AnnotationConfiguration();
              System.out.println("annotationConfiguration");
              annotationConfiguration=annotationConfiguration.configure("com/netree/Cfg/Hibernate.cfg.xml");
              SessionFactory sessionFactory = annotationConfiguration.buildSessionFactory();
              return sessionFactory;
    package com.netree.DaoImpl;
    import java.util.Iterator;
    import java.util.List;
    import org.hibernate.Criteria;
    import org.hibernate.Session;
    import org.hibernate.SessionFactory;
    import org.hibernate.Transaction;
    import org.hibernate.criterion.Restrictions;
    import com.netree.Util.HibernateUtil;
    import com.netree.model.ProductMaster;
    public class ProductMasterImpl {
    public static void main(String args[]) {
                             try{
                                  System.out.println("sessionFactory starts");
              SessionFactory sessionFactory=HibernateUtil.getSessionFactory();
              System.out.println("sessionFactory ends");
              Session session=sessionFactory.getCurrentSession();
                                  Transaction transaction=session.beginTransaction();
         Criteria ctr=session.createCriteria(ProductMaster.class).add(Restrictions.eq("mpc_id",new Integer(39)));
         List<ProductMaster> list=ctr.list();
                   @SuppressWarnings("rawtypes")
                                  Iterator iterator = list.iterator();
                   while (iterator.hasNext()) {
                        ProductMaster productMaster = (ProductMaster) iterator.next();
    System.out.println(productMaster.getMpmID());
    System.out.println(productMaster.getProductName());
    System.out.println(productMaster.getProductDescription());
    System.out.println(productMaster.getPrice());
    System.out.println(productMaster.getImage());
    System.out.println(productMaster.getProduct_Category().getMpc_Id());
    System.out.println(productMaster.getProduct_Category().getCategoryName());
    System.out.println(productMaster.getProduct_Category().getCategory_Description());
                   session.close();
         catch(Exception ex){
         System.out.println(ex.getMessage());
                        finally{
    Already i have two tables in database with the suitable records... I want to retrieve the data by using MPC_ID from both tables....
    when i run this program i am getting query but it is showing exception i.e....
    Hibernate: select this_.MPM_ID as MPM1_1_0_, this_.Image_URL_Big as Image2_1_0_, this_.MPC_ID as MPC3_1_0_, this_.Standard_Cost as Standard4_1_0_, this_.Product_Description as Product5_1_0_, this_.Product_Name as Product6_1_0_, this_.product_Category as product7_1_0_ from M_Product_Master this_ where this_.MPC_ID=?
    could not execute query
    could u pls help me in this regard.....

    in the cube do you have both of these values
    PT02 211886
    PT02 211887
    or its always either one of them. I dont think changing your cube design would prove any helpful in this scenario. I believe its more of a data issue than the design issue. You would need to change the way the data is entered into the cube with the different measurement assigned to the unit.
    on a second thought(I understand that you dont have a luxury to change the cube design),  when you say you can see diff measurement type assigned to one unit in the masterdata, you can make the unit attribute as a navigational attribute in both the IO and cube. And just map measurent type in the update rules and derive the units from the masterdata table in the report.... does it make sense?
    Message was edited by:
            voodi

  • How to generate an XML Configuration File for EBS Source Type

    Hi,
    We have installed SES, I want to integrate it to enable for searching repository contracts.
    In the sources I have selected oracle.apps.okc.repository.textsearch.server.RepHeaderSearchExpVO.
    For this source I need to specify the Configuration URL.
    Here I need to provide the path for configuration XML file. But before that I need to generate the XML Configuration file.
    Is there any steps on how we can create this XML file.
    like I would want to know how we can create the XML file and on which folder on the server should I be putting it
    Thanks

    Hi there,
    We are running into same issue and need the exact same information. Can someone help with this question on priority?
    Thanks,
    Darshan

  • Problem with XML configuration

    Hello gurus!
    I have a problem because I'm trying to get a value from the WF container to expose it through SWFVISU as a dynamic parameter. The way I tried to do this was to manipulate the UWL XML to create a custom attribute and declaring the value comes from the container, but since I modified this, anything in SWFVISU is not responding. Even if I delete the pcd of some task and then call this task, everything works normally and no changes are noticed. Somebody told me that I have to return to my original XML configuration and I deleted my new XML configuration, cleared cache and the problem persists. Any ideas on what am I missing about this?
    Regards IA

    Hi,
    >but since I modified this, anything in SWFVISU is not responding.
    What do you mean by this? Are you expecting that the changes you do in your XML would somehow appear in SWFVISU? (This will not happen.)
    Please upload the custom XML again to the portal (with priority medium or high). Refresh the cache, and log out from the portal. Log in again, and create new test case (=start new workflow). These are all just steps to ensure that the changes you have done to the XML will apply.
    What is the result? Is the custom attribute working? If it is not, I would check any examples that you can find in SAP Help or SDN about dynamic attributes, and compare them to your own XML. If you still cannot find the problem, post your XML task configuration here (and explain what you are trying to achieve), and probably someone will help you.
    Regards,
    Karri

  • @Xml... annotation telling schemagen to ignore a method completely

    Hi all,
    I write Java Beans and annotate them by @Xml... annotations in the source code. I am able to generate a proper schema from the classes and to marschal a class into a XML document, etc.. I am missing one thing: I would like the marshalable classes to have some methods which would be totally ignored during generating the schema, marshalling and unmarshalling and which could use any classes not described and not included in the schema. Actually, I am wrinting a persistent representation of classes which I cannot change as they are a part of a JAR distribution - I would like the Java Bean classes to have methods for a creation of the non-persistent classes which the persistent classes represent.
    I am missing a @Xml... annotation that would tell the schemagen, Marshaller and Unmarshaller to ignore these methods (no matter what types of classes they return, use as parameters). The @XmlTransient seemed to be the closest one, but it is not applicable to methods. Does there exist an annotation for or just a way of having such methods in a marshallable class that would be completelly ignored by JAXB 2.0? (I assume that e.g. during unmarshalling is taken the appropriate class and the properties are initialized in accordance to the content of the XML document and methods are not affeted anyhow.)
    Thanks,
    Bebe

    peter at knowhowpro wrote:
    DHWachs wrote:
    This post was great!  Thank you so much.  But I am hoping you know one more thing related to this.  In the "transform" section of the definition (where the x/y coordinates are set along with height and width) there is an option called "angle".  I was hoping that changing this value would allow me to offset the angle of the picture.  However, if I put any value there other than 0 the template becomes unusable.
    Do you happen to know what this option does?
    I haven't looked into the files, so this is just a guess based on how some graphic applications work. It's common to think of rotating a shape as pivoting around a center point, but It's possible that the file sets a value for the rotation point not at the center. In some graphics applications, you can set a shape's pivot at any corner or in the middle of any side, of the rectangle that contains the whole shape.
    So, your value may be rotating the shape around a pivot that moves the shape into some area that upsets the behavior of other shapes. Just a thought.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices
    Peter's point is a good one.  I would also assume that the "angle" property allows you to rotate an image, but I haven't tried it myself.  One thing to investigate - are there any page templates included in LR that have image placeholders that are at an angle (I don't recall any, off-hand)?  If so, looking at the associated .lua file could provide insight into how an angled image placeholder should be described.

  • JSF 1.2 web.xml configuration parameters

    Actually, I know these JSF 1.2 web.xml configuration parameters:
    javax.faces.CONFIG_FILES
    javax.faces.DEFAULT_SUFFIX
    javax.faces.LIFECYCLE_ID
    javax.faces.STATE_SAVING_METHOD
    Are there any more available?
    (I have to study its performance implications in conjunction with RichFaces ones).

    The JSF 1.2 specification document would contain the information you're looking for.

  • XML configuration file to link to frames in Flash - As2.0

    How can I set the url or link attribute from the XML configuration file to link to frames in my movie instead opening a HTML page? I am using Actionscript 2.0
    Thank you.

    What type of file is using this xml data?  If it is being read by the AS2 file, then your data should resemble either frame labels or frame numbers.

  • Log4j: XML configuration file problem

    Hello,
    I set up some logging in my existing application with log4j and an xml configuration file. Now I made some changes to my package structure, and some problems occured. So I thougt of setting the logging level of one of my loggers (named myapp.iointerface.DBAccess in the config file). So the only change I did was adding a <param name="Level" value="TRACE"/> to my logger. Now, log4j complains when it reads the configruation file:
    log4j:WARN Continuable parsing error 36 and column 11
    log4j:WARN The content of element type "logger" must match "(level?,appender-ref*)".My config file:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
    <log4j:configuration debug="false" xmlns:log4j="http://jakarta.apache.org/log4j/">
         <appender name="RootConsole" class="org.apache.log4j.ConsoleAppender">
              <param name="Threshold" value="DEBUG"/>
              <param name="Target" value="System.err"/>
              <layout class="org.apache.log4j.PatternLayout">
                   <param name="ConversionPattern" value="%d{dd MM yyyy HH:mm:ss} %p %C %nIn Zeile Nummer: %L %m %n%n"/>
              </layout>
         </appender>
         <appender name="LoginInfo" class="org.apache.log4j.FileAppender">
              <param name="Threshold" value="TRACE"/>
              <param name="File" value="${user.dir}/login_info.log"/>
              <layout class="org.apache.log4j.PatternLayout">
                   <param name="ConversionPattern" value="%d{dd MM yyyy HH:mm:ss} %p %C %nIn Zeile Nummer: %L %m %n%n"/>
              </layout>
         </appender>
         <appender name="DBConnectionInfo" class="org.apache.log4j.FileAppender">
              <param name="Threshold" value="TRACE"/>
              <param name="File" value="${user.dir}/db_connection.log"/>
              <layout class="org.apache.log4j.PatternLayout">
                   <param name="ConversionPattern" value="%d{dd MM yyyy HH:mm:ss} %p %C %n%m %n%n"/>
              </layout>
         </appender>
         <logger name="myapp.windows.MainFrameController" additivity="false">
              <appender-ref ref="LoginInfo"/>
         </logger>
         <logger name="myapp.iointerface.DBAccess" additivity="false">
              <param name="Level" value="TRACE"/>
              <appender-ref ref="DBConnectionInfo"/>
         </logger>
         <root>
              <param name="Level" value="DEBUG"/>
              <appender-ref ref="RootConsole"/>
         </root>
    </log4j:configuration>Does anybody know what's wrong with that? I don't understand and found nothing googling it netiher. The strange thing is, that logging messages with level TRACE are recorded in the destination file, but the level id DEBUG.
    Thx,
    Julien

    If you look at the error, the parser expects level and not Level
    So :
    <param name="Level" value="TRACE"/>should be :
    <param name="level" value="TRACE"/>Same goes for :
    <param name="Level" value="DEBUG"/>That will solve the problem (even though it is not a critical error)!

  • Is it possible to call a web service via UWL XML configuration?

    Hello
    Is it possible to call a web service via UWL XML configuration?
    If yes then an example would be great.
    Roy

    Hi Roy,
    Yes, yes it is possible.
    Yesterday only I came across the following document which will answer your questions:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20f4843e-314f-2a10-2a88-8c4afa20dda6?overridelayout=t…
    ~Ashvin

  • Setting time in  adf-faces-config.xml configuration file

    Hello check this link
    http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_convertDateTime.html
    this specifies "Timezone can be set per web-app in adf-faces-config.xml configuration file. If timeZone is not set on the converter, then timezone will be defaulted to the value set in adf-faces-config.xml configuration file. If it is not set in the configuration file, then it will be defaulted to GMT."
    how to set timezone in adf-faces-config.xml configuration file please specify
    Regards
    Mayur Mitkari

    where in adf-faces-config.xml i can add this line , and howThis might help: http://docs.oracle.com/cd/E24382_01/web.1112/e16181/af_global.htm#BJECDDDE

  • Single XML configuration file for all the SSIS packages(including parent and child packages)

    Hi
    I have some 16 ssis packages. source Db and destination Db for these packages are common. I am calling these child packages in a master package.
    I want to use only one XML config file for this master.
    How do i use same for all child packages?
    and can i do it with parent package variable?

    I created a master package with a variable master, and in value i have entered the configuration file path.
    Hi vjp dinu,
    You should create variables in the parent package to pass values to variables in each child package rather than pass the file path of the XML Configurations file of the parent package.
    As Visakh mentioned, you can achieve your goal by creating corresponding variables in the parent package for each child package, and enable Package Configurations for the parent package so that you can control the values through the XML Configurations file
    for the variables of the parent package.
    Supposing there is a variable FilePath in child package 1, a variable ServerName in child package 2, then, we need to create two variables pFilePath, pServerName in the parent package. After configuring the Parent package variable in each child package (e.g.
    mapping pFilePath to FilePath, pServerName to ServerName), you can enable XML Configurations for the parent package, and expose the value property for both pFilePath and pServerName variables. In this way, you can modify the XML Configurations file of the
    parent package and the specified values will passed to the child packages.
    Reference:
    http://microsoft-ssis.blogspot.com/2011/06/passing-variables-from-parent-package.html 
    Regards,
    Mike Yin
    TechNet Community Support

  • Server.xml configuration files

    Hi all,
    The server.xml configuration files have a common defintion for different servers? or each server has its own definition.
    Thanks.

    each has its own.

  • Loading XML Configuration File into Java

    I have a stored procedure wrapper to a Java method (within a jar file) that has been loaded into the database. I need to load an XML configuration file in this method and parse it but get the following error.
    <Line 2, Column 192>: XML-24538: (Error) Can not find definition for element 'LODConfigs'
    When I run the method standalone through netbeans it parses fine and is able to load the file. I've confirmed that it is able to read the file but I am lost as to what could be the problem. Any suggestions would be welcome.
    The header of the file is
    <?xml version="1.0" encoding="UTF-8" ?>
    <LODConfigs xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.oracle.com/spatial/network/lodLODConfigs.xsd"
    xmlns="http://xmlns.oracle.com/spatial/network">
    <LODConfig globalNetworkName="$DEFAULT$" networkName="$DEFAULT$">
    <networkIO>
    </networkIO>
    </LODConfig>
    </LODConfigs>

    Just a guess really, (and this is an old question now - so you may have moved on).. is your XML parser attempting to use the schema location to pull the XML schema from the internet?
    If so, that might run fine in netbeans, but hit java permission limits in Oracle. Have you tried running it in netbeans with the network cable unplugged.
    If that fails with the same error as the Oracle JVM, that might give a clue as to the problem and you can troubleshoot the permissions from there.

Maybe you are looking for

  • In need of a new Mac Pro, which one?

    In the market for a new Mac Pro, mainly for CS5 apps, an ocassional Final Cut project and some Modo rendering (simple work). My Mac is an early 2008 2.8 GHz 8 core with 10 gigs of RAM, rock solid performance and trouble free and I'm looking to buy a

  • Get error message when attempting Photoshop CC Update

    I am trying to update Photoshop CC get error message Photoshop Camera Raw 9.0(CC) There was an error installing this update. Please quit and try again later. Error Code: U44M1I210 Can anyone help. Michael

  • Solaris 10 Installation

    Hi, I am trying to Install solaris 10 x86 on to an HP Pavilion which has an Intel centrino Duo chip. after booting from the dvd it shows on the screen as Loading stage 2 and then it just hangs . Any help in this matter. best regards amit

  • Applications Related ------ URGENT

    How can i get into the Oracle Applications Forum ? Can any one guide me ?

  • Why does firefox say this not a trusted site and that legitimate businesses are trusted by Firefox

    Hi, One of my partners in New York just sent me an email to say that when he went onto our site www.101BusinessInsights.info a huge banner appeared on his screen saying " this not a trusted site and that legitimate businesses are trusted by Firefox"