Re: [JBoss-user] Standalone Tomcat and access to JBoss resources

2003-11-17 Thread Georg Schmid
Jon,

that's exactly what I have been looking for! Thanks!

Until now I disabled the JNDI implementation in Tomcat by using the 
-nonaming parameter, effectively disabling the JMX support in Tomcat, 
which depends on it. As this does not work anymore in Tomat 5.x I seemed 
to be locked into Tomcat 4.x. Now I know how to move forward.

People tend to ask, why one should separate Tomcat and JBoss. My 
motivation is to keep the application server free of state, because 
"state is hell". 

Georg

Jon Barnett wrote:

Previously, we've talked about separating coding references from the
physical resources. This is fairly simple with an integrated
JBoss-Tomcat implementation. jboss-web.xml provides the mapping so that
ejb-ref-name -> jndi-name. However, how do you preserve that separation
when you are working with a standalone Tomcat installation? This short
howto explains the Tomcat JNDI resources and how to implement an Object
Factory to support JBoss lookups on a standalone Tomcat server. Again,
aimed more at newbies struggling with enabling simpler portability of
their web applications.
The document and the document/source bundle can be located at
http://www.amitysolutions.com.au/documents/JBossTomcatJNDI-technote.pdf
and http://www.amitysolutions.com.au/downloads/jbosstomcatjndi.tar.gz
respectively.
Hope it is of use.

*---*--*
| Jon Barnett  |
| E-Mail: [EMAIL PROTECTED]   |
| Homepage: http://www.amitysolutions.com.au  Date: 16.11.2003 |
|  |
| Is he not set abuf apone his ringne  |
| As soverane his puple for to lede?   |
| Whi schuld he spare or quhom of schuld he dred   |
| To say the treuth, as he of right is hold?   |
| l.1952,1955 - Lancelot of the Laik   |
*---*--*
 





---
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] Why PHP why not JSP?

2003-01-10 Thread Georg Schmid

I totally agree on the JSTL part for the same reason.

The move to PHP is not really convincing, IMHO.

My concern is: Can you imagine, what a smart marketing guy from
Microsoft could make of this?
It seems that the marketing disaster around Petstore and the TSS
benchmark have not been enough.

Other Java communities keep running on Jive, like
http://community.togethersoft.com/index.jsp, or move to it, like
http://www.javalobby.org/forums.jsp.

I don't know why the J2EE people keep opening doors to let the devil
in...

Regards
Georg

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Hunter
Hillegas
Sent: Friday, January 10, 2003 08:00
To: JBoss User
Subject: Re: [JBoss-user] Why PHP why not JSP?


For those using JSP, make sure you check out JSTL. It really cut a lot
of time out of my last project.

> From: Rod Macpherson <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Thu, 09 Jan 2003 22:15:18 -0800
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Why PHP why not JSP?
> 
> JSPs are an excellent choice for complex dynamic content and when 
> integrating with J2EE applications. PHP is an appropriate technology 
> for relatively static content with a simple underlying storage 
> structure. JSP is still a work in progress and will continue to grow 
> in market share. PHP is also another example of open source crushing 
> most of the commercial products. I just wish JBoss would change the 
> colors once in a while.
> 
> - Original Message -
> From: "Christopher Blunck" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, January 09, 2003 5:45 PM
> Subject: Re: [JBoss-user] Why PHP why not JSP?
> 
> 
>> Does anybody (other than me) find it ironic that the leading open 
>> source application server project uses PHP on it's home page instead 
>> of JSP?
> That's
>> kind of like theserverside.com switching everything over to ASP or 
>> Cold
> Fusion.
>> 
>> Maybe I missed something awhile back (like why you guys switched 
>> over).
>> 
>> 
>> -c
>> 
>> On Thu, Jan 09, 2003 at 07:53:42PM -0800, Sundaram Ramasamy wrote:
>>> Today I visited jboss.org web site, it looks different (with php . I
> don't know much about php.
>>> 
>>> Is there any advantage in PHP compare to JSP?
>>> 
>>> Thanks
>>> 
>>> -SR
>>> 
>> 
>> --
>>   8:40pm  up 80 days, 11:56,  1 user,  load average: 0.51, 0.64, 1.11
>> 
>> 
>> ---
>> This SF.NET email is sponsored by:
>> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! 
>> http://www.vasoftware.com 
>> ___
>> JBoss-user mailing list
>> [EMAIL PROTECTED] 
>> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> 
> ---
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! 
> http://www.vasoftware.com 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED] 
> https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Entity Bean Performance Tuning Help

2002-10-30 Thread Georg Schmid

It seems that my (and, at least to some degree, Peter's) specific
problem is misunderstood.

In my case: the problem is NOT getting the data from the database fast
(the finders execute fast enough).
I think Jboss does not have a problem there, but that's my guess, as I
do not have personal experience
with other app servers.

The performance is lost, when I try to convert the a collection of local
entity bean references
into a collection of value objects. None of the previous posts (except
Peter's) touches upon this subject.

I want to understand and, if possible, solve this 'value object
conversion speed' problem:

  Collection localBeanRefs = localHome.findBySomeCriterion(...); <--
This is not the problem (good job, Dain) !!
  Collection valueObjects = new ArrayList();

  // The following for-loop is way too slow.
  for (Iterator beanIter = localBeanRefs; beanIter.hasNext();) {
LocalBean localBean = (LocalBean)beanIter.next();
ValueObject valueObject = ValueObjectFactory.createValueObject(); //
Same as new ValueObjectImpl();
valueObjects.add( localBean.buildValueObject( valueObject ) ); //
does: valueObject.setAttr1( getAttr1() ); ...
  }

The same using JDBC: 

  ResultSet rows = myJDBCWrapper.executeQuery( query, dataSource ); <--
Needs same amount of time as finder above.
  Collection valueObjects = new ArrayList();

  // This is at least 3 times faster than the for-loop above.
  while (rows.next()) {
ValueObject valueObject = ValueObjectFactory.createValueObject();
valueObject.buildFromRow( rows ); // valueObject.setAttr1(
rows.getString(...) ); etc.
valueObjects.add( valueObject );
  }

The for-loop should be able to convert 1000 local entity bean references
per second or better for simple entity beans.

I am not interested in any CMP vs non-CMP debate. TSS may be a better
place for this.

It would be convenient, if the size of the result sets, that can be
handled using CMP, coincides with the number of rows
you should/could reasonably display in a dialog or page in your
(web-based) GUI. This would remove the need to switch
to raw JDBC, when doing the CMP equivalent of plain vanilla (for
instance) "select * from BeanTable where lastUpdate >= '10/20/2002'"
queries. That's all I hope for. 

CMP will keep getting more powerful over time. Using it is 'Making the
trend work for you'.

Regards
Georg



-Original Message-
From: [EMAIL PROTECTED]
[mailto:jboss-user-admin@;lists.sourceforge.net] On Behalf Of Dain
Sundstrom
Sent: Wednesday, October 30, 2002 01:07
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Entity Bean Performance Tuning Help


Emerson Cargnin - SICREDI Serviços wrote:
> 
> 
> Dain Sundstrom wrote:
> 
>> Emerson,
>>
>> I disagree with you classification that cmp is not usable.  There are
>> many people that find the performance completely with in their 
>> expectations.  It is only when you have a high expectation and a very

>> complex schema that you have problems.
> 
> 
> what I really mean was that cmp would be alot more usable : )
> 
> by the way, we are in in a doubt about a point of architecture : as i 
> discussed before somew time ago, in a very big system (like the 
> financial one i'm on) there is the need to separate the modules of it,

> like one for accounting, other for savings, etc. And each one would 
> need to talk with a couple of others. The problem : to separate and 
> allowing those to be separate deployable, you would have to get rid of

> cmr's and make the modules talk with each other through session 
> facades. In this case even with cmr read-ahead would do nothing to 
> avoid the n*cmr needed to access each entity. And worse, how could I 
> manage the constraints between 2 related (and module separated) 
> entities? one would need to consult the dependent module (via session 
> facade) to see if it could be deleted...
> 
> I don't know what going be the solution, throwing entities away, or
> making up a monolitic system using cmr.
> 
> any suggestions?

Yes, in 4.0 there will be an abstraction layer between the cmp view of 
the world and the physical storage.  This means that it will be possible

to map several cmp beans in different applications to the same store. 
The real trick is keeping the caches in sync and this is where the new 
invalidation code comes into play.  Another change is will be the 
introduction of a domain concept above applications.  Applications in 
the same domain will be able to share a common store manager.  These big

architectural changes are designed to make this type of application 
possible.  (Note: all of these, except the invalidation code, are still 
in the concept stage of development)

-dain



---
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] Entity Bean Performance Tuning Help

2002-10-29 Thread Georg Schmid

Peter,

it's a great relief to see, that I am not the only one...

I have not given up hope yet, but I cannot crank out enough hours to get
to the core of the problem.

In the app I did before the current one, I used the paging and web layer
caching approach you suggest, albeit on a small scale.
Then I embraced EJB and CMP2.0. Despite my current problems I am still
convinced that it was the right decision.

I find it more convenient to put my tables inside a  using the
overflow:auto css style,
so I can simply scroll down the complete list without paging. I am using
the JSTL to do the presentation layer.

Actually I had JBoss running under OptimizeIt two weeks ago, but then I
was distracted 
and now my evaluation license expired.

May be you try to use SwiftMQ (they used to have docs on how to
integrate with Jboss on their website). My company did a performance
comparison against IBM MQ Series, and SwiftMQ was significantly faster
(lean and mean, so to say, but no work flow component etc.).

Regards
Georg



-Original Message-
From: [EMAIL PROTECTED]
[mailto:jboss-user-admin@;lists.sourceforge.net] On Behalf Of Luttrell,
Peter
Sent: Tuesday, October 29, 2002 17:39
To: '[EMAIL PROTECTED]'
Subject: RE: [JBoss-user] Entity Bean Performance Tuning Help


Georg,

I used 2 other non-ejb solutions to get what I needed done.

Cache the dataobjects in the webtier. It will only work in certain
cases, 2/3  in my case. I know it's duplicating work that the ejb
container should do, but if there is noting that can be done to JBoss to
get performance acceptable then...

Paginate the results. Checkout this taglib, it does it all for you
automatically: http://edhill.its.uiowa.edu/display/. Plus my users like
it better because IE can render the pages very fast, compared to the
super long time it takes with large tables.

.peter

-Original Message-
From: Georg Schmid [mailto:georg-schmid@;ti.com]
Sent: Tuesday, October 29, 2002 2:23 AM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] Entity Bean Performance Tuning Help



First of all:

This was only an experiment to check the impact of the
EntitySynchronizationInterceptor on performance. Of course this is
nothing you should do in a real setup. I know what the
EntitySynchronizationInterceptor is for.

I have been using JBoss for almost a year, reading almost all posts on
the Jboss dev, user and cvs mailing lists, as well as searching the
forums regulary, if I have an issue to solve.

My problem is: Creating value objects through calling a method on an
CMP2.0 entity bean takes 3 to 10 times more time than walking through an
equivalent result set of a 'raw' JDBC query. I tried to dig into this
issue by stripping down the interceptor stack !as an experiment! to the
bare minimum. The result of this experiment was, that the
EntitySynchronizationInterceptor is the only interceptor, that changes
performance significantly in my setup. Removing the transaction or
security interceptors did not have any significant impact.

