[EJB3] - How to use ejb3 in ejb2 using xdoclet
by bharath sadanagiri
bharath sadanagiri [http://community.jboss.org/people/jayabharath] created the discussion
"How to use ejb3 in ejb2 using xdoclet"
To view the discussion, visit: http://community.jboss.org/message/569647#569647
--------------------------------------------------------------
Hi,
We have an EJB2 project, in this project xdoclets have been used. I have written an EJB3.0 stateless session bean, I am trying to use the EJB3.0 stateless SB in 2.0 MDB that has xdoclets. I have declared like the following
* @jboss.depends
* name="jboss.j2ee:jndiName=ERPayrollReceiver/AuditService/local,service=EJB"
*
* @ejb.ejb-ref ejb-name="AuditService"
* view-type="local"
* ref-name="ejb/AuditServiceLocal"
But I am getting the following compile time exception.
[ejbdoclet] Generating EJB deployment descriptor (ejb-jar.xml).
[ejbdoclet] (XDocletMain.start 53 ) Running XDoclet failed.
[ejbdoclet] (XDocletMain.start 54 ) <<No such EJB defined: AuditService>>
[ejbdoclet] C:\SVN_DAS\ERPush\build\macros-include.xml:15: XDoclet failed.
[ejbdoclet] at xdoclet.DocletTask.start(DocletTask.java:471)
Any help can be appreciated.
Thanks,
Bharath
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/569647#569647]
Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 5 months
[Datasource Configuration] - question on securing a datasource
by Hans Williamson
hswritter [http://community.jboss.org/people/hswritter] created the discussion
"question on securing a datasource"
To view the discussion, visit: http://community.jboss.org/message/570602#570602
--------------------------------------------------------------
I'm currently using an SLSB that validates a user's login to a database where the database is configured to lock the user's account after several bad password attempts. If I have a previous valid connection for a user still active in the jboss database connection pool and a new login attempt has locked the user's account, I find an application can still attempt to 'guess' the user's password until the previous active connection in the pool expires due to the idle timeout setting. An application can keep guessing the user's password and if it gets it correct, the previous active connection in the pool allows the appliction to connect to the database even if it is originating from a different ip address. Is there a way I can get a reference to the jboss database pool to flush out active connections for this situation or another way to make this more secure?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/570602#570602]
Start a new discussion in Datasource Configuration at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 5 months