Re: [JBoss-user] Configuration for JBoss Startup

2003-09-03 Thread Sheldon Hearn
On (2003/09/03 07:33), sun zheng wrote:

> well, now the target is aim to configure a mbean to warm up those
> slsb. However, I still dunno what to do. will you please offer me
> a very detail example?

This is very difficult, because I don't know what you need to do.

My suggestion would be:

1) Adjust your stateless session beans to offload the expensive lookup
   operations to a Singleton.  For example, they could call a lookup()
   operation on the Singleton.

2) Provide a warmup method on the Singleton (calling it warmup(), for
   example), that does the lookup operations in advance and stores
   the results so that they're available via lookup().

3) Add whatever refresh logic you need, to lookup(), to ensure that data
   is updated when necessary, but taken from the stored values whenever
   possible.

4) Now implement an MBean, whose constructor calls its warmup() method.
   For convenience, you may want to make warmup() available in the
   interface, so that you can invoke it manually from the jmx-console.

   An MBean is a "managed bean", part of the Java Management Extensions
   (JMX) specification.

   Chapter 2 of the O'Reilly book "Java Management Extensions" provides
   an excellent introduction to writing your first MBean.  I downloaded
   chapter 2 of this book from somewhere, but can't remember where.
   I've been sloppy with my notes lately. :-(

   You can view the book online if you have a safari.oreilly.com
   subscription.  If you don't have a subscription, you may be able
   to view the book anyway with a 14 day trial.

   Note that, for this to work, your MBean and your SLSB must run in the
   same container.

5) Create a jboss service descriptor for your MBean and place the
   descriptor in server/default/deploy.

   This is where you might the most difficulty, because documentation
   isn't free.  I've attached a simple example of one of my MBean
   descriptors in the deploy directory.

   In your case, I don't think you need to worry about dependencies.
   Just make sure that the jar containing your singleton is in
   server/default/lib, so that it's available to both your EJB and your
   MBean.

Note that I am _not_ a J2EE expert.  I just hate to see people getting
frustrated because they can't explain what they want to the satisfaction
of the experts[1].  You may get better advice from someone else.

Good luck!

Ciao,
Sheldon.

[1] Note to the experts; I know what it's like on your side of the fence
as well.  This isn't a dig at you.


-- abmaildelivery-service.xml --











  
   
  




---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Configuration for JBoss Startup

2003-09-02 Thread Meyer-Willner, Bernhard
Why don't you implement a Singleton that has a map or whatever for storing
the data you need. IMHO it would be good enough, if this Singleton data
cache is initialized the first time a user requests it
(Singleton.getInstance()). If you want the Singleton initialized before the
first users uses the app, use an MBean, the scheduler (firing up a startup),
or maybe easiest and most standard way a servlet that implements a
ServletContextListener. You could then use the methode contextInitialized()
to implement the necessary logic.

Cheers,
Bernie

-Ursprüngliche Nachricht-
Von: sun zheng [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 2. September 2003 17:26
An: [EMAIL PROTECTED]
Betreff: Re: [JBoss-user] Configuration for JBoss Startup


Hi,

Please help me to solve the problem  :( do not escape the question by
your ancestors...

We have some 'proxy' information stored in stateless session beans, so that
they are available for the users very fast. At start-time those SlSB read
the data from database or via a soap-service from remote server which is not
part of our network (VPN is used).
That's take some time. So the first user in the moment has to wait a lot of
time before his requests are satisfiy. To optimize the process it seems
helpfull that those beans are started direct after the start of JBoss.

with best wishes

Zheng Sun

_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

This e-mail and any attachment is for authorised use by the intended recipient(s) 
only. It may contain proprietary material, confidential information and/or be subject 
to legal privilege. It should not be copied, disclosed to, retained or used by, any 
other party. If you are not an intended recipient then please promptly delete this 
e-mail and any attachment and all copies and inform the sender. Thank you.

LogicaCMG global sponsors, Gartner Symposium, Cannes, 4th -7th November 2003

http://symposium.gartner.com/story.php.id.3323.s.5.html

Please note that LogicaCMG does not have control over content from,or availability of, 
this website


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Configuration for JBoss Startup

2003-09-02 Thread Holger Baxmann
On 02 Sep 2003 14:01:04 +0100, Adrian Brock 
<[EMAIL PROTECTED]> wrote:

On Tue, 2003-09-02 at 09:58, Holger Baxmann wrote:
On Tue, 2 Sep 2003 10:02:39 +0200, Sacha Labourey 
<[EMAIL PROTECTED]> wrote:

> Guys are mainly located in the USA?!? Joking?!? ;)
>
> Well, Adrian is neither in the USA or in Europe, he is in UK ;)
>
since 1066 ;-)
I have Saxon blood, at least some of my relatives moved from Germany
before then :-)
... to Hastings?

