Re: [JBoss-user] Available JMX connector/adapter

2003-06-12 Thread kiuma
wondersonic wrote: Hello, I would like to know what kind of connector are available to manage a JBoss server (class name...). Thanks in advance, WS --- This SF.NET email is sponsored by: eBay Great deals on office technology -- on eBay now! Click

Re: [JBoss-user] E/A-Exception during JMS action with OracleDB

2003-06-12 Thread Marek Lange
Scott M Stark schrieb: This is an internal db error. How much data is a huge amount and what is the oracle db and jdbc driver versions? Scott, we use Oracle 8.1.7_01 with the jdbc driver classes12.zip. The data submitted isn't bigger than 1MB. Is the OCI driver recommended or shouldn't we first u

[JBoss-user] Datasource service support dropped?

2003-06-12 Thread Francisco Figueiredo Jr.
Hi all, I'd like to know how can I configure a datasource service with jboss 3.2.1. In 3.0.6 there were some configuration example files for configuring datasource services. But then, in the jboss 4.0 and later in the 3.2.x you dropped these files. Why?? (In earlier 3.2.x versions they were st

RE: [JBoss-user] MDB dependency on JMS

2003-06-12 Thread Alastair Rodgers
>From a previous post from Scott Stark: Set the URLDeploymentScanner RecursiveSearch to true in the conf/jboss-service.xml descriptor and read the release notes about this propety. This was supposed to be True by default but it was not set apparently. True Al. > -Original Message- >

[JBoss-user] Deployment and JNDI binding

2003-06-12 Thread Mike
I have the files in the .jar file but it simply refuses to print out any of the binding information. I cannot perform lookups against the objects. --snip Jboss Server 23:08:44,088 INFO [MainDeployer] Undeploying file:/usr/local/jboss-4.0.0DR1/server/all/deploy/cms-server.jar 23:08:44,093 INFO

Re: [JBoss-user] HOWTO: Call an EJB from an Oracle Java Stored Procedure

2003-06-12 Thread Guy Rouillier
Nicholas, I finally got around to trying this, and it works - thanks! I struggled with this for about 6 months and got nowhere (including working with someone inside Oracle!) I had to go through several iterations and fix missing permissions identified in udump. I really should delete all Ja

Re: [JBoss-user] cmp-field and cmr-field mapped to same databasecolumn

2003-06-12 Thread Russell Chan
Hmmm.. I just tried the same code on jboss-3.2.1 and the new 3.2.2rc1 The code was functional, ableit not what I want for 3.2.1. The same ear file deployed into 3.2.2rc1 blew up. I'd file a bug, but I'm still not certain that I haven't coded up something wrong (I'm still new at the relations stu

[JBoss-user] Available JMX connector/adapter

2003-06-12 Thread wondersonic
Hello, I would like to know what kind of connector are available to manage a JBoss server (class name...). Thanks in advance, WS --- This SF.NET email is sponsored by: eBay Great deals on office technology -- on eBay now! Click here: http://adf

RE: [JBoss-user] JBoss XA transaction with WebSphere MQ

2003-06-12 Thread thomas . cherel
I just submitted a patch (ID 753022). Sample code and complete documentation to configure WSMQ in JBoss is included: The current status of this sample is as follow: MDB listening to a WSMQ queue (using a non-XA connection factory) and sending a reply to another WSMQ queue (auto-acknowledge mode)

[JBoss-user] MBean : Persiting attributes

2003-06-12 Thread Phil Shrimpton
Hi, Is there anyway to automatically update attribute values in the xxx-service.xml file for an MBean when changes are made via jmx-console and other tools, so there are preserved after a restart, or is this something I have to do myself? Cheers Phil -- 6:44pm up 57 days, 7:37, 1 user,

RE: [JBoss-user] Meaning of TrancationManager warning: Unregistered handle that was not registered

