Create ADF Application Use Shared Library Exist in Weblogic

Advanced Oracle ADF 12c Course View|Create Shared Library
19 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$69.99
List Price:  $99.99
You save:  $30
€67.24
List Price:  €96.07
You save:  €28.82
£55.68
List Price:  £79.55
You save:  £23.86
CA$100.66
List Price:  CA$143.82
You save:  CA$43.15
A$111.82
List Price:  A$159.75
You save:  A$47.93
S$94.88
List Price:  S$135.55
You save:  S$40.66
HK$543.79
List Price:  HK$776.87
You save:  HK$233.08
CHF 62.67
List Price:  CHF 89.54
You save:  CHF 26.86
NOK kr792.28
List Price:  NOK kr1,131.89
You save:  NOK kr339.60
DKK kr501.55
List Price:  DKK kr716.53
You save:  DKK kr214.98
NZ$123.71
List Price:  NZ$176.74
You save:  NZ$53.02
د.إ257.07
List Price:  د.إ367.25
You save:  د.إ110.18
৳8,328.16
List Price:  ৳11,897.89
You save:  ৳3,569.72
₹5,958.01
List Price:  ₹8,511.81
You save:  ₹2,553.80
RM314.25
List Price:  RM448.95
You save:  RM134.70
₦108,236.03
List Price:  ₦154,629.53
You save:  ₦46,393.50
₨19,398.69
List Price:  ₨27,713.60
You save:  ₨8,314.91
฿2,394.21
List Price:  ฿3,420.45
You save:  ฿1,026.24
₺2,465.01
List Price:  ₺3,521.60
You save:  ₺1,056.58
B$426.13
List Price:  B$608.79
You save:  B$182.65
R1,290
List Price:  R1,842.93
You save:  R552.93
Лв131.30
List Price:  Лв187.58
You save:  Лв56.28
₩101,582.03
List Price:  ₩145,123.41
You save:  ₩43,541.37
₪254.54
List Price:  ₪363.65
You save:  ₪109.10
₱4,098.92
List Price:  ₱5,855.86
You save:  ₱1,756.93
¥10,967.38
List Price:  ¥15,668.35
You save:  ¥4,700.97
MX$1,406.50
List Price:  MX$2,009.38
You save:  MX$602.87
QR254.06
List Price:  QR362.96
You save:  QR108.89
P963.25
List Price:  P1,376.14
You save:  P412.88
KSh9,053.20
List Price:  KSh12,933.70
You save:  KSh3,880.50
E£3,568.78
List Price:  E£5,098.48
You save:  E£1,529.69
ብር8,687.63
List Price:  ብር12,411.43
You save:  ብር3,723.80
Kz64,250.82
List Price:  Kz91,790.82
You save:  Kz27,540
CLP$69,297.02
List Price:  CLP$99,000
You save:  CLP$29,702.97
CN¥510.87
List Price:  CN¥729.84
You save:  CN¥218.97
RD$4,243.89
List Price:  RD$6,062.96
You save:  RD$1,819.07
DA9,435.69
List Price:  DA13,480.14
You save:  DA4,044.44
FJ$162.05
List Price:  FJ$231.51
You save:  FJ$69.46
Q536.99
List Price:  Q767.16
You save:  Q230.17
GY$14,580.66
List Price:  GY$20,830.41
You save:  GY$6,249.74
ISK kr9,757.30
List Price:  ISK kr13,939.60
You save:  ISK kr4,182.30
DH701.41
List Price:  DH1,002.06
You save:  DH300.64
L1,291.33
List Price:  L1,844.84
You save:  L553.50
ден4,135.36
List Price:  ден5,907.91
You save:  ден1,772.55
MOP$557.92
List Price:  MOP$797.07
You save:  MOP$239.14
N$1,283.07
List Price:  N$1,833.03
You save:  N$549.96
C$2,564.57
List Price:  C$3,663.83
You save:  C$1,099.26
रु9,479.94
List Price:  रु13,543.35
You save:  रु4,063.41
S/259.51
List Price:  S/370.75
You save:  S/111.23
K282.61
List Price:  K403.75
You save:  K121.13
SAR262.99
List Price:  SAR375.71
You save:  SAR112.72
ZK1,928.73
List Price:  ZK2,755.44
You save:  ZK826.71
L334.62
List Price:  L478.06
You save:  L143.43
Kč1,690.23
List Price:  Kč2,414.72
You save:  Kč724.49
Ft27,882.67
List Price:  Ft39,834.10
You save:  Ft11,951.42
SEK kr772.23
List Price:  SEK kr1,103.23
You save:  SEK kr331
ARS$71,547.27
List Price:  ARS$102,214.77
You save:  ARS$30,667.50
Bs481.59
List Price:  Bs688.02
You save:  Bs206.42
COP$305,890.51
List Price:  COP$437,005.17
You save:  COP$131,114.66
₡35,162.35
List Price:  ₡50,234.08
You save:  ₡15,071.73
L1,769.11
List Price:  L2,527.41
You save:  L758.30
₲543,432.39
List Price:  ₲776,365.26
You save:  ₲232,932.87
$U3,131.93
List Price:  $U4,474.38
You save:  $U1,342.44
zł286.59
List Price:  zł409.44
You save:  zł122.84
Already have an account? Log In