Getting the data from the database into the Jboss server memory is not
the problem. The finder I am using for testing returns a result set with
1000 rows. It uses the default load group. This means that all data is
in memory after the finder has completed, which takes only a few hundred
milliseconds, just like issuing a "select * from BeanTable". For this
reason playing around with page sizes and load groups etc. is pointless.
My experience is that locking has no measurable effect on the
performance (the performance test is strictly single-user). 

The time is lost when I walk through the collection of entity beans
returned by the finder and call a method on each to create the value
objects (one method call per value object). Others have come to the same
conclusion, but I have not found a post that points to a solution of
this problem.

I really would like to be able to do a web page, that displays at most
about 4000 rows, using entity beans and CMP2.0. But with the current
performance I have to switch to direct JDBC calls in my stateless
session beans every time I have to display more than 500 rows (Jboss
3.0.3 running on a dual UltraSparcIII with 4GB memory and an Oracle db
on similar hardware).

This is the issue I am trying to solve. If you could help me with that
I'd really appreciate it. Thanks.

Regards
Georg



-Original Message-
From: [EMAIL PROTECTED]
[mailto:jboss-user-admin@;lists.sourceforge.net] On Behalf Of Bill Burke
Sent: Tuesday, October 29, 2002 07:24
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] Entity Bean Performance Tuning Help


Georg stop spewing nonsenseNever ever take out the synchronization
interceptor!  It registers synchronzations with the TM so that the
entity bean changes get committed!  Please read the for-pay docs or
review the archives.  I have explained this shit over and over.

I've added a EntityLockMonitor MBean to 3.0.4 and higher.  Loo

RE: [JBoss-user] Erroneous deadlock detected???

2002-10-29 Thread Georg Schmid

The behaviour imposed by the pessimistic locking violates the principle
of "least surprise" for most Jboss users, I guess. That's the reason why
you have to answer these questions a million times.

If I am using all the EJB/J2EE/CMP stuff, I expect that I do not have to
care about concurrency, transactions and so on. That's the application
server's business.

So when I get deadlock exceptions the first time two users hit the same
web page concurrently, both accessing the same (bad luck!) entity beans
read-only, I am taken aback. Especially if I'm doing only basic stuff
and nothing fancy.

Regards
Georg



-Original Message-
From: [EMAIL PROTECTED]
[mailto:jboss-user-admin@;lists.sourceforge.net] On Behalf Of Bill Burke
Sent: Tuesday, October 29, 2002 07:16
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] Erroneous deadlock detected???


Queued pessmistic is useful for caching.  Without it you can't cache.
You're wrong that it turns jBoss into single tasking.  It really depends
on your application and there are other settings you can use.  Buy the
for-pay docs(or search the archives, I've answered these questions a
million times before).  It goes into details about locking policies.

Ok, so why did he get deadlock detected?

begin tx1
- create entity > this locks it into tx1
- entity.setX ---> tx1 suspended tx2 starts, deadlock, tx1 has lock.

Besides, you can't do a requiresnew call anyways because the newly
created entity will never have been committed!  Learn what transaction
isolation is.

Bill

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:jboss-user-admin@;lists.sourceforge.net]On Behalf Of Georg 
> Schmid
> Sent: Friday, October 25, 2002 6:14 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [JBoss-user] Erroneous deadlock detected???
>
>
>
> I ran into this same problem a while ago, and I suggested the same (at

> least the thread, that holds the lock, should not be locked out). 
> Somebody wrote a 'SimpleReadWriteEJBLock' class, that seems to achieve

> exactly this, but I could not find any info related to it.
>
> You can also try to play around with the method attribute read-only 
> setting in jboss.xml (see the DTD). To get better concurrency you may 
> consider switching to the Instance Per Transaction configuration (see 
> standardjboss.xml) .
>
> The QueuedPessimisticEJBLock does not make any sense with CMP, IMHO 
> (if you use it, it turns JBoss into a single tasking system).
>
>
> Georg
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:jboss-user-admin@;lists.sourceforge.net] On Behalf Of Jim 
> Crossley
> Sent: Thursday, October 24, 2002 22:06
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Erroneous deadlock detected???
>
>
> Well, it would seem to me that a ThreadLocal instance could help solve

> this problem.  If one thread tries to acquire a lock it already owns, 
> it ought to get it, right?
>
> If we were to apply the same semantics you describe to a simple Java 
> class, then calling setX would always block...
>
> class C
> {
>   synchronized void setX() {
> setY();
>   }
>   synchronized void setY() {
> ;
>   }
> }
>
> If this is really the way JBoss works, and nobody knows a good reason 
> why it should, can someone point me to the package/class responsible 
> for this behavior and I'll take a whack at fixing it?
>
> Thanks,
> Jim
>
> On Thu, 2002-10-24 at 15:40, Michael Bartmann wrote:
> > Explanation attempt inline.
> >
> > Regards,
> > Michael Bartmann
> >
> > Jim Crossley wrote:
> > > I have an MDB with the following pseudocode in its onMessage 
> > > method:
> > >
> > > public void onMessage(Message msg)
> > > {
> > >   // Entity bean = home.create(...)
> > >   // bean.setX(...)
> > this starts a tx1 and locks the instance bean.
> > >   // bean.setY(...)
> > this suspends the tx1 on bean temporarily,
> > and starts a tx2, which tries to obtain the lock on the bean, which 
> > it
>
> > will never get, because tx1 is not commited or rollbacked yet. We 
> > had this problem under 2.4.4 w/o deadlock detection. Problem: even 
> > the tx timeout didn't work in this case; the server locked
> forever... :-(
> > > }
> > >
> > > Each of the three methods, create, setX, and setY have a 
> > > trans-attribute of "RequiresNew".  With only one client posting a 
> > > message, a "deadlock detected" exception is thrown when setX is 
> > > invoked.  How can deadlock occur when only one thread is active
> > >
> > > Thanks,
>

RE: [JBoss-user] Entity Bean Performance Tuning Help

2002-10-29 Thread Georg Schmid

First of all:

This was only an experiment to check the impact of the
EntitySynchronizationInterceptor on performance.
Of course this is nothing you should do in a real setup. I know what the
EntitySynchronizationInterceptor is for.

I have been using JBoss for almost a year, reading almost all posts on
the Jboss dev, user and cvs mailing lists, as well as searching the
forums regulary, if I have an issue to solve.

My problem is: Creating value objects through calling a method on an
CMP2.0 entity bean takes 3 to 10 times more time than walking through an
equivalent result set of a 'raw' JDBC query. I tried to dig into this
issue by stripping down the interceptor stack !as an experiment! to the
bare minimum. The result of this experiment was, that the
EntitySynchronizationInterceptor is the only interceptor, that changes
performance significantly in my setup. Removing the transaction or
security interceptors did not have any significant impact.

Getting the data from the database into the Jboss server memory is not
the problem. The finder I am using for testing returns a result set with
1000 rows. It uses the default load group. This means that all data is
in memory after the finder has completed, which takes only a few hundred
milliseconds, just like issuing a "select * from BeanTable". For this
reason playing around with page sizes and load groups etc. is pointless.
My experience is that locking has no measurable effect on the
performance (the performance test is strictly single-user). 

The time is lost when I walk through the collection of entity beans
returned by the finder and call a method on each to create the value
objects (one method call per value object). Others have come to the same
conclusion, but I have not found a post that points to a solution of
this problem.

I really would like to be able to do a web page, that displays at most
about 4000 rows, using entity beans and CMP2.0. But with the current
performance I have to switch to direct JDBC calls in my stateless
session beans every time I have to display more than 500 rows (Jboss
3.0.3 running on a dual UltraSparcIII with 4GB memory and an Oracle db
on similar hardware).

This is the issue I am trying to solve. If you could help me with that
I'd really appreciate it.
Thanks.

Regards
Georg



-Original Message-
From: [EMAIL PROTECTED]
[mailto:jboss-user-admin@;lists.sourceforge.net] On Behalf Of Bill Burke
Sent: Tuesday, October 29, 2002 07:24
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] Entity Bean Performance Tuning Help


Georg stop spewing nonsenseNever ever take out the synchronization
interceptor!  It registers synchronzations with the TM so that the
entity bean changes get committed!  Please read the for-pay docs or
review the archives.  I have explained this shit over and over.

I've added a EntityLockMonitor MBean to 3.0.4 and higher.  Look in
jboss-service.xml to uncomment it.  Gives you # contentions in table
with bean beans.  Also gives averages and other stats.  I'll be adding
this to docs eventually.

Bill

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:jboss-user-admin@;lists.sourceforge.net]On Behalf Of Georg 
> Schmid
> Sent: Monday, October 21, 2002 4:32 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [JBoss-user] Entity Bean Performance Tuning Help
>
>
> Peter,
>
> I have a similar problem and tried to dig into it.
> You may have a look at the thread 
> http://www.jboss.org/forums/thread.jsp?forum=46&thread=20827 in the 
> forums.
>
> To summarize: the EB caching works perfectly (I guess it is as fast as

> you can get with JDBC), but getting the rows in memory into a data or 
> value object is slow. Creating n value objects for n EB instances 
> involves going through the interceptor stack n times, and this is, 
> where the time is lost.
>
> I incrementally stripped down the interceptor stack using  a custom 
> configuration in my jboss.xml, but without much success.
>
> The only way to really speed up things that I found was removing the 
> synchronization interceptor, which improves performance by a factor of

> 2, if no or only one attribute is read, but makes it worse, if many 
> attributes have to be read.
>
> BTW: I used commit option B, read-ahead on-load, and the Instance Per 
> Transaction setup in my experiments.
>
> The pattern you found is interesting. Because there are so many things

> impacting the performance, it is hard to tell, whom to ask (Dain, 
> Bill, David,...).
>
> Bill Burke did some performance tests using ECPerf. Maybe he can 
> report a bit on the results.
>
> Regards
> Georg
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:jboss-user-admin@;lists.sourceforge.net] On Behalf Of Luttrell,

> Peter
> Sent: Saturday, October 19, 2002 02:17
> To: '[EMAIL

RE: [JBoss-user] Erroneous deadlock detected???

2002-10-25 Thread Georg Schmid

I ran into this same problem a while ago, and I suggested the same (at
least the thread, that holds the lock, should not be locked out).
Somebody wrote a 'SimpleReadWriteEJBLock' class, that seems to achieve
exactly this, but I could not find any info related to it.

You can also try to play around with the method attribute read-only
setting in jboss.xml (see the DTD).
To get better concurrency you may consider switching to the Instance Per
Transaction configuration (see standardjboss.xml) .

The QueuedPessimisticEJBLock does not make any sense with CMP, IMHO (if
you use it, it turns JBoss into a single tasking system).


Georg



-Original Message-
From: [EMAIL PROTECTED]
[mailto:jboss-user-admin@;lists.sourceforge.net] On Behalf Of Jim
Crossley
Sent: Thursday, October 24, 2002 22:06
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Erroneous deadlock detected???