2003-06-12 Thread Peter Spiess
David, Since you askedI have also run across this message. It doesn't seem to be causing any problems at this point. As far as reproducing it, I got the message about 20 minutes after deploying my jar file. During this time there was no activity at all, so it doesn't seem like it was someth

[JBoss-user] How to get JBoss to exit on OutOfMemory

2003-06-12 Thread JD Brennan
Any suggestions for a simple way to get JBoss to exit where there's an OutOfMemoryError thrown? It appears to catch them and try to keep running. I could add a catch block for OutOfMemory to all my catch (Throwable x) blocks, but that actually wouldn't handle all the places where I'm not catching

RE: [JBoss-user] Closing database connections

2003-06-12 Thread Alastair Rodgers
Hello Brian, Also, you should bear in mind that when you're closing a result set then a statement then a connection, each of those could itself throw an exception. If you put all 3 close() calls in the same finally block, then say if you're statement.close() throws an exception, the rest of th

Re: [JBoss-user] Best practice for data-based authorization?

2003-06-12 Thread Scott M Stark
A login module that adds to the authenticated Subject the required security context you need does make sense if the credential is a function of the user and not the application. If its a function of the user and application then the filter needs to lookup the credential some other way. x

Re: [JBoss-user] System properties

2003-06-12 Thread Scott M Stark
No, this is beyond the scope of the ejb functionality. Use the org.jboss.varia.property.SystemPropertiesService shown in the deploy/properties-service.xml as a service descriptor bundled with your deployment to do this. It could also be done as a beanshell script as well. xxx

Re: [JBoss-user] Notifications for deploying/undeploying?

2003-06-12 Thread Scott M Stark
The JSR77 mbean demonstrates listening for deployments. See the org.jboss.management.j2ee.LocalJBossServerDomain service for an example of registering for nofitications sent by deployers. Scott Stark Chief Technology Officer JBoss Group, LLC

Re: [JBoss-user] E/A-Exception during JMS action with OracleDB

2003-06-12 Thread Scott M Stark
This is an internal db error. How much data is a huge amount and what is the oracle db and jdbc driver versions? Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: "Marek Lange" <[EMAIL PROTECTED]> To: "JBoss

Re: [JBoss-user] use Tomcat 5.0

