Vidyasagar Guduru

Greenhorn
+ Follow
since Apr 17, 2006
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 Vidyasagar Guduru

- I have a entity C which holds set of objects of R
- We defined a new entity S which extends R
- we are using hibernate xml mapping, so S is mapped in R's hbm definition as joined-sub class (We don't want to use descriminator because it will affect the current R usage)
- I want to create a new Set of S in C, but I am unable to map S as a set in C's hbm config file, there is no reference of C in S and with out the 'key' column I can not map relation ship between C and S

Please help me how to solve this (We don't want to use the instance of or type casting from main R collections)
Thank you for the reply,

How I can map the V to the selected columns of A,B,C.
V is not a domain object I thought it is not supposed to load or store any entity data from the DB.

Suppose there are three non related entity classes A, B and C mapped into DB using Hibernate.

There is a requirement to build a value object called V and it needs few properties (columns) from A, few from B and few from C.

Now how I can construct the object of V using HQL or Criteria instead of using native SQL or reading the individual objects A, B, C separately and setting the values of V.

Thanks in advance for your inputs.
Yes, I thought the other way that Annotations overwrite the configuration file settings.

Thanks.
Actually ejb-jar.xml file provides the metadata of the EJBs plus it also includes some other useful stuff like defining security roles, method permissions, transactions etc.

One of the advantages of the configuration/meta data files is without changing the actual application code we can change the application behavior by changing these property values.

Now if we move these settings to the annotations in the actual business components, do we need to change the components code, build and redeploy every time if there are any changes in those property values.
I think internally it uses JRMP protocol which sends the required stubs on the wire.
I think there is a session timeout event listener available, you can explore that option whether it is usable.
12 years ago
We need to upgrade a non-web java application which is running in JDK1.1.x to JDK1.4

This application uses some of the in-house built utility jar files for common tasks.

We are planning to change the application code according to the new features available from 1.2/1.3/1.4, but not sure how to upgrade the utility jars we are using (those jar files also built using jdk1.1.*). We don't have source code of those jars.

Please let me know the best approach to upgrade those jars, and also if there is any migration guide available to upgrade from 1.1 to 1.4 that would be real great.

Thanks
13 years ago
What is the difference between them (J2SE 5.0 and JDK6)

Thanks,
14 years ago
If we use a synchronized constructor like below, compiler will not agree.



but using a synchronized block is legal




Why the compiler is allowing the second one and not the first one.
[ December 18, 2006: Message edited by: Vidyasagar Guduru ]
I think once we get the reply from TransMaster, we can programatically abort the transaction for a roll back. Do we need to specify all these things in the deliverables.
I have a controller srevlet and two filters. One filter is for input (Request) processing and other filter is for output (Response) processing.
From user point of view we are requesting a Servlet (from the URL) to access the system.
But technically which one is invoked first what should be the sequence

Request --> Filter --> Controller --> Request Handlers

or

Request --> Controller --> Filter --> Controller --> Request Handler

In my previous projects we used to load the filters from the servlets (no configuration in web.xml and those filters are just java classes).

But with filters in J2EE, if we configure the filters in web.xml what should be the correct order of invocation.

Please let me know.

(I just started designing sequence diagrams for the assignment)
If Customer represents a business entity we need to use the entity bean according to the specs, but the decision depends on how you architecting..

My understanding of sharing the entity beans is, multiple requests share the entity bean instance but not the particular entity inside.
In assignment also we can not block any thing, so is it the best option to show a mssage to the user 'That seat is already booked' and provide the current available seats info to select a new seat.