manoj rajkumar

Greenhorn
+ Follow
since Sep 11, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by manoj rajkumar

Hi friends,
I searched through the net and could not find a good concrete solution for logging asynchronously.

Problem domain: Logging
Requirement :
1> We have an existing web application. Now, we need to track who entered the site, what transactions he has made etc.
2> This logging needs to be asynchronous. (so thought jms is a good idea)
3> Since our web application is part of a bigger portal, we might extend our logging mechanism so that other apps inside our portal would also be able to do auditing(Logs for other apps will be inserted into the same database that will be used by us).

We can not use omniture logging, since we the db structure we need is specific to our portal/app.

Could you suggest a solution to the problem on hand
(specifically : whether jms is a good idea for async. logging)
[ April 10, 2007: Message edited by: manoj rajkumar ]
Thanks Carol,
The info was very useful.

I observed 1 more thing though, the line number that server logs was pointing is different from the actual location where I found the error.

Has it got to do with mismatch in comments generated?
17 years ago
Hi friends, I was just wondering as to
where weblogic stores the classes( __myjsp.java file --to be more specific) generated from the jsp files (after translation).

I suppose tomcat does allow users to view these classes and hence
there might be an option provided by weblogic to view them.

It would be helpful if you could give me the exact location in your machine where you saw the class file.

Thanks
[ December 08, 2006: Message edited by: manoj rajkumar ]
17 years ago
Thanks for the 2 responses, they provided an insight into the mail api.
but am getting more greedy here;
Is there an example that caters exactly to the requirement provided by my boss?
(Why make a design, when there is already an existing design pattern ? )
17 years ago
Hi friends,
thanks for the clarifications. Just to summarize,

1>The conflict is very rare and if it does happen, a slight change in design(say changing the name of one of the interface methods) would solve the problem as mentioned by our vastly experienced Jeroen .

2> Sometimes, we may not be able to make changes to the interface, then we can solve the issue in this way:

We have a class A implement Inter1 and an inner class innerA(or we can use aggregation) implementing Inter2, and have methods foo and foo2(which internally calls the foo implementation of InterfB). It seems like a rarely used design pattern we call it Ernest's Design pattern(inside the scope of this discussion).



class A implements Inter1{

void foo() {}

byte foo2(){
return inner.foo();
}

Inner inner = new Inner();

class Inner implements Inter2{
byte foo(){
return (byte) 10;
}
}

}

Thanks
17 years ago
Hi friends,
In my portal project, we have a requirement:
Requirement: When a user is registered (new user created), a mail needs to be sent to the administrator.

I need a headstart on this, it would be simpler for me if you could suggest links/resources (containing examples) that explain how this can be done .

Thanks
17 years ago
Hi David,
Does it mean that the response might not yet be committed even if we have the flush statement as above?
17 years ago
Hi, I was going through Professional scwcd book and noted this point:

Statement:
If the ServletResponse.isCommitted() method returns true,
indicating that the response has been committed back to the client
when the sendError() method is called,
it will throw a java.lang.IllegalStateException.

To check this, I typed in the following code snippet in a servlet:

//JAVAJAVAJAVAJAVAJAVAJAVAJAVAJAVAJAVAJAVAJAVAJAVA

PrintWriter out =response.getWriter();
out.println("Hi Manoj");
out.flush();
response.setStatus(500);

//JAVAJAVAJAVAJAVAJAVAJAVAJAVAJAVAJAVAJAVAJAVAJAVA

To my surprise, I did not get any error messages.I got:
Hi Manoj


Can you please explain:
1> Is the statement correct?
2a> If correct, why am I getting the error?
2b> If wrong, when(spec version) was the behavior changed?

I am using jdk 1.5
and apache tomcat 5.5
17 years ago
Hi Eddie, first ofall, congratulations on the achievement. Any thing above 90% is a huge boost (both to your confidence and your resume).

I have been told that scjp5 is lot more tougher than the 1.4 exams.
Is it true? (The question's open to others who have any info).

Do they cover AWT etc?
17 years ago
Hi,
A very simple doubt:
If I have 2 interfaces, A,B and I need to implement both of them but having the following method signature:

interface A{ public int someMethod(); }
interface B{ public float someMethod(); }
class C implements A,B

How do I implement?
Does such a situation arise in real world (I mean computer world) scenarios?
17 years ago
Hi ,
I found out from the web that CX-310-080 has become obsolete and
we have to take CX-310-081 only.
Is it true?
Should we refer different books to prepare for the 2 exams?
If so can you suggest books for this version of the exam?
I have read
1>Head First for scwcd and
am going through
2>SCWCD by David Bridgewater (McGraw-Hill)
Do you suggest any other book for the purpose?
Appologies for not replying earlier.

1> Let's get something straight: ActionError is deprecated.....

Hi Merrill,
Thanks for the info, that solves my problem. I read a few other articles to confirm that. But is there any reason why they depricated ActioError and not ActionErrors?

2> i think that a better choice is ValidatorForm
Hi Manuel,
Yes, validarorForm can be used, but for some strange reason, I feel that it is a bit more complicated and seems to be an overhead. ( No offence, I have not used validator framework and am reluctant to use it now. ) I will try to implement that in my next project.
17 years ago
Hi,
I was reading the struts API and found that
1> ActionErrors is depricated and we have to use ActionMessages instead.

2> But in ActionForm, we have:
public ActionErrors validate(ActionMapping , HttpServletRequest req);

In such a situation I thought of current solution:
i.e. 1> Currently we should use ActionErrors (in ActionForm ), and then
2> When we upgrade the appache struts version,
replace all ActionErrors related stuff
(ActionError, GLOBAL_ERROR etc..) with ActionMessages.
Note:
( I am assuming that apache will come up with :
public ActionMessages validate(ActionMapping , HttpServletRequest req)

Is there any other solution?
17 years ago
a> Hi Beth, I am working on 2 versions of tomcat:
1> Primary: apache-tomcat-5.5.17
2> tomcat 4.1.31
Just to see the differences between the 2 versions.

b> Yes, I just wanted to mention that I am using tomcat/tomcat as username/password.

c> Is there any other forum where such basic questions are asked? Because I found that the questions asked over here are regarding advanced concepts like : How to configure a particular plug-in.... etc .

d> Thanks for the tips which help me in getting answers to my questions.
17 years ago