2003-06-12 Thread Scott M Stark
There is a build for the tomcat5 sar in the 3.2.1 branch. Download the source or get the cvs snapshot and give it a try. Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: "Thorsten Möller" <[EMAIL PROTECTED

Re: [JBoss-user] [help please] specifing a role to a scheduled class

2003-06-12 Thread Scott M Stark
You need to do a JAAS login against a security configuration that includes the ClientLoginModule, the same as any external ejb client. I'll look into adding a run-as role capability to xmbeans in the future. Scott Stark Chief Technology Officer JBoss Group, LLC x

Re: [JBoss-user] JBossSX in a cluster

2003-06-12 Thread Scott M Stark
There is nothing special about security in a cluster. I have tried code similar to what you describe and it works fine against a clustered ejb accessed through the HAJNDI naming service. The principal=null indicates that the call does not have a security context. Submit an example ear and two nod

Re: [JBoss-user] MBean parameters

2003-06-12 Thread Scott M Stark
You need a property editor for a String[], which we have by default. Simply have the Channel attribute be of type String[] and use value that is a comma seperated list of the array elements: ChannelA,ChannelB Scott Stark Chief Technology Officer JBoss Group, LLC xx

[JBoss-user] Re: System properties

2003-06-12 Thread Eric Jain
> currently I am using a static block in one of my beans to set the > properties that one of the libraries I am using expects, but this > seems a little bit hackish, I would prefer to set them in the > application.xml, jboss-app.xml, ejb-jar.xml or jboss.xml files Ideally > via an XDoclet tag. > >

[JBoss-user] System properties

2003-06-12 Thread Jason Essington
Is there a way to set System properties from an ejb's deployment descriptor? currently I am using a static block in one of my beans to set the properties that one of the libraries I am using expects, but this seems a little bit hackish, I would prefer to set them in the application.xml, jboss-

Re: [JBoss-user] cmp-field and cmr-field mapped to same database column

2003-06-12 Thread Alexey Loubyansky
Hello Russell, it should work properly. Try to upgrade your JBoss version. If the issue is still there then submit a bug report. alex Thursday, June 12, 2003, 5:29:05 PM, Russell Chan wrote: RC> Hi, RC> I'm trying to find out if I can have a CMP EJB with a cmp-field RC> accessors and cmr-field

Re: [JBoss-user] Jboss 4.0 UDDI repository

2003-06-12 Thread Alberto Rodriguez Galdo
Title: Nachricht Sure, if I can help tell me. - Original Message - From: Jung , Dr. Christoph To: '[EMAIL PROTECTED]' Sent: Thursday, June 12, 2003 12:17 PM Subject: AW: [JBoss-user] Jboss 4.0 UDDI repository It is not finished in the sense that the s

Re: [JBoss-user] Using java.util.Calendar with CMP

2003-06-12 Thread Colin McFarlane
I had already tried that approach but it doesn't work with value objects. See the code extracts below. The data object only contains methods based on the persistent fields. If I use a Date in the web service implementation then I get exactly the same class cast exception being thrown but this time

[JBoss-user] cmp-field and cmr-field mapped to same database column

2003-06-12 Thread Russell Chan
Hi, I'm trying to find out if I can have a CMP EJB with a cmp-field accessors and cmr-field accessors mapping to the same database column/foreign key. I'm using jboss-3.2.1 with cmp2 (and xdoclet-1.2b) In my case, the actual foreign key is enough for some circumstances, and I don't want to trigg

RE: [JBoss-user] MDB dependency on JMS

2003-06-12 Thread thomas . cherel
True set to true in JBOSS_HOME/server/default/conf/jboss-service.xml might be what you are looking for. Thomas -Original Message- From: Karl Koster [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 8:58 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] MDB dependency on JMS I trying

Re[2]: [JBoss-user] Cascade delete

2003-06-12 Thread Alexey Loubyansky
Hello Maykel, the only way to workaround it is to have foreign key fields mapped to NOT NULL CMP fields. I.e. you have to introduce additional NOT NULL CMP fields and map foreign key fields to them. And if you use cascade-delete, don't forget to set sync-on-commit-only to true. alex Thursday, J

Re: [JBoss-user] [help please] specifing a role to a scheduled class

2003-06-12 Thread Ionel Gardais
Surajit Bhattacharjee wrote: I am not sure what you mean when u say that Tomcat handles all the security stuff. In my opinion, the security-domain specified in the jboss-web.xml file will only identify the login module to be used by your web application component. However, you would still need t

[JBoss-user] MBean parameters

2003-06-12 Thread Simone Milani
Hi, Is it possible to have in 3.2.1 an MBean with a parameter with multiple values, something like: ChannelA ChannelB And have Channel mapped to a String[]? Thanks Simone --- This SF.NET email is sponsored by: eBay Great deals on

[JBoss-user] field not initialized with stateful session with two jboss in cluster.

2003-06-12 Thread Albin Carpentier
Hello The attach file is a test of a StatefulSessionBean (HelloWorld) where the HelloWorldEJB class extends HelloWorldImp class. HelloWorldImp is an abstract class and have two field, one protected, and one public. When i run this test in a single jboss : no problem. If i run this test with tw

Re: [JBoss-user] Cascade delete

2003-06-12 Thread Maykel Tres
Hello Nicholas, How can I create my method to receive CMR(Foreign Keys) and JBoss don't create exceptions when It perform ejb-create? I have NOT NULL foreign keys but when I call methods with CMR as attributes, JBoss only set this CMRs in ejb-postcreate. This generate a exception because my fo

[JBoss-user] MDB dependency on JMS

2003-06-12 Thread Karl Koster
I trying to move from 3.0.6 to 3.2.1. I have a MDB's inside of an EAR that are not deploying because JMS is not starting before the EAR is deployed. This was not a problem in 3.0.6. Is there any additional configuration for 3.2.1 that needs to be done to start JMS before applications are deploye

RE: [JBoss-user] [help please] specifing a role to a scheduled class

2003-06-12 Thread Surajit Bhattacharjee
Hi Ionel! Please find my reply inline below. Regards, Surajit --- Hi Surajit, My security domain uses both the ClientLoginModule and the DatabaseServerLoginModule. From the client point-of-vue, the only method I knew was to

Re: [JBoss-user] Closing database connections

2003-06-12 Thread Brian McSweeney
Hi Martin, thanks for the help/education :-) It all makes perfect sense. Brian - Original Message - From: "Martin Vilcans" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 12, 2003 12:52 PM Subject: RE: [JBoss-user] Closing database connections > > Glad to see that I was

