chandra916 Posted June 13, 2013 Report Share Posted June 13, 2013 Linux and Windows...... We have a slave device....Printer,biometric,SMart card.....So we have a protocol for every module.....We can develop in any language and any platform....So baga scope vundi Java and Android lo try cheyadaniki....Anduke daily intlone learning about Java and Android Link to comment Share on other sites More sharing options...
fake_Bezawada Posted June 13, 2013 Report Share Posted June 13, 2013 [quote name='Salividi' timestamp='1371107378' post='1303852349'] Linux and Windows...... We have a slave device....Printer,biometric,SMart card.....So we have a protocol for every module.....We can develop in any language and any platform....So baga scope vundi Java and Android lo try cheyadaniki....Anduke daily intlone learning about Java and Android [/quote] ok macha bangalore or hyd nuvvu ? Link to comment Share on other sites More sharing options...
cherlapalli_jailer Posted June 13, 2013 Report Share Posted June 13, 2013 [quote name='remo_401' timestamp='1371096620' post='1303852012'] java webservices restful konchem daani gurinchi cheputaara jersey client ante enti what does it do jersey enduku use chestam [/quote] simple plain language lo chappli ant jersey is servlet package.. most of the stuff will be handled by jersey servelt for us mana Aa jar files ni class paath lo pettukoni write ur own restful service using the 4 common methods RESTFUl makes life of a developer easy and it is easy to implement Link to comment Share on other sites More sharing options...
innovative Posted June 14, 2013 Report Share Posted June 14, 2013 [quote name='cherlapalli_jailer' timestamp='1370948990' post='1303845307'] sure when u r free we can discuss [/quote] Thanx 1) Typical Spring project lo folder structure enti ... Link to comment Share on other sites More sharing options...
cherlapalli_jailer Posted June 14, 2013 Report Share Posted June 14, 2013 [quote name='innovative' timestamp='1371168490' post='1303854850'] Thanx 1) Typical Spring project lo folder structure enti ... [/quote] Simple ga cheppali ante.. 2 parts 1) Web part 2) Back End root path will be WEBCONTENT (most of the time index.jsp will be sitting here) under WebContent 1) Web part:- WEB-INF (Normally this will have WEB.XML and other XMLS) classes jsp --each module will have its owns dir - sub dir for easy maintenance lib customTags 2)say Resources -Images -JS --CSS --HTML ( Typically this resource folder can/will go to Web Server also) that it will load faster..bu 3)META-INF back end SRC dir ur own package and main packages will be 1) Controllers 2)Foms 3)DAO(if hibernate then pojo) 4)util and for business logic jar the classes and drop it to WEB-INF lib and war it deploy in ur app server This is simple and normally every company follow its own style and frame work.... so to work @ home this works better... Link to comment Share on other sites More sharing options...
innovative Posted June 16, 2013 Report Share Posted June 16, 2013 [quote name='cherlapalli_jailer' timestamp='1371218977' post='1303856250'] Simple ga cheppali ante.. 2 parts 1) Web part 2) Back End root path will be WEBCONTENT (most of the time index.jsp will be sitting here) under WebContent 1) Web part:- WEB-INF (Normally this will have WEB.XML and other XMLS) classes jsp --each module will have its owns dir - sub dir for easy maintenance lib customTags 2)say Resources -Images -JS --CSS --HTML ( Typically this resource folder can/will go to Web Server also) that it will load faster..bu 3)META-INF back end SRC dir ur own package and main packages will be 1) Controllers 2)Foms 3)DAO(if hibernate then pojo) 4)util [b]and for business logic[/b] jar the classes and drop it to WEB-INF lib and war it deploy in ur app server This is simple and normally every company follow its own style and frame work.... so to work @ home this works better... [/quote] tq .. Excellent post Jailer smal doubt ... business logic(bold) antene controller classes, DAO ave kada malli business logic enti .. and also through some light on DAO. Link to comment Share on other sites More sharing options...
Water Posted June 16, 2013 Report Share Posted June 16, 2013 [quote name='innovative' timestamp='1371410308' post='1303861105'] tq .. Excellent post Jailer smal doubt ... business logic(bold) antene controller classes, DAO ave kada malli business logic enti .. and also through some light on DAO. [/quote] Hi.. you are doing a great job keeping this thread alive... Link to comment Share on other sites More sharing options...
chandra916 Posted June 18, 2013 Report Share Posted June 18, 2013 Interface ante enti? Didnt understand the discription in docs.oracle. Started learning java.... Link to comment Share on other sites More sharing options...
coca-cola Posted June 18, 2013 Report Share Posted June 18, 2013 [quote name='Salividi' timestamp='1371535672' post='1303865695'] Interface ante enti? Didnt understand the discription in docs.oracle. Started learning java.... [/quote] interface nothing but set of abstract methods..................................................like A extends B in normal classes.........but to inherit from interface A implements interface name................. for classes extends keyword .................. for interface implments........................ Link to comment Share on other sites More sharing options...
cherlapalli_jailer Posted June 18, 2013 Report Share Posted June 18, 2013 [quote name='innovative' timestamp='1371410308' post='1303861105'] tq .. Excellent post Jailer smal doubt ... business logic(bold) antene controller classes, DAO ave kada malli business logic enti .. and also through some light on DAO. [/quote] Controller class lo bussiness logic pettakoodadu this is how typical controller class look like //requestObject. , session will be IN params based on the request . we need to invoke the the business logic then once the business logic is done we need to construct to out param or data or model or list ..based on the requirment like public ViewModel LoginController((HttpServletRequest req, @ModelAttributexxx xxx, BindingResult result,SessionObject..) { // call ur bussinesLayer AuthenticateMrg aumgr = new AuthenticateMrg() ; Authenticate au = new Authenticate() ; au = aumgr.checkLogin(xxx,req) if(au.login()){ au.getHomepageDetails(xxx) ;//this will have all the logic ..like what r all the accounts ...payerr set up ..etc.. //get the home page details } else //bulid failure response build home page return to Home page } So here typically most ppl write business logic in controller and makes it in non human readable code. for small projects like JSP--->controller --> DAO(or typically hibernate calls) then ok do the relevant stuff in controller (which is not a right practice especially for large applications) #1 suppose u have an application which is built on Abstract factory patrren and u have web services to server the 3rd parties and ur own GUI for ur customers.. then ur controller class either makes a web services call or ... invoke the factory typical business logic will be in Factory pattern #2 In some applications.. you will have your own database and you will goto another back end(Banks/Ins etc) these kind of applications you will see multi tier architecture there is no way you can handle in controller class.. so it is always advisable to have separate business layer.. may be u r looking @ the below M-V-C Where "C" is again N-Tier there in Spring the confusion is ... we call the class name it self as ControllerClass.. DAO is typically holds the data base connection and pull the data and structure it into Value Objects which are now called PoJo classes DAO layer is typically communication to Database and pull the relevant data and re frame it 1 Link to comment Share on other sites More sharing options...
cherlapalli_jailer Posted June 18, 2013 Report Share Posted June 18, 2013 [quote name='Salividi' timestamp='1371535672' post='1303865695'] Interface ante enti? Didnt understand the discription in docs.oracle. Started learning java.... [/quote] simple ga cheppadaniki try chesanu public Interface ProfileInterface{ public AFDBProfile getProfileDetails(Login loginObject) ; } //now looking @ the above interface hope who know what to do This is how i designed my interface ...which tells if u pass on a login object output should be Profile Object. now u r use this interface to write logic.. mean while the person who is using AFDBProfile object to show details on web ...has nothing to do with ur logic... let us define 2 other classes too public class Login{ private String uid ; private String pwd; setter and getter classes--here } public class AFDBProfile{ pivate boolean isLoginSuccess ; isUserpostRights ; private isUserMod; private string status ;//her/legend etc, private int totalPost ; //similarly i decalare all the properties.. setter and geters common } now u need to implement my interface to write the business logic public class Profiler implements ProfileInteface{ public AFDBProfile getProfileDetails(Login loginObject){ //gopto data base //check user //get user details //bulid AFDBProfile } Same interface can be used by another person/developer for Administration module... So typically Interface holds method signature but not logic.. so who ever implements the interface should over ride all the methods... the main purpose of interfaces is to define the application structure and implementation logic Link to comment Share on other sites More sharing options...
fake_Bezawada Posted June 18, 2013 Report Share Posted June 18, 2013 interface ante it contains all abstarct methods machaaaa abstract methods ante vatiki body vundadhu just like a normal statement it will end with semicolon interface ni implement chesukovali you cant extend it and implement chesukogane eclipse neeku error symbol chupisthadi implement un implemented methods anesi ah un implemented menthods are nothing but abtsract methods present in interface example plain java lo aythe Runnable interface class A implemenets Runnable ani rayi IDE neeku void run () method method ni implement chestadi body lo or else web lo aythe neeku example ga Filters cheppachu Filter ni implements cheyagane neeku doFilter method generate chesukomani IDE chupisthadi ................................ 1 Link to comment Share on other sites More sharing options...
cherlapalli_jailer Posted June 18, 2013 Report Share Posted June 18, 2013 [quote name='innovative' timestamp='1370650472' post='1303835542'] [url="https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=4&ved=0CEYQFjAD&url=https%3A%2F%2Fvjv.googlecode.com%2Ffiles%2F978-1-4116-6824-9-preview.pdf&ei=CXSyUdGzOYLzygGAr4GYBQ&usg=AFQjCNHQtBcXt8Zr5iCetiP-WTaZ7svJWQ&sig2=nhvBn-U6MGJcI1UgpnWjNg&bvm=bv.47534661,d.aWM"]link 1[/url] [url="http://ismails.files.wordpress.com/2007/07/hibernate-interview-questions.pdf"][b]hibernate [/b][/url] [b][url="http://java.garnaik.com/pdf/java_garnaik_hibernate_advance_interview_questions.pdf"]hibernate[/url] - [color=#ff0000]code snippets tho explainatins vuntay .. good one [/color][/b] [url="http://www.careervarsity.com/download/jsp.doc"][b]JSP[/b][/url] - [color=#ff0000][b]direct download[/b][/color] [color=#ff0000][b]from bookmarks - for a quick review of concepts before interview : [/b][/color] credit to saggammahesh @ javaken [color=#000000][font=verdana, geneva, lucida,][url="http://www.downloadmela.com/interview-paper-download?id=47"]jdbc Interview Questions and Answers[/url] [url="http://www.downloadmela.com/interview-paper-download?id=48"]Jsp Interview Questions and Answers[/url] [url="http://www.downloadmela.com/interview-paper-download?id=49"]EJB 3.0 Interview Questions and Answers[/url] [url="http://www.downloadmela.com/interview-paper-download?id=50"]corejava Interview Questions and Answers[/url] [url="http://www.downloadmela.com/interview-paper-download?id=51"]Servlet Interview Questions and Answers[/url] [url="http://www.downloadmela.com/interview-paper-download?id=52"]JMS Interview Questions and Answers[/url] [url="http://www.downloadmela.com/interview-paper-download?id=53"]J2ME Interview Questions and Answers[/url] [url="http://www.downloadmela.com/interview-paper-download?id=706"]CVS interview questions and answers[/url] [url="http://www.downloadmela.com/interview-paper-download?id=708"]JMX interview questions and answers[/url] [url="http://www.downloadmela.com/interview-paper-download?id=815"]AWT interview questions and answers[/url] [url="http://www.downloadmela.com/interview-paper-download?id=890"]Core Java interview questions and answers[/url] [url="http://www.downloadmela.com/interview-paper-download?id=891"]Eclipse interview questions and answers[/url] [url="http://www.downloadmela.com/interview-paper-download?id=892"]Hibernate interview questions and answers[/url] [url="http://www.downloadmela.com/interview-paper-download?id=893"]IBM WebSphere interview questions and answers[/url] [url="http://www.downloadmela.com/interview-paper-download?id=894"]J2ME interview questions and answers[/url] [url="http://www.downloadmela.com/interview-paper-download?id=895"]J2SE interview questions and answers[/url] [url="http://www.downloadmela.com/interview-paper-download?id=896"]Java Applet interview questions and answers[/url] [url="http://www.downloadmela.com/interview-paper-download?id=897"]Java Beans interview questions and answers[/url] [url="http://www.downloadmela.com/interview-paper-download?id=898"]Java EJB Programming interview questions and answers[/url] [url="http://www.downloadmela.com/interview-paper-download?id=899"]Java Enterprise Edition(J2EE) interview questions and answers[/url] [url="http://www.downloadmela.com/interview-paper-download?id=900"]Java JSP Programming interview questions and answers[/url] [url="http://www.downloadmela.com/interview-paper-download?id=901"]Java Message Service(JMS) interview questions and answers[/url] [url="http://www.downloadmela.com/interview-paper-download?id=902"]Java Networking - Sockets And RMI interview questions and answers[/url] [url="http://www.downloadmela.com/interview-paper-download?id=903"]Java Patterns interview questions and answers[/url] [url="http://www.downloadmela.com/interview-paper-download?id=904"]Java Security interview questions and answers[/url] [url="http://www.downloadmela.com/interview-paper-download?id=905"]Java Servlet Programming interview questions and answers[/url] [url="http://www.downloadmela.com/interview-paper-download?id=906"]Java Swing Programming interview questions and answers[/url] [url="http://www.downloadmela.com/interview-paper-download?id=907"]Java Threads interview questions and answers[/url] [url="http://www.downloadmela.com/interview-paper-download?id=908"]Java interview questions and answers[/url] [url="http://www.downloadmela.com/interview-paper-download?id=909"]JBoss interview questions and answers[/url] [url="http://www.downloadmela.com/interview-paper-download?id=910"]JDBC interview questions and answers[/url] [url="http://www.downloadmela.com/interview-paper-download?id=911"]JMS interview questions and answers[/url] [url="http://www.downloadmela.com/interview-paper-download?id=912"]JSF interview questions and answers[/url] [url="http://www.downloadmela.com/interview-paper-download?id=913"]RMI interview questions and answers[/url] [url="http://www.downloadmela.com/interview-paper-download?id=914"]Spring Framework interview questions and answers[/url] [url="http://www.downloadmela.com/interview-paper-download?id=915"]Struts interview questions and answers[/url][/font][/color] will update [/quote] good post Link to comment Share on other sites More sharing options...
innovative Posted June 19, 2013 Report Share Posted June 19, 2013 [quote name='cherlapalli_jailer' timestamp='1371554190' post='1303865957'] public ViewModel LoginController((HttpServletRequest req, @ModelAttributexxx xxx, BindingResult result,SessionObject..) { // call ur bussinesLayer AuthenticateMrg aumgr = new AuthenticateMrg() ; Authenticate au = new Authenticate() ; au = aumgr.checkLogin(xxx,req) if(au.login()){ au.getHomepageDetails(xxx) ;//this will have all the logic ..like what r all the accounts ...payerr set up ..etc.. //get the home page details } else //bulid failure response build home page return to Home page } [/quote] Okay ... simply Database calls and data retrieval motham DAO lo cheyyali .. am I correct ? [quote] JSP--->controller --> DAO(or typically hibernate calls) then ok do the relevant stuff in controller (which is not a right practice especially for large applications) #1 [/quote] But I think chala apps still business logic motham controller class lone rasthunnaru .. if im not wrong .. or then adhi typical MVC kadhu antara ... [quote] #2 In some applications.. you will have your own database and you will goto another back end(Banks/Ins etc) these kind of applications you will see multi tier architecture there is no way you can handle in controller class.. so it is always advisable to have separate business layer.. [/quote] Ikkada oka point ardham kaledhu .. like company ki own datasource vunte malli back end vere third party meedha depend avvatam enti .. ardham kaledhu adhi .. and also if datasource ki direct ga connect avvakunda some middleware through data ni app loki theskovalsi vasthe .. does it work in the same way ... [quote] DAO is typically holds the data base connection and pull the data and structure it into [b]Value Objects[/b] which are now called PoJo classes [/quote] Value objects ante like (key,value) pairs ? or mapping ? POJO class are simply beans nah .. DAO class structures its output as pojo ? idhi ardham kaledhu .. [quote] DAO layer is typically communication to Database and pull the relevant data and re frame it [/quote] Naau kooda jus ee def varake thelusu .. Thank you jailer ... Link to comment Share on other sites More sharing options...
Water Posted June 19, 2013 Report Share Posted June 19, 2013 [quote name='innovative' timestamp='1371600197' post='1303868275'] Value objects ante like (key,value) pairs ? or mapping ? POJO class are simply beans nah .. DAO class structures its output as pojo ? idhi ardham kaledhu .. Naau kooda jus ee def varake thelusu .. Thank you jailer ... [/quote] [color=#282828][font=helvetica, arial, sans-serif][img]http://i47.tinypic.com/5kqceb.gif[/img][/font][/color] Link to comment Share on other sites More sharing options...
Recommended Posts