Well, it would seem to me that a ThreadLocal instance could help solve
this problem.  If one thread tries to acquire a lock it already owns, it
ought to get it, right?

If we were to apply the same semantics you describe to a simple Java
class, then calling setX would always block...

class C
{
  synchronized void setX() {
setY();
  }
  synchronized void setY() {
;
  }
}

If this is really the way JBoss works, and nobody knows a good reason
why it should, can someone point me to the package/class responsible for
this behavior and I'll take a whack at fixing it?

Thanks,
Jim

On Thu, 2002-10-24 at 15:40, Michael Bartmann wrote:
> Explanation attempt inline.
> 
> Regards,
> Michael Bartmann
> 
> Jim Crossley wrote:
> > I have an MDB with the following pseudocode in its onMessage method:
> > 
> > public void onMessage(Message msg)
> > {
> >   // Entity bean = home.create(...)
> >   // bean.setX(...)
> this starts a tx1 and locks the instance bean.
> >   // bean.setY(...)
> this suspends the tx1 on bean temporarily,
> and starts a tx2, which tries to obtain the lock on the bean, which it

> will never get, because tx1 is not commited or rollbacked yet.
> We had this problem under 2.4.4 w/o deadlock detection. Problem:
> even the tx timeout didn't work in this case; the server locked
forever... :-(
> > }
> > 
> > Each of the three methods, create, setX, and setY have a 
> > trans-attribute of "RequiresNew".  With only one client posting a 
> > message, a "deadlock detected" exception is thrown when setX is 
> > invoked.  How can deadlock occur when only one thread is active
> > 
> > Thanks,
> > Jim
> > 
> > 
> > 
> > 
> > ---
> > This sf.net email is sponsored by: Influence the future
> > of Java(TM) technology. Join the Java Community 
> > Process(SM) (JCP(SM)) program now. 
> >
http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javav
ote
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> > 
> 
> 
> 
> ---
> This sf.net email is sponsored by: Influence the future
> of Java(TM) technology. Join the Java Community 
> Process(SM) (JCP(SM)) program now. 
> http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Multiple jboss instances on one machine?

2002-10-16 Thread Georg Schmid


I have two instances running on the same system (Solaris), once I had
even three..

Make sure, you configure all the ports differently in both instances,
eg.
 - hsqldb 1476 -> 1477
 - JNDI 1099 -> 1098 (1100 is Jboss JNID HA standard port)
 - JMS layer uses  -> 4445
 - Change the jetty port either by -Djetty.port or by changing the
config file in the SAR - JMX HTML Adaptor port needs to be changed, too,
if you use it

Any other ports to change? Maybe things get more complicated if you need
clustering.

HTH a bit.
Georg



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Tom Davies
Sent: Tuesday, October 15, 2002 11:14
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Multiple jboss instances on one machine?


I need to run several jboss instances on a single machine, for
test/training etc., and I'd rather not try to deploy two instances of my
application in one server.

Is there a cookbook for doing this? I've run into some JNDI config
problems.

Thanks,

Tom



---
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: viaVerio will pay you up to
$1,000 for every account that you consolidate with us.
http://ad.doubleclick.net/clk;4749864;7604308;v?
http://www.viaverio.com/consolidator/osdn.cfm
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] How to avoid entity beans read lock ?

2002-10-07 Thread Georg Schmid


Hi,

(this is slightly off-topic but)
I want to use the latest bug fix releases of JBoss in my production
environment, so I have to tackle the removed MethodOnlyEJBLock
situation.

Could please someone who knows (Bill?) comment on the new NoLock and
SimpleReadWriteEJBLock classes?
What is the idea behind these changes? (Ok, I could speculate - nomen
est omen - ...)
Does the SimpleReadWriteEJBLock already work and how is it used
correctly?

Any hints would be much appreciated.

BTW, JBoss does not support optimistic locking yet, and does not have a
distributed object cache.
If you cannot use the QueuedPessimisticEJBLock (which is usually the
case when you need concurrent access to CMP EBs), and you need to
synchronize your EBs, you can use the "row-locking" setting in the
jbosscmp-jdbc.xml config file (in defaults or per EB) and let the
database handle the synchronization.

The SimpleReadWriteEJBLock may provide an alternative, but there seems
to be no documentation yet (the last time I search the forums for it, it
didn't turn up a single hit).

Regards
Georg



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Sacha
Labourey
Sent: Monday, October 07, 2002 13:24
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] How to avoid entity beans read lock ?


Could you please try the read-only tag at the method level, as described
by Bill. It does work. If it doesn't, it is a bug and it would be good
to know about it.

Cheers,


Sacha

> -Message d'origine-
> De : [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]De la part de Horia 
> Muntean Envoyé : lundi, 7 octobre 2002 13:18
> À : [EMAIL PROTECTED]
> Objet : Re: [JBoss-user] How to avoid entity beans read lock ?
>
>
> Thanks, but there could be some problems , problems that are coming 
> from the fact the my EBs are not RO entirely. They have update methods

> also. So, here are my questions again:
>
> 1. I can't apply "read-only" to the entire bean 'cause I have other 
> methods that perfom updates on the bean.
>
> 2. I took a look at jboss.dtd, jboss_3_0.dtd and jboss_2_4.dtd but all

> I could understand from here is that a "read-only" attribute can be 
> applied only for the entire bean. I saw in this mail list an example 
> provided by  Bill Burke at 
> http://www.mail-archive.com/jboss-user@lists.sourceforge.net/msg18
> 814.html,
> but since in the jboss.dtd there are no entries related to 
>  tags. Anyway, someone before be tried this 
> solution and it seems it doesn't work: 
> http://www.mail-archive.com/jboss-user@lists.sourceforge.net/msg19786.
> html
>
> 3. I saw "Instance Per Transaction CMP 2.x EntityBean" configuration 
> in jboss-3.0.3 using 
> org.jboss.ejb.plugins.lock.NoLock
> What does that mean?
> Is this the path to Optimistic locking implementation?
> Does jboss keep DB consistency with this configuration (even if it 
> could rollback TXs that are trying to commit modified data)?
>
> 4. I tryed to apply "NotSupported" TX attibute on all get* methods of 
> my EB. But this doesn't seem to work either. My EB are locked during
get*
> operations and in some circumstances   I get  DeadLock exceptions too.
I
> solved the problem with facade beans that use only EBs get* methods, 
> by declaring "NotSupported" TX for the facade method. In this way, 
> every time an  EB get* method is called by the facade a new TX starts 
> and that is OK. But if in the facade method I want to use update 
> methods of the EBs, I can't affort to set the TX to "NotSupported" 
> cause I will loose the control  of the DB consistency.
>
> Sory for talking to much. I just try to understand if I can get what I

> want from jboss or is the case to move on to other J2EE containers?
>
> Thanks.
>
>
> Georg Schmid wrote:
>
> >Hi,
> >
> >Take a look at the "Instance Per Transaction CMP2.x" configuration 
> >settings in standarjboss.xml.  o You can make your EBs use that 
> >configuration by setting the  element in your 
> >jboss.xml.  o You can mark your EB readonly.
> > o You can mark certain methods of the EB read-only.
> >
> >Look through the jboss.xml DTD.
> >
> >Moreover, in JBoss3.0.3 there is a NoLock locking policy 
> >(MethodOnlyEJBLock has been deprecated/removed in that release), as 
> >well as a SimpleReadWriteEJBLock class, but I could not find any 
> >documentation that (except the source code, of course).
> >
> >Maybe this gives you a start.
> >
> >Regards
> >Georg
> >
> >
>
>
>
> ---
> This sf.net email is sponsored by:ThinkGeek

RE: [JBoss-user] How to avoid entity beans read lock ?

2002-10-07 Thread Georg Schmid


Hi,

Take a look at the "Instance Per Transaction CMP2.x" configuration
settings in standarjboss.xml.
 o You can make your EBs use that configuration by setting the
 element in your jboss.xml.
 o You can mark your EB readonly.
 o You can mark certain methods of the EB read-only.

Look through the jboss.xml DTD.

Moreover, in JBoss3.0.3 there is a NoLock locking policy
(MethodOnlyEJBLock has been deprecated/removed in that release), as well
as a SimpleReadWriteEJBLock class, but I could not find any
documentation that (except the source code, of course).

Maybe this gives you a start.

Regards
Georg

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Horia
Muntean
Sent: Monday, October 07, 2002 11:19
To: [EMAIL PROTECTED]
Subject: [JBoss-user] How to avoid entity beans read lock ?


Hello all.

I am using "A"   on a Standard CMP EntityBean container.

I was wandering if there is any way to avoid the locking of the 
EB(entity beans) when one (i.e session bean) calls get* methods 
(read-only) upon them.

Any help would be appreciated.

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



---
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] Jboss on WIN2000

2002-10-04 Thread Georg Schmid


I think it's a problem with the broken Linux threading. From what I read
they just started to attack
this problem in the most recent development kernels (using a 1:1 mapping
from user to kernel threads).

I have been developing on Dos/Windows, Linux and other Unixes (mostly
Solaris) the last 7 years, and 
my impression is, that W2K and upwards are really good operating
systems.

On Solaris Java also performs much better than on Linux. It needs much
more memory than on W2K though.

Java performs best on Windows and also needs much less memory (the
NetBeans performance graphs show, that it's 4x less than on Solaris for
a large, Swing-based app). 

Regards
Georg


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Bill Burke
Sent: Thursday, October 03, 2002 23:25
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] Jboss on WIN2000


Actually, I've been doing some performance tests lately(ECPERF) and
Linux sucks, really sucks.  (Haven't tried the IBM threading model
though).  Win2k is much better performing, although I hate to admit it.

Bill

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of 
> [EMAIL PROTECTED]
> Sent: Thursday, October 03, 2002 4:32 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Jboss on WIN2000
>
>
> Why not upgrading to a better OS like linux or *BSD?
>
> On Thu, Oct 03, 2002 at 12:56:29PM +0530, Arijit Ghosh wrote:
> > I am using Jboss3.0 with Tomcat 4.0.3 with Win98. I plan to use with

> > Win2000. ANyone has faced any issues that I need to take care of 
> > when deploying ? I DON'T want to use it as service for Win2000.
> >
> > Regards,
> >   Arijit
> >
> >
> >
> >
> > ---
> > 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
>
> --
> MVH
> Marius Kotsbak
> Boost communications AS
>
>
> ---
> 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] MethodOnlyEJBLock deprecated warnings - new SimpleReadWriteEJBLock

2002-10-02 Thread Georg Schmid


Hi,

[I could not find any announcement or note on this change (searched
forums and SourceForge), so I am asking here].

I switched from Jboss-3.0.2 to Jboss-3.0.3. Now I am getting a lot of
"MethodOnlyEJBLock has been deprecated" messages.
Looking at the source tells me, that it has not only been deprecated,
but removed except for a small stub printing the warning.

The Instance Per Transaction configuration in standardjboss.xml, that I
am using, has been changed to let NoLock handle the locking.
And there is a new "SimpleReadWriteEJBLock" class, which however is not
mentioned anywhere in the standardjboss.xml file.

This triggers a few questions:

 o To which degree have the semantics of the "Instance Per Transaction