RE: [JBoss-user] Closing database connections

2003-06-12 Thread Martin Vilcans
> Glad to see that I was on the right track. Just one little > question. Why do > you have > two finally blocks in the DAO - can't you close both the statement and the > result set > in the same finally block? This is because when you close the statement, the result set might not necessarily exist

Re: [JBoss-user] Closing database connections

2003-06-12 Thread Herve Tchepannou
this bug is now fixed on xpetstore CSV > Hi Martin, > thanks for the help. I wrote my reply to Enrique's mail just before I read > yours. > Glad to see that I was on the right track. Just one little question. Why do > you have > two finally blocks in the DAO - can't you close both the statement and

Re: [JBoss-user] [help please] specifing a role to a scheduled class

2003-06-12 Thread Ionel Gardais
Surajit Bhattacharjee wrote: That is what I had intended. Looks like the security context does not propagate to the EJB invocation layer. The JBoss doc mentions that one way to get this done is to use JAAS authentication with the ClientLoginModule which is provided by them, but I guess u want to

Re: [JBoss-user] Closing database connections

2003-06-12 Thread Brian McSweeney
Hi Martin, thanks for the help. I wrote my reply to Enrique's mail just before I read yours. Glad to see that I was on the right track. Just one little question. Why do you have two finally blocks in the DAO - can't you close both the statement and the result set in the same finally block? cheers,

Re: [JBoss-user] Closing database connections

2003-06-12 Thread Brian McSweeney
Thanks Enrique, that's what I suspected. Could you tell me if it is better practice to pass the connection in to the method - for example:     //- session facade methods-       /** * @ejb.interface-method * @ejb.transaction *  t

RE: [JBoss-user] Closing database connections

2003-06-12 Thread Martin Vilcans
This code is no good. It doesn't close the connection and it doesn't close the PreparedStatement. Depending on what toPage does, it might not close the ResultSet either, and even if it does, it's still somewhat ugly to allocate a resource in one place and close it somewhere else. I haven't looked

[JBoss-user] JBoss-AOP in Eclipse

2003-06-12 Thread Eric Jain
Can the JBoss AOP client libaries be used in an Eclipse plug-in? -- Eric Jain --- This SF.NET email is sponsored by: eBay Great deals on office technology -- on eBay now! Click here: http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _

AW: [JBoss-user] Jboss 4.0 UDDI repository

2003-06-12 Thread Jung , Dr. Christoph
Title: Nachricht It is not finished in the sense that the service provider (Juddi) currently does not expose its wsdl description (the uddi interface is IMHO not defined through wsdl itself, I estimate) and has yet no web-gui for administration (at least to my knowledge).   The first is wha

RE: [JBoss-user] Closing database connections

