Re: [JBoss-user] Can I store a Local Entity Bean in my HttpSession?

2003-03-16 Thread Rafal Kedziorski
hi,

At 21:53 15.03.2003 -0700, Russell Black wrote:
Can I store a Local Entity Bean in my HttpSession? That is, will it be 
valid on subsequent requests?

Something like this?
session.setAttribute(foo, beanLocalHome.findByPrimaryKey(key));
thath's correct:

session.setAttribute(foo, beanLocalHome);

You can take a look on ServiceLocator pattern

http://java.sun.com/blueprints/patterns/ServiceLocator.html

Thanks,
Russell


---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [ANN] Pixory beta-2.8

2003-03-16 Thread joe panico
The Viewer portion of the application has been graphically redesigned to
make it more attractive and ergonomic. You can see these changes in new
screenshots on the pixory website (AlbumCatalog, AlbumIndex, AlbumPage).

There are also several enhancements and bugfixes.

--
Pixory is a personal image server built on JBoss-Jetty and Tapestry.

More information can be found here:

www.pixory.org

joe



--
Open WebMail Project (http://openwebmail.org)



---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] get environment entries

2003-03-16 Thread Stefan Groschupf
Hello,

My bean needs some custom configurationvalues. Described in the book
mastering enterprise java beanspage 244, I want to put these values in a
ejb-jar file and query the values via jndi.
My problem is I can't access the values like described in the book, I get a
not bound exception.

Anyone know how to access environment entries by an ejb in jboss?
Someone know a other way to access custom values in a xml file?

Thanks for any hints
Stefan







---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [IDE] jndi browse

2003-03-16 Thread Stefan Groschupf
Hi,

I use the jboss-ide and want to browse the jndi tree with the jndi browser
plugin from Ranult Waldura.
The problem is I can't access a jndi tree from a jboss I had start with the
jboss-ide.

What I have to setup?
Get this somebody running?

Thanks
Stefan





---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] Can I store a Local Entity Bean in my HttpSession?

2003-03-16 Thread Rod Macpherson
There is no expiration date on home or remote or local interfaces so as long as the 
session survives (sessions can expire) so will session bound objects. Provided you 
catch all the appropriate exceptions this seems fine. Consider hiding the lookup and 
caching the intitial context such as Rafal suggests in his pattern reference. It seems 
a bit of a stretch to call that a pattern as Sun is doing; it's an application of lazy 
loading and caching of objects. We use a session payload object and stuff it with 
references to objects required for that user's use case and then toss it once the use 
case is complete. This is combined with a central lookup factory that I use during the 
population of a payload. That way you have one thing to track per session: the 
payload.  

-Original Message- 
From: Russell Black [mailto:[EMAIL PROTECTED] 
Sent: Sat 3/15/2003 8:53 PM 
To: [EMAIL PROTECTED] 
Cc: 
Subject: [JBoss-user] Can I store a Local Entity Bean in my HttpSession?


Can I store a Local Entity Bean in my HttpSession? That is, will it be valid 
on subsequent requests? 

Something like this?
session.setAttribute(foo, beanLocalHome.findByPrimaryKey(key));

Thanks,
Russell

winmail.dat

Re: [JBoss-user] snmp crashing jboss and jvm

2003-03-16 Thread nick
Hi Steve,
Yes I agree that would be a good starting point, but the problem has 
only occurs on our production servers and running everything in DEBUG 
would slow our services down too much. For example initially I tried 
running the cluster and javagroups classes in DEBUG but encountered 
highly noticeable slowdown.
I can avoid the problem by just not using the snmp tools. While this is 
inconvenient, it is not enough of a problem to warrant running in DEBUG 
mode.

If noone else has any suggestions or encountered a similar problem, I 
guess that leaves me one option - try and reproduce the problem in our 
test environment and go from there.

Stephen Davidson wrote:

Hi Nick.

Just a suggestion for a starting point, but maybe turn on debugging in 
JBoss?
Set to maximum.  I believe that there is a log4j.xml file kicking 
around where you can set this.  With a little luck, you may get some 
extra output into the server log before the crash happens, that can at 
least ballpark what is going down, where.

-Steve

nick wrote:

Hi,
This is a tough one.
We have a lot of legacy monitoring tools that use snmp, including 
MRTG and some homegrown tools.
Our environment is 4 clustered jboss-3.0.6 nodes running on 
j2sdk1.4.1 on 4 Redhat 7.3 servers. We have a lot of network traffic, 
throughput is up to 3Mb/sec.

When we run the monitoring tools we sometimes get nasty JVM crashes 
along with a hs_err_pid2091.log type files, which I have attached. 
There is no error output to the jboss logs. Using the ps command 
there are no leftover jboss processes, I guess this is because the 
JVM itself has crashed.

I don't know much about snmp, but am aware it uses UDP (as does the 
clustered jboss).