Transcript

Hello, after we deploy our shared WAR file in the WebLogic let's now try to create an EDF application which will use this library or you which will use our template shared template and shared code after the need to deploy this application WebLogic and use the shared library. So I will go here and I create a new application ADF application okay. Use share live Bree ADF application key nicus because finish after that, we should add our library. Here is a view controller. The template ends according to that I will use it in my case diff applications. So, so, I will add the two JAR file in the Project Library I will edit it from here yeah we will point to the bus which my shirt it is good my shirt if timber does exist and I will add the two shot file now in my PDF application and I will press OK.

So it does know try to create a beach and use my shared template shared library and I will see refer to it each template and I will find my share template because I add the jar file and press OK. Okay, so now I We'll find my template and the my visit now so let us add any components now. We can add add faces, we can add maybe we can add even we can create a model okay so I created a quick model layer now has department and the buoy. So here in share driver let's add bender collection to the table, for example. And we will point to can selecting between department view Okay. And as a toolbar, we can add a toolbar here and we can add maybe operation, create a search to deed and we can see the icons from the template as well.

So, it's enough we don't want to make a lot of things. So here I will create here new and you will want to icon which is exist as a template, same delete and they will point to the icons which is exist. So the template I think I show you this before so now this icons were coming from the jar files the imaging is existing in the jar file and the whole template okay after that I need to write some code which will which will use our a shared library. So we can add for example here bottom call shoe. And do we can call it a bob with envy and he opens this pop up from the back pain. After that I can play any successful message anything we need to call from the my code.

So I will adhere Bob these young cash and scientists Bob I will add a title look he and I will direct the movie as a table okay and let us now into action listener of this is create a pain, my pain, my pain, pain sure in action Okay and let us try to add some code inside this section and this code is coming from my EDF library. Okay, this is my interview too. So I should write my ID if you tid dot and we can write our code. So let us now try to go my bean here. And I want to say my if util dot. I find all function here exists, and it should import my shared code to my immediate future.

As you can see, so we can see due to pop up should be existing here, and I should send Bob ID how we can sensible bug ID. I will go to the ticket ID full ID I will go to the document and in the initial focus, I will point to my pop up And the depending on what I will find here, I will have my bumper year here. Here, this is my book. So whatever is returned here, this is my ID, I will cut this and I should put it here. After that, maybe I need to splay any successful message just to see how we can use our would show successful measure. And Bobo opened successfully in it anything just to show you how we can call more.

Our library is a code like this. Okay, so let's now try to run this. Of course this would run just using our George, not the library which is existence, our budget just to test if it works fine or not. Okay, so as you can see here, our template exists here whose Glue Code and the icons is appear correctly, let us press show EMS. Okay, as you can see, the bulb is open and EMS symbol UI is open, successful message is open. So our code now is invoked successfully, our shared code and our shared template.

So if we'll use your shared code or shared templates, you should add the shared JAR file here. But I need now to configure this application. Once it is deployed. I need to use my shared library which is exists in publishing and didn't bake the local JAR file. So to do this, in his view controller, right click New from Valerie and you can go for deployment scripter and use with blue ship deployment script. So in this step I will create WebLogic dot XML file.

