Re: [JBoss-user] [OT] Regular Expression Help

2003-05-29 Thread Stephen Davidson
Hi Hunter.

For this kind of stuff, I would wander over to a Linux/Unix user
group.  The one that I hang out at, which is normally quite helpful,
is at www.ntlug.org.
Regards,
Steve
Hunter Hillegas wrote:
This is off-topic but if someone could help, that would be great.

Please respond off list.

I need help with a regular expression. These are always hard for me.

I have several lines of input like this:

maillog-May 26 16:29:50 vader sendmail[22129]: h4QLTob22129:
from=<[EMAIL PROTECTED]>, size=967, class=0, nrcpts=1,
msgid=<[EMAIL PROTECTED]>, proto=ESMTP, daemon=MTA,
relay=f9.
law10.hotmail.com [64.4.15.9]
I want to extract just the from address ([EMAIL PROTECTED]) and send
it to output, but I am having trouble getting it right. Any help is
appreciated.
Thanks,
Hunter


---
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
--
Java/J2EE Developer/Integrator
214-724-7741




---
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Unknown Managed Connection (Managed Connection : null)

2003-05-29 Thread Meyer-Willner, Bernhard
Hi,

I'm using CMP entity beans with CMR together with XDoclet generated value
objects on JBoss 3.0.5. This works really good, except for once.

Setup is as such:

YetAnotherVO n <--- 1 AnotherVO 1 <--- 1 MainVO 1 > n AndAThirdVO

MainVO includes all other VO's, calling setValue() on MainVO also sets the
value on the other VO's in the graph, creates them, removes them, or updates
them respectively. This works fine except for the scenario when I try to
remove or update a YetAnotherVO. Creating a new YetAnotherVO works, but
trying to remove or update an existing one results in the following
stacktrace. I'm starting the transaction (Container Managed: Required) in a
session facade bean fronting the entity beans. What is going wrong here! I
don't have a clue...

Thanks,
Bernie


13:01:23,289 ERROR [LogInterceptor] TransactionRolledbackLocalException,
causedBy:
java.lang.IllegalArgumentException: disconnect(ManagedConnection mc: null,
Object c: org.jboss.resou
[EMAIL PROTECTED]) called with unknown managed
connection
at
org.jboss.resource.connectionmanager.BaseConnectionManager2.unregisterAssoci
ation(BaseCon
nectionManager2.java:661)
at
org.jboss.resource.connectionmanager.BaseConnectionManager2.disconnect(BaseC
onnectionMana
ger2.java:619)
at
org.jboss.resource.connectionmanager.CachedConnectionManager.disconnect(Cach
edConnectionM
anager.java:371)
at
org.jboss.resource.connectionmanager.CachedConnectionManager.popMetaAwareObj
ect(CachedCon
nectionManager.java:160)
at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(Cach
edConnectionI
nterceptor.java:190)
at
org.jboss.ejb.plugins.EntityReentranceInterceptor.invoke(EntityReentranceInt
erceptor.java
:90)
at
org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterce
ptor.java:168
)
at
org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.jav
a:107)
at
org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterce
ptor.java:69)

at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor
.java:107)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:228)
at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:92)
at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:13
0)
at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204)
at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:493)
at
org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalContai
nerInvoker.ja
va:301)
at
org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38)
at $Proxy784.setValue(Unknown Source)
at
com.logica.isis.server.al.component.spbauspar.bauspar.BausparCMP.setValueInt
ernal(Bauspar
CMP.java:211)
at
com.logica.isis.server.al.component.spbauspar.bauspar.BausparCMP.setValue(Ba
usparCMP.java
:149)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.ejb.EntityContainer$ContainerInterceptor.invoke(EntityContainer.ja
va:1194)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCRelationInterceptor.invoke(JDBCRelationIn
terceptor.jav
a:95)
at
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchron
izationInterc
eptor.java:303)
at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(Cach
edConnectionI
nterceptor.java:186)
at
org.jboss.ejb.plugins.EntityReentranceInterceptor.invoke(EntityReentranceInt
erceptor.java
:90)
at
org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterce
ptor.java:168
)
at
org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.jav
a:107)

This e-mail and any attachment is for authorised use by the intended
recipient(s) only.  It may contain proprietary material, confidential
information and/or be subject to legal privilege.  It should not be copied,
disclosed to, retained or used by, any other party.  If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender.  Thank you.


---
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

This e-mail an

[JBoss-user] DB2 V8.1 XADataSource correction - not everybody has a db named vectra:)

2003-05-29 Thread Horia Muntean
Client Environment:
OS-System: Windows XP 5.1,x86
JBoss: JBoss-3.2.1
Java VM: Java HotSpot(TM) Client VM 1.4.0-b92,Sun Microsystems Inc.
DB2 driver(app): DB2 V8.1
Server Environment:
OS: Linux 2.4.18-64GB-SMP (SuSE 8.0)
DB2 Server: DB2 V8.1 ESE
Here is the content of db2-xa-ds.xml file I was able to deploy and test. 
Until now it works (tested even with JmsXA adaptor):

 begin 










  

  
