Gagan Grover

Greenhorn
+ Follow
since Mar 02, 2007
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Gagan Grover

Hi,

I have struts.xml (Struts 2) file as shown below



But in this xml the line extends="json-default, hibernate-default" is coming in red with error "Cannot resolve package json-default, hibernate-default". I have put the plugin jars for both in the lib folder, these jars are struts2-fullhibernatecore-plugin-2.2.2-GA.jar, struts2-json-plugin-2.1.8.jar and i have associated there plugin xmls in Struts2 facets in project settings. Also, if I use either of them in the extends attribute this error does not come. I am using Intellij Idea as the IDE for development.

Are there any other settings that needs to be done other than those described above or what can be solution to this problem?
7 years ago

Paul Clapham wrote:As a general design practice, don't do anything on the grounds that "it might be needed in the future".



Thanks Paul.
8 years ago

Paul Clapham wrote:Without knowing anything else about the application, it's impossible to say. That code is perfectly good as it is, but we have no idea whether you have seven other instances of very similar code elsewhere in the application. If you do, then you ought to make a separate class to refactor those seven instances.



Hi Paul,

This code is getting used nowhere else in the application, actually this is a separate service that on the completion of some task, sends an email to the recipients. Should I extract it to a separate class keeping in mind that in future there can be requirement of such kind but currently i don't see any other place where it is required. So, please suggest what should be done in this case? Which is the better practice in terms of a good design perspective?
8 years ago


In the above code should the Callable task be declared as above or a separate class? If it should be used as an external class then please tell the reason for the same.
8 years ago

Jaikiran Pai wrote:Apparently not configurable. But you could write your own custom appender (extending the existing ones) to have the behaviour you desire.



Thanks for your reply, i will try that.
I have an application in which i am creating 3 services and i have the following log4j.properties file for the application.


Now, whenever i run these services from their main class all the service log files get generated but i want only the log file for that service should get generated. Can I achieve this thing in the same log4j.properties file or do i need to have separate properties file for each service? Please suggest.
Thanks Campbell and Rob for your valuable replies.
8 years ago
Thanks Walter for your reply, Is there anyway that Wrapper types are more preferable over primitive types, and is this a design practice to always use wrapper types in POJO.
8 years ago
When we are making a class that has an id field which is Bigint in database which type should be used? Should a long primitive type be used or Long wrapper type? Please clarify.
8 years ago
Which Software development methodology is better out of Spiral and Agile and why?
Hi Sean,

As asked by you, I have listed down the agile development principles, so please relate these principles to Agile hiring.

Agile Development Principles

  • Our highest priority is to satisfy the customer
    through early and continuous delivery
    of valuable software.


  • Welcome changing requirements, even late in
    development. Agile processes harness change for
    the customer's competitive advantage.


  • Deliver working software frequently, from a
    couple of weeks to a couple of months, with a
    preference to the shorter timescale.


  • Business people and developers must work
    together daily throughout the project.


  • Build projects around motivated individuals.
    Give them the environment and support they need,
    and trust them to get the job done.


  • The most efficient and effective method of
    conveying information to and within a development
    team is face-to-face conversation.


  • Working software is the primary measure of progress.


  • Agile processes promote sustainable development.
    The sponsors, developers, and users should be able
    to maintain a constant pace indefinitely.


  • Continuous attention to technical excellence
    and good design enhances agility.


  • Simplicity--the art of maximizing the amount
    of work not done--is essential.


  • The best architectures, requirements, and designs
    emerge from self-organizing teams.


  • At regular intervals, the team reflects on how
    to become more effective, then tunes and adjusts
    its behavior accordingly.


  • Thanks in anticipation.
    8 years ago
    Thanks Sean for explaining how the concept of agile can be applied to hiring as well, you explained it precisely. I am looking forward for this one so that it can benefit my hiring force as well as improve the hiring process overall. Good Work
    8 years ago
    How can I improve the hiring process in my organization by using Agile Hiring?
    8 years ago
    Heard about Agile development but "Agile Hiring" seems unheard. What are the ways in which this agile hiring is different from normal hiring? I want to improve the hiring process in my organization so what is that I can expect from Agile Hiring?
    8 years ago
    Hi,

    I am using the below code to switch from http to https on the login page.



    How to switch back from https to http?

    A solution I read on one of the posts is to provide the next url as absolute by prefixing the url with http:// and hence all the other urls will be relative to this http. But in this case I don't know how to get the port number for http as I am currently on https.

    Please help me on the same.
    8 years ago