flux.j2ee
Interface EjbListener

All Known Subinterfaces:
DynamicEjbEntityAction, DynamicEjbSessionAction, EjbEntityAction, EjbSessionAction

public interface EjbListener

Used to create and invoke EJBs.

Author:
Copyright 2014 Flux Corporation. All rights reserved.

Method Summary
 java.lang.Class getListenerHome()
          Returns the home of the listener that receives a callback.
 java.lang.String getListenerHomeAsString()
          Returns the home of the listener that receives a callback.
 java.lang.String getListenerJndiName()
          Returns the JNDI name of the listener that receives a callback.
 void setListener(java.lang.String jndiName, java.lang.Class home)
          Sets the listener that receives a callback.
 void setListener(java.lang.String jndiName, java.lang.String home)
          Sets the listener that receives a callback.
 

Method Detail

getListenerHome

java.lang.Class getListenerHome()
                                throws EngineException
Returns the home of the listener that receives a callback. Returns the same property as getListenerHomeAsString().

Returns:
The home interface of the EJB.
Throws:
EngineException - If a system error occurs.
See Also:
getListenerHomeAsString()

getListenerHomeAsString

java.lang.String getListenerHomeAsString()
Returns the home of the listener that receives a callback. Returns the same property as getListenerHome().

Returns:
The fully-qualified name of the home interface class of the EJB.
See Also:
getListenerHome()

getListenerJndiName

java.lang.String getListenerJndiName()
Returns the JNDI name of the listener that receives a callback.

Returns:
The JNDI name of the EJB.

setListener

void setListener(java.lang.String jndiName,
                 java.lang.Class home)
Sets the listener that receives a callback. Sets the same property as setListener(String, String).

Parameters:
jndiName - The JNDI name of the EJB.
home - The home interface of the EJB.
See Also:
setListener(String, String)

setListener

void setListener(java.lang.String jndiName,
                 java.lang.String home)
Sets the listener that receives a callback. Sets the same property as setListener(String, Class).

Parameters:
jndiName - The JNDI name of the EJB.
home - The fully-qualified name of the home interface class of the EJB.
See Also:
setListener(String, Class)


© 2014 Flux Corporation. All rights reserved.