Is W. your MI ?

;-))

cu
bax
Regards,
Adrian
bax

> Why do you want to "start" your SLSB? What are you trying to achieve?
>
> Cheers,
>
>
>
> Sacha
>
>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:jboss-user->> 
[EMAIL PROTECTED] On Behalf Of sun zheng
>> Sent: mardi, 2 septembre 2003 09:58
>> To: [EMAIL PROTECTED]
>> Subject: Re: [JBoss-user] Configuration for JBoss Startup
>>
>>
>> Hi all,
>>
>> It's suprised me that there are such many helpful reply.
>> I appreciate you guys very much! I do not know why,
>> but my msgs are always poseponed more than one hour,
>> so that I could not join your talk. :(
>>
>> Actually, I am a system admin who works in linux to
>> configure tomcat, jboss, ant, apache for the project.
>> I never write any jsp code before. perhaps some advice
>> from you guys are too difficult for me to do :)
>>
>> Just now my boss told me that we need to extraly
>> start up all stateless session bean which seems has not
>> been done by JBoss startup. I am in europe and I aware
>> you warmhearted guys locates in states, so I take the
>> left 4 hours before you getting up to "delve" mbean
>> which sounds like the breaking point.
>>
>> with best wishes
>>
>> Zheng Sun
>>
>> _
>> Help STOP SPAM with the new MSN 8 and get 2 months FREE*  >> 
http://join.msn.com/?page=features/junkmail
>>
>>
>>
>> ---
>> This sf.net email is sponsored by:ThinkGeek
>> Welcome to geek heaven.
>> http://thinkgeek.com/sf 
___
>> JBoss-user mailing list
>> [EMAIL PROTECTED] >> 
https://lists.sourceforge.net/lists/listinfo/j> boss-user
>>
>>
>>
>
>
>
>
> ---
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Configuration for JBoss Startup

2003-09-02 Thread sun zheng
Hi,

Please help me to solve the problem  :( do not escape the question by
your ancestors...
We have some 'proxy' information stored in stateless session beans, so that
they are available for the users very fast. At start-time those SlSB read
the data from database or via a soap-service from remote server which is not
part of our network (VPN is used).
That's take some time. So the first user in the moment has to wait a lot of
time before his requests are satisfiy. To optimize the process it seems
helpfull that those beans are started direct after the start of JBoss.
with best wishes

Zheng Sun

_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Configuration for JBoss Startup

2003-09-02 Thread Adrian Brock
On Tue, 2003-09-02 at 09:58, Holger Baxmann wrote:
> On Tue, 2 Sep 2003 10:02:39 +0200, Sacha Labourey 
> <[EMAIL PROTECTED]> wrote:
> 
> > Guys are mainly located in the USA?!? Joking?!? ;)
> >
> > Well, Adrian is neither in the USA or in Europe, he is in UK ;)
> >
> 
> since 1066 ;-)

I have Saxon blood, at least some of my relatives moved from Germany
before then :-)

Regards,
Adrian

> 
> bax
> 
> > Why do you want to "start" your SLSB? What are you trying to achieve?
> >
> > Cheers,
> >
> >
> >
> > Sacha
> >
> >> -Original Message-
> >> From: [EMAIL PROTECTED] [mailto:jboss-user- 
> >> [EMAIL PROTECTED] On Behalf Of sun zheng
> >> Sent: mardi, 2 septembre 2003 09:58
> >> To: [EMAIL PROTECTED]
> >> Subject: Re: [JBoss-user] Configuration for JBoss Startup
> >>
> >>
> >> Hi all,
> >>
> >> It's suprised me that there are such many helpful reply.
> >> I appreciate you guys very much! I do not know why,
> >> but my msgs are always poseponed more than one hour,
> >> so that I could not join your talk. :(
> >>
> >> Actually, I am a system admin who works in linux to
> >> configure tomcat, jboss, ant, apache for the project.
> >> I never write any jsp code before. perhaps some advice
> >> from you guys are too difficult for me to do :)
> >>
> >> Just now my boss told me that we need to extraly
> >> start up all stateless session bean which seems has not
> >> been done by JBoss startup. I am in europe and I aware
> >> you warmhearted guys locates in states, so I take the
> >> left 4 hours before you getting up to "delve" mbean
> >> which sounds like the breaking point.
> >>
> >> with best wishes
> >>
> >> Zheng Sun
> >>
> >> _
> >> Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
> >> http://join.msn.com/?page=features/junkmail
> >>
> >>
> >>
> >> ---
> >> This sf.net email is sponsored by:ThinkGeek
> >> Welcome to geek heaven.
> >> http://thinkgeek.com/sf ___
> >> JBoss-user mailing list
> >> [EMAIL PROTECTED] 
> >> https://lists.sourceforge.net/lists/listinfo/j> boss-user
> >>
> >>
> >>
> >
> >
> >
> >
> > ---
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> >



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Configuration for JBoss Startup

2003-09-02 Thread sun zheng
Hi all,

Guys are mainly located in the USA?!? Joking?!? ;)
I made the conclusion because I waited for the whole morning yesterday 
without
any reply but from the cet 2:00pm the helpful answers grew up. :)

