A sample application-client.xml (Java EE 5)

Application client is another type of Java EE module, the least utilized one. It attempts to wrap up Java SE application, deploy it to application server, and make use of deployed EJB, platform services and resources.

The following application-client.xml declares an env-entry, ejb-ref and resource-ref.

<?xml version="1.0" encoding="UTF-8"?>
<application-client xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="5"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application-client_5.xsd">

<display-name>A sample application client</display-name>

<description>admin email</description>



The env-entry can be looked up with name "java:comp/env/adminEmail", or injected into the application client main class or its superclasses. For example:
//use static modifier in application client main class only
private static String adminEmail;
The ejb-ref and resource-ref can be looked up with names "java:comp/ejb/testBean" and "java:comp/env/HRDS", respectively.

The reason I include ejb-ref and resource-ref is to show how they fit in descriptors. In Java EE 5 and later, it is easier to use @EJB and @Resource to declare and inject them into component classes.


Anonymous said...

you have a nice site.thanks for sharing this site. various kinds of ebooks are available here


Unknown said...

Great and Useful Article.

Online Java Training

Java Online Training India

Java Online Course

Java EE course

Java EE training

Best Recommended books for Spring framework

Java Interview Questions

Java Course in Chennai

Java Online Training India

Unknown said...

I enjoyed on reading your blog post. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article. Please visit my website, Friv 4000 Games is where all the free friv games.
Friv 4000

rmouniak said...

Thanks for sharing this good blog.This is very important and imformative blog for Java . very interesting and useful for students
Java Online Training India

Richard Majece said...

After reading https://dissertationauthors.com/blog/annotated-bibliography you will learn more about writing annotated bibliography. I had such experience so I know what I am talking about

Unknown said...

Essay is a type of academic writing that is regarded one of the simplest in structure and development among all writing types. Despite the fact, you can always buy cause and effect essay from classification essay writing service if you face some difficulties in the process of writing.

Betty Bilton said...

Hello there! Guys I want to share with you quite important information, which will be useful for everyone and especially for some guys who now are studying at the universities or colleges, because I'm a student too and work apart of studying so it is quite important for me to do good my work and study of course in order to study quite well I should protect my writing research and other thesis works, and I know that I alone cannot conduct a good research so I adressed to the paper land writing service where you can order a good essay and apart from it also receive the powerpoint topics on it

Ciana Langham said...

Hey there! When it comes to writing papers many people feel uncomfortable but not me. I found one cool writing service that helped me a lot with the writing philosophical approaches to ethics It makes the writing process easier and quicker.

sara mohamed said...

شركة تنظيف منازل بجازان
شركة تنظيف منازل
شركة تنظيف بأبوعريش جازان
شركة تنظيف بأبوعريش
شركة تنظيف كنب بجازان
شركة تنظيف كنب
شركة عزل مسابح بجازان
شركة عزل مسابح
شركة عزل خزانات بجازان
شركة عزل خزانات
شركة عزل مسابح بجازان
شركة عزل مسابح
شركة عزل اسطح بجازان
شركة عزل اسطح
شركة مكافحة حشرات بجازان
شركة مكافحة حشرات
شركة تنظيف المجالس في جازان
شركة تنظيف المجالس
شركة تنظيف موكيت بجازان
شركة تنظيف موكيت
شركة تنظيف فلل بجازان
شركة تنظيف فلل
شركة تنظيف سجاد بجازان
شركة تنظيف سجاد

Dakota Leest said...

When I am assigned to write an essay, I am always in panic. I hate writing. I am scared to get a low grade that is why I hire professional writing service https://essays-writer.net/health-care-research-topics-for-argumentative-essay-best-ideas.html. It saves my time and nerves.

jonjones said...

You need to submit an essay soon and you don't know how to write it correctly and on what topic? Having trouble writing? I think you should take advantage of this writing tips and pass your work perfectly!

Online Assignment Help said...

Checking for matlab assignment experts
? Well then, My Assignment Experts are there to assist and guide you with Matlab Assignments by clearing and solving doubts. We are cheap and Budget-friendly, offering discounts and coupons. We are one of the best websites for Matlab Assignment help.