Sunday, March 4, 2007

EJB 3.0 + Glassfish + JPA + Eclipse

Follow instructions here to create the EJB project in eclipse.

http://www.webagesolutions.com/knowledgebase/javakb/jkb005/index.html

Create the jdbc connection pool and the corresponding resource via the GlassFish admin console.

Now create a persistence.xml fiel in the src/META-INF folder in your project to point to the JDBC resource.

<persistence>
<persistence-unit name=\"myPU\">
<jta-data-source>jdbc/MyDB</jta-data-source>
<properties>
<property name=\"toplink.logging.level\" value=\"FINEST\" />
</properties>
</persistence-unit>
</persistence>

In the bean implementation class use

@PersistenceContext(unitName = "myPU")
protected EntityManager em;

to inject the EntityManager. Change the unitName value to your persistence definition in the persistence.xml.

The exported jar file can be deployed into either the local or a remote glassfish instance.

Stay tuned for the next post on writing a standalone client to access this ejb.

12 comments:

Anonymous said...

http://markonzo.edu [url="http://profiles.friendster.com/cleocin#moreabout"]cleocin[/url] fracture [url="http://www.ecometro.com/Community/members/habeis-tomado-dostinex.aspx"]dostinex[/url] cityix cefinea [url="http://profiles.friendster.com/nizorals#moreabout"]nizoral[/url] illuminates juston [url="http://www.purevolume.com/listeners/Acyclovir"]acyclovir[/url] servicesa kasbas [url="http://blog.tellurideskiresort.com/members/esomeprazole.aspx"]esomeprazole[/url] andrea

Term Papers said...

I have been visiting various blogs for my term papers writing research. I have found your blog to be quite useful. Keep updating your blog with valuable information... Regards

Anonymous said...

Acne is known as pimples, lumps, and plugged pores that rise on the physiognomy, neck, cope with, shoulders and chest areas.
There is not joined major particular that causes acne and it is stimulated during hormones, put under strain, sexual maturity, sustenance, and other factors.
The sunna can also dry out cold the outer layer of your pellicle encouraging your sebaceous glands to start producing more oil.
No identical is immune to skin blemishes when the conditions are there.
Now you have a defense against acne with [url=http://www.peoplesearchengines.org] Proactiv [/url]

There are simple things your can do to preclude your acne from occurring in the before all place.

In any case be gentle with your face. Unstintingly that is too burning or hyperboreal can trigger your sebaceous glands to through produce oil and impede up your skin.
You should bathe your appearance at least twice a day to preserve the bacteria levels to a minimum.
Do not match your face. The hands bear the most bacteria and you do not to lieu the bacteria here.
You should also move your hands many times a day. This will stop obey the bacteria levels not up to par in case you drink your face.
For women who use makeup don oil available or hypo-allergenic makeup for sore skin.
Men should use antiseptic products for razor burn that are designed to indisputable the pores and moisturize the skin.

Anonymous said...

when does ovulation occur after clomid | clomid 200 mg - buy clomid australia, when do u ovulate on clomid

Anonymous said...

will clomid regulate my period | buy clomid no prescription - clomid without prescription, nolvadex or clomid

Anonymous said...

tamoxifen clomid | http://cheapclomidonline.jimdo.com/#84857 - how to get clomid online, clomid heavy period

Anonymous said...

cycle length on clomid | clomid buy no prescription - 100mg clomid, clomid 50mg et ovulation

Anonymous said...

clomid for men fertility | http://buy-clomid-in-usa.webs.com/#80724 - clomid prescription, baby clomid ovulation calculator check this out

Anonymous said...

Hello everyone, it's my first visit at this web page, and piece of writing is actually fruitful in favor of me, keep up posting these articles or reviews.

Here is my blog post - www.moodlesocial.com
My web page > a local business

Anonymous said...

Υοu have made sоme decent ροints theгe.
I cheсκеd on the web to learn mοгe
about the issue and found most іndiviԁuals wіll go along ωith your viеwѕ on thіѕ ѕіte.


my website tren steroids
Also see my web page > anabolic steroids effects

Anonymous said...

Thanks foг somе other eхcellent aгtiсle.
Wherе else may anyone gеt thаt tуpe of informatіon in suсh аn
іdeal apρroaсh of writing?
I havе a prеsentation neхt weеκ, аnd I am at the ѕearch
for such infοrmation.

My ωeb ѕite lose weight

Unknown said...

Exquisitely professional thoughts. essay writer
I merely hit upon this web site and desired to enunciate that I've definitely delighted in reckoning your blog articles or blog posts. Rest assured I'll subsist pledging to your RSS and I wish you write-up after much more shortly