RE: [JBoss-user] Same J2EE application, multiple instance, different database

2002-09-23 Thread Leigh Wanstead

Dear dim,

That is too much trouble. In orion, just simply rename ear file and specify
in server.xml to deploy. And database setting can be put into
application-deployments sub directory. There is no need to modify ear to do
that.

Can I run two copy of jboss server instance on same machine using different
configurations? I really don't want to change ear files.

Best Regards
Leigh

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Dmitri
Colebatch
Sent: Tuesday, September 24, 2002 3:39 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Same J2EE application, multiple instance,
different database


JNDI is global, so you'll need to specify different jndi names for all your
beans (afaik).

hth

cheers
dim

- Original Message -----
From: "Leigh Wanstead" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 24, 2002 12:11 PM
Subject: RE: [JBoss-user] Same J2EE application, multiple instance,
different database


> Dear dim,
>
> I created two ear file with differnt configuration, but I face following
> exception.
>
> javax.management.InstanceAlreadyExistsException:
> Management:jnidName=ejb/saturn/order/OrderMsgManager
>
> It seem that ejb entity got duplicate. How to solve this one.
>
> Thanks
> Leigh
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Dmitri
> Colebatch
> Sent: Monday, September 23, 2002 5:27 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Same J2EE application, multiple instance,
> different database
>
>
> just set the datasource in your jaws.xml and jboss.xml as appropriate, to
> point to different databases (which you will also need to configure).
>
> I assume that atm you have jboss set up with one datasource.  What you
will
> need to to is create additional datasources (in jboss.jcml) and on each
> different instance of your application, change the config to point to the
> appropriate database.
>
> cheers
> dim
>
> - Original Message -
> From: "Leigh Wanstead" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, September 23, 2002 3:05 PM
> Subject: [JBoss-user] Same J2EE application, multiple instance, different
> database
>
>
> > Hello everyone,
> >
> > I got a J2EE application, I want to deploy to JBoss-2.4.3_Jetty-3.1.3-1,
I
> > want multiple instances of same application, each instance point to a
> > different database which is the same structure, but different content?
How
> > can I achieve it? I do not want to run multiple copy of run.bat point to
> > different config directory.
> >
> > Thanks in advance.
> >
> > Best Regards
> > Leigh
> >
> >
> >
> >
> > ---
> > 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
>



---
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] Same J2EE application, multiple instance, different database

2002-09-23 Thread Leigh Wanstead

Dear dim,

I created two ear file with differnt configuration, but I face following
exception.

javax.management.InstanceAlreadyExistsException:
Management:jnidName=ejb/saturn/order/OrderMsgManager

It seem that ejb entity got duplicate. How to solve this one.

Thanks
Leigh



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Dmitri
Colebatch
Sent: Monday, September 23, 2002 5:27 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Same J2EE application, multiple instance,
different database


just set the datasource in your jaws.xml and jboss.xml as appropriate, to
point to different databases (which you will also need to configure).

I assume that atm you have jboss set up with one datasource.  What you will
need to to is create additional datasources (in jboss.jcml) and on each
different instance of your application, change the config to point to the
appropriate database.

cheers
dim

- Original Message -
From: "Leigh Wanstead" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 23, 2002 3:05 PM
Subject: [JBoss-user] Same J2EE application, multiple instance, different
database


> Hello everyone,
>
> I got a J2EE application, I want to deploy to JBoss-2.4.3_Jetty-3.1.3-1, I
> want multiple instances of same application, each instance point to a
> different database which is the same structure, but different content? How
> can I achieve it? I do not want to run multiple copy of run.bat point to
> different config directory.
>
> Thanks in advance.
>
> Best Regards
> Leigh
>
>
>
>
> ---
> 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



[JBoss-user] Same J2EE application, multiple instance, different database

2002-09-22 Thread Leigh Wanstead

Hello everyone,

I got a J2EE application, I want to deploy to JBoss-2.4.3_Jetty-3.1.3-1, I
want multiple instances of same application, each instance point to a
different database which is the same structure, but different content? How
can I achieve it? I do not want to run multiple copy of run.bat point to
different config directory.

Thanks in advance.

Best Regards
Leigh




---
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] How do JBoss handle other application change database content?

2002-03-21 Thread Leigh Wanstead

Thanks dain and danch for your quick reply.

It seems someone have to make a choice on performance. Is that in JBoss 3.0
cluster must use commit option B or C or D not A?

-Original Message-
From: Dain Sundstrom [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 9:14 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] How do JBoss handle other application change
database content?


Leigh,

It depends on the commit option specified for the entity.  If you use
commit option B or C, then the internal data will be updated between
transactions.  The data for an entity is loaded at the beginning of the
transaction.  The commit option is specified in the jboss.xml file.  For
more information on commit options see the EJB specification.

-dain

Leigh Wanstead wrote:

> Hello everyone,
>
> I got a question regarding to how do JBoss handle other application change
> database content. Let's say another c application use odbc to change some
> data, will JBoss entity bean update its internal content?
>
> Thanks in advance.
>
> Best Regards
> Leigh
>
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>



___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] How do JBoss handle other application change database content?

2002-03-21 Thread Leigh Wanstead

Hello everyone,

I got a question regarding to how do JBoss handle other application change
database content. Let's say another c application use odbc to change some
data, will JBoss entity bean update its internal content?

Thanks in advance.

Best Regards
Leigh



___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] How to detect application is running in JBoss?

2002-02-25 Thread Leigh Wanstead

Hello everyone,

How can I detect application is running in JBoss environment not orion in
code? Is there any standard way to do that?

Thanks in advance

Leigh



___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Copy protection

2002-02-20 Thread Leigh Wanstead

Hello everyone,

I am not sure if this is a correct place to ask. Anyway, here is the
question.

How to protect your ear files? I mean if you deploy ear into application
server, how you prevent others simply copy this ear to another application
server? What 3rd party tools would you recommend?

Thanks in advance.

Best Regards
Leigh



___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] AutoDeploy

2001-08-12 Thread Leigh Wanstead

Hello everyone,

I am working on a project which contains around 10 jars which contains
around 15 ejbs.

I got a problem while I depoly one ear, JBoss print a stack information
about jaws.xml error, but I can not find which ejb cause that error. Of
course, compile is ok.

Does anyone know how to point out which ejb deploy cause error?

JBoss-2.2.2_Tomcat-3.2.2

Thanks in advance.

Leigh



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Velocity & JBoss

2001-05-15 Thread Leigh Wanstead

Hello everyone,

I use Velocity as my web interface and JBoss as J2EE. In velocity you need
to get a location to get template files, but I can not figure out where I
specify it in WEB-INF\conf\velocity.properties.
file.resource.loader.path = ./webapps/forumdemo/template

Where is the root directory relative to servelet running by JBoss & Tomcat?

Anyone knows how to solve it?

Thanks in advance.

Leigh



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user