Deepak Shastri

Greenhorn
+ Follow
since Aug 18, 2004
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 Deepak Shastri

Folks,
I would like to throw open a debate as to whether its really useful preparing for the exam. The reason for doing this is that just 1 week back I was so enthusiastic to give this exam especially because web side development is a day-in day out task, so I thought it really good to have an official Sun Certificate under my belt but the last week having gone through the material from various sources including the HFirst book really has put me off.
I really feel lethargic reading the sections on Scriptless JSP, EL, Custom Tags...because usually in my company and even most of the community I see people using Struts for all these things. These days some of them are using even Spring. I have not used EL in my development past 2 years. I have used Struts in an out...so really contemplating whether to go ahead and give the exam for the sake of a Sun Certificate !!

any thoughts on these ??
Hi, John.
Thx for the answers
I did read Alur's explanation of having a Business Delegate when using Remote Business Components and shielding those remote exceptions and bo access code.

My doubts come after reading sun's blue-print.May be i dont quite understand it.

Typically as per Sun's Blue-prints, they have shown a Class Diagram
(http://java.sun.com/blueprints/guidelines/designing_enterprise_applications_2e/app-arch/app-arch5.html#1107803)

which depicts using both FrontController-->CommandPattern->Session Facade
and also a Business Delegate. The Business Delegate is being used only during data retrieval part.
They clearly mention that one shud use Business delegate when you are trying to retrieve data (Read). I am not quite convinced. Why cant we do without Business Delegate and use the same architecture of FrontController-->CommandPattern->Session Facade-->Business Delegate-->Business Objects for retreiving data.

As per sun's blueprint the explanation for using Business Delegate quite like Alur..But what is confusing me is that Business Delegate is not being used when request is coming via controller-->command-->sessionfacade-->business object. But only during retrieval.

You can refer to the explanation the above mentioned URL.

Any ideas here ?
Any more inputs on this....Guys I need views from this forum !!
Is it required to use a Business Delegate when using a Command Pattern ?
------------------------------------------------------------------------

By definition of a front controller with command handler patter
--------------------------------------------------------------
Implementing a front controller with a command pattern not only simplifies a session facade interface, it also keeps the controller implementation cleaner by encapsulating event- and request-handling tasks into smaller objects. It also enables Java platform events to be used as the bridge between Web- and EJB-tier controllers

Motivation to use a business Delegate
-------------------------------------
The Business Delegate may shield clients from possible volatility in the implementation of the business service API. Potentially, this reduces the number of changes that must be made to the presentation-tier client code when the business service API or its underlying implementation changes.


My question:
-----------
Cant we use the commandHandler itself to shield the presentation layer from the possible volatility as mentioned above ?
output of incrementing below date 20050530 (30th April)by 1 is 31st April
instead of 1st May 2005 ?? Any explaination ?

import java.text.ParseException;
import java.util.*;
import java.io.*;
public class TestPgm {
public TestPgm() {
}

public static void main(String[] arg) throws ParseException
{
TestPgm t = new TestPgm();
t.extractDate("20050430");
}

public String extractDate(String xml_file_date)//20040728S
{
//String tempDate = latestFileName.substring(9,17).trim();
int yrIndex = Integer.parseInt(xml_file_date.substring(0,4));
int mthIndex = Integer.parseInt(xml_file_date.substring(4,6)) ;
int dayIndex = Integer.parseInt(xml_file_date.substring(6,8));

GregorianCalendar g = new GregorianCalendar(yrIndex,mthIndex,dayIndex);
System.out.println("mthIndex " + mthIndex);
System.out.println("dayIndex " + dayIndex);
System.out.println("yrIndex " + yrIndex);

g.add(Calendar.DATE,1);
String yr = g.get(GregorianCalendar.YEAR)+"";
String mth = g.get(GregorianCalendar.MONTH)+"";
if(mth.length() != 2)
{
mth = "0"+mth;
}
String day = g.get(GregorianCalendar.DATE)+"";
System.out.println("yr " + yr);
System.out.println("mth " + mth);
System.out.println("day " + day);

if(day.length() != 2)
{

day = "0"+day;
}

return yr+""+mth+""+day;
}


}
17 years ago
output of incrementing below date 20050530 (30th April)by 1 is 31st April
instead of 1st May 2005 ?? Any explaination ?

import java.text.ParseException;
import java.util.*;
import java.io.*;
public class TestPgm {
public TestPgm() {
}

public static void main(String[] arg) throws ParseException
{
TestPgm t = new TestPgm();
t.extractDate("20050430");
}

public String extractDate(String xml_file_date)//20040728S
{
//String tempDate = latestFileName.substring(9,17).trim();
int yrIndex = Integer.parseInt(xml_file_date.substring(0,4));
int mthIndex = Integer.parseInt(xml_file_date.substring(4,6)) ;
int dayIndex = Integer.parseInt(xml_file_date.substring(6,8));

GregorianCalendar g = new GregorianCalendar(yrIndex,mthIndex,dayIndex);
System.out.println("mthIndex " + mthIndex);
System.out.println("dayIndex " + dayIndex);
System.out.println("yrIndex " + yrIndex);

g.add(Calendar.DATE,1);
String yr = g.get(GregorianCalendar.YEAR)+"";
String mth = g.get(GregorianCalendar.MONTH)+"";
if(mth.length() != 2)
{
mth = "0"+mth;
}
String day = g.get(GregorianCalendar.DATE)+"";
System.out.println("yr " + yr);
System.out.println("mth " + mth);
System.out.println("day " + day);

if(day.length() != 2)
{

day = "0"+day;
}

return yr+""+mth+""+day;
}


}
17 years ago
Hi Anyone who has attempted TEST 815 recently ?
Hi ,
Has anyone in this forum attended the IBM Test 815 ?
On-Demand Ebusiness Solution Design. I would like to learn from their experiences and any feedback on the same.


Thanks,
[ March 23, 2005: Message edited by: Deepak ]
hi Tulsi,
Can you let me know which IBM test is IBM CERTIFIED OBJECT ORIENTED ANALYSIS AND DESIGN CERTIFICATION... Is this the same ?

http://www-03.ibm.com/certify/certs/rlrcoad3.shtml


There are 3 test am I right ? Any idea what are the educational resources which need to be prepared ?
Hi Ronald,
In my case I dont have Clustered Queues (MQ Cluster)

But we have a Websphere Cluster with 2 servers. I have deployed an EAR containing an MDB and sesson bean on both the servers.

Each server has a listener port configured against the same queue. That means 2 listners ports against 1 queue. Now I want to restrict usage that unless MDB on Server-1 (in cluster-C) is finished processing a message (i.e. onmessage completes only then MDB on Server-2 (in cluster-C) should start processing 2nd message in the queue.

Is it possible, if yes how.
The max sessions does not work for me. Even if it does theoretically I believe in a cluster of 2 servers having 2 listener ports, it will not help.

Can you explain or help me with my quest ?

Thanks in advance
17 years ago
My query got lost above....can you help me solve this puzzle on Clustered MDBs... I am pasting this question again.
-------------------------------------------------------------------------
Hi Ronald, I really appreciate your answers. Its helping me understand lot of things internally.
You mentioned creating a single pipe for clustered consumers (i.e. multiple MDBs on a cluster) how to achieve this single pipe fundamental..is it a configuration to be done within Websphere or MQ, can you put more light into this ?


Thanks
17 years ago
Hi Ronald, I really appreciate your answers. Its helping me understand lot of things internally.
You mentioned creating a single pipe for clustered consumers (i.e. multiple MDBs on a cluster) how to achieve this single pipe fundamental..is it a configuration to be done within Websphere or MQ, can you put more light into this ?


Thanks
17 years ago