Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within EJB and other Jakarta /Java EE Technologies
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
EJB and other Jakarta /Java EE Technologies
EJB Runtime Configuration
Dan Fow
Greenhorn
Posts: 4
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I'm a newbie to
JEE
and I'm using an EJB 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?
Paul Sturrock
Bartender
Posts: 10336
I like...
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
You could read the value from somewhere.
JavaRanch FAQ
HowToAskQuestionsOnJavaRanch
amit punekar
Ranch Hand
Posts: 544
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
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.
regds,
Amit
The happiness of your life depends upon the quality of your thoughts -Marcus Aurelius ... think about this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
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
More...