CMP2.x" configuration been changed by this?
 o Can I use "SimpleReadWriteEJBLock" instead of "NoLock" (the latter
one sounds dangerous. Is it?)
 o What is the "standard" interceptor stack for using
"SimpleReadWriteEJBLock"?
 o What is the performance of SimpleReadWriteEJBLock compared to NoLock
or the former MethodOnlyEJBLock?

Regards
Georg




---
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] Datasource security problems migrating to JBoss 3.2

2002-09-30 Thread Georg Schmid


Hello,

I am getting this, too (same setup: JBoss3.2.0beta2).
(As a work-around I am putting user name and password into the ds
configuration, which I dislike).

I was able to find a hint on the changed configuration in the SF change
notes (from David Jenks), but at least for me, it seemed incomplete and
not really targeted at bringing JBoss users up to date with the changed
configuration in 3.2.0.

Any hints would be appreciated.

Thanks in advance.

Regards
Georg



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Stephen Coy
Sent: Friday, September 27, 2002 09:43
To: jboss-user
Subject: [JBoss-user] Datasource security problems migrating to JBoss
3.2


Hi,

I just checked out Branch_3_2 today to check out our application on it.

There seems to have been a raft of changes to the JCA stuff amongst  
other things.

Anyway, independent of whether or not I use -service.xml or  
-ds.xml files to set up my datasources, I get the exceptions below  
for each entity bean when trying to deploy my ejb jar files. The  
-service.xml files and login-config.xml are as for 3.0.2, although  
the 'JndiName' attribute needed to be moved in the -service.xml files.  
There are no errors when the associated mbeans are started.

Any tips would be appreciated. What have I missed?

My -ds.xml file contains:


   
 OracleDS
  
jdbc:oracle:oci:@(description=(address=(host=ws94)(protocol=tcp)(por
t=1521))(connect_data=(SERVICE_NAME=sfcdell.whitesmiths.com.au)))
 oracle.jdbc.driver.OracleDriver
 5
 100
 5000
 15
 SachaDBRealm
   


The login-config.xml entry is:

 

   
  sacha
  steve
  *
  jboss.jca:service=LocalTxCM,name=OracleDS


   

 


This gets dumped for each entity bean:

2002-09-27 17:18:47,782 DEBUG [org.jboss.system.ServiceController]  
starting service  
jboss.j2ee:jndiName=ejb/billingSystem/translations/ 
PriceGroup,service=EJB
2002-09-27 17:18:47,782 INFO  [org.jboss.ejb.EntityContainer] Starting
2002-09-27 17:18:47,783 DEBUG [org.jboss.ejb.EntityContainer] Begin  
java:comp/env for EJB: PriceGroup
2002-09-27 17:18:47,783 DEBUG [org.jboss.ejb.EntityContainer] TCL:  
java.net.URLClassLoader@4343b1
2002-09-27 17:18:47,784 DEBUG [org.jboss.ejb.EntityContainer] End  
java:comp/env for EJB: PriceGroup
2002-09-27 17:18:47,826 DEBUG  
[org.jboss.ejb.plugins.local.BaseLocalProxyFactory] Bound EJBLocalHome  
of PriceGroup to ejb/billingSystem/translations/PriceGroupLocal
2002-09-27 17:18:47,827 DEBUG [org.jboss.system.Registry] lookup  
jboss:service=invoker,type=jrmp=org.jboss.invocation.jrmp.interfaces.JRM

PInvokerProxy@351e52
2002-09-27 17:18:47,839 DEBUG [org.jboss.proxy.ejb.ProxyFactory]  
Binding Home ejb/billingSystem/translations/PriceGroup
2002-09-27 17:18:47,844 DEBUG [org.jboss.proxy.ejb.ProxyFactory] Bound  
PriceGroup to ejb/billingSystem/translations/PriceGroup
2002-09-27 17:18:47,844 DEBUG  
[org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.PriceGroup]  
Initializing CMP plugin for PriceGroup
2002-09-27 17:18:47,846 ERROR [org.jboss.ejb.EntityContainer] Starting  
failed
org.jboss.deployment.DeploymentException: Error while fixing table  
name; - nested throwable: (org.jboss.util.NestedSQLException: No  
matching credentials in Subject!; - nested throwable:  
(javax.resource.ResourceException: No matching credentials in Subject!))
at
org.jboss.ejb.plugins.cmp.jdbc.SQLUtil.fixTableName(SQLUtil.java:67)
at  
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.(JDBCEntity

Bridge.java:112)
at  
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCSto

reManager.java:397)
at  
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.j

ava:339)
at  
org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.

java:198)
at
org.jboss.ejb.EntityContainer.startService(EntityContainer.java:359)
at  
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)
at org.jboss.ejb.Container.invoke(Container.java:729)
at
org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1026)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at  
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController

.java:960)
at $Proxy9.start(Unknown Source)
at
org.jboss.system.ServiceController.start(ServiceController.java:387)
at java.lang.reflect.Method.invoke(Native Method)
at  
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDi

spatcher.java:284)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy40.start(Unknown Source)
at org.jboss.ejb.EjbModule.startService(EjbModule.java:444)
at  
org.jboss.sy

RE: [JBoss-user] JMS client acknowledgement

2002-09-20 Thread Georg Schmid


Maybe you get an answer if you are more specific.
Read http://www.tuxedo.org/~esr/faqs/smart-questions.html

Regards
Georg

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of
Venkateshwar Bommineni
Sent: Thursday, September 19, 2002 21:49
To: [EMAIL PROTECTED]
Subject: [JBoss-user] JMS client acknowledgement



I am submitting this again. Is CLIENT_ACKNOWLEDGEMENT mode for JMS ever
works in any JBOSS version?

thanks in advance
Vekat




---
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] CMP 2.0 provides the setters

2002-07-23 Thread Georg Schmid


Hi Preeti,

for instance, you can use them in master-detail relationships to move a
set of detail objects from master A to master B:
b.setDetails( a.getDetails() );

or if you want to attach the results of a finder to b with one method
call:
b.setDetails( detailsLocalHome.findSomeDetails(
...someCriterionRelatedToB... ) );

My experience is: as I added more entity beans to my projects and
implemented the session bean methods, I found many places where I could
take advantage of these setters.

Cheers
Georg



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Dain
Sundstrom
Sent: Wednesday, July 24, 2002 06:44
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] CMP 2.0 provides the setters


I think they are completely useless.

-dain

Preeti Sood wrote:
> Hi All,
> 
> The CMP 2.0 provides the setters for the CMRs.
> When should they be used??
> 
> For Example:
> An order has LineItems and the Orderbean has setLineItems(Collection
> lineItems) method where the lineItems is a collection of the Local 
> Interfaces of the LineItem Bean.
> 
> Now when will the need arise to use the setLineItems method.
> 
> 
> Cheers!!!
> 
> Preeti
> 
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Binil 
> Thomas
> Sent: Wednesday, July 24, 2002 9:27 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Type mappings
> 
> 
> On Wed, 24 Jul 2002, Dimitri PISSARENKO wrote:
> 
> 
>>Is it possible to place the type mappings only into the jaws.xml file 
>>of EJB jar file ?
> 
> 
> Yes. And probably that is the better solution, because that way your 
> beans can be deployed safely onto any compatible JBoss installation, 
> even though the administrator of that server would have tweaked with 
> the type-mappings in the configuration files.
> 
> - Binil
> 
> --
> And did they get you to trade your heroes for ghosts?  Hot ashes for 
> trees? Hot air for a cool breeze?  Cold comfort for change? And did 
> you exchange a walk on part in the war for a lead role in a cage? - PF
> 
> 
> 
> ---
> 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] "You are not getting the semantics you expect" warning

2002-07-14 Thread Georg Schmid


Hi,

I am using up to three different data sources in the implementation of
my SLSB methods (tx=required). Two of them are accessed read-only using
direct JDBC calls, the remaining main datasource receives updates and
deletes through CMP. All the datasources use the local transaction
manager, because in this setup I don't really need xa/2pc. (If the
transaction crashes in the read-only datasources, no damage is done. And
for the main datasource the local transaction will be rolled back, which
sould be sufficient).

As a am running into this scenario with more SLSB methods the warning is
issued quite often. 

My idea of getting rid of these warnings is to factor out all the
read-only JDBC access into another SLSB with a local interface and use
RequiresNew for all its methods.

Dou you think this is a good idea?

Georg



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of David
Jencks
Sent: Saturday, July 13, 2002 03:25
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] "You are not getting the semantics you expect"
warning


Not sure what happened when I sent this yesterday.

It means there is more than one participant in a transaction where at
least one of the participants only supports local (1pc, non xa)
transactions. 
Failures during the commit process will result in inconsistent results. 
This is most likely to happen if you use jms and db access in the same
tx.

david jencks


On 2002.07.12 16:44:55 -0400 Eric Kaplan wrote:
> "You are not getting the semantics you expect" warningcan anybody say 
> what needs to be done here?
>   -Original Message-
>   From: Eric Kaplan [mailto:[EMAIL PROTECTED]]
>   Sent: Thursday, July 11, 2002 6:29 AM
>   To: [EMAIL PROTECTED]
>   Subject: RE: [JBoss-user] "You are not getting the semantics you
> expect"
> warning
> 
> 
>   ditto.  i get the same thing.  i remember david jencks saying it was

> due to not having an xa compliant driver.  i'm using oracle 8i, which 
> i thought
> was an xa database, but i have the "free" version, so maybe you have
to
> pay
> money for the xa version???
> 
>   "You are using a local transaction adapter, probably a non xa 
> database, in a
> 
>   transaction with more than one resource adapter (jms message + 
> database
> 
>   work most likely). This does not give you ACID transactions. If 
> something
> 
>   crashes in the middle of commit you will have unrecoverable state. 
> To
> 
>   avoid this use xa resource adapters only (probably an xa driver to 
> your
> 
>   db).
> 
>   david jencks"
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Burns,
Jamie
> Sent: Thursday, July 11, 2002 5:07 AM
> To: '[EMAIL PROTECTED]'
> Subject: [JBoss-user] "You are not getting the semantics you 
> expect" warning
> 
> 
> I am getting this warning in my log file . The full log entry is
> 
> 2002-07-11 09:33:52,748 WARN 
> [org.jboss.resource.connectionmanager.LocalTxConnectionManager$LocalCo
> nnecti
> onEventListener] prepare called on a local tx. You are not getting the
> semantics you expect!
> 
> I think it is occurring in ejbStore() of a BMP entity bean.
> 
> Does anybody know what it means and/or what steps l should take to