Why do you want to "start" your SLSB? What are you trying to achieve?
Let's my boss to explain it.
We have some 'proxy' information stored in stateless session beans, so that 
they are available for the users very fast. At start-time those SlSB read 
the data from database or via a soap-service from remote server which is not 
part of our network (VPN is used).
That's take some time. So the first user in the moment has to wait a lot of 
time before his requests are satisfiy. To optimize the process it seems 
helpfull that those beans are started direct after the start of JBoss.

with best wishes

Zheng Sun

_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Configuration for JBoss Startup

2003-09-02 Thread Holger Baxmann
On Tue, 2 Sep 2003 10:02:39 +0200, Sacha Labourey 
<[EMAIL PROTECTED]> wrote:

Guys are mainly located in the USA?!? Joking?!? ;)

Well, Adrian is neither in the USA or in Europe, he is in UK ;)

since 1066 ;-)

bax

Why do you want to "start" your SLSB? What are you trying to achieve?

Cheers,



Sacha

-Original Message-
From: [EMAIL PROTECTED] [mailto:jboss-user- 
[EMAIL PROTECTED] On Behalf Of sun zheng
Sent: mardi, 2 septembre 2003 09:58
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Configuration for JBoss Startup

Hi all,

It's suprised me that there are such many helpful reply.
I appreciate you guys very much! I do not know why,
but my msgs are always poseponed more than one hour,
so that I could not join your talk. :(
Actually, I am a system admin who works in linux to
configure tomcat, jboss, ant, apache for the project.
I never write any jsp code before. perhaps some advice
from you guys are too difficult for me to do :)
Just now my boss told me that we need to extraly
start up all stateless session bean which seems has not
been done by JBoss startup. I am in europe and I aware
you warmhearted guys locates in states, so I take the
left 4 hours before you getting up to "delve" mbean
which sounds like the breaking point.
with best wishes

Zheng Sun

_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf ___
JBoss-user mailing list
[EMAIL PROTECTED] 
https://lists.sourceforge.net/lists/listinfo/j> boss-user







---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Configuration for JBoss Startup

2003-09-02 Thread Holger Baxmann
On 01 Sep 2003 17:24:29 +0100, Alex Hornby <[EMAIL PROTECTED]> wrote:

On Mon, 2003-09-01 at 15:48, Joao Clemente wrote:

Can you detail a bit what "HUGE" i actually? Speed? Latency? Maximum 
number
of users? Memory usage? Cpu usage?
Thanks

I've set jsp precompilation up for a small example project as part of a
training course - the difference in user experience was massive - no
measurements but I'd guess at least 10x faster to load a page the first
time it is viewed.
What would be nice is a "compile JSPs on deploy (rather than first use)"
option in jboss-web.xml so that we don't have to set up Ant tasks to do
it :)
Do you use the jikes for compiling?

yust a hint

bax

Cheers,
Alex.


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Configuration for JBoss Startup

2003-09-02 Thread Sheldon Hearn
On (2003/09/02 07:57), sun zheng wrote:

> Just now my boss told me that we need to extraly
> start up all stateless session bean which seems has not
> been done by JBoss startup.

Could you ask your boss to explain what he is trying to achieve?

Stateless session beans are pooled and service requests on an ad-hoc
basis.  I don't think it makes sense to "start a session bean" when
there is no request to service.

Ciao,
Sheldon.


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] Configuration for JBoss Startup

2003-09-02 Thread Sacha Labourey
Guys are mainly located in the USA?!? Joking?!? ;)

Well, Adrian is neither in the USA or in Europe, he is in UK ;)

Why do you want to "start" your SLSB? What are you trying to achieve?

Cheers,