DB2XADS
COM.ibm.db2.jdbc.DB2XADataSource
yout_database_name
your_user
your_password
  


 end 
Regards,
Horia


---
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] ILIKE and TRANSLATE in Jboss-ql

2003-05-29 Thread pbarreiros


hi,

i use jboss 3.2.1 and  tag in my jbosscmp-jdbc.xml

i try to compare data (some chars in lower/uppercase) with another 
data in the DB

example: i compare 'pétEr smiTh' with 'Peter Smïth' and i hope to give 
true.

i always use ILIKE clausule and TRANSLATE function to compare data
without considering uppercases and translate some chars

ILIKE and TRANLATE are in SQL92 but i think they aren´t in jboss-ql

anyone knows what can i do?, how can i compare data whose some chars are 
lower or uppercase. how i can translate some chars in jboss-ql SELEC?

thanks in advance.


-- 

 Pedro Barreiros | Simauria Networks
 
 [EMAIL PROTECTED] |   [EMAIL PROTECTED]
 Tlf: 620 199 405|  http://www.simauria.net
 
 C/ Cádiz, 90 pta 6. 46006 Valencia.
Tlf: +34 963.44.48.48 - Fax: +34 963.44.48.49
 



---
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] For those interested: DB2 V8.1 XADataSource

2003-05-29 Thread Horia Muntean
Client Environment:
OS-System: Windows XP 5.1,x86
JBoss: JBoss-3.2.1
Java VM: Java HotSpot(TM) Client VM 1.4.0-b92,Sun Microsystems Inc.
DB2 driver(app): DB2 V8.1
Server Environment:
OS: Linux 2.4.18-64GB-SMP (SuSE 8.0)
DB2 Server: DB2 V8.1 ESE
Here is the content of db2-xa-ds.xml file I was able to deploy and test. 
Until now it works (tested even with JmsXA adaptor):

 begin 










  

  
DB2XADS
COM.ibm.db2.jdbc.DB2XADataSource
vectra
your_user
your_password
  


 end 
Regards,
Horia


---
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Jaas help,

2003-05-29 Thread kiuma




Hello,
I have two questions
1) I have a FORM based auth that does the following

public class LoginProxyServlet extends HttpServlet {
    
    

    public void doGet(HttpServletRequest request, HttpServletResponse
response) 
    throws javax.servlet.ServletException, java.io.IOException {
    response.setContentType("text/plain");
    java.io.PrintWriter out = response.getWriter();
    
    HttpSession hSession = request.getSession();
    
    Object done = hSession.getAttribute("logon.isDone");
    
    if ( done == null ) {    
    hSession.setAttribute( "login.target",
    request.getRequestURL().toString() );
    response.sendRedirect("login-jetty.jsp");
    return;
    }

    }
    
    public String getServletInfo() {
    return "Login servlet";
    }
}

But when I try to login, I'm redirected where the servlet is mapped : http://localhost:8080/progettoblu/do.login

