File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
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:
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: EJB Runtime Configuration
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
| Powered by
Copyright © 1998-2013