1 00:00:02,180 --> 00:00:03,240 Welcome, my friends. 2 00:00:03,660 --> 00:00:04,880 Welcome to the stiction. 3 00:00:05,910 --> 00:00:12,420 In this section, we will learn about the subject and what all concepts we need to learn revolving around 4 00:00:12,420 --> 00:00:19,290 the subject container, the container basically is your Puncak Web server, which we are going to use, 5 00:00:19,560 --> 00:00:22,620 and it hosts the Soviet or the GSB. 6 00:00:22,860 --> 00:00:27,330 The GSB is just another way of saying that it is a solitary. 7 00:00:27,780 --> 00:00:33,370 So a GSB gets translated into a servlet and that job is also done by the servlet container. 8 00:00:33,720 --> 00:00:38,430 We learn about it in some other course on GSB. 9 00:00:38,640 --> 00:00:44,420 In this course we will be focusing on the Soviet, the Soviet container or the Soviet. 10 00:00:52,290 --> 00:00:54,330 So what can it do? 11 00:00:54,540 --> 00:00:57,480 So what exactly does a solid container do, what other things? 12 00:00:57,480 --> 00:00:58,890 It performs many functions. 13 00:00:59,190 --> 00:01:01,680 First of all, it manages the life cycle of the sonic. 14 00:01:01,680 --> 00:01:06,910 It not only hosts the Sonic, but also manages the entire lifecycle of the subject. 15 00:01:07,200 --> 00:01:09,090 It takes a request from the client. 16 00:01:09,510 --> 00:01:13,340 The client can be a browser and takes those requests. 17 00:01:13,350 --> 00:01:17,070 So basically a solid container works as it's also a Web server. 18 00:01:17,790 --> 00:01:20,060 We have talked about Web server, Tomcat Web server. 19 00:01:20,460 --> 00:01:21,780 So it takes requests. 20 00:01:22,020 --> 00:01:23,960 It sends back a response to the client. 21 00:01:23,970 --> 00:01:26,130 It could be in the form of e-mail or text. 22 00:01:26,460 --> 00:01:26,730 Right. 23 00:01:27,270 --> 00:01:29,970 And then it manages might be trading of the server. 24 00:01:30,330 --> 00:01:31,990 We learn about this a little later. 25 00:01:32,010 --> 00:01:35,940 More about this a little later in some other section. 26 00:01:36,180 --> 00:01:45,590 But market trading as such is an ability to do to multitask, to create multiple processors simultaneously. 27 00:01:45,600 --> 00:01:49,710 It gives the illusion that many things are happening at once. 28 00:01:50,100 --> 00:01:52,470 So that's what multitracking simply means. 29 00:01:52,680 --> 00:01:53,910 And it manages this. 30 00:01:54,240 --> 00:01:57,580 The strong web server manages doing that for the subject. 31 00:01:58,320 --> 00:02:02,640 And finally, it translates as GSP to a server and runs it on the server. 32 00:02:02,760 --> 00:02:09,660 So as I have already told you before, that a GSP is essentially a like a GSP gets converted into a 33 00:02:09,660 --> 00:02:15,150 server and this job is done by Omkara to stand by the server container and it runs also. 34 00:02:15,210 --> 00:02:18,950 That's Soulik automatically it runs that subnet on the server. 35 00:02:19,530 --> 00:02:24,240 So you don't know about it that actually a Jaspin GSP has been converted into Soulet. 36 00:02:24,240 --> 00:02:25,590 It's happening in the background. 37 00:02:26,040 --> 00:02:31,130 We'll just see how that happens when we go to GSB later. 38 00:02:31,440 --> 00:02:33,690 We are focused on subnets as of now. 39 00:02:35,630 --> 00:02:36,750 Callback mechanism. 40 00:02:36,770 --> 00:02:39,440 So what is a callback mechanism for to. 41 00:02:39,740 --> 00:02:45,800 This is a very important concept as far as servlet container is concerned, servlet containers make 42 00:02:45,800 --> 00:02:49,250 a call back to the subject program that you create. 43 00:02:49,730 --> 00:02:50,570 What does that mean? 44 00:02:50,600 --> 00:02:51,380 That means that. 45 00:02:52,960 --> 00:03:00,370 He calls your method the support of the servlet container, called the method that you create nobody 46 00:03:00,370 --> 00:03:00,640 else. 47 00:03:00,670 --> 00:03:02,080 You don't call the method. 48 00:03:02,320 --> 00:03:06,670 It is the of container, it is the Tomcat lipservice that calls the. 49 00:03:08,290 --> 00:03:11,660 That calls the matter on your servlet. 50 00:03:12,400 --> 00:03:13,530 So who calls whom? 51 00:03:13,750 --> 00:03:15,510 Yes, and who was the control? 52 00:03:15,520 --> 00:03:21,750 The control is with the Tomcat, so and the Bangkok Observer calls the method. 53 00:03:21,760 --> 00:03:27,770 These are set methods like like the Post, like get like destroy. 54 00:03:27,800 --> 00:03:35,410 These are standard methods which have to be sensitively written and exactly in the same boat as to be 55 00:03:35,410 --> 00:03:38,350 written with the same signature Java signature. 56 00:03:38,590 --> 00:03:44,150 And they will be called by the Tomcats from Carib. 57 00:03:44,170 --> 00:03:46,700 So that is the main method. 58 00:03:46,930 --> 00:03:48,290 There is no mean method indeed. 59 00:03:48,330 --> 00:03:50,490 So yes, that's a fact. 60 00:03:50,860 --> 00:03:55,900 The servlet doesn't contain any mean main method, but in the Java program, we understand and we know 61 00:03:55,900 --> 00:03:58,460 that the starting point is always the main method. 62 00:03:58,660 --> 00:03:59,710 So that is the meaning. 63 00:04:00,130 --> 00:04:06,340 The mean method is in the contact, which some men in the top over the main method is there. 64 00:04:06,350 --> 00:04:11,080 So the server runs, the mean method runs, and it makes a callback. 65 00:04:11,380 --> 00:04:13,840 It makes a call to your method. 66 00:04:13,930 --> 00:04:15,970 So the main method exists in the. 67 00:04:16,970 --> 00:04:23,420 Tom Catchlove, as I have already told you, the Tomcat server has the control Life-cycle Manhood's 68 00:04:23,420 --> 00:04:29,270 standard method scored by the server on your court, as I have already told you before, that life-cycle 69 00:04:29,270 --> 00:04:33,830 methods are present in the in your servlet, which you create. 70 00:04:34,250 --> 00:04:38,060 These methods are guarded by the Tomcat. 71 00:04:38,090 --> 00:04:40,190 So these are standard methods. 72 00:04:40,190 --> 00:04:43,880 They have a particular syntax, but a particular semantic bit of writing it. 73 00:04:44,120 --> 00:04:51,110 And you will learn that what that method is and it will be guarded by the server when the lifecycle 74 00:04:51,110 --> 00:04:57,200 method one by one after one, like, for example, first you will call the service method. 75 00:04:57,200 --> 00:04:59,420 Then it called the Save the gate method. 76 00:04:59,420 --> 00:05:01,410 Then it might call the destroy method. 77 00:05:01,700 --> 00:05:07,610 So there are certain ways in which these things look and we will discuss about this in the later. 78 00:05:08,240 --> 00:05:12,770 Next, we will see the lifecycle of assembling the lifecycle methods I'm talking about. 79 00:05:13,020 --> 00:05:14,990 We will now go through the lifecycle. 80 00:05:15,350 --> 00:05:19,280 What does my lifecycle methods are and in what order do they happen? 81 00:05:19,790 --> 00:05:21,910 We will see that in the next lecture. 82 00:05:22,370 --> 00:05:23,240 Thank you very much.