Sacha 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of sun zheng
> Sent: mardi, 2 septembre 2003 09:58
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Configuration for JBoss Startup
> 
> 
> Hi all,
> 
> It's suprised me that there are such many helpful reply.
> I appreciate you guys very much! I do not know why,
> but my msgs are always poseponed more than one hour,
> so that I could not join your talk. :(
> 
> Actually, I am a system admin who works in linux to
> configure tomcat, jboss, ant, apache for the project.
> I never write any jsp code before. perhaps some advice
> from you guys are too difficult for me to do :)
> 
> Just now my boss told me that we need to extraly
> start up all stateless session bean which seems has not
> been done by JBoss startup. I am in europe and I aware
> you warmhearted guys locates in states, so I take the
> left 4 hours before you getting up to "delve" mbean
> which sounds like the breaking point.
> 
> with best wishes
> 
> Zheng Sun
> 
> _
> Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
> http://join.msn.com/?page=features/junkmail
> 
> 
> 
> ---
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED] 
> https://lists.sourceforge.net/lists/listinfo/j> boss-user
> 
> 
> 




---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Configuration for JBoss Startup

2003-09-02 Thread sun zheng
Hi all,

It's suprised me that there are such many helpful reply.
I appreciate you guys very much! I do not know why,
but my msgs are always poseponed more than one hour,
so that I could not join your talk. :(
Actually, I am a system admin who works in linux to
configure tomcat, jboss, ant, apache for the project.
I never write any jsp code before. perhaps some advice
from you guys are too difficult for me to do :)
Just now my boss told me that we need to extraly
start up all stateless session bean which seems has not
been done by JBoss startup. I am in europe and I aware
you warmhearted guys locates in states, so I take the
left 4 hours before you getting up to "delve" mbean
which sounds like the breaking point.
with best wishes

Zheng Sun

_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Configuration for JBoss Startup

2003-09-01 Thread Alex Hornby
On Mon, 2003-09-01 at 15:48, Joao Clemente wrote:

> Can you detail a bit what "HUGE" i actually? Speed? Latency? Maximum number
> of users? Memory usage? Cpu usage?
> Thanks
> 

I've set jsp precompilation up for a small example project as part of a
training course - the difference in user experience was massive - no
measurements but I'd guess at least 10x faster to load a page the first
time it is viewed.

What would be nice is a "compile JSPs on deploy (rather than first use)"
option in jboss-web.xml so that we don't have to set up Ant tasks to do
it :)

Cheers,
Alex.



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Configuration for JBoss Startup

2003-09-01 Thread Joao Clemente

- Original Message - 
From: "Sheldon Hearn" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>


> On (2003/09/01 09:57), Neal Sanche wrote:
>
> > Another option would be to investigate Pre-Compiling your JSPs so that
> > the compilation time won'[t affect the first user on the system.
>
> I've done this with jboss-3.2.1-tomcat-4.1.24 and it makes a HUGE
> difference.


Can you detail a bit what "HUGE" i actually? Speed? Latency? Maximum number
of users? Memory usage? Cpu usage?
Thanks



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


(ignore last message) Re: [JBoss-user] Configuration for JBoss Startup

2003-09-01 Thread Joao Clemente
Sorry for the last message.Forget it.
I had just read "Build optimized Jboss version" message and I tough you're
answering to it. I only notisted the mistake after double-checking the
subjects.
Sorry.



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Configuration for JBoss Startup

2003-09-01 Thread Sheldon Hearn
On (2003/09/01 09:57), Neal Sanche wrote:

> Another option would be to investigate Pre-Compiling your JSPs so that 
> the compilation time won'[t affect the first user on the system. 

I've done this with jboss-3.2.1-tomcat-4.1.24 and it makes a HUGE
difference.

Detials at:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper-howto.html

Specifically, see "Production Configuration" and "Web Application
Compilation".  If you use tag libraries, be sure to check "Upgrading",
the contents of which covers a problem that nearly bit my ass clean off.

Ciao,
Sheldon.


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Configuration for JBoss Startup

2003-09-01 Thread sun zheng
Thank you ! however, my boss is sure that only to configure xml files of 
JBoss
can achieve the task.. your way is also right, but we even dunno which beans
the JBoss does not startup and need be done by us.

with best wishes

Sun Zheng