> fix it?
> 
> Thanks
> 
> **
> **
> 
>   This electronic mail system is used for information purposes and is
>   not intended to form any legal contract or binding agreement.
>   The content is confidential and may be legally privileged. Access
>   by anyone other than the addressee(s) is unauthorised and any
>   disclosure, copying, distribution or any other action taken in
>   reliance on it is prohibited and maybe unlawful
> 
>   All incoming and outgoing e-mail communications and attachments
>   are scanned automatically by software designed to detect and remove
>   any material containing viruses or other unauthorised content.
While
>   we undertake best endeavours to ensure that this content checking
>   software is up to date, recipients should take steps to assure 
> themselves
>   that e-mails received are secure.
> **
> **
> 
> 
> 
> 
>  
> "You are not getting the semantics you expect" 
> warning  http-equiv=Content-Type>  name=GENERATOR> 
>  class=908454420-12072002>can 
> anybody say what needs to be done here?
> 
>  size=2>-Original Message-From: Eric Kaplan 
>   [mailto:[EMAIL PROTECTED]]Sent: Thursday, July 11,
> 2002 6:29 
>   AMTo: [EMAIL PROTECTED]Subject:
> RE: 
>   [JBoss-user] "You are not getting the semantics you expect" 
>   warning
>  class=806022610-11072002>ditto.  i get the same thing.  i
> remember 
>   david jencks saying it was due to not having an xa compliant
> driver.  i'm 
>   using oracle 8i, which i thought was an xa database, but i have the
> "free" 
>   version, so maybe you have to pa

RE: [JBoss-user] Forums Question

2002-06-21 Thread Georg Schmid


There is a forum running on top of Jboss 2.x:
http://www.jiris.com/forum?forum=2002053109

(Note: the language is English, but the character encoding of the pages
is Simplified Chinese)

It's quite similar to Jive. May be it's worth a look.

Regards
Georg



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Hunter
Hillegas
Sent: Thursday, June 20, 2002 19:24
To: JBoss User
Subject: Re: [JBoss-user] Forums Question


That's always a problem.

> From: Dain Sundstrom <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Thu, 20 Jun 2002 11:50:58 -0500
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Forums Question
> 
> But it doesn't work.



---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] What is the CVS Password for anonymous user?

2002-06-20 Thread Georg Schmid


Hi,

ok, so it's not a problem with my WinCVS configuration (output from
WinCVS):

cvs update: authorization failed: server cvs.jboss.sourceforge.net
rejected access to /cvsroot/jboss
 for user anonymous
cvs update: used empty password; try "cvs login" with a real password

It used to work until a week ago or so. I thought it was some issue with
my reinstalled PC.

Regards
Georg

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Dain
Sundstrom
Sent: Friday, June 21, 2002 01:00
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] What is the CVS Password for anonymous user?


You can try the source forge cvs documentation.

http://sourceforge.net/docman/?group_id=1

-dain

Douglas Su wrote:
> I tried blank (press enter) and also I've looked at the instruction 
> from
> JBoss's CVS page as well as the QuickStart.pdf for JBoss 3.0.  I've 
> tried the command on both winCVS and on linux.  I can't login.  The 
> connection gets refuse all the time.  I need to download the latest 
> source of JBoss3.0 which has the CMR fixed.  Any suggestion?
> 
> Douglas
> 
> 
>> From: Hunter Hillegas <[EMAIL PROTECTED]>
>> Reply-To: [EMAIL PROTECTED]
>> To: JBoss User <[EMAIL PROTECTED]>
>> Subject: Re: [JBoss-user] What is the CVS Password for anonymous 
>> user?
>> Date: Thu, 20 Jun 2002 15:32:58 -0700
>>
>> I think it is blank.
>>
>> There are CVS instructions on JBoss's CVS page on SourceForge.
>>
>>
>> > From: "Douglas Su" <[EMAIL PROTECTED]>
>> > Reply-To: [EMAIL PROTECTED]
>> > Date: Thu, 20 Jun 2002 14:27:40 -0700
>> > To: [EMAIL PROTECTED]
>> > Subject: [JBoss-user] What is the CVS Password for anonymous user?
>> >
>> > What is the CVS Password for anonymous user?  In the QuickStart
>> guide it
>> > says the password is empty but it not.  It doesn't allow me to
>> login.  Any
>> > suggestion?
>>
>>
>>
>> ---
>> Sponsored by:
>> ThinkGeek at http://www.ThinkGeek.com/ 
>> ___
>> JBoss-user mailing list
>> [EMAIL PROTECTED] 
>> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> 
> 
> 
> _
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
> 
> 
> 
> ---
> Sponsored by:
> ThinkGeek at http://www.ThinkGeek.com/ 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED] 
> https://lists.sourceforge.net/lists/listinfo/jboss-user


-- 

Dain Sundstrom
Chief Architect JBossCMP
JBoss Group, LLC




---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Forums still down

2002-06-18 Thread Georg Schmid


I start feeling a bit lonely without the forums ;-)
Any ideas, when they will be up again?


Cheers
Georg





   Bringing you mounds of caffeinated joy
  >>> http://thinkgeek.com/sf<<<

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



Re: [JBoss-user] removing bean lock and it has tx set!

2002-06-18 Thread Georg Schmid

I ran into similar problem, when a NPE happened inside a transaction.
On the next try the "removing bean lock and it has tx set!" exception occurred.

The simple solution in my case was to restart JBoss. It seems that the bean lock
had not been removed due to the NPE.

I'm not sure whether this is the correct behaviour.

Cheers
Georg

Bill Burke wrote:
> - What is your primary key class?
> If it is a custom key class (not Integer, String, etc.) then, did you
> implement equals and hashCode correctly?  Does your primary key class
> serialize correctly?  Post the PK class.
> 
> - Are you using custom container configurations?  Make sure that you have
> the correct interceptor chain.  If you have a custom config, please post it.
> 
> - Did you change the locking-policy?  What did you change it to?
> 
> Bill
> 
> 
>>-Original Message-
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED]]On Behalf Of Jason Uithol
>>Sent: Monday, June 17, 2002 9:06 PM
>>To: jboss-user (E-mail)
>>Subject: [JBoss-user] removing bean lock and it has tx set!
>>
>>
>>Hello all,
>>
>>I'm stumped.  Any ideas what might be causing this ?  Any clues
>>at all will
>>help !
>>
>>Thanks in advance.
>>
>>
>>java.rmi.ServerException: RemoteException occurred in server
>>thread; nested
>>exception is:
>>  java.rmi.ServerException: removing bean lock and it has tx
>>set!; nested
>>exception is:
>>  java.lang.IllegalStateException: removing bean lock and it
>>has tx set!
>>Embedded Exception
>>removing bean lock and it has tx set!; nested exception is:
>>  java.lang.IllegalStateException: removing bean lock and it
>>has tx set!;
>>nested exception is:
>>  javax.ejb.TransactionRolledbackLocalException: removing
>>bean lock and it
>>has tx set!; nested exception is:
>>  java.lang.IllegalStateException: removing bean lock and it
>>has tx set!
>>Embedded Exception
>>removing bean lock and it has tx set!; nested exception is:
>>  java.lang.IllegalStateException: removing bean lock and it
>>has tx set!
>>java.rmi.ServerException: removing bean lock and it has tx set!; nested
>>exception is:
>>  java.lang.IllegalStateException: removing bean lock and it
>>has tx set!
>>Embedded Exception
>>removing bean lock and it has tx set!; nested exception is:
>>  java.lang.IllegalStateException: removing bean lock and it
>>has tx set!;
>>nested exception is:
>>  javax.ejb.TransactionRolledbackLocalException: removing
>>bean lock and it
>>has tx set!; nested exception is:
>>  java.lang.IllegalStateException: removing bean lock and it
>>has tx set!
>>Embedded Exception
>>removing bean lock and it has tx set!; nested exception is:
>>  java.lang.IllegalStateException: removing bean lock and it
>>has tx set!
>>javax.ejb.TransactionRolledbackLocalException: removing bean lock
>>and it has
>>tx set!; nested exception is:
>>  java.lang.IllegalStateException: removing bean lock and it
>>has tx set!
>>Embedded Exception
>>removing bean lock and it has tx set!; nested exception is:
>>  java.lang.IllegalStateException: removing bean lock and it
>>has tx set!
>>  at
>>sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Str
>>eamRemoteC
>>all.java:245)
>>  at
>>sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
>>  at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
>>  at
>>org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
>>  at
>>org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPI
>>nvokerProx
>>y.java:128)
>>  at
>>org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.
>>java:108)
>>  at
>>org.jboss.proxy.TransactionInterceptor.invoke(TransactionIntercept
>>or.java:73
>>)
>>  at
>>org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
>>  at
>>org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSess
>>ionInterce
>>ptor.java:117)
>>  at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
>>  at $Proxy1.login(Unknown Source)
>>  at
>>com.datacodex.pluggins.security.cocoon.action.UserLoginAction.atte
>>mptLogin(U
>>serLoginAction.java:64)
>>  at
>>com.datacodex.pluggins.security.cocoon.action.UserLoginAction.act(
>>UserLoginA
>>ction.java:46)
>>  at
>>com.datacodex.cocoon.action.AbstractBLAction.act(AbstractBLAction.java:78)
>>  at
>>org.apache.cocoon.www.content.sitemap_xmap.matchN10245(sitemap_xma
>>p.java:186
>>1)
>>  at
>>org.apache.cocoon.www.content.sitemap_xmap.process(sitemap_xmap.java:1401)
>>  at
>>org.apache.cocoon.www.content.sitemap_xmap.process(sitemap_xmap.java:1315)
>>  at org.apache.cocoon.sitemap.Handler.process(Handler.java:180)
>>  at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:127)
>>  at
>>org.apache.cocoon.www.sitemap_xmap.matchN101FF(sitemap_xmap.java:1444)
>>  at
>>org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1383)
>>  at
>>org.apache.cocoon.www.sitemap

RE: [JBoss-user] JBoss website

2002-06-14 Thread Georg Schmid
Title: Message



Same 
with me. Or not: IE gives me 404, Netscape6 (on Solaris) empty pages for all 
links on the main page.
And 
the front page lost its style (browsers are using default fonts..., 
/style/style.jsp not working any more?).
 
Georg

  
  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]] On Behalf Of 
  [EMAIL PROTECTED]Sent: Friday, June 14, 2002 
  13:27To: [EMAIL PROTECTED]Subject: 
  [JBoss-user] JBoss website
  The JBoss website appears to be playing up - I just 
  get a directory listing. 


RE: [JBoss-user] jboss 3.0 + tomcat 4.0.3 context error

2002-06-14 Thread Georg Schmid
Title: Message



Hi,
 
Don't worry. 
Everything is ok.
It's just that 
the Tomcat documentation and example webapps are not included in the 
JBoss/Tomcat bundle.
 
You 
have to deploy some war or ear containing a war.
 
Maybe 
you download and read the quickstart manual from the SourceForge page. 

(http://prdownloads.sourceforge.net/jboss/JBoss.3.0QuickStart.pdf?download)
 
 
My 
suggestion is: why not add a simple example war to the JBoss/Tomcat bundle that 
displays some
kind 
of "Welcome to JBoss 3.0/Tomcat4.0.3. No, the Tomcat standard website is not 
included."
(Just 
like Tomcat or the Sun J2EE RI).
 
Be 
patient with the configuration and don't despair.
Unless 
you try something exotic, JBoss is actually working most of the time. 

 
Georg
 
-Original Message-From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]] On Behalf Of Gaetano Di 
GregorioSent: Friday, June 14, 2002 11:50To: 
[EMAIL PROTECTED]Subject: [JBoss-user] jboss 3.0 + 
tomcat 4.0.3 context error

  Hi,
   
  After 
  installing jboss 3.0 + tomcat 4.0.3 and starting it, I'm trying 
  to open the http://localhost:8080 url to see if 
  tomcat is running as usual. Instead of having the typical tomcat documentation 
  page, I've this error page:
   
  Apache 
  Tomcat/4.0.3 - HTTP Status 500 - No Context configured to process this 
  request
   
  
   
  type Status 
  report
   
  message No Context 
  configured to process this request
   
  description The 
  server encountered an internal error (No Context configured to process this 
  request) that prevented it from fulfilling this request.
   
   
  I've seen some 
  peoples complaining for the same issue in the mailing list archive but the 
  replies where not giving a real solution.
   
  
  
  Any help is welcome,
  Thanks,
  Gaetano Di Gregorio.
   
   


