Win a copy of Microservices Testing (Live Project) this week in the Spring forum!

sarma kiran

Ranch Hand
+ Follow
since Jul 17, 2008
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 sarma kiran

Hi,

Suppose when there is a Employee POJO class. I have serialized the Employee Object to the file System. I have moved that file to the different system. If i want to deserialize the object, do i need to include the Employee class file in the class path.
11 years ago

Hi,

When i deploy the code in WAS server and when i run the application am getting code too large for the try statement.
Please provide me your valuable solutions.

Thanks in advance.

Regards,
Kiran
12 years ago
JSP

Hi,
I have the requirement that i have to include the file contents from the action path of the struts... is it possible..

<jsp: include page=".......action path "/>

This is not working.

Please let me know if any other solution is there.. thanks
Regards,
Kiran
12 years ago
Thanks.
12 years ago
Hi,
Is is possible to provide setter Injection for the bean which has static factory method?

Actually i am trying for setter injection in the bean, its showing error " No setter method found for num in java.lang.String" in configuaration file.

Can any one help me?




Regards,
Kiran

12 years ago

Thanks sandeep.
12 years ago

Can any one tell me the difference between Prototyping vs. singleton for the bean?

thanks in advance
12 years ago
Hi Friends,
Am newbie to spring, i am executing simple appliation.
Amgetting the above exception.I am really frustrated with this exception.
Can any one help me...

Kiran
12 years ago
Am going through the Memory Leaks Concept.

I have come across the below line.

"In Java typically memory leak occurs when an object of longer life cycle has a reference to objects of a short life
cycle."

Can any one explain with some example?

Thanks in advance..
13 years ago
Hi,
While designing the application which one is better Implementaion Inharitene or Interface Inharitence.
Also can any one explain advantagious and disadvantagious...

Thanks in advance...
13 years ago
I have gone through some material,i got the following details. Please let me know whether this is correct or not... Thanks


Access Specifiers
They are used to set the visibility of a
class or variable or a method. Classes can be Public or
Default.Variables and methods can be
public,private,protected or default

Access Modifiers
They are used to optionally declare a
field.That is we can set access modifiers for class,method
or variables. Classes can have modifier like Abstract.
Methods can have abstract, native,synchronised etc..
13 years ago
Hi,
I am new to this Hibernate technology. I am going through Hibernate in Action to learn this technology.
I have few doubts of using Evict method.

As of my understanding when we use the evict method the object is detached from the session.
After that when we update the detached object in the same session is it will be persisted or not.

This is the code which i am trying..

EmpDAO empDao = new EmpDAO();
Session sessionObj = empDao.getSession();
Transaction tx = sessionObj.getTransaction();

Emp emp = new Emp();
emp.setFirstname("Rama");
emp.setLastname("Krishna");
emp.setAddress("Blr");
emp.setSalary(200);

tx.begin();
sessionObj.save(emp);
tx.commit();
System.out.println("*** Transaction one completed");

sessionObj.evict(emp);

emp.setFirstname("Krishna");
emp.setAddress("rjy");

//sessionObj.saveOrUpdate(emp);
sessionObj.flush();

tx.begin();
sessionObj.update(emp);
tx.commit();

printEmployee("Employee Added Successfully!", emp);

sessionObj.close();


After execurting this code, first one is inserting into the database after that its updating the same row.

I am confused, How it is updating the row on the detached object..

can any one clarify this doubt..

Regards,
kiran
HI,
Can any one explain me about DAO, with example. When this is useful
Can any one tell me the differece between composition, association and aggregation with some example.
13 years ago