2) To do the athentication I'm using LoginContext lc = new
LoginContext(


This technique doesn't seem to affect JaasSecurityManager because the
login cache is empty even after the login.
What shoud I do to affect the login cache?


Thx,

kiuma




[JBoss-user] JBoss-src

2003-05-29 Thread Magesh Prabhu
Guys,

I work in a very restricted org where I cant use CVS to checkout JBoss-src. Is there a 
mirror from which I can download jboss-src in zip format. Please point me the URL. 
Thanx in advance.



**
This email and its attachments are intended for the above 
named only and may be confidential.  If they have come to 
you in error, you must take no action based on them, nor 
must you copy or show them to anyone; please reply to this 
email and highlight the error.
Security Warning: Please note that this email has been 
created in the knowledge that the internet email is not a 
100% secure communications medium.  We advise that you 
understand and observe this lack of security when emailing us.
Viruses:  Although we have taken steps to ensure that this 
email and attachments are free from any virus, we advise 
that in keeping with good computing practice the recipient 
should ensure they are actually virus free.
If you have received this email in error please notify:
[EMAIL PROTECTED]
**



---
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Storing Data Types

2003-05-29 Thread Brian McSweeney



hi all,
 
quick question. I'm using cmp beans. When I want to 
store data types, is it 
better to store primary data types or the 
associated java objects? Eg:
 
    /** 
* @ejb.persistence  *  
column-name="price" */    
    public abstract double getPrice();    
public abstract void setPrice( double price );
 
 
    or
 
    /** * @ejb.persistence 
 *  
column-name="price" */    
    public abstract java.lang.Double 
getPrice();    public abstract void setPrice( 
java.lang.Double price );
 
 
thanks,
Brian


[JBoss-user] MetricsInterceptor -- bug ?

2003-05-29 Thread Michał Drozd
Hi, 

In 3.2.1 (and cvs from Branch_3_2 ) MetricsInterceptor tries to lookup
"TopicConnectionFactory" , while TopicConnectionFactory implementation
is binded to ConnectionFactory (in jboss-head, there is all OK --
MetricsInterceptor looks for "ConnctionFactory").

is it bug ?

best regards,
-- 
Michał Drozd <[EMAIL PROTECTED]>



---
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Problem configuring xa-tx-datasource

2003-05-29 Thread Janardhan Burugupalli




Thanks ,

the local tx works fine as u said...

David Jencks wrote:

  Use the sap db example with local tx.  The XADataSourceImpl from jboss 2.x
DOES NOT WORK as a XADataSource.  If SAP DB supports xa it will provide an
XADataSource implementation or a jca adapter itself.  I think it does not
support xa but haven't investigated much.

david jencks.

On 2003.05.28 02:55 Janardhan Burugupalli wrote:
  
  
Hi All,

My sapdb-xa-ds.xml looks like this ...i have a problem that the   
AIWORKDB is not bound while starting the JBoss
can some one correct this if anything goes wrong in this...

and also i dont know how to specofy the driver class for the database 
driver .i tried the normal   local-tx-datasource and it works fine 
can some please send me an example

thanks
jani


AIWORKDB

org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl

com.sap.dbtech.jdbc.DriverSapDB
AIWORKDB
jdbc:sapdb://localhost/AIDB
com.sap.dbtech.jdbc.DriverSapDB
AIWORKUSER
heiko

  




---
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



  
  

---
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


  








RE: [JBoss-user] JBoss 3.2.1: Enumerating JMS Queue JNDI names via JMX or ?

2003-05-29 Thread Danny . Yates
Why not check if the object's type is javax.jms.Queue?

-- 
Danny Yates
Assistant Vice President
Derivatives/Risk Systems
Bank of America
 


-Original Message-
From: Barlow, Dustin [mailto:[EMAIL PROTECTED] 
Sent: 28 May 2003 18:36
To: '[EMAIL PROTECTED]'
Subject: [JBoss-user] JBoss 3.2.1: Enumerating JMS Queue JNDI names via JMX
or ?


Is there a way either thru JMX or ? to dynamically enumerate what JMS Queue
JNDI names are deployed in a particular server instance?  I am writing a
generic web based JMS message browser utility and would like to be able to
auto discover what queues exist on the target instance.

One thought I had was to iterate through the JNDI space looking for "queue/"
prefixed JNDI names, but that seemed to be a bit of a kludge to me.  Not to
mention, queues no longer will automatically be prefixed with "queue/" in
future JBoss releases.

Thanks for the help,

Dustin Barlow


---
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


_ 
Notice to recipient: 
The information in this internet e-mail and any attachments is confidential
and may be privileged. It is intended solely for the addressee. If you are
not the intended addressee please notify the sender immediately by
telephone. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on it,
is prohibited and may be unlawful. 

When addressed to external clients any opinions or advice contained in this
internet e-mail are subject to the terms and conditions expressed in any
applicable governing terms of business or client engagement letter issued by
the pertinent Bank of America group entity. 

If this email originates from the U.K. please note that Bank of America,
N.A., London Branch, Banc of America Securities Limited and Banc of America
Futures Incorporated are regulated by the Financial Services Authority.
_ 




---
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Dynamicly changing roles

2003-05-29 Thread Damian Minkov
Is is possible to change dynamicly the roles for a user who has already
login into the system?




---
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] ECperf 1.1 with JBoss 3.2.x

2003-05-29 Thread Jon Barnett
In case anyone is interested, we went through trying to get ECperf 1.1
working with JBoss 3.2.0. We thought the JBoss-ECperf 1.0 kit instructions
meant it should be easy. Turned out to be a traumatic event trying to work
out what was happening and what to change.  Anyway, I've made available
documentation on what we did to get things up, and also a patch kit that
applies the changes that we explain in the document.

You can find the document at:
http://www.amitysolutions.com.au/downloads/JBoss-ECperf.pdf

The tarball is at:
http://www.amitysolutions.com.au/downloads/jboss-ecperf.tar.gz

Hope it is of use.

JonB.


smime.p7s
Description: S/MIME cryptographic signature


Re: [JBoss-user] [JBoss-user]

2003-05-29 Thread Brian Wallis
On Thu, 29 May 2003 03:17, Barlow, Dustin wrote:
> In 3.2.1, in /server//deploy/transaction-service.xml
> you will find the following stanza:

> I suspect this is the same for 3.0.6 as well.

Almost, but I think it is in 
/server//conf/jboss-service.xml

Also (but I haven't really tested this) you should be able to change this from 
the jmx-console in the TransactionManager service. Just change the attribute 
value, "Apply Changes" and then stop and start the service.

Thanks for the answer Dustin, I've been meaning to find this out for a while 
but never got around to it. It is a real pain when a transaction times out 
during a debug session. Now I can set it to 30 minutes (getting a bit slow in 
my old age :-)

brian wallis...



---
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Problem with Connection Pool

2003-05-29 Thread David Jencks
ConnectionCount = ConnectionCreatedCount - ConnectionDestroyedCount and
includes both idle and in-use connections. It should be <= MaxSize.

ConnectionAvailableCount is the number of idle connections in the pool
available to be handed out.  When it gets to 0, you are apt to get "No
Managed Connections Available".

The most obvious possibility is that you are getting connections and not
closing them.  Where do you get connections? From servlets? These would not
be tracked by jboss, you wouldn't get a "Closing Connection for you..."
message.

There could also be some kind of bug in jboss.

david jencks



On 2003.05.28 09:05 [EMAIL PROTECTED] wrote:
> 
> Hi All,
> 
> We are running JBoss 3.2.1 with Tomcat and experiencing a strange
> problem:
> 
> Our ManagedConnectionPool parameters are configured as follows:
> 
> MaxSize = 20
> MinSize = 0
> IdleTimeoutMinutes = 15
> BlockingTimeoutMillis = 5000
> ManagedConnectionFactoryName =
> jboss.jca:service=ManagedConnectionFactory,name=MSSQLDS
> Criteria = ByNothing
> 
> 
> And the unexpected behaviour:
> 
> 1 hour after JBoss restart parameters were:
> ConnectionCreatedCount = 4
> ConnectionDestroyedCount = 1
> AvailableConnectionCount = 20
> 
> 21 hours after JBoss restart parameters were:
> ConnectionCreatedCount = 59
> ConnectionDestroyedCount = 46
> AvailableConnectionCount = 9
> ConnectionCount = 13
> 
> 25 hours after JBoss restart parameters were:
> ConnectionCreatedCount = 71
> ConnectionDestroyedCount = 51
> AvailableConnectionCount = 2
> ConnectionCount = 20
> 
> After 26 hours AvailableConnectionCount was 0, and exception occured
> 
> "org.jboss.util.NestedSQLException: No ManagedConnections Available!; -
> nested throwable: (javax.resource.ResourceException: No
> ManagedConnections Available!)
>   at
> org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:106)
> "
> 
> Question: what is causing us to lose available connections?
> 
> Second Question: what's the difference between AvailableConnectionCount
> and ConnectionCount?
> 
> Best Regards,
> Joel
> 
> 
> 
> 
> ---
> This SF.net email is sponsored by: ObjectStore.
> If flattening out C++ or Java code to make your application fit in a
> relational database is painful, don't do it! Check out ObjectStore.
> Now part of Progress Software. http://www.objectstore.net/sourceforge
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 


---
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] EJB/Applet question

