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
€64.51
List Price:  €92.16
You save:  €27.65
£55.26
List Price:  £78.95
You save:  £23.68
CA$95.77
List Price:  CA$136.82
You save:  CA$41.05
A$105.61
List Price:  A$150.88
You save:  A$45.26
S$94.49
List Price:  S$134.99
You save:  S$40.50
HK$546.56
List Price:  HK$780.84
You save:  HK$234.27
CHF 64.51
List Price:  CHF 92.16
You save:  CHF 27.65
NOK kr745.92
List Price:  NOK kr1,065.65
You save:  NOK kr319.72
DKK kr481.76
List Price:  DKK kr688.26
You save:  DKK kr206.50
NZ$114.32
List Price:  NZ$163.32
You save:  NZ$49
د.إ257.07
List Price:  د.إ367.26
You save:  د.إ110.19
৳8,200.05
List Price:  ৳11,714.86
You save:  ৳3,514.80
₹5,813.28
List Price:  ₹8,305.04
You save:  ₹2,491.76
RM329.26
List Price:  RM470.40
You save:  RM141.13
₦102,276.30
List Price:  ₦146,115.27
You save:  ₦43,838.96
₨19,447.66
List Price:  ₨27,783.57
You save:  ₨8,335.90
฿2,561.05
List Price:  ฿3,658.80
You save:  ฿1,097.75
₺2,253.54
List Price:  ₺3,219.48
You save:  ₺965.94
B$361.65
List Price:  B$516.66
You save:  B$155.01
R1,289.17
List Price:  R1,841.76
You save:  R552.58
Лв126.36
List Price:  Лв180.52
You save:  Лв54.16
₩95,655.33
List Price:  ₩136,656.33
You save:  ₩41,001
₪256.70
List Price:  ₪366.73
You save:  ₪110.03
₱4,073.73
List Price:  ₱5,819.86
You save:  ₱1,746.13
¥10,984.57
List Price:  ¥15,692.92
You save:  ¥4,708.34
MX$1,168.81
List Price:  MX$1,669.81
You save:  MX$500.99
QR254.92
List Price:  QR364.18
You save:  QR109.26
P949.81
List Price:  P1,356.93
You save:  P407.12
KSh9,122.85
List Price:  KSh13,033.20
You save:  KSh3,910.35
E£3,298.27
List Price:  E£4,712.01
You save:  E£1,413.74
ብር4,016.76
List Price:  ብር5,738.47
You save:  ብር1,721.71
Kz59,376.64
List Price:  Kz84,827.41
You save:  Kz25,450.77
CLP$63,605.87
List Price:  CLP$90,869.43
You save:  CLP$27,263.55
CN¥497.66
List Price:  CN¥710.97
You save:  CN¥213.31
RD$4,116.79
List Price:  RD$5,881.38
You save:  RD$1,764.59
DA9,406.51
List Price:  DA13,438.44
You save:  DA4,031.93
FJ$158.71
List Price:  FJ$226.74
You save:  FJ$68.02
Q543.03
List Price:  Q775.80
You save:  Q232.76
GY$14,626.09
List Price:  GY$20,895.31
You save:  GY$6,269.22
ISK kr9,653.57
List Price:  ISK kr13,791.40
You save:  ISK kr4,137.83
DH697.32
List Price:  DH996.21
You save:  DH298.89
L1,240.19
List Price:  L1,771.78
You save:  L531.58
ден3,973.31
List Price:  ден5,676.40
You save:  ден1,703.09
MOP$562.57
List Price:  MOP$803.71
You save:  MOP$241.13
N$1,284.81
List Price:  N$1,835.52
You save:  N$550.71
C$2,572.99
List Price:  C$3,675.86
You save:  C$1,102.87
रु9,296.83
List Price:  रु13,281.76
You save:  रु3,984.92
S/261.34
List Price:  S/373.37
You save:  S/112.02
K271.67
List Price:  K388.13
You save:  K116.45
SAR262.50
List Price:  SAR375.02
You save:  SAR112.51
ZK1,865.84
List Price:  ZK2,665.60
You save:  ZK799.76
L320.98
List Price:  L458.57
You save:  L137.58
Kč1,589.64
List Price:  Kč2,271.01
You save:  Kč681.37
Ft24,759.44
List Price:  Ft35,372.15
You save:  Ft10,612.70
SEK kr760.40
List Price:  SEK kr1,086.34
You save:  SEK kr325.93
ARS$62,235.70
List Price:  ARS$88,911.95
You save:  ARS$26,676.25
Bs483.06
List Price:  Bs690.12
You save:  Bs207.05
COP$270,493.43
List Price:  COP$386,435.76
You save:  COP$115,942.32
₡35,841.38
List Price:  ₡51,204.17
You save:  ₡15,362.78
L1,727.58
List Price:  L2,468.08
You save:  L740.49
₲525,820.15
List Price:  ₲751,203.84
You save:  ₲225,383.69
$U2,694.45
List Price:  $U3,849.38
You save:  $U1,154.93
zł274.83
List Price:  zł392.63
You save:  zł117.80
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.