RE: [JBoss-user] auto restart connection pool

2002-05-24 Thread Georg Schmid


An interesting topic. 

We use a Veritas cluster to cluster our Oracle databases. It can do a
hot fail-over, however
the database connection is lost. The fail-over takes only about five
minutes. Our goal is to make this temporary
disruption transparent to the user.

The only way (?) to get a hot failover for Oracle, that keeps the
connection alive, is using Parallel Server, which is too expensive.

I did some experiments by shutting down the Oracle server on my local
Win box during database access and I got different exceptions, depending
on the state the server was in (starting up, running, shutting down...).

Now I am waiting for some time if I get an exception on the
getConnection() call, then try again. It may not be
bullet proof, but it's kind of funny if you can press the reload button
while in your web application, shutdown the
database, start it up again, and the web page appears (after many
rotations of the logo in the upper right corner, of course).

Is there any place inside JBoss where something like this would fit in?

Regards
Georg



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of David
Jencks
Sent: Friday, May 24, 2002 20:19
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] auto restart connection pool


How about setting the idle timeout?  Or are you talking about a db error
that breaks the connection?  These are hard to deal with since
SQLExceptions could be a constraint violation or a dead connection, and
there's no way to distinguish them.

david jencks

On 2002.05.24 12:53:34 -0400 Mir Islam wrote:
> Is there a way to restart the connection pool if the DB drops the
> connection for some reason, without having to restart jboss ?
> 
>  From all mails I have been reading, it seems like the app server has 
> to
> be restarted.
> 
> Thanks
> Mir
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference 
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED] 
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 

___

Don't miss the 2002 Sprint PCS Application Developer's Conference August
25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



RE: [JBoss-user] Fwd: Bug when converting EJB QL boolean comparisons from true and false to 1 and 0

2002-05-14 Thread Georg Schmid


Scott, Dain,

sorry for having gotten this totally wrong. I was in a bad mood, because
I had to change my code, not having the time to wait for a fix.

The word 'cool' reminded me of an interview with Bill Gates, that was
printed in a local IT magazine,
where he answered to the question why so many users of software from
Redmond complain about lots of problems:
"Because they think it's cool. You can go and tell your colleagues: Been
there, done that." (from memory).

I really appreciate your work and your product. It's a great
achievement.

Georg

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Scott M
Stark
Sent: Tuesday, May 14, 2002 16:17
To: 'jboss-user'
Subject: Re: [JBoss-user] Fwd: Bug when converting EJB QL boolean
comparisons from true and false to 1 and 0


Being 'cool' about the issue meant Dain was fine in supporting the
required behavior. There was no implication that the users were idiots.
Try reading the mail a little more carefully before deciding you need to
rant.


Scott Stark
Chief Technology Officer
JBoss Group, LLC
xxxxxxxx
- Original Message -
From: "Georg Schmid" <[EMAIL PROTECTED]>
To: "'Dain Sundstrom'" <[EMAIL PROTECTED]>; "'Stephen Coy'"
<[EMAIL PROTECTED]>
Cc: "'jboss-user'" <[EMAIL PROTECTED]>
Sent: Monday, May 13, 2002 11:53 PM
Subject: RE: [JBoss-user] Fwd: Bug when converting EJB QL boolean
comparisons from true and false to 1 and 0


>
> Dain,
>
> this is a quite obvious bug (if you ever tried to select on a boolean 
> EB field backed by an Oracle table), so why are you so cool about it??
>
> I have a EB with a mostRecent boolean field, and because of this bug 
> there is no way to make a custom finder like
>
> select object(myEB)
>   from MyEBTable
>  where myEB.mostRecent = true
>
> work.
>
> Please don't get into the habit of thinking your users are idiots...
>
> --- five lines of additional rant suppressed --
>
> Georg
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] On Behalf Of Dain 
> Sundstrom
> Sent: Tuesday, May 14, 2002 07:35
> To: Stephen Coy
> Cc: jboss-user
> Subject: Re: [JBoss-user] Fwd: Bug when converting EJB QL boolean 
> comparisons from true and false to 1 and 0
>
>
> Cool, can you post a bug report, so I don't forget to make the change?
>
> Thanks,
>
> -dain
>
> Stephen Coy wrote:
>
> > Sorry Dain,
> >
> > I was trying to point out that not all SQL implementations support 
> > the use of literal "true" and "false" values.
> >
> > Therefore, we need to get them mapped to "1" and "0" respectively in

> > this situation.
> >
> > On Tuesday, May 14, 2002, at 02:53  PM, Dain Sundstrom wrote:
> >
> >> This is like pulling teeth. Just tell me what you want and why, 
> >> short and sweet.  Think 72 words.
> >>
> >> I should true map to 1 and false to 0 in Oracle, SQLServer and 
> >> MySQL? I add some more metadata for this.
> >>
> >
> > The short answer is yes.



___

Have big pipes? SourceForge.net is looking for download mirrors. We
supply the hardware. You get the recognition. Email Us:
[EMAIL PROTECTED]
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Fwd: Bug when converting EJB QL boolean comparisons from true and false to 1 and 0

2002-05-13 Thread Georg Schmid


Dain,

this is a quite obvious bug (if you ever tried to select on a boolean EB
field backed by
an Oracle table), so why are you so cool about it??

I have a EB with a mostRecent boolean field, and because of this bug
there is no way
to make a custom finder like

select object(myEB)
  from MyEBTable
 where myEB.mostRecent = true

work. 

Please don't get into the habit of thinking your users are idiots...

--- five lines of additional rant suppressed --

Georg


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Dain
Sundstrom
Sent: Tuesday, May 14, 2002 07:35
To: Stephen Coy
Cc: jboss-user
Subject: Re: [JBoss-user] Fwd: Bug when converting EJB QL boolean
comparisons from true and false to 1 and 0


Cool, can you post a bug report, so I don't forget to make the change?

Thanks,

-dain

Stephen Coy wrote:

> Sorry Dain,
> 
> I was trying to point out that not all SQL implementations support the
> use of literal "true" and "false" values.
> 
> Therefore, we need to get them mapped to "1" and "0" respectively in
> this situation.
> 
> On Tuesday, May 14, 2002, at 02:53  PM, Dain Sundstrom wrote:
> 
>> This is like pulling teeth. Just tell me what you want and why, short
>> and sweet.  Think 72 words.
>>
>> I should true map to 1 and false to 0 in Oracle, SQLServer and MySQL?
>> I add some more metadata for this.
>>
> 
> The short answer is yes.
> 
> 
> ___
> 
> Have big pipes? SourceForge.net is looking for download mirrors. We 
> supply the hardware. You get the recognition. Email Us: 
> [EMAIL PROTECTED] 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user


-- 
x
Dain Sundstrom
Chief Architect, JBossCMP
JBoss Group, LLC
x



___

Have big pipes? SourceForge.net is looking for download mirrors. We
supply the hardware. You get the recognition. Email Us:
[EMAIL PROTECTED]
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] JBoss cache my jsp pages

2002-05-06 Thread Georg Schmid


If you are using JBoss/Jetty:

There was a bug that prevented Jetty from detecting modifications to
JSPs.

If that bug still exists (the Jetty gurus will know) you can force Jetty
to recompile the pages
by deleting the contents in Jettys temp directory (something like
c:\temp\Jetty__8080___myapp\jsp or
Un*x equivalent).

If it's fixed, upgrade to the newest version (JBoss3.0.0 RC2 available
from SourceForge) :-)

(I used to add the clean-up step to the redeployment target in my ant
projects, but now I access my web pages through
a Tomcat not integrated in JBoss. This makes life a lot easier... [start
Tomcat with -nonaming in this case]).

Georg

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Coetmeur,
Alain
Sent: Monday, May 06, 2002 12:04
To: 'John'; [EMAIL PROTECTED]
Subject: RE: [JBoss-user] JBoss cache my jsp pages


are you sure they get cached at jboss level...

-a usual problem is the expiry time management

-another is that jsp get changed only when 
the webapp is redeployed (unlike tomcat with plain directory, which
recompile the jsp if the file is new...)

- some web server (IIS, maybe apache) can cache the server page




-Message d'origine-
De: John [mailto:[EMAIL PROTECTED]]
Date: lundi 6 mai 2002 11:12
À: [EMAIL PROTECTED]
Objet: [JBoss-user] JBoss cache my jsp pages


Hi All,
Jboss will cache my jsp pages.
this is not good when i'm developing.
evertime when i re-deploy after making changes in  my JSP pages. it does
not reflect. it still uses the old JSP page. i have to rename my jsp
pages to something else, and deploy so Jboss cannot find the jsp and
throws an exception. then re-deploy changing the jsp pages back to
orginal name.

is there a setting to disable caching ?

thanks
John

___

