[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: How to prevent ApplicationDeadlockException with READ-ON

2006-05-05 Thread ereze
I have the same problem: methods marked with read-only but still lots of 
deadlocks which obviously make our customer mad.

Any question I had regarding this issue was left unanswered by JBoss which I 
guess does not have a clue too.
Maybe I need to come down from the JBoss and go with something else. It's been 
fun with < 100 online clients but now it's really not going anywhere.

I hope someone from the BIG JBoss would come down to us earthy developers and 
gave some answers. But I guess that will not happen too.



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3941606#3941606

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3941606


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - A way to log locking of entities

2006-05-04 Thread ereze
Is there a way to log or trace the locking of entities while they are being 
accessed ?

I am trying to solve deadlocks situations that are probably the result of load 
& access contention. In order to solve this I have tried to mark get* and is* 
methods as read-only but that seems not to be working.

How can I tell if JBoss locks or not?

Thanks,
Erez

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3941445#3941445

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3941445


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: oracle and jdbc2 persistence manager

2006-01-02 Thread ereze
I am interested too in the new configuration of jdbc2 pm using the version 
column for the optimistic lock state.

Have you found a solution?

Erez


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3915212#3915212

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915212


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - No optimistic locking in JBoss

2006-01-01 Thread ereze
Yes there is a configuration, and yes it deals with checking if the entity 
status had changed from the last read before updating. BUT you have to make 
real jumps and wish big time in order to deal with what happens when the update 
fails. According to what I've seen.

A. No real answer from JBoss.
B. The exception thrown is plain EJBException so you cannot tell if the 
rollback was due to an "update fail" or something else like any other 
applicative or system error.  OTHER J2EE servers do support this better.

Handling the cache is another drawback - you have to choose between ditching 
the cache in optimistic or having deadlocks in pessimistic. No other solution 
is given from JBoss, one that is really documented and tested.

I like JBoss but I get no answers and the answers I do have/read are not good 
enough. 

I hope I am wrong :(

Erez Efrati.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3915126#3915126

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915126


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - CMP2.x jdbc2 pm configuration and version fields

2005-12-28 Thread ereze
I would like to use the new "Cmp2.x jdbc2 pm".

I set the entity to use optimistic locking with version fields.
The application starts up and throws complains that the entity is missing the 
version field. This did not happen in other container configuration like the 
"Standard CMP2.x Entity". Is this a bug in the new "Cmp2.x jdbc2 pm" or should 
I declare those fields like any other CMP field in my entity?

Thanks,
Erez

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3914594#3914594

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3914594


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Does CMP2.x jdbc2 pm supports optimistic version fields?

2005-12-28 Thread ereze
Does the Configuration "CMP 2.x jdbc2 pm" in 3.2.6 supports the optimistic 
locking version fields? Does it update them correctly?

Thanks,

Erez

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3914593#3914593

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3914593


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Optimistic locking

2005-12-28 Thread ereze
To improve concurrency and to avoid deadlock I want to use Optimistic Locking 
using object version field.
My system currently uses cache option A. 

Is it true that in order to use Optimistic Locking I need to use cache option B 
or C but NOT A? Do I have to use "Instance Per Transaction" container 
configuration with locking-policty of JDBCOptimisticLock ?

Thanks in advance,

Erez

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3914581#3914581

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3914581


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: Subject not removed on session invalidation 3.2.7

2005-12-03 Thread ereze
In fact,

I dumped the XDoclet and written the jboss-web manually and inserted the 
flushOnSessionInvalidation flag. It works fine.

The initial reason I moved to the 3.2.7 was that I read somewhere that maybe 
3.2.7 solved a problem scheduling services not finding the scheduled class 
after a redeployment of the application EAR.
The scheduler still (in 3.2.7 too) does not find the scheduled class after the 
redeployment.

Can you give me any pointers or any solution?

Thanks,

-- Erez

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3910470#3910470

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3910470


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Subject not removed on session invalidation 3.2.7

2005-12-02 Thread ereze
I am moving to 3.2.7 from 3.2.6. Problem is that when my application is calling 
session.invalidate() for some reason the application seem to think that the 
user is still logged in. Has that anything to do with the subject being saved? 
or that new flag flushOnSessionInvalidation?

Since I am using XDoclet to generate the Jboss-web.xml and XDoclet still 
doesn't support this new flag, I guess I am stuck and need to stay with 3.2.6 
for now.

Thanks in advance,

Erez

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3910385#3910385

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3910385


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Tomcat, HTTPD, Servlets & JSP] - SessionDestroyed not called

2005-08-18 Thread ereze
I have a SessionListener class that Implements the HttpSessionListener 
interface. 
Everything works fine: On every new session tomcat does call the 
sessionCreated().
BUT.. for some reason on some of the sessions that alreay timed-out the 
sessionDestoryed() is not called.

(I am using JBoss 3.2.6 + Tomcat.)

Any help will be greatly appreciated.

Erez

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3890675#3890675

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3890675


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: read ahead ,collection and stateful session bean

2005-04-11 Thread ereze
It would be nice if accessing an object in the collection caused (on-load) 
other forward objects in the collection to be retrieved (selected). I guess I 
would have to come up with some of my own code based solution. 

Erez

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3873389#3873389

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3873389


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - read ahead ,collection and stateful session bean

2005-04-10 Thread ereze
I have a stateful session bean that keeps a collection of objects selected by 
running a finder marked with on-load read ahead strategy.

Thing is, I think that the next call from my web app to the stateful session 
bean, trying to run through some objects in the collection the preload cache or 
the lists cache is gone and read ahead strategy is not working.
I guess this has to do with the fact that there are two transactions in the 
story involved. In the first the collection is retrieved/selected using the 
finder. Then the second transaction accesses the object in that collection. 

Is this true that the lists cache of the collection is gone when the first 
tranaction is done? If so, then I think that it is wrong, since the stateful 
supposed to be STATEFUL.

Thanks,

Erez

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3873386#3873386

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3873386


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: Why does JBoss load each column separately?

2005-04-07 Thread ereze
I am seeing this behaviour too in one of my entities where no matter what the 
CMP engine generates & fires a seperate SQL SELECT query for each cmp field 
accessed.

I am too, using 3.2.6, why is it happening when the default load-group is set 
to '*'?

Thanks in advance,

Erez

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3873132#3873132

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3873132


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


jboss-user@lists.sourceforge.net

2005-04-04 Thread ereze

It's a pitty but I can't seem to find a way to issue a bitwise AND: 
  " ?1 ^ ?2 = ?3" SQL command. Isn't there a way?

If only we could extend or add more function mappings to the 
standardjboss-cmp.xml that would have solved it.

Any help would be appreciated here,

Erez

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3872624#3872624

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3872624


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - CMR-field getXXX and deadlocks

2005-03-29 Thread ereze
I am using JBoss 3.2.6 and I have a deadlock problems even after setting 
read-only flag on methods that match the pattern: "get*" and "is*".

I read the following about Resin:
anonymous wrote : By default, Resin knows that findXXX, ejbSelectXXX, and 
cmp-field and cmr-field getXXX methods are read transactions. It assumes that 
all other business methods are update transactions.

I have read here in the forums that cmr-field getXXX take TX locks. Is that 
true? if so, how can I avoid it?

Erez


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3871962#3871962

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3871962


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Locking Traces

2005-03-23 Thread ereze
Could someone show me how to turn on log traces of the EJB locking mechanism. I 
wish to see those printed in the log but I can't find anything that causes them 
to come up.

Thanks,

Erez

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3871237#3871237

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3871237


---
This SF.net email is sponsored by: 2005 Windows Mobile Application Contest
Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones
for the chance to win $25,000 and application distribution. Enter today at
http://ads.osdn.com/?ad_id=6882&alloc_id=15148&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [HTTPD, Servlets & JSP] - General question

2005-02-18 Thread ereze
Is it wise or worthwhile to have Apache2 in front of JBoss/Tomcat using JK1.2 
or is it ok in terms of performance to run solely on JBoss/Tomcat in the front 
without Apache? 

Thanks,

Erez


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3867041#3867041

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3867041


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - DVC with xdoclet

2004-12-27 Thread ereze
I am trying to generate the  element using xdoclet 
@jboss.dvc-property but I can't seem to get it to generate the element at all.

All I saw up to now was the tag @jboss.dvc-property which was a bit confusing 
in his documentation. I don't really get it where to put the tag in order to 
get it to generate the  element.
Another way is to write it myself and merge it.

Has anybody have experience and can help? 

Thanks in advance,

Erez

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859951#3859951

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3859951


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - from where to get JMX?

2004-12-22 Thread ereze
I am a real newbie in this subject of JMX.
I am using MyEclipse/Eclipse JBoss 3.2.5 and I would like
to use JMX. 
Do I need to download something to be able to 
import "javax.management.XXX"?
If so, from where?

Thanks in advance,
newbie

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859685#3859685

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3859685


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: When flush JAAS cache

2004-12-22 Thread ereze
Can someone please help?
I want to let users modify their username.
How can I flush the cache entry of this specific user and not 
of the whole application?

Thanks in advance (hoping for some replies)

Erez

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859673#3859673

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3859673


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: When flush JAAS cache

2004-12-22 Thread ereze
Can someone please help?
I want to let users modify their username.
How can I flush the cache entry of this specific user and not 
of the whole application?

Thanks in advance (hoping for some replies)

Erez

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859672#3859672

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3859672


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - how to implement a change of user password?

2004-10-27 Thread ereze
Hi, 

(I am running with JBoss 3.2.5.)

In my application the user can change his password. The change should 
take effect immediately. But unfortunately the JBoss keep the user older credentials 
in the cache for the amount of time specified where the default is 1800 seconds (30 
min.). 

First I suppose I am not the first to come across such a requirement. So I am pretty 
sure (I hope) someone has a solution. The JBoss security credentials cache is a great 
feature and I would like to continue using it, so a solution of setting the entry 
time-to-leave to 0 is not a good solution for me. I read about the flush option that 
clears the cache - this is also not very good for me - why loose all the cache because 
of just one user.

I would appreciate any help

Erez


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853018#3853018

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853018


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Synchronization of Stateful Session Bean

2004-08-04 Thread ereze
"[EMAIL PROTECTED]" wrote : Change the stateful session interceptor to synchronize 
calls instead of throwing an exception or add a client interceptor that does the 
synchronization on the client side.

How do you do that?

--Erez

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3844159#3844159

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3844159


---
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - SFSB problem

2004-08-04 Thread ereze
Hi,

I have a statefull session bean that performs searching for the user and keeps the 
searching results for paging though the results. 
I have a page with a link to activate the search "search". If I click it once the 
search is fired and everything works nicely. If I click it twice faster I get the 
following error:

tried to enter Stateful bean with different tx context, contextTx: 
TransactionImpl:XidImpl [FormatId=257, GlobalId=Erez//224, BranchQual=], methodTx: 
TransactionImpl:XidImpl [FormatId=257, GlobalId=Erez//225, BranchQual=]

Why is that and what should I be doing?

Thanks in advance,

Erez


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3844156#3844156

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3844156


---
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: connecting MySQL & unicode problem

2004-08-04 Thread ereze
By the way, what version of MySQL ?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3844154#3844154

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3844154


---
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - principalsQuery and rolesQuery

2004-04-07 Thread ereze
Hi, 

This kind of a newbie question. I have two entities Employee and User both have 
'username' field. The username is unique in the namespace of two combined.

Currently  I have the following in my login-config.xml (using 
DatabaseServerLoginModule)


  |  select password from users where 
username=?
  |  select 'User', 'Roles' from users where 
username=?
  | 

How do I change the select so it would look also in the Employee table? (Kind of an 
SQL question but still relates strongly to JAAS).

Thanks in advance,
Erez 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3829601#3829601

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3829601


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - ClassLoading problems

2004-03-26 Thread ereze
Hi all,

In my efforts to work work with velocity to generate tempalted emails, 
I got stuck with the classLoading problems, which I don't seem to pass.

I get the followig error:

" Unable to find resource 'resources.UserLoginInfo.vm' " 

I tried a more general test to just load a simple properties file
and failed too...


  |  ClassLoader classLoader = this.getClass().getClassLoader();
  | InputStream istream = 
classLoader.getResourceAsStream("resources.application.properties");
  | 

Note: the resource name is with a dot "." resource.application.propperties.
Now, it's strange cause the struts modules picks it up without any problem. Though 
here I called these lines from a method in one of my EJB entities. Anyway, in return I 
get null.

My application is contains the Logic (and EJB module) and Web (web module). the 
UserLoginInfo.vm is located under the resources directory. 

Here is my Emailer.java: 

Code: 


  | /**
  |  * A utility class that provides API for sending 
  |  * templated emails per application use case. 
  |  * The Emailer uses Velocity SDK to generate
  |  * the templated emails.
  |  * 
  |  * @author  Erez Efrati
  |  * @version $Revision:$ $Date:$
  |  */
  | public class Emailer {
  | 
  | /**
  |  * JNDI context for JavaMail sessions.
  |  */
  | private static final String JNDI_JAVA_MAIL = "java:/Mail";
  | 
  | /**
  |  * The content type of the HTML email messages.
  |  */
  | private static final String HTML_CONTENT_TYPE = "text/html;charset=UTF-8";
  | 
  | /**
  |  * The user-login-info email template resource name.
  |  */
  | private static final String VM_USER_LOGIN_INFO_REMINDER 
  | = "resources.UserLoginInfo.vm";
  | 
  | // Velocity variable names keys
  | private static final String VMVAR_USER = "user";
  | private static final String VMVAR_SUBJECT = "subject";
  | 
  | /**
  |  * the engine instance
  |  */
  | VelocityEngine m_engine = new VelocityEngine ();
  | 
  | // -- Private Methods
  | 
  | 
  | /**
  |  * Configures the engine to use classpath to find templates
  |  * 
  |  * @param enginethe engine to configure
  |  * @throws Exceptionthrown if an errors occures
  |  */
  | private void configure (VelocityEngine engine) throws Exception 
  | {
  | Properties props = new Properties ();
  | props.setProperty (VelocityEngine.RESOURCE_LOADER, "classpath");
  | props.setProperty ("classpath." + VelocityEngine.RESOURCE_LOADER + 
".class",
  | 
ClasspathResourceLoader.class.getName());
  | m_engine.init (props);
  | }
  | 
  | 
  | /**
  |  * Creates a Velocity context
  |  */
  | private VelocityContext createContext()
  | {
  | VelocityContext ctx = new VelocityContext ();
  | return ctx;
  | }
  | 
  | /**
  |  * Retreives a new JavaMail Mime message
  |  * 
  |  * @return
  |  * @throws NamingException
  |  */
  | private MimeMessage createMimeMessage() throws NamingException 
  | {
  | Context initCtx = new InitialContext ();
  | Session session = (Session)initCtx.lookup (JNDI_JAVA_MAIL);
  | MimeMessage message = new MimeMessage (session);
  | return message;
  | }
  | 
  | // -- Public Methods
  | 
  | /**
  |  * Default constructor, configures the velocity engine.
  |  * 
  |  * @throws Exception, if an error occures
  |  */
  | public Emailer () throws Exception
  | {
  | configure (m_engine);
  | }
  | 
  | 
  | /**
  |  * Sends an email to the specified user containing
  |  * his login information which includes his username and password.
  |  *  
  |  * @param user
  |  * @throws Exception
  |  */
  | public void sendUserLoginInfo (User user) throws Exception
  | {
  | // retrieve the email template
  | Template template = m_engine.getTemplate (VM_USER_LOGIN_INFO_REMINDER);
  | 
  | // prepare the context and store data objects in it
  | VelocityContext ctx = createContext ();
  | ctx.put (VMVAR_USER, user);
  | 
  | // merge the template
  | StringWriter writer = new StringWriter ();
  | template.merge (ctx, writer);
  | writer.close ();
  |   
  | // retrieve the message subject and text. The subject 
  | // is formulated as part of the email velocity template.
  | StringBuffer text = writer.getBuffer();
  | String subject

[JBoss-user] [HTTPD, Servlets & JSP] - Re: Velocity integration

2004-03-24 Thread ereze
Hi there, I trying to work with the Velocity and keep complaining the following error 
message:

" Unable to find resource 'resources.UserLoginInfo.vm' "

My application is contains the Logic (and EJB module) and Web (web module). the 
UserLoginInfo.vm is located under the resources directory.

Here is my Emailer.java:


  | /**
  |  * A utility class that provides API for sending 
  |  * templated emails per application use case. 
  |  * The Emailer uses Velocity SDK to generate
  |  * the templated emails.
  |  * 
  |  * @author  Erez Efrati
  |  * @version $Revision:$ $Date:$
  |  */
  | public class Emailer {
  | 
  | /**
  |  * JNDI context for JavaMail sessions.
  |  */
  | private static final String JNDI_JAVA_MAIL = "java:/Mail";
  | 
  | /**
  |  * The content type of the HTML email messages.
  |  */
  | private static final String HTML_CONTENT_TYPE = "text/html;charset=UTF-8";
  | 
  | /**
  |  * The user-login-info email template resource name.
  |  */
  | private static final String VM_USER_LOGIN_INFO_REMINDER 
  | = "resources.UserLoginInfo.vm";
  | 
  | // Velocity variable names keys
  | private static final String VMVAR_USER = "user";
  | private static final String VMVAR_SUBJECT = "subject";
  | 
  | /**
  |  * the engine instance
  |  */
  | VelocityEngine m_engine = new VelocityEngine ();
  | 
  | // -- Private Methods
  | 
  | 
  | /**
  |  * Configures the engine to use classpath to find templates
  |  * 
  |  * @param enginethe engine to configure
  |  * @throws Exceptionthrown if an errors occures
  |  */
  | private void configure (VelocityEngine engine) throws Exception 
  | {
  | Properties props = new Properties ();
  | props.setProperty (VelocityEngine.RESOURCE_LOADER, "classpath");
  | props.setProperty ("classpath." + VelocityEngine.RESOURCE_LOADER + 
".class",
  | 
ClasspathResourceLoader.class.getName());
  | m_engine.init (props);
  | }
  | 
  | 
  | /**
  |  * Creates a Velocity context
  |  */
  | private VelocityContext createContext()
  | {
  | VelocityContext ctx = new VelocityContext ();
  | return ctx;
  | }
  | 
  | /**
  |  * Retreives a new JavaMail Mime message
  |  * 
  |  * @return
  |  * @throws NamingException
  |  */
  | private MimeMessage createMimeMessage() throws NamingException 
  | {
  | Context initCtx = new InitialContext ();
  | Session session = (Session)initCtx.lookup (JNDI_JAVA_MAIL);
  | MimeMessage message = new MimeMessage (session);
  | return message;
  | }
  | 
  | // -- Public Methods
  | 
  | /**
  |  * Default constructor, configures the velocity engine.
  |  * 
  |  * @throws Exception, if an error occures
  |  */
  | public Emailer () throws Exception
  | {
  | configure (m_engine);
  | }
  | 
  | 
  | /**
  |  * Sends an email to the specified user containing
  |  * his login information which includes his username and password.
  |  *  
  |  * @param user
  |  * @throws Exception
  |  */
  | public void sendUserLoginInfo (User user) throws Exception
  | {
  | // retrieve the email template
  | Template template = m_engine.getTemplate (VM_USER_LOGIN_INFO_REMINDER);
  | 
  | // prepare the context and store data objects in it
  | VelocityContext ctx = createContext ();
  | ctx.put (VMVAR_USER, user);
  | 
  | // merge the template
  | StringWriter writer = new StringWriter ();
  | template.merge (ctx, writer);
  | writer.close ();
  |   
  | // retrieve the message subject and text. The subject 
  | // is formulated as part of the email velocity template.
  | StringBuffer text = writer.getBuffer();
  | String subject = (String)ctx.get (VMVAR_SUBJECT);
  | 
  | // create a new message to work with
  | MimeMessage message = createMimeMessage ();
  | 
  | // retrieve the user's email address
  | String to = user.getEmail ();
  | 
  | String from = App.getSupportEmailAddress ();
  | message.setFrom (new InternetAddress (from));
  | message.addRecipient (Message.RecipientType.TO,
  |   new InternetAddress (to));
  |   
  | // se

[JBoss-user] [HTTPD, Servlets & JSP] - class loading error

2004-03-07 Thread ereze
I am working with JBoss 3.2.3 with Tomcat 4.1.29, and Eclipse as the IDE.

I keep getting the following warning  
"org.jboss.web.tomcat.tc4.WebCtxLoader$ENCLoader" when I redeploy my application. what 
does it mean? how can I solve it?

I don't know if it has something to do with it, but I work with Eclipse and if I 
redepoly my application by touching one of the files, JBoss senses it and redeployes 
my app, but from then on, I have problems of ClassNotFound exceptions on classes that 
exists and there is no real reason for this kind of exception. Restarting JBoss clears 
the problem and everything works well. any idea? is it related to the loader warning?

Thanks in advance,

Erez

http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3824595#3824595";>View 
the original post

http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3824595>Reply 
to the post


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: java.sql.Timestamp instead of java.util.Date

2004-02-29 Thread ereze
Anybody knows if this issue is fixed in 3.2.3?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3823475#3823475

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3823475


---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: Need help with error page

2004-02-07 Thread ereze
View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3820614#3820614

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3820614

I am having the same problems, and I use JAAS, is it a problem? I am using 3.2.1 with 
Tomcat ,



Thanks in advance,



Erez


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user