-
1. Re: .war + .esb
kconner Nov 16, 2007 4:53 AM (in response to gvnanil)"gvnanil" wrote:
Is it possible to have an application which is kind of both an ESB as well as a WEBAPP. For example, I want to have some .jsp pages inside my .esb, which means I need a WEB-INF/web.xml.
Is there a way to do it?
Sure, we have a number of the quickstarts doing this. All you need to do is include the .war file into your .esb archive."gvnanil" wrote:
If not, here is my problem. I want a class to be initialized as soon as the ESB is deployed. Is there a way to do it? I thought of writing a startup servlet to do this. This sounds silly but I couldn't find a way to have a class which is initialized or whose constructor is called as soon as the .esb is deployed.
There are a number of ways to achieve this but it really depends on *why* you need it. Can you tell us more about what you are trying to achieve? -
2. Re: .war + .esb
gvnanil Nov 16, 2007 10:24 AM (in response to gvnanil)My goal is to get a list of destination deployed on JBossMessaging inside JBossESB based on which i'll make a list of destination to do WireTap using StaticRouting to my destined queue/topic. Since the destionations are dynamically created/destroyed, I am trying to make it a timertask.
If I can get a class loaded as soon as my .esb is deployed, I can get this class manage a list of destinations, which updates the jboss-esb.xml internally
[ howz this idea :) ]
this enables the sniffed list of destinations be manageable dynamically by the sniffer application itself :D -
3. Re: .war + .esb
gvnanil Nov 19, 2007 12:52 AM (in response to gvnanil)can somebody from JBoss reply to this post?
I was told that there are many ways to achieve what I intend to: initializing class when .esb is deployed.
How is this done? -
4. Re: .war + .esb
kconner Nov 19, 2007 4:15 AM (in response to gvnanil)"gvnanil" wrote:
can somebody from JBoss reply to this post?
Sure, care to give us the opportunity to? This is a forum and, as such, receives our attention on a 'best-effort' basis. Sometimes it will take a few days for us to reply as we are very busy. Your last response was only posted on Friday. -
-
6. Re: .war + .esb
kconner Nov 19, 2007 4:24 AM (in response to gvnanil)"gvnanil" wrote:
My goal is to get a list of destination deployed on JBossMessaging inside JBossESB based on which i'll make a list of destination to do WireTap using StaticRouting to my destined queue/topic. Since the destionations are dynamically created/destroyed, I am trying to make it a timertask.
If you want to base it on a timer then look at the scheduled_services quickstart."gvnanil" wrote:
If I can get a class loaded as soon as my .esb is deployed, I can get this class manage a list of destinations, which updates the jboss-esb.xml internally
You cannot modify the jboss-esb.xml dynamically but you can certainly create an action similar to the ContentBasedRouter and handle this yourself. -
7. Re: .war + .esb
kconner Nov 19, 2007 4:25 AM (in response to gvnanil)"gvnanil" wrote:
waiting :)
you should have waited a bit longer then, shouldn't you.
This is not the best way to obtain *free* support! -
8. Re: .war + .esb
gvnanil Nov 19, 2007 4:33 AM (in response to gvnanil)tat sounds harsh!!
the reason y i earlier posted again was to remind you.
earlier the responses were faster.. in hours.. this time it took some days.. (first time this happend to me)
i thought may b ppl at ur end missed the post.. so i kinda pinged u guys again..
i dont understand wat makes you get so annoyed after all. i pinged. and i said i m waiting. shud have ended ther. -
9. Re: .war + .esb
gvnanil Nov 19, 2007 4:43 AM (in response to gvnanil)never mind...
thanx kevin.. for ur quick response.