Have big pipes? SourceForge.net is looking for download mirrors. We
supply the hardware. You get the recognition. Email Us:
[EMAIL PROTECTED]
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] [JBoss Documentation Version 2.4.x#4] How to buy it?

2002-04-25 Thread Georg Schmid


I made a similar complaint a few weeks ago and in a personal mail it was
mentioned, that
they are considering a change.

Maybe someone knowledgeable can post a comment/update on this?

It would be great if ordering Jboss products could be made as easy as
buying a book at Amazon (and the like).

Thanks.

Georg

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Loïc
Lefèvre
Sent: Thursday, April 25, 2002 11:30
To: Sacha Labourey; JBoss User Mailing List
Subject: RE: [JBoss-user] [JBoss Documentation Version 2.4.x#4] How to
buy it?


Don't seems to be... here is the answer of the website:



---
We're Sorry!
There was a problem processing your order.

You may:

Select a different payment option
If you have any comments or questions, please email customer service or
contact us at 1-800-259-1961. Customer service hours are Monday -
Friday, 9:00am - 5:00pm EST.

Thank you,

The Staff at Flashline
---

:(

What should I do?



-Message d'origine-
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]De la part de Sacha
Labourey Envoyé : jeudi 25 avril 2002 11:02 À : Loïc Lefèvre; JBoss User
Mailing List Objet : RE: [JBoss-user] [JBoss Documentation Version
2.4.x#4] How to buy it?


mastercard = eurocard, isn't it?

> -Message d'origine-
> De : [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]De la part de Loïc 
> Lefèvre Envoyé : jeudi, 25 avril 2002 09:49
> À : JBoss User Mailing List
> Objet : [JBoss-user] [JBoss Documentation Version 2.4.x#4] How to buy
> it?
>
>
> Hi,
> I would like to know how can I buy the JBoss Documentation Version 
> 2.4.x#4? On the flashline website, they only propose to buy it with 
> these card type:
> - mastercard
> - visa
> - american express
> - discover
>
> And of course I only have an eurocard :(
> Is there an other website?
>
> TIA,
> Loic
>
>
>
> ___
> 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 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



RE: [JBoss-user] JBuilder and JBoss 3.0 Beta

2002-04-03 Thread Georg Schmid

It is in jmx-rmi-connector-client.jar in $JBOSS_HOME/client.
 
HTH.
 
Georg

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Paul McLachlan
Sent: Wednesday, April 03, 2002 03:17
To: Chris Perren; jboss-user
Subject: RE: [JBoss-user] JBuilder and JBoss 3.0 Beta


I'm no help but I'm having the same problem

-Original Message-
From: Chris Perren [mailto:[EMAIL PROTECTED]]
Sent: Friday, 29 March 2002 7:40 PM
To: jboss-user
Subject: [JBoss-user] JBuilder and JBoss 3.0 Beta


I am trying to run JBoss 3.0 Beta through Jbuilder but unfortunately I am
getting the follow exception. I have had no luck at figure out the correct
jar file to add to my classpath. Thanks for any help
 
Chris 
 
 
02:26:01,645 INFO  [MainDeployer] Deploying:
file:/C:/JBoss/deploy/jmx-rmi-adaptor.sar
 
02:26:01,825 INFO  [RMIAdaptorService] Creating
 
02:26:01,825 INFO  [RMIAdaptorService] Created
 
02:26:01,825 INFO  [RMIAdaptorService] Starting
 
02:26:01,865 ERROR [ServiceController] JMRuntimeException thrown during
ServiceProxy operation start on mbean jboss.jmx:type=Connector,name=RMI
 
java.lang.NoClassDefFoundError: org/jboss/jmx/adaptor/rmi/RMIAdaptor
 
 at java.lang.ClassLoader.defineClass0(Native Method)
 
 at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
 
 at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
 
 at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
 
 at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
 
 at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
 
 at java.security.AccessController.doPrivileged(Native Method)
 
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 
 at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
 
at java.lang.Thread.run(Thread.java:484)





winmail.dat
Description: application/ms-tnef


RE: [JBoss-user] JBoss and standalone Tomcat 4.0.2

2002-03-28 Thread Georg Schmid


You can start Catalina with the -nonaming option.

Georg

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Māris Orbidāns
Sent: Wednesday, March 27, 2002 10:35
To: JBoss user list (E-mail)
Subject: RE: [JBoss-user] JBoss and standalone Tomcat 4.0.2



> 
> The problem is that standalone tomcat doesn't know how to contact the 
> JBoss JNDI registry.  To do this, you can either put a 
> jndi.properties 

I have jndi.properties in Web-inf\classes of my WAR file.
I think maybe the problem is that Tomcat 4.x has it's own JNDI service.
And lookup can see only what's bound in Tomcat JNDI tree.


Maris

> file in your path (I am not sure where, when using tomcat) or you can 
> manually put the values from a jndi.properties file into a Properties 
> object and pass it to the constructor for the InitialContext class.



> Māris Orbidāns wrote:
> 
> >Is it possible to access JBoss from standalone Tomcat 4.0.2 ?
> >
> >My WEB app cannot find EJBs in JNDI anymore. 
> >However it works from JBuilder ( it contains Tomcat 4.0.1 ).
> >
> >Name DataAccess is not bound in this context 
> javax.naming.NameNotFoundException: Name DataAccess is not bound
> >in this Context
> >
> >I have put in /lib of my WEB app.
> >
> >jboss-client.jar
> >jboss-j2ee.jar
> >jbossmq-client.jar
> >jbosssx-client.jar
> >jndi.jar
> >jnp-client.jar
> >
> >
> >Maris
> >
> >___
> >JBoss-user mailing list
> >[EMAIL PROTECTED]
> >https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> 
> -- 
> Andrew Scherpbier, CTO ([EMAIL PROTECTED])
> BlackBall Music (http://www.blackballmusic.com/)
> 
> 
> 
> 

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



winmail.dat
Description: application/ms-tnef


RE: [JBoss-user] JBoss 2.4.4 and Tomcat standalone

2002-03-18 Thread Georg Schmid


The following tip was already posted once on the JBoss user mailing list.

You can start Tomcat 4 with the -nonaming option (edit the startup.sh).
Then the settings in jndi.properties take effect again.

Obviously this option is not documented. I had to search the source.
I am using Tomcat 4.0.4b1, but it should work with other versions as well.

Georg

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Daniel Bruce
Lynes
Sent: Tuesday, March 19, 2002 02:26
To: JBoss-User
Subject: Re: [JBoss-user] JBoss 2.4.4 and Tomcat standalone


On March 18, 2002 11:31 am, Burkhard Vogel wrote:

> there are at least two possibilities:
> first, run Jboss standalone, copy the jars from $JBOSS_HOME/client into
> Tomcats classpath and treat tomcat like any other client application.
> (Remember jndi.properties...)

jndi.properties no longer works in Tomcat 4.  It worked in Tomcat 3.x, 
however.  Tomcat 4 includes its own jndi provider, which doesn't use 
jndi.properties.

___
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



RE: [JBoss-user] Forums down?

2002-03-18 Thread Georg Schmid


Yes.

I get a proxy error on my Windows and Solaris boxes:

Reason: Could not connect to remote machine: Connection refused
Apache/1.3.22 Server at main.jboss.org Port 80

Georg

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Steve Knight
Sent: Monday, March 18, 2002 16:38
To: jboss List
Subject: [JBoss-user] Forums down?


Anyone else having problems accessing the forums via the links from the
website?

Steve


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



RE: [JBoss-user] InvalidClassException

2002-03-18 Thread Georg Schmid


See for instance
http://pgmjsd.weblogs.com/stories/storyReader$61

Georg

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: Monday, March 18, 2002 15:16
To: [EMAIL PROTECTED]
Subject: [JBoss-user] InvalidClassException


I've got two Ear files, both of which contain some of the same classes. When
I deploy both of them in the same JBoss instance, I get the following:
java.lang.reflect.UndeclaredThrowableException: [EmbeddedTomcatSX]
java.io.InvalidClassException
Local class not compatible: stream classdesc
 serialVersionUID=-1389008520464287997 local class
serialVersionUID=-2059137325326823107

If I rebuild both of the ears and deploy them again, the problem doesn't
occur. I have them in separate ears so that I can deploy them on different
schedules though so having to recompile both of them and redeploy defeats
what I was trying to accomplish. I'm currently using JBoss 2.2.2 with Tomcat
3.2.2. Is this the intended behavior? If so, I'll just have to adjust the
way I package and deploy the application.

Rick

___
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



RE: [JBoss-user] Training in France: FORGET IT (En francais only)

2002-03-06 Thread Georg Schmid


May be the French stick with JOnAS?
Georg

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Burkhard
Vogel
Sent: Wednesday, March 06, 2002 00:08
To: JBoss-User; [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Training in France: FORGET IT (En francais
only)


So...
relocate to the middle of these Countries -> Danmark... Have fun, try the
yoghurt, its great...
Burkhard
- Original Message -
From: "marc fleury" <[EMAIL PROTECTED]>
To: "Jboss-Development@Lists. Sourceforge. Net"
<[EMAIL PROTECTED]>
Cc: "Jboss-User@Lists. Sourceforge. Net" <[EMAIL PROTECTED]>
Sent: Saturday, March 02, 2002 2:22 PM
Subject: [JBoss-user] Training in France: FORGET IT (En francais only)


> Guys,
>
> here is the breakdown for the training coming up
>
> UK: 35%
> Scadinavians: 26%
> Germany: 21%
> Switzerland: 8%
> Italy: 5%
> Belgium : 5%
>
> FRANCE: FUCKING  %
>
> Putain c'est quoi votre probleme? Vous etes vraiment trop cons.  Je veux
> bien que "personne n'est prophete dans son pays" mais quand meme, ZERO a
ce
> training, ZERO au training precedent.  C'est quoi c'est trop 4000 euros?
> c'est pas trop cher pour le reste de l'europe.  Je me casse le cul a
monter
> un groupe de premier ordre avec des mecs de premier ordre alors vous
sortez
> de votre lethargie et vous venez aux trainings putain!
>
> Meme les suisses et les belges qui sont connus pour etre des pingres vous
> donnent des lecons.
>
> marcf
>
>
> ___
> 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 mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] How do I run JBoss when deployment descriptor dtd's are unavailable?

2002-03-05 Thread Georg Schmid


Wouldn't this make the corresponding XML document kind of non-standard?
I'd like to suggest another solution: prevent the XML parser from loading
the DTD.

There would not be any need to add more and more DTDs to JBoss jar, nor to
work
with non-standard doctype declarations.

This can be done with Xerces (just set the corresponding feature), but I
don't
know whether Crimson can be talked into completely ignoring the DTD.


Georg

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Dain
Sundstrom
Sent: Tuesday, March 05, 2002 19:26
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [JBoss-user] How do I run JBoss when deployment descriptor
dtd's are unavailable?


It is much easier than that.  Just change the url in the doctype to a
local file url.

-dain


Adrian Brock wrote:

> This DTD was missing from the XmlFileLoader before Feb 2nd this
> year. Any versions of JBoss3 after that should be ok.
>
> A temporary solution would be to run a webserver on your laptop
> and in your host table add the entry
>
> 127.0.0.1 java.sun.com
>
> Make sure the ip stack is configured to look at hosts before
> the dns.
>
> Regards,
> Adrian
>
>
>> From: "Edward Gemar" <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>, "'Jboss-User \(E-mail\)'"
>> <[EMAIL PROTECTED]>
>> Subject: RE: [JBoss-user] How do I run JBoss when deployment
>> descriptor dtd's are unavailable?
>> Date: Tue, 5 Mar 2002 10:58:03 -0600
>>
>> JBoss gives me an "External entity not found" error when attempting to
>> load my application.xml file.  This is reasonable when offline since the
>> dtd "http://java.sun.com/dtd/application_1_3.dtd"; is indeed inaccessible
>> when not connected to the network.  I just checked the jboss jar files
>> and the dtd is indeed in jboss.jar, but wouldn't I need to change the
>> URL in the doctype to point to that one to not get this problem?  What
>> URL are you using to specify the dtd location?
>>
>> This is what my doctype statement looks like:
>>
>> > Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd";>
>>
>>
>> Edward
>>
>> Edward Gemar
>> ForwardVue Technologies, Inc.
>> Austin, TX
>> Vox: 512-482-5126
>> Fax: 512-651-3209
>>
>> -Original Message-
>> From: Alex Loubyansky [mailto:[EMAIL PROTECTED]]
>> Sent: Tuesday, March 05, 2002 10:46 AM
>> To: 'Edward Gemar'; Jboss-User (E-mail)
>> Subject: RE: [JBoss-user] How do I run JBoss when deployment descriptor
>> dtd's are unavailable?
>>
>> Hello.
>>
>> All DTDs should be on your local machine in jboss' jar files. I've never
>> encountered such a problem running locally. How does JBoss complain on
>> it?
>>
>> alex
>> -Original Message-
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED]]On Behalf Of Edward Gemar
>> Sent: Tuesday, March 05, 2002 5:58 PM
>> To: [EMAIL PROTECTED]
>> Subject: [JBoss-user] How do I run JBoss when deployment descriptor
>> dtd's are unavailable?
>> Hi all,
>> We are setting up a laptop to take to customer sites and demo our J2EE
>> app.= We may or may not have internet connectivity at our customer sites
>> so it's important that we can run the server offline (i.e. - not
>> connected to the internet)== The problem is that JBoss when running
>> offline, JBoss complains that it can't the application deployment
>> descriptor dtd at =http://java.sun.com/dtd/application_1_3.dtd.= What is
>> the correct way, if any, to turn off deployment descriptor dtd
>> validation in JBoss?= Any assistance is greatly appreciated.
>>
>> Edward
>>
>>
>
>
>
>
> _
> MSN Photos is the easiest way to share and print your photos:
> http://photos.msn.com/support/worldwide.aspx
>
>
> ___
> 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 mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] CMP2.0 - CMR-fields sometimes (reproduceable!) not persisted in D B (jboss3.0.0beta)?

2002-03-01 Thread Georg Schmid


I ran into the same problem. Now it works (again).
Thanks.

(Note that the new head revision already has the revised deploy structure).

Georg

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of David Jencks
Sent: Friday, March 01, 2002 18:00
To: Sam De Backer
Cc: 'jboss-user @ lists . sourceforge . net'; 'sam . de . backer @
artesiaservices . be'
Subject: Re: [JBoss-user] CMP2.0 - CMR-fields sometimes (reproduceable!)
not persisted in D B (jboss3.0.0beta)?


Could you try with the cvs jboss? I believe I fixed this yesterday.

david jencks

On 2002.03.01 11:20:22 -0500 Sam De Backer wrote:
> Hi there,
>
> I'm puzzled, am I overlooking something here, or is this a bug.
>
> jboss 3.0.0beta, JDK1.3.0, mySQL 3.23.47, mm-mysql-2.0.11, WinNT 4.0 SP6a
>
> I have a simple scheme, 2 entity beans (CMP), A (Workplace) and B
> (Booking),
> related One to Many, like A*B, and a session bean C (Booker) which
> act
> as a session facade to create B objects that need to be related to A
> objects. B has a CMR field, theA (theWorkplace). There is a create method
> for B in BLocalHome, which takes as an argument (a.o.) an ALocal. In B's
> ejbCreate I set the CMP-fields, in ejbPostCreate I set the CMR field
> theA.
> The create method of BLocalHome is called from within the session bean C,
> giving me as returnvalue a BLocal object. This is the setup, now the
> problem.
>
> When my session bean C creates the B (and tries to link it to the A) and
> doesn't do anything more after that (simply returns), the database
> doesn't
> get updated, no UPDATE sql statement in the jboss-log to set the
> FK-column
> B.theA to A's PK! (i also use a SQL spy (P6Spy) to see all SQL going to
> the
> DB, nada there either!)
>
> 2002-03-01 17:06:23,656 INFO  [Default] BookingBean::ejbCreate null
> 2002-03-01 17:06:23,656 DEBUG
> [org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.Booking] Create:
> pk=1014998783656
> 2002-03-01 17:06:23,656 DEBUG
> [org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.Booking]
> Executing
> SQL: SELECT COUNT(*) FROM Booking WHERE id=?
> 2002-03-01 17:06:23,656 DEBUG
> [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.Booking.id]
> Set
> parameter: index=1, jdbcType=BIGINT, value=1014998783656
> 2002-03-01 17:06:23,666 DEBUG
> [org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.Booking]
> Executing
> SQL: INSERT INTO Booking (id, date, person, workplace) VALUES (?, ?, ?,
> ?)
> 2002-03-01 17:06:23,666 DEBUG
> [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.Booking.id]
> Set
> parameter: index=1, jdbcType=BIGINT, value=1014998783656
> 2002-03-01 17:06:23,666 DEBUG
> [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.Booking.date]
> Set parameter: index=2, jdbcType=DATE, value=Mon Feb 25 00:00:00
> GMT+01:00
> 2002
> 2002-03-01 17:06:23,686 DEBUG
>
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.Booking.person]
> Set parameter: index=3, jdbcType=VARCHAR, value=Joeri Leemans
> 2002-03-01 17:06:23,686 DEBUG
> [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.Booking.id]
> Set
> parameter: index=4, jdbcType=BIGINT, value=NULL
> 2002-03-01 17:06:23,686 DEBUG
> [org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.Booking] Create:
> Rows affected = 1
> 2002-03-01 17:06:23,706 INFO  [Default] BookingBean::ejbPostCreate
> 1014998783656
> 2002-03-01 17:06:23,706 DEBUG
> [org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.Workplace] RESET
> PERSISTENCE CONTEXT: id=1014998783475
> 2002-03-01 17:06:23,706 DEBUG
> [org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.Workplace] load data:
> entity=Workplace pk=1014998783475
> 2002-03-01 17:06:23,716 DEBUG
> [org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.Workplace] No preload data
> found: entity=Workplace pk=1014998783475
> 2002-03-01 17:06:23,716 DEBUG
> [org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.Workplace] Default
> eager-load for entity
> 2002-03-01 17:06:23,716 DEBUG
> [org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.Workplace]
> Executing
> SQL: SELECT name, company, floor FROM Workplace WHERE (id=?)
> 2002-03-01 17:06:23,716 DEBUG
> [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.Workplace.id]
> Set parameter: index=1, jdbcType=BIGINT, value=1014998783475
> 2002-03-01 17:06:23,716 DEBUG
>
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.Workplace.name]
> Get result: index=1, javaType=java.lang.String, Simple, value=BRFI1-2-034
> 2002-03-01 17:06:23,716 DEBUG
>
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.Workplace.compan
> y] Get result: index=2, javaType=java.lang.String, Simple, value=Wemmel
> 2002-03-01 17:06:23,716 DEBUG
>
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.Workplace.floor]
> Get result: index=3, javaType=int, Simple, value=2
> 2002-03-01 17:06:23,716 DEBUG
>
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.Workplace.Booking_
> workplace] Read ahead cahce load: cmrField=Booking_workpl