2003-05-29 Thread Jon Barnett
Check your security policies. See this for more information.
http://developer.java.sun.com/developer/onlineTraining/Programming/JDCBook
/appA.html

If it is an applet-based application, consider signing it. See this:
http://java.sun.com/docs/books/tutorial/security1.2/toolsign/index.html

With applets, you probably can't get your users to change all their
policies and it is bad practice to open their machines up for use by
malicious applets.  Signing your applets allows the applets to communicate
back with the originating server.

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Trish
> Hartnett
> Sent: Thursday, 29 May 2003 4:48 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] EJB/Applet question
>
>
> hello all,
>
> I am trying to access EJBs from my applet. I kept on getting :
> "
> java.security.AccessControlException: access denied
> (java.lang.RuntimePermission
> org.jboss.security.SecurityAssociation.getPrincipalInfo)
> "
>
> so I altered the java.policy file in my installation of Java.
> I wasn't sure what was the correct way to change the file so I tried:
> "
> grant {
> // Allow everything for now
> permission java.security.AllPermission;
> };
> "
>
> Is this the correct way to alter the file ? I am worried about making my
> computer unsafe.
>
> Thanks in advance for any suggestions,
> Trish.
>
>
>
> ---
> This SF.net email is sponsored by: ObjectStore.
> If flattening out C++ or Java code to make your application fit in a
> relational database is painful, don't do it! Check out ObjectStore.
> Now part of Progress Software. http://www.objectstore.net/sourceforge
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user


smime.p7s
Description: S/MIME cryptographic signature


Re: [JBoss-user] Problem configuring xa-tx-datasource

2003-05-29 Thread David Jencks
Use the sap db example with local tx.  The XADataSourceImpl from jboss 2.x
DOES NOT WORK as a XADataSource.  If SAP DB supports xa it will provide an
XADataSource implementation or a jca adapter itself.  I think it does not
support xa but haven't investigated much.