Okay I press OK and I will select WebLogic to XML, this is the file which we will bind to the library in the WebLogic then I will press next okay Next and Finish. So, this is will generate WebLogic to XML file in your ADF application. After that, you will find will go to the two libraries and add and you should set the library name with the same library name which we use in we deploy it in ZBrush is our case I will use it if I need to copy this Ctrl C and you will Use it as a library just so, you will find here in the source, there are library fronts and its reference to this library Okay. Let's do one thing if you write a library which is not exist in WebLogic for example, it is right in a flight to this library is not exist in the WebLogic which which is this application will run you should get an error okay.

This is from this application and we say this there is a label reference call it a flavor you will find here the deployment is failed because the library France is not felt okay. If we can find this library, okay. So, let us now remove this so it means it will use this for library but to To avoid using is a local file which exists here, I will go to to the deployment my WAR file, I will edit my WAR file then I will go to the whip in library filter and I will uncheck my jar file. In this case, if once you deploy your ADF application, the deployment will not include your local JAR file inside there, your file itself this is the most important thing because if you kept this lie exists, it will use you local JAR files or local JAR file will be part of the airfoil and will be used inside your ADF application.

Even you make a change in your shared library. It will not reflect your evolution because you didn't only check the short foils in the wall The ViewController WAR file again, because this is most important step. Now, I need to consider configure my EDF application to use my shared library. The first step we did is we generate with Bushido XML and we add library friends, and we set a library name, which we deployed in the WebLogic. Second step, you have to go to the View Controller deployment. So what file of this view controller, you should edit it and go to the whip ins library in the filter, I need to uncheck my Indian food and my EDF template.

And I press OK. So now, once I generate an IR file, it does generate now deploy an airfoil. And all you need to deploy this airfoil in my work, music. So this is my earphones. Just too long because reuse the name first you have to want to check the auto generate so you go to the deployment to public auto generate this is we need to remove this check and the deployment we will edit it and we just make it more simple like this. Okay, so this is the boy go to your file Next and Finish yes.

Okay so this is my parcel my your file, it was back to my WebLogic in deployment resource in this tool or deploy if application Use my shirt library because it will be as an application next knickers and finish if the Library Reference is not exist you should receive an error now. Now we deploy an ear file which has a deaf library name. Now it will search for if this libraries exist or not if it is not exist, we will receive an error if it does exist, it will successfully deploy it. Okay, so it is successfully deployed the application. Okay. My shared library in a publication it is if you can try to open it and grow it, test it Come find here and we can just write thesis shoot library to gsf okay so at least you can see now, this logo template JAR file is used correctly is icons is abused correctly.

If you press show you will find here okay this is because of JDBC is not defines a data source that's fine, but at least you can see it used our jar file, a our library JAR file, how how you can know if it is used, the short foil which is exist in Windows Not visual file which is in the war file, you can simply go to the deployment and Let us search for our ADF library. And you'll find here applications that reference to this library, you will find it is used shared library. This is application which is referenced to this library. So, as you can see, now, our application is working fine if you want to just to resolve this you have to regenerate gdB gdB C to ensure data source in new euro block as the sources that it will run but this is not our scope now, you just now need to show you how you can bind to the shared library.

You Edu in your ADF application is zip case if you have 3545 Any applicant of any publication deployed to will use the same template, same logo, same icons you are using. And if you make some change, if you want to ask to change the icons in to change the icons or change the logo, you will just go to your library and you will change it. Just we'll go to your main shared template to change the logo, generate a new shot file again, go to use dami application and you add is a post JAR file. Then usually there's a new WAR file and updates orphans in case if you want to update your code. So here you have a shared library here you add the to JAR file. So if you make any changes to the jar file, you can remove it from here, generate unusual files, for example, if you make any changes to the template, so I will remove this stuff Find and is a template application is a new one and I will add it here after that I will generate a new deploy new WAR file, then I will go to here and I will remove delete my f library and all you will deploy is a new one actually you will not be able to remove any shared library if there is active if application use it.

So, currently use share if library is used this shared library so, if you try to delete it, you will get that this library is referenced by application. So, if you want to remove this library, you have to stop your ADF applications which use this library. After that you can delete it and deploy the new one. Or you can stop your manage server. You will revision after that you can delete this library, add a new one and just run them server and all if application will point to the new will bigs the new thing is orange changes which you added in your library. Or use this shared library Look, my previous companies.

And this is what features that you can have your own code and your own template and images and icons in all in one place. And in your PDF application should point to this. You literally should go into this library. This is how you can create a shared library and how you can deploy it as a shared club in WebLogic. And to help you to make your ADF application by going to your library. So see you next activity

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.