Could there be data packets from our snmp tools somehow infiltrating 
into jboss and crashing our JVM's?

Note that ideally we would be using monitoring tools using jmx, but 
we want to use our existing tools.

Any suggestions gratefully accepted.
regards,
Nick



---
This SF.net email is sponsored by:Crypto Challenge is now open! Get 
cracking and register here for some mind boggling fun and the chance 
of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] how do i set up non-transactional datasource

2003-03-16 Thread Colin Daly


hi guys,

i'm using the mvcsoft hi-lo primary key generator and 
i need to set up a non-transactional datasource in 
JBoss 3.0.1. The database we are using is postgres.
Has anyone set up a non-transactional datasource in
JBoss 3.x ? 

Colin.





---
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] how do i set up non-transactional datasource

2003-03-16 Thread Colin Daly

well i've got what i think is a non-transactional datasource
deploying now (see attached).
I can't test it yet because i'm getting a NPE in the generated 
MVCSoft code. I'll sort that out and let you know if it works.

Colin.


On Mon, 17 Mar 2003 14:53, Colin Daly wrote:
 hi guys,

 i'm using the mvcsoft hi-lo primary key generator and
 i need to set up a non-transactional datasource in
 JBoss 3.0.1. The database we are using is postgres.
 Has anyone set up a non-transactional datasource in
 JBoss 3.x ?

 Colin.





 ---
 This SF.net email is sponsored by:Crypto Challenge is now open!
 Get cracking and register here for some mind boggling fun and
 the chance of winning an Apple iPod:
 http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
?xml version=1.0 encoding=UTF-8?

  !--  --
  !-- New ConnectionManager setup for default PostgreSQL dbs   --
  !-- Build jmx-api (build/build.sh all) and view for config documentation --
  !-- To avoid class not found headaches, copy your postgres driver to the jboss lib directory --
  !--  --

server

  mbean code=org.jboss.resource.connectionmanager.NoTxConnectionManager name=jboss.jca:service=NoTxCM,name=NonTransactionalPostgresDS
dependsjboss.jca:service=RARDeployer/depends

!-- = --
!--comment out this line if you want component managed security or want
to use the default values in the ManagedConnectionFactoryProperties --

depends optional-attribute-name=ManagedConnectionFactoryName
  !--embedded mbean--
  mbean code=org.jboss.resource.connectionmanager.RARDeployment name=jboss.jca:service=NoTxDS,name=NonTransactionalPostgresDS
!-- == Set the JndiName === --
attribute name=JndiNameNonTransactionalPostgresDS/attribute
attribute name=ManagedConnectionFactoryProperties
  properties
config-property name=ConnectionURL type=java.lang.Stringjdbc:postgresql:cop/config-property
config-property name=DriverClass type=java.lang.Stringorg.postgresql.Driver/config-property
!--set these only if you want only default logins, not through JAAS --
config-property name=UserName type=java.lang.String/config-property
config-property name=Password type=java.lang.String/config-property
  /properties

/attribute

!--Below here are advanced properties --
!--hack--
depends optional-attribute-name=OldRarDeploymentjboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC Wrapper/depends

!--real attributes--
  /mbean
/depends

depends optional-attribute-name=ManagedConnectionPool
  !--embedded mbean--
  mbean code=org.jboss.resource.connectionmanager.JBossManagedConnectionPool name=jboss.jca:service=NoTxPool,name=NonTransactionalPostgresDS

attribute name=MinSize0/attribute
attribute name=MaxSize50/attribute
attribute name=BlockingTimeoutMillis5000/attribute
attribute name=IdleTimeoutMinutes15/attribute
!--criteria indicates if Subject (from security domain) or app supplied
parameters (such as from getConnection(user, pw)) are used to distinguish
connections in the pool. Choices are 
ByContainerAndApplication (use both), 
ByContainer (use Subject),
ByApplication (use app supplied params only),
ByNothing (all connections are equivalent, usually if adapter supports
  reauthentication)--
attribute name=CriteriaByContainer/attribute
  /mbean

/depends
depends optional-attribute-name=CachedConnectionManagerjboss.jca:service=CachedConnectionManager/depends

depends optional-attribute-name=JaasSecurityManagerServicejboss.security:service=JaasSecurityManager/depends
  /mbean
/server