Are you working to a Jboss 4.0 practical, useful and simple even if complete
handbook? It will be surely one of the book on my library.

Marco

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> [EMAIL PROTECTED]
> Sent: Saturday, February 22, 2003 12:13 PM
> To: [EMAIL PROTECTED]
> Subject: JBoss-user digest, Vol 1 #3851 - 15 msgs
> 
> 
> Send JBoss-user mailing list submissions to
>       [EMAIL PROTECTED]
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>       https://lists.sourceforge.net/lists/listinfo/jboss-user
> or, via email, send a message with subject or body 'help' to
>       [EMAIL PROTECTED]
> 
> You can reach the person managing the list at
>       [EMAIL PROTECTED]
> 
> When replying, please edit your Subject line so it is more 
> specific than "Re: Contents of JBoss-user digest..."
> 
> 
> Today's Topics:
> 
>    1. Re: Separating a WAR from its EAR (Rod Macpherson)
>    2. Re: AW: [JBoss-user] ManagedConnections Available! (nfs_ nfs)
>    3. Force RMI to a specific port (Jeremy Rempel)
>    4. Re: JBoss on FreeBSD (Rasputin)
>    5. RE: Force RMI to a specific port (Bill Burke)
>    6. =?GB2312?B?u6XBqs3416jStdD7tKvN+NW+?= (lj)
>    7. How to configure durable topic in 3.0.x (Demyanovich, 
> Craig - Apogent)
>    8. [Mildly OT] Common interfaces to EJBs (Joseph Barillari)
>    9. How to configure durable topic in 3.0.x (Demyanovich, 
> Craig - Apogent)
>   10. CMP Auto-Generated Fields (Jeremy Rempel)
>   11. Limiting the number of MDBs (Kevin O'Neill)
>   12. Problem running struts under JBoss + Tomcat LE (Andreas 
> Spengler)
>   13. Re: CMP Auto-Generated Fields (Alex Loubyansky)
>   14. How to do a 'like' search using CMP in entity beans? 
> (Carsten Hammer)
>   15. Re: How to do a 'like' search using CMP in entity 
> beans? (Langelage, Frank)
> 
> --__--__--
> 
> Message: 1
> Date: Fri, 21 Feb 2003 12:28:18 -0800
> From: Rod Macpherson <[EMAIL PROTECTED]>
> Subject: Re: [JBoss-user] Separating a WAR from its EAR
> To: [EMAIL PROTECTED]
> Reply-To: [EMAIL PROTECTED]
> 
> AFAIK the EARs will be loaded before the WARs so 
> initialization so that initialization code should be happy 
> once you give it access to the EJB interfaces at load time.
> 
> Here's a couple handy ANT FYIs in case you were not aware of 
> these. You can exclude your implementation files and jar up 
> the interfaces: <jar jarfile=sneaky.jar> <fileset...> 
> <exclude name="**/*Bean.class/> ... </fileset> </jar>. Also, 
> I'm using jar task for everything: war, ear, jar, sar, foo, 
> bar... Really don't see the advantage of the high level tasks.
> 
> 
> ----- Original Message -----
> From: <Jonathan.O'[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, February 21, 2003 10:04 AM
> Subject: Re: [JBoss-user] Separating a WAR from its EAR
> 
> 
> > Rod,
> > Thanks for that clarification. You are right on all points. We have 
> > some sneaky initialisation code that runs when the WAR is deployed, 
> > and this tries to connect to our EAR session beans. I 
> suspect the the 
> > EAR file with the implementation of the session bean interfaces was 
> > not deployed when the WAR was deployed. Hence the naming server 
> > problems.
> >
> > What I am glad to hear is that apart from sticking the remote 
> > interface classes into a JAR in WEB-INF/lib, I should be able to 
> > deploy the WAR outside the EAR with no other problems.
> >
> > Ciao,
> > Jonathan O'Connor
> > Development Manager
> > XCOM Dublin
> > Phone: +353 1 872 3305
> > Mobile: +353 86 824 0736
> >
> >
> >
> >
> > Rod Macpherson <[EMAIL PROTECTED]>
> > Sent by: [EMAIL PROTECTED]
> > 21.02.2003 17:02
> > Please respond to jboss-user
> >
> >
> >         To:     [EMAIL PROTECTED]
> >         cc:
> >         Subject:        Re: [JBoss-user] Separating a WAR 
> from its EAR
> >
> >
> > The problem he was having was not being able to find EJB interfaces 
> > after moving the WAR file outside of the EAR. That does not 
> appear to 
> > be a bug since you would expect to lose visibility in that case. 
> > Putting the EJB interfaces in a jar file under WEB-INF/lib 
> will solve 
> > his problem without editing deployment descriptors. I am 
> also using a 
> > WAR inside an EAR and that works fine and he actually had 
> that working 
> > also.
> > ----- Original Message -----
> > From: Andreas Mecky
> > To: [EMAIL PROTECTED]
> > Sent: Friday, February 21, 2003 8:14 AM
> > Subject: Re: [JBoss-user] Separating a WAR from its EAR
> >
> > Hi Jonathan,
> >
> > I never thought that we'd talk to each other using the 
> jboss mailing 
> > list
> > :)
> >
> > Make sure you have all jars in your war file that are 
> needed and add 
> > the web resource entries to web.xml. Do not forget your ejb class 
> > files.
> >
> > We went through this process as well when we deployed our 
> application 
> > (an ear with a war inside) on JBoss2.44 and Tomcat3.2.3 or 
> something). 
> > Since there is a bug you have to deploy this
> > separately.
> >
> > If you have more questions then you can contact me 
> directly. Just put 
> > a dot between the first and the lastname and replace the 
> yahoo.de with 
> > our company account.
> >
> > CU
> >
> > Andreas
> >
> > ----- Original Message -----
> > From: Jonathan.O'[EMAIL PROTECTED]
> > To: [EMAIL PROTECTED]
> > Sent: Friday, February 21, 2003 2:18 PM
> > Subject: [JBoss-user] Separating a WAR from its EAR
> >
> >
> > Folks,
> > We have our front end in a WAR living inside our EAR file. 
> For reasons 
> > I won't go into here, we thought it might be an idea to 
> take the WAR 
> > out of the EAR and deploy it separately. However, when we try using 
> > it, we get JNP errors complaining about not finding remote 
> interfaces.
> >
> > Do you need to add resoure references in the WAR to get 
> access to the 
> > Remote interfaces, much like you do for a session bean to access 
> > entity beans that live in another JAR/EAR? Ciao,
> > Jonathan O'Connor
> > Development Manager
> > XCOM Dublin
> > Phone: +353 1 872 3305
> > Mobile: +353 86 824 0736
> >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: SlickEdit Inc. Develop 
> an edge. The 
> > most comprehensive and flexible code editor you can use. 
> Code faster. 
> > C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. 
> > www.slickedit.com/sourceforge 
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED] 
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> 
> --__--__--
> 
> Message: 2
> From: "nfs_ nfs" <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: AW: [JBoss-user] ManagedConnections Available!
> Date: Fri, 21 Feb 2003 21:19:15 +0000
> Reply-To: [EMAIL PROTECTED]
> 
> Thanks for your help i am trying MySQLTM Connector/J.
> 
> 
> 
> 
> 
> 
> 
> >From: David Jencks <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: [EMAIL PROTECTED]
> >Subject: Re: AW: [JBoss-user] ManagedConnections Available!
> >Date: Fri, 21 Feb 2003 14:46:32 -0500
> >
> >My experience was that mysql makes its jdbc driver very easy to find 
> >and that it works.  I haven't used it in about a year, but 
> no one else 
> >has had trouble finding it.
> >
> >david jencks
> >
> >On 2003.02.21 13:57 nfs_ nfs wrote:
> > > Hi david jencks,
> > >
> > > "Do not use jdbc-odbc with any app requiring more than one 
> > > connection,
> >in
> > >
> > > particular never with jboss."
> > > SO which one can i use with mysql and JBoss ?.
> > >
> > > Thanks again.
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > _________________________________________________________________
> > > Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
> > > http://join.msn.com/?page=features/featuredemail
> > >
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.net email is sponsored by: SlickEdit Inc. Develop 
> an edge. 
> > > The most comprehensive and flexible code editor you can use. Code 
> > > faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. 
> > > www.slickedit.com/sourceforge 
> > > _______________________________________________
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED] 
> > > https://lists.sourceforge.net/lists/listinfo/jboss-user
> > >
> > >
> >
> >
> >-------------------------------------------------------
> >This SF.net email is sponsored by: SlickEdit Inc. Develop an 
> edge. The 
> >most comprehensive and flexible code editor you can use. 
> Code faster. 
> >C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. 
> >www.slickedit.com/sourceforge 
> >_______________________________________________
> >JBoss-user mailing list
> >[EMAIL PROTECTED] 
> >https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> _________________________________________________________________
> Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
> http://join.msn.com/?page=features/junkmail
> 
> 
> 
> --__--__--
> 
> Message: 3
> Date: Fri, 21 Feb 2003 13:59:31 -0800
> From: Jeremy Rempel <[EMAIL PROTECTED]>
> To:  [EMAIL PROTECTED]
> Subject: [JBoss-user] Force RMI to a specific port
> Reply-To: [EMAIL PROTECTED]
> 
> My server communicates with clients running applets. I have port 1099 
> open on the server and thats how my jndi.properties references the 
> server. The server is still using random ports and only works 
> when all 
> ports are open not just 1099.
> 
> How can I use jboss rmi through a firewall?
> 
> I am using EJB's.
> 
> Thanks, Jeremy
> 
> 
> 
> --__--__--
> 
> Message: 4
> Date: Fri, 21 Feb 2003 22:47:08 +0000
> From: Rasputin <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] JBoss on FreeBSD
> Reply-To: [EMAIL PROTECTED]
> 
> * Dain Sundstrom <[EMAIL PROTECTED]> [0245 19:45]:
> > My favorite OS is FreeBSD, but I haven't use it in a long 
> time because
> > of VM support.  I notice they have like a half dozen VMs now, so I 
> > interested again...
> > 
> > Is anyone running JBoss 3.x on FreeBSD?  In production?
> > 
> > What VM are you using?  How is the performance?  Was it difficult to
> > setup?
> 
> I'm running jboss 3.0 under NetBSD using the FreeBSD 1.3.1 
> patchset and the SCSL source from Sun - took a bit of hacking 
> to get the FreeBSD code to build on NetBSD, but the JVM is 
> stable and faster than the Linux-emulated ones.
> 
> I can start up jboss and deploy simple jars of hello world - 
> I haven't read enoughs docs to get any further yet :)
> 
> ( Only gotcha is javac sig11s trying to build jboss :( - but 
> running will do for now ).
> 
> FREEBSD now has native threading in the SCSL release of jdk 
> 1.3, and freebsd-current now has experimental hotspot 
> support. Worth another look?
> 
> -- 
> So, what's with this guy Gideon, anyway?
> And why can't he ever remember his Bible?
> Rasputin :: Jack of All Trades - Master of Nuns
> 
> 
> --__--__--
> 
> Message: 5
> From: "Bill Burke" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Subject: RE: [JBoss-user] Force RMI to a specific port
> Date: Fri, 21 Feb 2003 18:31:50 -0500
> Reply-To: [EMAIL PROTECTED]
> 
> 3.x right?
> 
> 1099 is used to obtain an RMI proxy to JNDI.  This is a 
> standard socket. JNDI invocations happen through RMI though 
> and must be configured through the NamingService mbean.  RTFM.
> 
> Other ports that must be accessible:
> 
> WebServer 8083 (for classloading)
> EJB Communications 4444 (JRMPInvoker)
> 
> If you don't want this, you can use HTTP as a transport for 
> everything I believe, except maybe the Webserver for 
> classloading, I don't know.
> 
> Bill
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Behalf Of Jeremy 
> > Rempel
> > Sent: Friday, February 21, 2003 5:00 PM
> > To: [EMAIL PROTECTED]
> > Subject: [JBoss-user] Force RMI to a specific port
> >
> >
> > My server communicates with clients running applets. I have 
> port 1099 
> > open on the server and thats how my jndi.properties references the 
> > server. The server is still using random ports and only 
> works when all 
> > ports are open not just 1099.
> >
> > How can I use jboss rmi through a firewall?
> >
> > I am using EJB's.
> >
> > Thanks, Jeremy
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: SlickEdit Inc. Develop 
> an edge. The 
> > most comprehensive and flexible code editor you can use. 
> Code faster. 
> > C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. 
> > www.slickedit.com/sourceforge 
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED] 
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> 
> --__--__--
> 
> Message: 6
> From: "lj" <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Date: Sat, 22 Feb 2003 09:56:36 +0800
> Subject: [JBoss-user] =?GB2312?B?u6XBqs3416jStdD7tKvN+NW+?=
> Reply-To: [EMAIL PROTECTED]
> 
> <html><head></head>
> <frameset border=0 frameborder=0 frameSpacing=0 rows=100%,*> 
> <frame marginHeight=5 marginWidth=10 name=mainsoft 
> src="http://www.8he8.com/";> </frameset> </html>
> 
> 
> --__--__--
> 
> Message: 7
> From: "Demyanovich, Craig - Apogent" <[EMAIL PROTECTED]>
> To: "'[EMAIL PROTECTED]'"
>        <[EMAIL PROTECTED]>
> Date: Fri, 21 Feb 2003 22:39:55 -0500
> Subject: [JBoss-user] How to configure durable topic in 3.0.x
> Reply-To: [EMAIL PROTECTED]
> 
> I want to migrate my application from 2.4.10 to 3.0.x.  I 
> have a few durable topics to configure, but I can't find 
> instructions for doing so.  I've looked at 
> jbossmq-destinations-service.xml, jbossmq-service.xml and 
> jms-service.xml.  I've searched this list and the JMS forum 
> at jboss.org. However, I haven't found enough that I 
> understand what to do.  Is this information in the for-pay 
> docs only?  If not, I would greatly appreciate any help.
> 
> Thanks for your time,
> Craig
> 
> 
> --__--__--
> 
> Message: 8
> To: jboss-user <[EMAIL PROTECTED]>
> From: Joseph Barillari <[EMAIL PROTECTED]>
> Date: Fri, 21 Feb 2003 22:44:19 -0500
> Subject: [JBoss-user] [Mildly OT] Common interfaces to EJBs
> Reply-To: [EMAIL PROTECTED]
> 
> --=-=-=
> Content-Transfer-Encoding: quoted-printable
> 
> Hi.
> 
> N.B.: This is a generic EJB question, not a JBoss-specific
>       question. Ignore it if you wish.
> 
> I'm curious if it is possible to have EJBs implement 
> interfaces. In my case, I'd like to create a bunch of 
> different session beans that have the same method names. In 
> other words, I would like to replace
> 
> SpecificBeanHome lHome=20
>       =3D (SpecificBeanHome) lContext.lookup( "SpecificBean's 
> JNDI name" );
> 
> with
> 
> GenericBeanHome lHome=20
>       =3D (GenericBeanHome) lContext.lookup( beanNameInAString );
> 
> ...where beanNameInAString is set to the JNDI name of some 
> session bean implementing the GenericBean interface. I would 
> define methods foo(), bar(), etc. in the GenericBean 
> interface, implement them in the bean, and would be able to 
> call foo() or bar() on the bean from the GenericBean 
> interface. This would mean that I could avoid hard-coding the 
> specific type of the bean in the code.
> 
> I tried the naive method: defining an interface and adding it 
> to=20 a bean's "extends" list. That didn't work. (I've 
> omitted the details because I assumed that that was far too 
> naive to work).
> 
> I've checked a few books; the only one that seems to bridge 
> the issue is the O'Reilly EJB book. The "Implementing a 
> Common Interface" chapter discusses "[using] a common 
> interface to ensure consistency between the bean class and 
> the remote interface" --- but that isn't quite what I want.
> 
> Is there some way of addressing multiple beans through a 
> user-defined interface?
> 
> Thanks in advance,
> 
> =2D-Joe
> 
> --=-=-=
> Content-Type: application/pgp-signature
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.1 (GNU/Linux)
> 
> iD8DBQA+VvITIV4b0vah+jcRAmgQAKCDr8qBRMyW8hhgH1KQI4BGWWgsfQCfY3BC
> +6WqAsMoDgUUr9nkMPn2/HM=
> =ZT7V
> -----END PGP SIGNATURE-----
> --=-=-=--
> 
> 
> --__--__--
> 
> Message: 9
> From: "Demyanovich, Craig - Apogent" <[EMAIL PROTECTED]>
> To: "'[EMAIL PROTECTED]'"
>        <[EMAIL PROTECTED]>
> Date: Fri, 21 Feb 2003 22:47:17 -0500
> Subject: [JBoss-user] How to configure durable topic in 3.0.x
> Reply-To: [EMAIL PROTECTED]
> 
> I forgot to include jbossmq-state.xml in the list of files 
> that I've inspected.
> 
> Thanks again,
> Craig
> 
> 
> --__--__--
> 
> Message: 10
> Date: Fri, 21 Feb 2003 20:53:24 -0800
> From: Jeremy Rempel <[EMAIL PROTECTED]>
> To:  [EMAIL PROTECTED]
> Subject: [JBoss-user] CMP Auto-Generated Fields
> Reply-To: [EMAIL PROTECTED]
> 
> Is there any way to use CMP and use the auto-increment 
> features of the 
> native database?
> 
> Specifically MySQL.
> 
> Thanks,
> Jeremy
> 
> 
> 
> --__--__--
> 
> Message: 11
> From: Kevin O'Neill <[EMAIL PROTECTED]>
> To: JBoss User <[EMAIL PROTECTED]>
> Organization: rocketred pty ltd
> Date: 22 Feb 2003 19:45:14 +1100
> Subject: [JBoss-user] Limiting the number of MDBs
> Reply-To: [EMAIL PROTECTED]
> 
> Hi,
> 
> I'd like to be able to limit the number of MDB instances I 
> have listening on a queue to one or two (the mdb's connect to 
> the net and download largeish objects). Can anyone enlighten 
> me on the configuration parameter I have to set (even better 
> if there is a control from xdoclet
> :))
> 
> -k.
> 
> -- 
> If you don't test then your code is only a collection of bugs which 
> apparently behave like a working program. 
> 
> Website: http://www.rocketred.com.au/blogs/kevin/
> 
> 
> 
> --__--__--
> 
> Message: 12
> Date: Sat, 22 Feb 2003 09:54:37 +0100 (CET)
> From: Andreas Spengler <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] Problem running struts under JBoss + Tomcat LE
> Reply-To: [EMAIL PROTECTED]
> 
> Hi,
> 
> I am trying to install a struts webapp under JBoss/Tomcat LE 
> and run into 
> problems when accessing FormBeans and Action classes. They 
> are all under 
> the right path under WEB-INF/classes in the .war-file but I 
> always get the 
> message
> 
> action: Looking for Action instance for class 
> com.commerzbank.csvarinterface.webfrontend.actions.StartCbeAction
> action: Double checking for Action instance already there
> action: Creating new Action instance
> action: Error creating Action instance for path '/start', class name 
> 'com.commerzbank.csvarinterface.webfrontend.actions.StartCbeAction'
> 
> java.lang.ClassNotFoundException: No ClassLoaders found for: 
> com.commerzbank.csvarinterface.webfrontend.actions.StartCbeAction
>         at 
> org.jboss.mx.loading.LoadMgr.beginLoadTask(LoadMgr.java:138)
>         at 
> org.jboss.mx.loading.UnifiedClassLoader3.loadClass(UnifiedClas
> sLoader3.java:140)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
>         at 
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:140)
> 
> The Struts library files are correctly deployed since the 
> struts examples 
> themselves are working fine....
> 
> 
> Thanks for any help...
> 
> Greetings,
> 
> Andreas
> 
> 
> 
> --__--__--
> 
> Message: 13
> Date: Sat, 22 Feb 2003 11:52:12 +0200
> From: Alex Loubyansky <[EMAIL PROTECTED]>
> To: Jeremy Rempel <[EMAIL PROTECTED]>
> Subject: Re: [JBoss-user] CMP Auto-Generated Fields
> Reply-To: [EMAIL PROTECTED]
> 
> Please, try to search the archive before asking. I answered 
> this question many times and last one was just yesterday.
> 
> Specifically for MySQL, in jbosscmp-jdbc.xml in the entity element:
>          <cmp-field>
>             <field-name>id</field-name>
>             <column-name>knownid</column-name>
>             <jdbc-type>INTEGER</jdbc-type>
>             <sql-type>INTEGER(11)</sql-type>
>             <auto-increment/>
>          </cmp-field>
>          <entity-command name="mysql-get-generated-keys"/>
>          
> Note, this will work only in JBoss-3.2 and upper.
> 
> alex
> 
> Saturday, February 22, 2003, 6:53:24 AM, Jeremy Rempel wrote:
> 
> JR> Is there any way to use CMP and use the auto-increment 
> features of 
> JR> the
> JR> native database?
> 
> JR> Specifically MySQL.
> 
> JR> Thanks,
> JR> Jeremy
> 
> 
> 
> 
> --__--__--
> 
> Message: 14
> To: [EMAIL PROTECTED]
> From: Carsten Hammer <[EMAIL PROTECTED]>
> Date: Sat, 22 Feb 2003 13:07:59 +0100
> Subject: [JBoss-user] How to do a 'like' search using CMP in 
> entity beans?
> Reply-To: [EMAIL PROTECTED]
> 
> Hi,
> I want to implement a search for all names that begin with 
> 'Sm'. Monson-Haefel claims this is impossible using EJB QL on 
> a CMP field. What does this mean?
> 
> It seems to be easy to build queries with a fixed pattern like
> 
> SELECT OBJECT(c) FROM Customer c WHERE c.lastName LIKE '%-%'
> 
> But how to do it if the pattern should be '%<user transmitted 
> pattern>%' where <user transmitted pattern> is something that 
> I catch from the GUI 
> of my client application?
> 
> Thanks in advance,
> Carsten
> 
> 
> 
> 
> --__--__--
> 
> Message: 15
> Date: Sat, 22 Feb 2003 13:12:09 +0100
> From: "Langelage, Frank" <[EMAIL PROTECTED]>
> To:  [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] How to do a 'like' search using CMP 
> in entity beans?
> Reply-To: [EMAIL PROTECTED]
> 
> Carsten Hammer wrote:
> 
> > Hi,
> > I want to implement a search for all names that begin with 'Sm'. 
> > Monson-Haefel claims this is impossible using EJB QL on a 
> CMP field. 
> > What does this mean?
> >
> > It seems to be easy to build queries with a fixed pattern like
> >
> > SELECT OBJECT(c) FROM Customer c WHERE c.lastName LIKE '%-%'
> >
> > But how to do it if the pattern should be '%<user transmitted 
> > pattern>%' where <user transmitted pattern> is something 
> that I catch 
> > from the GUI of my client application?
> >
> > Thanks in advance,
> > Carsten
> 
> 
> You have to use a JBoss specific extension called JBoss-QL in 
> this case.
> In my AddressBean I declare a ejb.finder with a constant expression 
> after like and use a jboss.query with a placeholder instead.
> XDoclet generates the query in ejb-jar.xml and in jbosscmp-jdbc.xml.
> 
>  * @ejb.finder          signature="java.util.Collection 
> findByMatchcode( 
> java.lang.String matchcode )"
>  *   view-type="local"
>  *   query="SELECT OBJECT(o) FROM Address AS o WHERE o.matchcode LIKE 
> 'SIEMENS%'"
>  *   result-type-mapping="Local"
>  * @jboss.query         signature="java.util.Collection 
> findByMatchcode( 
> java.lang.String matchcode )"
>  *   query="SELECT OBJECT(o) FROM Address AS o WHERE 
> o.matchcode LIKE ?1 
> ORDER BY o.id"
> 
> Regards
> Frank
> 
> 
> 
> 
> --__--__--
> 
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> End of JBoss-user Digest
> 


-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to