david jencks.

On 2003.05.28 02:55 Janardhan Burugupalli wrote:
> Hi All,
> 
> My sapdb-xa-ds.xml looks like this ...i have a problem that the   
> AIWORKDB is not bound while starting the JBoss
> can some one correct this if anything goes wrong in this...
> 
> and also i dont know how to specofy the driver class for the database 
> driver .i tried the normal   local-tx-datasource and it works fine 
> can some please send me an example
> 
> thanks
> jani
> 
> 
> AIWORKDB
> 
> org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl
> 
> com.sap.dbtech.jdbc.DriverSapDB
>  name="PoolName">AIWORKDB
>  name="URL">jdbc:sapdb://localhost/AIDB
>  name="Drivers">com.sap.dbtech.jdbc.DriverSapDB
> AIWORKUSER
> heiko
> 
>   
> 
> 
> 
> 
> ---
> This SF.net email is sponsored by: ObjectStore.
> If flattening out C++ or Java code to make your application fit in a
> relational database is painful, don't do it! Check out ObjectStore.
> Now part of Progress Software. http://www.objectstore.net/sourceforge
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 


---
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [OT] Regular Expression Help

2003-05-29 Thread Hunter Hillegas
This is off-topic but if someone could help, that would be great.

Please respond off list.

I need help with a regular expression. These are always hard for me.

I have several lines of input like this:

maillog-May 26 16:29:50 vader sendmail[22129]: h4QLTob22129:
from=<[EMAIL PROTECTED]>, size=967, class=0, nrcpts=1,
msgid=<[EMAIL PROTECTED]>, proto=ESMTP, daemon=MTA,
relay=f9.
law10.hotmail.com [64.4.15.9]

I want to extract just the from address ([EMAIL PROTECTED]) and send
it to output, but I am having trouble getting it right. Any help is
appreciated.

Thanks,
Hunter



---
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Trying to return an unknown connection

2003-05-29 Thread David Jencks
Several people have reported this.  I don't know the cause.  It  may happen
if you get the connection in setEntityContext() and close it in
unsetEntityContext().  AFAIK it never happens if you get and close the
connection in the same method call, which I recommend anyway for other
reasons.

david jencks

On 2003.05.24 13:24 John Dubchak wrote:
> Hello,
> 
> I'm using jBoss 3.2.1 on Redhat 9 with a Postgres database and when I do
> a 
> JNDI lookup on the datasource and return datasource.getConnection() the 
> following exception is thrown:
> 
> [TxConnectionManager$TxConnectionEventListener] throwable from unregister
> 
> connection
> java.lang.IllegalStateException: Trying to return an unknown connection1!
> 
> [EMAIL PROTECTED]
> at org.jboss.resource.connectionmanager.
> CachedConnectionManager.unregisterConnection(CachedConnectionManager.java:264)
> 
> I was trying to download the jBoss source to look in the code to see what
> 
> might be the cause of this error, but sourceforge.net is acting up and
> won't 
> allow the download to complete.
> 
> Therefore, I was wondering if anyone on the list might have some insight
> into 
> what's happening under the covers that may assist me in trying to solve
> this.
> 
> Thanks in advance,
> John
> 
> 
> ---
> This SF.net email is sponsored by: ObjectStore.
> If flattening out C++ or Java code to make your application fit in a
> relational database is painful, don't do it! Check out ObjectStore.
> Now part of Progress Software. http://www.objectstore.net/sourceforge
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 


---
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] RE: [JBoss-user] J2EE en españa

2003-05-29 Thread Rodrigo Chandía
Excelente idea!!

Rodrigo Chandia

El Martes 27 de Mayo del 2003 05:00 AM, Enrique Rodríguez escribió:
> [Spanish]
> Cualquier interesado en crear un grupo Jboss... que no dude en mandarme
> un mail.. llevo algún tiempo intentando crear uno en castellano¡¡¡Si
> conseguimos 10 mails, me pongo a trabajar en ello.
>
> [english]
> Anyone interested on create a Jboss-spanish-group, please send me an
> email. If I receive at least ten mails, y start to work on int.
>
> [EMAIL PROTECTED]
>
>
> -Mensaje original-
> De: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] En nombre de Jorge
> Garcia Perales
> Enviado el: martes, 27 de mayo de 2003 9:25
> Para: Lista de Jboss
> Asunto: [JBoss-user] J2EE en españa
>
> Hola,
>
>   Quería presentarme a la lista, sobre todo para el grupo de
> desarrolladores españoles en Jboss. Me llamo Jorge García y pertenezco a
> la empresa Simauria Networks.
>
>   En Simauria desarrollamos aplicaciones web con software libre
> basadas
> en J2EE (tomcat+jboss+postgresql) y acabo de apuntarme a esta lista de
> distribución.
>
>   Me gustaría entrar en contacto con los miembros de habla
> española para
> saber los movimientos que se realizan alrededor de Jboss en España. ¿Hay
> alguna lista de distribución de jboss en España?, ¿Existe alguna web
> interesante? ¿algún foro?  si no lo hay podríamos crear uno. ¿Que os
> parece?
>
>   Gracias por su atención
>
>   jorge

