Why dont you try a Startup Servlet which can have <load-on-startup> which will fire 
the init() method of the servlet after your ear deployment is complete.

Cheers,
Magesh

On 6/25/03 1:00 PM, Ittay Dror <[EMAIL PROTECTED]> wrote:
>Hello,
>
>I want to be able to run some code that calls EJBs at the end of 
>my ear
>deployment. I've tried to do this by creating an MBean, and putting 
>the
>code in its start() method. My problem is that the MBean starts before
>the EJBs are deployed. I've tried putting a <depends> on the object
>names JBoss gives to these beans (in domain jboss.j2ee), but then 
>the
>code is called before JBoss is able to create the beans. There is
>another way, which is to <depends> the MBean on the EJBModule. However,
>JBoss recognizes this by the full path of the jars, which may change 
>in
>different computers.
>
>Any help is appreciated,
>Thank you,
>Ittay
>
>
>-- 
>=======================================
>Ittay Dror ([EMAIL PROTECTED])
>User Space, R&D
>Qlusters Inc.
>Tel: +972-3-6081956 Fax: +972-3-6081841
>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by: INetU
>Attention Web Developers & Consultants: Become An INetU Hosting Partner.
>Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
>INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
>_______________________________________________
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>



**********************************************************************
This email and its attachments are intended for the above 
named only and may be confidential.  If they have come to 
you in error, you must take no action based on them, nor 
must you copy or show them to anyone; please reply to this 
email and highlight the error.
Security Warning: Please note that this email has been 
created in the knowledge that the internet email is not a 
100% secure communications medium.  We advise that you 
understand and observe this lack of security when emailing us.
Viruses:  Although we have taken steps to ensure that this 
email and attachments are free from any virus, we advise 
that in keeping with good computing practice the recipient 
should ensure they are actually virus free.
If you have received this email in error please notify:
[EMAIL PROTECTED]
**********************************************************************



-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to