|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.ejb3.timerservice.naming.TimerServiceBinder
public class TimerServiceBinder
Responsible for binding TimerService into JNDI at a internal JNDI name.
The internal JNDI name is meant to be used by EJB3 internal implementation and isn't meant to be used by user deployments. User deployments are expected to use the java:comp/TimerService JNDI name, as dictated by EJB3 spec. For further details of accessing TimerService in user deployments, refer the EJB3.0/EJB3.1 spec
The default JNDI name to which the TimerService is bound is java:internal/TimerService.
This can be overriden by using the TimerServiceBinder(String, Context)
| Constructor Summary | |
|---|---|
TimerServiceBinder()
Constructs TimerServiceBinder |
|
TimerServiceBinder(javax.naming.Context ctx)
Constructs a TimerServiceBinder |
|
TimerServiceBinder(java.lang.String jndiName)
Constructs a TimerServiceBinder |
|
TimerServiceBinder(java.lang.String jndiName,
javax.naming.Context ctx)
Constructs a TimerServiceBinder |
|
| Method Summary | |
|---|---|
javax.naming.Context |
getContext()
Returns the Context to which the TimerService is bound |
java.lang.String |
getTimerServiceJNDIName()
Returns the jndi name to which the TimerService will be bound
by this TimerServiceBinder |
void |
start()
Binds the TimerService to jndiName under context |
void |
stop()
Unbinds TimerService from jndiName under context |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimerServiceBinder()
TimerServiceBinder
Instantiates a new InitialContext to bind the TimerService
public TimerServiceBinder(java.lang.String jndiName,
javax.naming.Context ctx)
TimerServiceBinder
jndiName - The jndi name to which the TimerService should be boundctx - The naming context to which the TimerService should be bound
java.lang.IllegalArgumentException - If either of jndiName or ctx is nullpublic TimerServiceBinder(java.lang.String jndiName)
TimerServiceBinder
jndiName - The jndi name to which the TimerService is to be boundpublic TimerServiceBinder(javax.naming.Context ctx)
TimerServiceBinder
ctx - The naming context to which the TimerService has to be bound| Method Detail |
|---|
public javax.naming.Context getContext()
Context to which the TimerService is bound
public java.lang.String getTimerServiceJNDIName()
TimerService will be bound
by this TimerServiceBinder
public void start()
throws javax.naming.NamingException
TimerService to jndiName under context
javax.naming.NamingException - If there is any exception during the bind operation
public void stop()
throws javax.naming.NamingException
TimerService from jndiName under context
javax.naming.NamingException - If there is any exception during the bind operation
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||