File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Java
»
EJB and other Java EE Technologies
Author
EJB Runtime Configuration
Dan Fow
Greenhorn
Joined: Apr 06, 2011
Posts: 4
posted
Apr 06, 2011 13:20:30
0
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
Joined: Apr 14, 2004
Posts: 10336
I like...
posted
Apr 07, 2011 02:28:27
0
You could read the value from somewhere.
JavaRanch FAQ
HowToAskQuestionsOnJavaRanch
amit punekar
Ranch Hand
Joined: May 14, 2004
Posts: 488
posted
Apr 07, 2011 07:31:02
0
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
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: EJB Runtime Configuration
Similar Threads
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)?
Passing connection object as arguement in method calls?
How we make entitybean as database independent
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter