This week's book giveaway is in the
We're giving away four copies of
and have John Sonmez on-line!
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
EJB and other Java EE Technologies
EJB Runtime Configuration
Joined: Apr 06, 2011
Apr 06, 2011 13:20:30
I'm a newbie to
and I'm using an
to start a bean that calls a URL, I need some way of configuring that url at runtime.
If I was using spring I would just make the URL a constructor argument and initialize the bean in xml. However, I am using JEE.
Can someone tell me the proper way to make a bean have a configurable value in JEE 6?
Joined: Apr 14, 2004
Apr 07, 2011 02:28:27
You could read the value from somewhere.
Joined: May 14, 2004
Apr 07, 2011 07:31:02
You can use environment entries.
They can be declared using <env-entry> element in ejb-jar.xml.
With EJB 3.0 you can inject them in the bean as you do in the Spring.
I agree. Here's the link:
subject: EJB Runtime Configuration
Passing connection object as arguement in method calls?
Websphere, Entity bean called by MDB
Pushing p2p TemporaryQueues
XPost: How to specify a simple JNDI name for my EJB in WebLogic 10 (with annotations)?
How we make entitybean as database independent
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014