raj talatam

Ranch Hand
+ Follow
since Apr 19, 2012
Merit badge: grant badges
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by raj talatam

Tim Cooke wrote:Fundamentally that is true. A single processor core can only do one thing at a time. But modern processors have multiple cores.



so if that is true, Multi Thread concepts are not valid in this scenario right
Fundamental rule on processor is "processor process single operation at a time " if it is so
How threading improves performance .
Let say if my program has for loop with 80 iterations(80 sec -->1 thread) , and it is operating by 2 threads(2 thread-->40sec)
this is how people explain thread concept.
But any how processor takes single instruction at a time(80 instructions -->80 sec). there is is no change in performance right ??



Hi,
i want to implement custom pagenation , lets say i have 98 records i want to display them in 10 in a page , if i click on forward button it has to show next ten records if i click on previous ,last ten records has to show..


Thanks
Rajendar
7 years ago
JSF

Joe Harry wrote:Is the EJB project added as a dependency to your servlets project? The last time I used EJB's were in 2009 and I remember very vaguely that you have to provide a descriptor file that would tell which EJB to inject. I'm not sure how things changed since then.



Thanks after adding that error got resolved and end up with

Hi,
i have created a EJB project using eclipse successfully deployed into weblogic server
Now i have created Another webApp using eclipse in that i have created Servlet. How can use this EJB in Servlet.



but i am getting Caused By: java.lang.ClassNotFoundException: info.fcs.MyTestEJBLocal
any help

Thanks
Rajendar

Mike. J. Thompson wrote:It allows you to add new methods to an interface without breaking backwards compatibility. Without default methods any existing code would fail to compile if you add new methods to an interface.

This allowed them to update the Collections interfaces with the new Streams API.




hi Mike what is meant by backward compatibility here.??

Abstract methods are also giving same kind of functionality, then what is difference between these two ???

thnks rajendar
8 years ago
I am going through , thinking in java book, he called contractors from constructors,
Some books says calling constructor means creating object.
According this program as he created 3 objects .???
Many blogs says it is very good book , but it is very tough to understand for me !! any suggestions

8 years ago
Hi all,
Some books says (indian authors ),through interfaces we will achieve a form multiple inheritance. IS this true??
Some people strongly argue there is no multiple inheritance in java..??
they will say what what you are getting by extending an interface, it is just an agreement !!!

can any one explain

thanks
rajendar
8 years ago
hi

if i want compare objects in collection when should i have to override equals and hash code methods and when should i use comparable and comparator interfaces

thnkas
rajendar
8 years ago

Paul Clapham wrote:JDBC has worked that way since Java 6 (released in 2007, I think). Are you just surprised that it works that way, or are you asking for details about how exactly it's implemented?


i was just surprised , the way it is working..
actually i ran that code in my person lap mac book pro (eclipse juno).

when i ran same code in my office desktop(windows 7 indigo eclipse ) i am getting this exception


my question is in Enterprise projects is it necessary to register/ driver or leave it like that

thanks
rajendr
Hi,
first i tried to connect to db by registering driver i am able, i just commented out the and executed then also i am able.. without registering how i am able to connect to DB

Note: first i set ojdbc jar in the class path;




thanks
rajaendar
Hi,
why should local variable initialise before using them, why instance variable initialises to default values .

thanks
rajendar
8 years ago
Hi All,
i have requirement, in that i am showing a Datatable, above that table i have form in that i can register a employee, after clicking on submit employee data have to be saved in the database aswell as i have to update datable, so that i can see that registered employee in that Datatable,
how can i full fill this requirement
i am using jsf 2.0, ejb3.0,jpa 2.0.

in managed bean i am call this service as fallow in init method, and i am binding same this. employee list to UI



for every submit button click i have to query database or is there any mechanism to update List / can we use entity manager in anyway so that we can update Employee List

8 years ago
JSF
Hi all
We are creating maven project , which has 4 web modules and 5 ejb modules , some external libraries and jars.
for this project how the project structure should be

Thanks
Rajendar
8 years ago
Hi Tim Halloway

i have implemented Datatable by using Prime faces, in that i am showing drop down list for Countries and states separately from two different table. Now the requirement has changed , i have show dependent List of vales, for ex if i select US i have to show, states which are present US, . But the Thing here is we should not add any foreing key relation ship for these two tables.
DB desing contains states table with 4 colums like state id(pri key), stateName , country name, country id thats it, there isnoforeign key relation with Contry table.. i don't know why they are fallowing this approch in db desing..
i suggest them to add foreing in states table like( 3 colums with state_id(pri key), state name, country_id(foreign key) ), but they are not willing to add,

What would you say tim is this better approach , ?? can we achive functionality by what DB designers suggesting ??
if that is the case how to implement?? i am using spring ,Hibernate,JSF2.0, primefaces 3.5 in my project

Thanks
Rajendar
9 years ago
JSF