2003-06-12 Thread Enrique Rodríguez
You have to close the connection in every methods       public Page findByKey( String key, int start, int count )     throws SQLException     {     PreparedStatement stmt = _cnn.prepareStatement ( SQL_FIND_BY_KEY,     ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCU

Re: [JBoss-user] Dependency between an EJB jar and a data source

2003-06-12 Thread Jos Visser
And, as it goes, the only road to enlightenment is self-enlightenment :-) Further study showed that the container-configuration 's in standardjboss.xml (and elsewhere?) can contain a element to denote a dependency between the container and another JMX MBean... ++Jos On Tue, Jun 03, 2003 at 03:1

[JBoss-user] Closing database connections

2003-06-12 Thread Brian McSweeney
Hi all,   I'm writing a DAO and using the xpetstore application for some guidance. However, I think I may have found a bug.   The xpetstore uses a session facade to search for particular products. It contains two methods used for this - one to get the database connection, and the other to

Re: [JBoss-user] E/A-Exception during JMS action with OracleDB

2003-06-12 Thread Marek Lange
Alberto Rodriguez Galdo wrote: Are you using oci drivers for oracle? If not, then use them because the thin drivers have problems with large amounts of data.. I am using the normal thin driver for Oracle. I can see that the error appears when a JMS session should be closed. This happens after writ

Re: [JBoss-user] MBeans and EJB's

2003-06-12 Thread Phil Shrimpton
On Wednesday 11 June 2003 23:57, Bob Cotton wrote: Hi, > Phil> Hi, I have a problem, and the solution seems to be an MBean, > Phil> but I need to call/use both remote and local EJB's (SLS). > > Phil> It works, as I have tried it, but should I be doing it? > > Sure, why not? Did not t

RE: [JBoss-user] [help please] specifing a role to a scheduled class

2003-06-12 Thread Surajit Bhattacharjee
That is what I had intended. Looks like the security context does not propagate to the EJB invocation layer. The JBoss doc mentions that one way to get this done is to use JAAS authentication with the ClientLoginModule which is provided by them, but I guess u want to avoid using JAAS. Will let u

Re: [JBoss-user] Jboss 4.0 UDDI repository

2003-06-12 Thread Alberto Rodriguez Galco
Title: Nachricht But, i guess uddi support in JBoss is not finished jet, as if you go to http://localhost:8080/jboss-net and press on the uddi service link tomcat throws a 404 because there's no such service deployed in jboss Is some kind of misconfiguration or am I forgeting something?

[JBoss-user] 3.2.1: cannot redeploy war inside ear

2003-06-12 Thread Alexey Yudichev
Assume we have ear deployed as a directory with war inside (also as a directory). In jboss 3.0 I used to invoke via JMX MainDeployer.redeploy("/usr/local/java/jboss/server/thunder/blah/BLAH.ear/blah.war") to restart just the specific WAR inside the EAR and keep all other modules running. But in j

[JBoss-user] philosophical question : EJB independency

2003-06-12 Thread Ionel Gardais
Hi, I have a big doubt concerning the full EJB indepedency. Say you have two entity beans, one called Person and one called Email. The former holds informations about a person (such as name, surname, birthdate, sex ...) and the latter a mail address (and maybe other attributes). A solution to

Re: [JBoss-user] [help please] specifing a role to a scheduled class

2003-06-12 Thread Ionel Gardais
Hi, I have tried this : Properties props = new Properties(); props.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); props.put(Context.PROVIDER_URL, "grsun36:1080"); props.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");

AW: [JBoss-user] Jboss 4.0 UDDI repository

2003-06-12 Thread Jung , Dr. Christoph
Title: Nachricht documentation is currently just the documentation of the used libraries:       - juddi - is the uddi server (http://www.juddi.org)     - uddi4j is the uddi client (http://www.uddi4j.org)     Best, CGJ -Ursprüngliche Nachricht-Von: Alberto Rodriguez Galdo [ma

[JBoss-user] Mapping configuration error

2003-06-12 Thread Daniel Potysch
Hi, my Jboss-Engine continuously prints this error-message: [Engine] StandardHost[localhost]: MAPPING configuration error for request URI /archive.dll I only have this on one special machine, on another one the same (default) configuration works fine. It also doesn't seem to have any effect on