-- 
Rodrigo Chandía
Consultor de Software
ACM Group

[EMAIL PROTECTED]
www.acmgrp.com

Av. Paseo Enrique Eraso.
Torre Tamanaco, P1 Of. 1-B
San Román, Caracas, Venezuela 1060
Teléfono: +58(212)993-9097
Fax: +58(212)993-4302



---
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] security question: removing an individual user fromauthent cache

2003-05-29 Thread jfc
Scott M Stark wrote:

From the 3.0.7 release notes:
comments:
Add a flushAuthenticationCache(String securityDomain, Principal user)
operation to allow a single user to be flushed from the authentication 
cache.
Scott Stark
Chief Technology Officer
JBoss Group, LLC

- Original Message - 
From: "jfc" <[EMAIL PROTECTED]>
To: "jboss-user" <[EMAIL PROTECTED]>
Sent: Wednesday, May 28, 2003 3:04 AM
Subject: [JBoss-user] security question: removing an individual user from authent cache

 

Hi,

I would like to know whether or not I need to upgrade my current version 
of JBoss (308RC1 bundled with tomcat 4.1.24 LE1.4) in order to aquire 
functionality/support for removing an individual user from the 
authentication cache when he logs out of the web application.

If this is possible to do without upgrading, I would like to know how to 
do it as I have had problems upgrading to 3.2.1 and I'm not sure when I 
will be able to resolve the problem.

thanks for any help
jfc


---
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
   



---
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
 

sorry, should have thought to look there. (thanks)

Right, so I have a running instance of jboss 308RC1 and tomcat4124 LE14. 
I am experiencing problems - it breaks down like this:

1. admin user logs in to web app successfully (configured via 
jboss-web.xml and web.xml to use my jboss security domain aka 
login-config.xml);
2. Same user submits a request which gets routed to search ejb which 
queries the user's role to find out whether the user is in a particular 
role (say 'admin').
The result of the query is yes, caller is in role 'admin' and so 
additional criteria are applied to the search. This works well;
3. user logs out of the web application (httpSession.invalidate() and 
response.redirect("myIndex.jsp"));
4. I invoke flushAuthenticationCache() with the my-sec-dom security 
domain parameter as per above(via jmx-console);
5. I start up a konqueror instance and navigate to the site submitting a 
nobody search which is seen as such by the ejb;
6. I then return to the mozilla window and again submit a search request.
The ejb sees the the old user still as being logged in because it 
returns true to isCallerInRole("admin");
7. When I submit again from Konqueror, it still thinks I am in admin.

What am I doing wrong/missing? Could it be because I am not flushing the 
cache from within the same web-tier thread?

Any help is appreciated.
jfc




---
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] EJB/Applet question

2003-05-29 Thread Trish Hartnett
hello all,

I am trying to access EJBs from my applet. I kept on getting :
"
java.security.AccessControlException: access denied
(java.lang.RuntimePermission
org.jboss.security.SecurityAssociation.getPrincipalInfo)
"

so I altered the java.policy file in my installation of Java.
I wasn't sure what was the correct way to change the file so I tried:
"
grant {
// Allow everything for now
permission java.security.AllPermission;
};
"

Is this the correct way to alter the file ? I am worried about making my
computer unsafe.

Thanks in advance for any suggestions,
Trish.



---
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] EJB/Applet question

2003-05-29 Thread Trish Hartnett
Hello all,

I actually got that problem fixed. I am now getting an error saying:
"
java.security.AccessControlException: access denied
(java.lang.RuntimePermission
org.jboss.security.SecurityAssociation.getPrincipalInfo)
"

my server.policy file  ( in JBoss3.2.1/server/default/conf/) has:
"
grant {
   // Allow everything for now
   permission java.security.AllPermission;
};
"

Can anyone suggest anything please ?

Thanks in advance,
Trish.

- Original Message -
From: "Trish Hartnett" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 28, 2003 6:13 PM
Subject: [JBoss-user] EJB/Applet question