You could deploy a scheduler that fires up immediately (NOW) and executes
the required tasks/steps.
-Ursprüngliche Nachricht-
Von: sun zheng [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 1. September 2003 14:18
An: [EMAIL PROTECTED]
Betreff: [JBoss-user] Configuration for JBoss Startup
Hi all,

I get such a task that I can not find any club to achieve it.

My boss asks me to configure JBoss somehow. When JBoss starts up, there are
some beans not being starts up together have to be run until the first user
uses JBoss, which means the first user has to spend much more time than next
users. In order to avoid the case happens again, we want to startup those
beans meanwhile startup JBoss.
How to configure JBoss to fulfill the task ?

with best wishes

Zheng Sun

_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Configuration for JBoss Startup

2003-09-01 Thread Neal Sanche

Another option would be to investigate Pre-Compiling your JSPs so that 
the compilation time won'[t affect the first user on the system. 
There was a recent thread on how to do that, and if you want an 
example, I've put a framework that achieves this into my website at 
the bottom of the 'My JBoss Framework' story at 
http://www.nsdev.org/jboss

(If you're using JSPs... which you didn't actually say, so I'm making 
an assumption.)

Enjoy.

-Neal

On September 1, 2003 08:17 am, sun zheng wrote:
> Hi all,
>
> I get such a task that I can not find any club to achieve it.
>
> My boss asks me to configure JBoss somehow. When JBoss starts up,
> there are some beans not being starts up together have to be run
> until the first user uses JBoss, which means the first user has to
> spend much more time than next users. In order to avoid the case
> happens again, we want to startup those beans meanwhile startup
> JBoss.
>
> How to configure JBoss to fulfill the task ?
>
> with best wishes
>
> Zheng Sun
>
> _
> Protect your PC - get McAfee.com VirusScan Online
> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
>
>
> ---
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] Configuration for JBoss Startup

2003-09-01 Thread Srinivas Malladi
Write an MBean. The MBean must extend ServiceMBeanSupport. For example, 
"public class ConfigStartup extends ServiceMBeanSupport implements ConfigStartupMBean" 
 
and an Interface "public interface ConfigStartupMBean extends ServiceMBean {}". This 
interface implements start and stop methods. Jboss will invoke these methods when it 
starts. The Mbean must be deployed by sar. 

Example of jboss-service.xml





   
   


 


-Original Message-
From: Adrian Brock [mailto:[EMAIL PROTECTED]
Sent: Monday, September 01, 2003 9:08 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Configuration for JBoss Startup


Investigate MBeans or bean shell scripts.

Regards,
Adrian

On Mon, 2003-09-01 at 13:17, sun zheng wrote:
> Hi all,
> 
> I get such a task that I can not find any club to achieve it.
> 
> My boss asks me to configure JBoss somehow. When JBoss starts up, there are 
> some beans not being starts up together have to be run until the first user 
> uses JBoss, which means the first user has to spend much more time than next 
> users. In order to avoid the case happens again, we want to startup those 
> beans meanwhile startup JBoss.
> 
> How to configure JBoss to fulfill the task ?
> 
> with best wishes
> 
> Zheng Sun
> 
> _
> STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
> http://join.msn.com/?page=features/junkmail
> 
> 
> 
> ---
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Configuration for JBoss Startup

2003-09-01 Thread Adrian Brock
Investigate MBeans or bean shell scripts.

Regards,
Adrian

On Mon, 2003-09-01 at 13:17, sun zheng wrote:
> Hi all,
> 
> I get such a task that I can not find any club to achieve it.
> 
> My boss asks me to configure JBoss somehow. When JBoss starts up, there are 
> some beans not being starts up together have to be run until the first user 
> uses JBoss, which means the first user has to spend much more time than next 
> users. In order to avoid the case happens again, we want to startup those 
> beans meanwhile startup JBoss.
> 
> How to configure JBoss to fulfill the task ?
> 
> with best wishes
> 
> Zheng Sun
> 
> _
> STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
> http://join.msn.com/?page=features/junkmail
> 
> 
> 
> ---
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Configuration for JBoss Startup

2003-09-01 Thread Meyer-Willner, Bernhard
You could deploy a scheduler that fires up immediately (NOW) and executes
the required tasks/steps.

-Ursprüngliche Nachricht-
Von: sun zheng [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 1. September 2003 14:18
An: [EMAIL PROTECTED]
Betreff: [JBoss-user] Configuration for JBoss Startup


Hi all,

I get such a task that I can not find any club to achieve it.

My boss asks me to configure JBoss somehow. When JBoss starts up, there are 
some beans not being starts up together have to be run until the first user 
uses JBoss, which means the first user has to spend much more time than next

users. In order to avoid the case happens again, we want to startup those 
beans meanwhile startup JBoss.

How to configure JBoss to fulfill the task ?

with best wishes

Zheng Sun

_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

This e-mail and any attachment is for authorised use by the intended recipient(s) 
only.  It may contain proprietary material, confidential information and/or be subject 
to legal privilege.  It should not be copied, disclosed to, retained or used by, any 
other party.  If you are not an intended recipient then please promptly delete this 
e-mail and any attachment and all copies and inform the sender.  Thank you.


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user