RE: [JBoss-user] buried config in tomcat4-service.sar

2002-02-28 Thread Georg Schmid



If that's the way they work, they won't work (from a user perspective), at
least not,
if you don't supply a user interface to do it.

I've been at a BEAcon Europe. Do you really think any of these IT bosses of
banks
and insurance companies would accept a thing like that?

(Say you have 200 sar's, do you say, you are going to maintain them
through ant scripts?)

What one would like to have is a management console like the Veritas Volume
Manager has
or the MS Windows management GUIs. EJX is dead, but no replacement planned
(you see the
posts on the forums, that sound: where's the management GUI, like ORION,
BEA, etc. have?).

My biggest concern is that this developer only perspective is going
to kill JBoss in the corporate IT space. Only eating away LAMP market share.

Lack of scalability from the administrator's perspective.
Isn't that exactly the problem that the JMX-MBean story should solve?

(OK. Just read marc's email on this. He simply says: it's a pain in the ass,
end of story. I like him.)

My $.02.

Georg

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of David Jencks
Sent: Thursday, February 28, 2002 01:38
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] buried config in tomcat4-service.sar


On 2002.02.27 14:15:59 -0500 David Ward wrote:
> I like the .sar idea, but if I want to tweak a port in Tomcat (or
> uncomment the Ajp13 section) in JBoss-3.0.0beta_Tomcat-4.0.2, I have to
> extract the deploy/tomcat4-service.sar file, edit its
> META-INF/jboss-service.xml file, re-jar it, and drop it back into
> deploy.  It's easy, but a bit of a pain.  Is this how the .sar's in
> general are going to work if you want to tweak a config, or is there an
> easier way to do it?

Well, yes this is how they work.  If you are assembling the sar yourself
it's not so bad because you just built the thing with an ant script anyway.
 Marc is pushing for the standard contents of jboss to _not_ be packed in
sars for the very reason you are experiencing.  I agree that it is too
painful to have to do this to tweak the configuration of something you
didn't write like Tomcat, however I wish there was a way to keep the
indication of "these jars belong to this plugin, and so do these mbeans" so
you can add or remove the whole service easily.  (If anyone else thinks
this is a worthwhile goal) maybe we could package all the jars for a "unit"
like Tomcat in a sar with an empty jboss-service.xml, and have the
configuration in an external xml file or in the main jboss-service.xml.
Maybe it's just not that important.

david jencks
>
> (I know I'm just a whining user who hasn't contributed any code to date,
> but I AM grateful for everyone in the team's awesome work...)
>
> David
>
>
> ___
> 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 mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] /tmp/deploy/ getting cleaned up?

2002-02-25 Thread Georg Schmid


I'm using RH3.0 (from CVS, only a few days [<4] old) both on WindowsNT/W2K
and Solaris.

On Solaris removing jars during undeploy works, but not on the windows
platforms.
Actually, tmp\deploy is never cleaned up on Windows, even not during a
restart.

After a few redeploys I have half a dozen instances of the same EJB jar in
tmp\deploy.
Every now and then I remove them manually. To do this I have to shutdown the
server,
because all the jars are locked.

Georg

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Hunter
Hillegas
Sent: Sunday, February 24, 2002 21:30
To: Paul Cody
Cc: JBoss 2
Subject: Re: [JBoss-user] /tmp/deploy/ getting cleaned up?


JBoss 3 HEAD, as of this morning...

> From: Paul Cody <[EMAIL PROTECTED]>
> Date: Sun, 24 Feb 2002 12:22:08 -0800
> To: "'Hunter Hillegas'" <[EMAIL PROTECTED]>
> Cc: "'[EMAIL PROTECTED]'"<[EMAIL PROTECTED]>
> Subject: RE: [JBoss-user] /tmp/deploy/ getting cleaned up?
>
> Hmm, mine (2.4.4 catalina) gets cleaned up at startup:
>
> [INFO,J2eeDeployer] Starting
> [INFO,J2eeDeployer] Cleaning up deployment directory
> [INFO,J2eeDeployer] Started
>
> Of course, after deployments there are about 25 files in the
> $JBOSS/tmp/deploy/Default directory that are the contents of the deployed
> ear file.  Are you sure you have restarted? What are the timestamps of the
> files in tmp/deploy?  What version of JBoss are you using?
>
> Paul
>
>> -Original Message-
>> From: Hunter Hillegas [mailto:[EMAIL PROTECTED]]
>> Sent: Sunday, February 24, 2002 11:55 AM
>> To: JBoss 2
>> Subject: [JBoss-user] /tmp/deploy/ getting cleaned up?
>>
>>
>> Is /tmp/deploy getting cleaned up by anything ever?
>>
>> I have 183 files in there, about 50 of which are copies of my
>> wars and jars,
>> from each deployment/re-deployment.
>>
>> Is something supposed to clear this at startup or shutdown?
>>
>> Hunter
>>
>>
>> ___
>> 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 mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user