> Hello all,
>
>  I am trying to pass some information from my EJB to my Applet. I've been
> using the instruction in
> "How to use Applets to access EJBs in JBoss" in the JBoss documentation.
>
>  I keep on getting this error
> "javax.naming.NameNotFoundException: SpatialInfoSessionImpl not bound"
>
> Here's the source code that is trying to access the EJB:
> "
> Properties jndiProps = new Properties() ;
> jndiProps.setProperty("java.naming.factory.initial",
> "org.jnp.interfaces.NamingContextFactory" ) ;
>  jndiProps.setProperty("java.naming.provider.url", myServer ) ;
>  jndiProps.setProperty("java.naming.factory.url.pkgs",
> "org.jboss.naming:org.jnp.interfaces" ) ;
> SpatialInfoSessionEJBHome home =
> (SpatialInfoSessionEJBHome)PortableRemoteObject.narrow( new
> InitialContext(jndiProps).lookup(
> "SpatialInfoSessionImpl" ),SpatialInfoSessionEJBHome.class) ;
>  SpatialInfoSessionEJB remote = home.create() ;
>   myGeometry = remote.getGeom(tableName);
> "
>
> Can anyone suggest anything please ?
>
> Thanks in advance,
> Trish.
>
>
>
> ---
> This SF.net email is sponsored by: ObjectStore.
> If flattening out C++ or Java code to make your application fit in a
> relational database is painful, don't do it! Check out ObjectStore.
> Now part of Progress Software. http://www.objectstore.net/sourceforge
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>



---
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] 4 experts: JaasSecurityManager

2003-05-29 Thread Scott M Stark
JaasSecurityManager.updateCache(LoginContext lc, Subject subject, Principal principal, 
Object credential)


Scott Stark
Chief Technology Officer
JBoss Group, LLC


- Original Message - 
From: "kiuma" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 28, 2003 9:30 AM
Subject: [JBoss-user] 4 experts: JaasSecurityManager


> Hello,
> I'm going deep into the security system, you'd make me happy if you can 
> tell me who is responsable for writing SimplePrincipal into the
> cache managed by JaasSecurityManager
> 
> thx in advance,
> kiuma
> 
> 
> 
> ---
> This SF.net email is sponsored by: ObjectStore.
> If flattening out C++ or Java code to make your application fit in a
> relational database is painful, don't do it! Check out ObjectStore.
> Now part of Progress Software. http://www.objectstore.net/sourceforge
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 


---
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] JBoss 3.2.1: Enumerating JMS Queue JNDI names via JMX or ?

2003-05-29 Thread Barlow, Dustin
Is there a way either thru JMX or ? to dynamically enumerate what JMS Queue
JNDI names are deployed in a particular server instance?  I am writing a
generic web based JMS message browser utility and would like to be able to
auto discover what queues exist on the target instance.

One thought I had was to iterate through the JNDI space looking for "queue/"
prefixed JNDI names, but that seemed to be a bit of a kludge to me.  Not to
mention, queues no longer will automatically be prefixed with "queue/" in
future JBoss releases.

Thanks for the help,

Dustin Barlow


---
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] [JBoss-user]

2003-05-29 Thread Barlow, Dustin
In 3.2.1, in /server//deploy/transaction-service.xml you
will find the following stanza:

  
  
300

jboss:service=XidFactory
  

Change the 300 (in seconds) to whatever you want.

I suspect this is the same for 3.0.6 as well.

Dustin

> -Original Message-
> From: Davide Pozza [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 28, 2003 12:24 PM
> To: Jboss
> Subject: [JBoss-user] [JBoss-user]
> 
> 
> Hi,
> 
> Can anyone tell me how to increase the transaction timeout on Jboss
> 3.0.6 and on Jboss 3.2.1?
> 
> Thanks
> 
> Davide
> 
> 


---
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] EJB/Applet question

2003-05-29 Thread Trish Hartnett
Hello all,

 I am trying to pass some information from my EJB to my Applet. I've been
using the instruction in
"How to use Applets to access EJBs in JBoss" in the JBoss documentation.

 I keep on getting this error
"javax.naming.NameNotFoundException: SpatialInfoSessionImpl not bound"

Here's the source code that is trying to access the EJB:
"
Properties jndiProps = new Properties() ;
jndiProps.setProperty("java.naming.factory.initial",
"org.jnp.interfaces.NamingContextFactory" ) ;
 jndiProps.setProperty("java.naming.provider.url", myServer ) ;
 jndiProps.setProperty("java.naming.factory.url.pkgs",
"org.jboss.naming:org.jnp.interfaces" ) ;
SpatialInfoSessionEJBHome home =
(SpatialInfoSessionEJBHome)PortableRemoteObject.narrow( new
InitialContext(jndiProps).lookup(
"SpatialInfoSessionImpl" ),SpatialInfoSessionEJBHome.class) ;
 SpatialInfoSessionEJB remote = home.create() ;
  myGeometry = remote.getGeom(tableName);
"

Can anyone suggest anything please ?

Thanks in advance,
Trish.



---
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] Tomcat with JBoss Question

2003-05-29 Thread Jason Stortz
Thanks Sacha, 

So if the default maxProcessors for the Tomcat connection is 10, that means I
can only have 10 users on my page at a time?

