V Sharma

Greenhorn
+ Follow
since Jun 26, 2004
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 V Sharma

Agrees with you.Infact to sort out the problem Specs has said that local interface is must for defining relationship.But if you right the first program I would say Remote gives more clear picture to the programmer what stuff is there in ....
The difference berween Local and Remote is the same between pass by reference and pass by value.So a local tag was provided which says that the access client and the accessed Bean (through the EJBObject ) are running in a same jvm or in other words in same process.Which makes it faster.

I would say if u r writing your first example.Try hands on Remote. Since Local you will understand on the path.Don,t worry about it.
Stateless Session Bean:
no you can only define ejbCreate()
Reason: To give same behaviour to different instance.

Stateful Session Bean:
Yes

Entity Bean:
Yes
You can also overload the find method except for constraint on

findByPrimaryKey(key)...

Which makes sense So that container does know which is the unique way to get the entity bean.
Hi All,

I am little confused by real life use of Entity BEAN. personally I am having a feeling that development time is more and chances are more of making error in transaction management with EJB than implementing logic in backend.

In Complex area. Did someone who has imeplemented the entity bean solution for any large enterprise.(By Large I mean LARGE).Where there millions of records and many tables. IS ENTITY BEAN A VIABLE SOLUTION and THERE is HEAVY data oriented logic.Normally implemented in Stored Procedure.

Any pointers on case study or something like that somebody did on this.....

Thanks in Advance.
Any Idea on why

getNamedDispatcher does not set the include attributes of request

Well All I found was it was not supposed to.But why ??


Thanks in Advance.
setDynamicAttribute(String uri,
String localName,
Object value)
throws JspException

The method stores the value into the map if uri is null. Under what case uri can be null. The api says uri is namespace (To which namespace does it refers to).

Thanks in Advance.

I tried to test dispatcher with ERROR in the web.xml and couldn't able to test. I configured web.xml with error-page and changed my HelloServlet to throw Exception but the MyFilter never triggered when there is an error.




I think HelloServlet should be catching the exception. The called to the filter will be made in case Servlet is invoked by means of error thrown mechanism from some other servlet.

<filter>
<filter-name>HelloWorldFilter</filter-name>
<filter-class>com.TestHelloWorldFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>HelloWorldFilter</filter-name>
<servlet-name>HelloWorldServ</servlet-name>
<dispatcher>FORWARD</dispatcher>
</filter-mapping>
<filter-mapping>
<filter-name>HelloWorldFilter</filter-name>
<servlet-name>TestErrorDispServ</servlet-name>
<dispatcher>ERROR</dispatcher>
</filter-mapping>

<error-page>
<exception-type>java.lang.ClassCastException</exception-type>
<location>/servlet/TestErrorDispServ</location>
</error-page>

Hope this helps.
Hi,

Reponse wraps around the outputstream which we use to send data to the client.
If you check the complete API you will notice all the methods are either add/set/contains etc..

Nothing on retrieving the values. Because Reponse is means to be sent.Not read.

Hope this helps.
Also I found the reason for leaving this method was that this method can,t be joined with the sesison. Since it won,t be valid for BASIC and CLIENT -CERT form of authorization.
Congrats Yamini

Could tell like how tough they are on Expression Language and new stuff they added and from where did u refer that material.

Thanks in Advance.
Got it ! This is one of the thing they set right in Servlet 2.4
Can somebody explain why HttpServletResponse.SC_FOUND replaced MOVED Temporarily ??

Thanks in Advance
I was talking about the elements which are at the same level in the web app.Some of them I turn up and down like filter-mapping and servlet-mapping but other likes session-timeout can,t.
Does the order in the Deployment Descriptor matter. The WebLogic mentions to put them in order but couldn,t find anything about this in spec.

Thanks in Advance