This week's giveaway is in the Java in General forum.
We're giving away four copies of Java Challengers and have Rafael del Nero on-line!
See this thread for details.
Win a copy of Java Challengers this week in the Java in General forum!

Arvind Choudhary

Greenhorn
+ Follow
since Jun 07, 2012
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 Arvind Choudhary

Kindly reply if you have an opportunity for me.
Thanks.
7 years ago
Hi,

I have sent you a PM. Kindly check your inbox and let me know.

Thanks.
7 years ago
Hi ,

I am looking out for a job opportunity in Singapore. I am having 5.9 Yrs of experience in Java/J2EE technologies. My other expertise area includes EJB,JMS,MQ,Spring Core,Struts , Oracle.
Application Servers(setup,configuration and deployment) like WAS (clustering, JACL for automatic configuration etc.),Weblogic & Jboss.

I have experience in Cash Management (Investment Banking),Real Time Funds Transfer/Management and BNFS Domain.

Request senior members working in Singapore to suggest some job opportunity for me.

Thanks.
7 years ago
Hi,

Please let me know if your requirement still exists. I am having 5.9 Yrs of experience in Java/J2EE technologies.

Thanks.
7 years ago
Hi Mike,

I am looking an opportunity outside India and satisfy all your requirement. Kindly share details on my mail id chaudhary.arvin@gmail.com.

Thanks.
7 years ago
Welcome authors....

@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface WebServiceMarks a Java class as implementing a Web Service, or a Java interface as defining a Web Service interface.

This is what I got on my first search of JWS- Google. Nice to see book being published on this particular topic and hope it covers all from basic to expert level.
Hi ,

To put it simple I have an MDB (M , Trans attr is not supported ) -> calling to SLSB (Trans attr is required) execute method -> giving call to anoter local method of bean.
Requirement : Customer and Account Termination(update flag in DB for this).
Condition : Customer can only be terminated in DB only when it has no active accounts.

Termination message is being received in order as seperate JMS messages i.e 1st Account Termination and then after one second Customer Termination message is being received by system.
Now in the logs I can see the account termination flg is updated in db by printing update count and after that customer termination message is being processed.
But before terminating cusomer when program fires query for active account check it gets the count as 1. I guess the update for A/C termination is still not commited.

Flow :
customer/Account termination JMS msg sent to MDB (M - onMessage()) -> SLSB execute() (if else for customer & account message to bifercate the flow).

I have already tried with changing the trans attr to requirs new for each of the customer/account update method keeping these in the remote interface. Also at MDB level as required.

CM stand for Container Managed Trans.
Please suggest what is going wrong ?
I have intentionaly kept hashCode implementational like this. Here the point is changing value of str from "ABC" to "PQR" for object a is not reflected into the HashMap as it prints the value as {A@1=A@1} then there is conflict in the behaviour of printing values in line 2 & 3. i.e.
System.out.println(" 2. Value is " + hm.get(new A("ABC"))); ----> OP - 2. Value is null
System.out.println(" 3. Value is " + hm.get(new A("PQR"))); ----> OP - 3. Value is A@1

while for 2 it is null but for 3 it is returing A@1. In my openion if value printed in sop 3 is A@1 then sop2 should also print A@1 only ??

8 years ago
Hi Jeff,

Thanks for your reply,explanation & comments(which I will take care henceforth).
My method implementation are as under -


Below is the Op that I am getting out this program -

System.out.println(" 1. Value is " + hm.get("ABC")); ----> OP - 1. Value is null
System.out.println(" 2. Value is " + hm.get(new A("ABC"))); ----> OP - 2. Value is null
System.out.println(" 3. Value is " + hm.get(new A("PQR"))); ----> OP - 2. Value is A@1

Printing the HashMap prints - {A@1=A@1}

In the above case Op of 1 &2 looks ok to me if you could please explain the value printed by 3rd SOP i.e. System.out.println(" 3. Value is " + hm.get(new A("PQR"))); ----> OP - 2. Value is A@1 .

Thanks.
8 years ago
Hi,
It is just a scenario of behind the scene behaviour of Objects & HashMap on which I want to know your views,that's why this post. Below is my scenario -
Please let me know in case of any clearification or doubt on this.

8 years ago
Please elaborate your requirement basis which a proper Design Pattern can be applied or suggested. For example if the requirement is seperating Database logic from bussiness layer
is a requirement then DAO pattern can be applied. Another example is when loading a large image(which is time consuming), you may create some light object to represent it until the image is loaded completely using Proxy pattern etc.
8 years ago
Dear Winston ,

Thanks for your reply.
Two things : a. This indeed is a "anything into anything" requirement meaning the caller will pass the query for CRUD operation and the rest will be taken care of by respective CRUD implemented method in the utility class.

b. The requirement itself starts with a pattern i.e. DAO. What I want is to build a generic DAO so that once it is developed developer will save time in coding and will readability of the code will be improved.


Thanks.
Arvind
8 years ago


Hi Ravi,

I am also having a simillar requirement. I am restricted to use any ORM tool. Please share if you have developed this.


Thanks.
Arvind
8 years ago