-Original Message-
From: Sacha Labourey [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 10:50 AM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] Tomcat with JBoss Question



> 1. What is maxProcessors?  This doesn't limit number of 
> connections does it?

Yes, it is the thread pool size.

> 2. Why do I need two connectors?  I get the http one, but is the AJP?

AJP13 is for mod_jk(2) for example i.e. if you have Apache/IIS/whatever as a
web server before your servlet/EJB tier. AJP13 will bundle connections, etc.
and avoid the servlet engine to redo some of the HTTP parsing already done
by the web server.

Cheers,


sacha



---
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] 4 experts: JaasSecurityManager

2003-05-29 Thread kiuma
Hello,
I'm going deep into the security system, you'd make me happy if you can 
tell me who is responsable for writing SimplePrincipal into the
cache managed by JaasSecurityManager

thx in advance,
kiuma


---
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss-user]

2003-05-29 Thread Davide Pozza
Hi,

Can anyone tell me how to increase the transaction timeout on Jboss
3.0.6 and on Jboss 3.2.1?

Thanks

Davide



signature.asc
Description: PGP signature


RE: [JBoss-user] Tomcat with JBoss Question

2003-05-29 Thread Sacha Labourey

> 1. What is maxProcessors?  This doesn't limit number of 
> connections does it?

Yes, it is the thread pool size.

> 2. Why do I need two connectors?  I get the http one, but is the AJP?

AJP13 is for mod_jk(2) for example i.e. if you have Apache/IIS/whatever as a
web server before your servlet/EJB tier. AJP13 will bundle connections, etc.
and avoid the servlet engine to redo some of the HTTP parsing already done
by the web server.

Cheers,


sacha



---
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Tomcat with JBoss Question

2003-05-29 Thread Jason Stortz
Can someone please explain what all this means a little better to me?

-




  
-

1. What is maxProcessors?  This doesn't limit number of connections does it?
2. Why do I need two connectors?  I get the http one, but is the AJP?


Thanks!


---
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re[2]: [JBoss-user] problem/mistake with CMP/CMR settings - solved

2003-05-29 Thread costin
Thanks a lot!

I've switched the beans from the normal use to the auto-gen key and
this last bean was basically overlooked in the process.

It worked like a charm from the first time. Thanks a lot for your
help. You saved me quite a few brain-cells. :)

AL> First, you should have

AL> public void ejbPostCreate(ALocal a ) {

AL> do you have it?

AL> alex

AL> Wednesday, May 28, 2003, 1:45:32 PM, costin costin wrote:

c>>   Hello!

c>>   I am having difficulties with a CMR relation on one of my web-apps.

c>>   I am using JBoss 3.2.0 and MySql 4.0.12 on Linux 2.4.18.

c>>   I have the following diagram:

c>>   ++
c>>   | A bean |
c>>   ++
c>>   A 1
c>>   |
c>>   V *
c>>   +--+
c>>   |B bean|
c>>   +--+

c>>   The problem appears when creating the B bean. Using middlegen and
c>>   xdoclet I have the following create method:

c>>   

c>> public java.lang.Integer ejbCreate(ALocal a ) throws javax.ejb.CreateException {
c>>   // Set CMP fields
c>>   // EJB 2.0 spec says return null for CMP ejbCreate methods.
c>>   return null;
c>>}

c>>public void ejbPostCreate( java.lang.Integer id, , ALocal a ) throws 
javax.ejb.CreateException {
c>>   // Set CMR fields
c>>   setA(a);
c>>}
c>>

c>> So, basically I need a A reference before I can make some B beans.

c>> Typically, the A beans gets created first and then I have to add
c>> some B beans to the mix

c>> Even though , I am finding a reference to the
c>> ALocal (I am logging it and test it to be != null), after I make the call to 
the create() method
c>> the database field (I am using ForeingKeys) gets only NULL.

c>> 
c>>try
c>> {
c>> referenceA = getABean();

c>> if (referenceA== null)
c>> logger.debug("*** reference A == null");
c>> else
c>> logger.debug("*** reference A NOT null");

c>> facade.create(
c>> referenceA
c>> );

c>> logger.debug("Done writing into the database");

c>> }
c>> catch (Exception e)
c>> {
c>> logger.error("I have an exception");
c>> }

c>> 

c>> Can anyone give me a clue here about what is going wrong...



AL> ---
AL> This SF.net email is sponsored by: ObjectStore.
AL> If flattening out C++ or Java code to make your application fit in a
AL> relational database is painful, don't do it! Check out ObjectStore.
AL> Now part of Progress Software. http://www.objectstore.net/sourceforge
AL> ___
AL> JBoss-user mailing list
AL> [EMAIL PROTECTED]
AL> https://lists.sourceforge.net/lists/listinfo/jboss-user


-- 
 costinmailto:[EMAIL PROTECTED]



---
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user