Hi,
You're doing a BMP bean, so you work with jdbc already, why don't you
just define a method count() on the bean and call "SELECT COUNT * FROM
blabla" on the datasource
In my opinion you don't have to use only findBYXXX methods...
Joost.
-Original Message-
From: John LYC [mailto:
Have a method in your home interface say
public interface UserHome extends EJBHome {
int getUserCount() throws RemoteException;
}
then in you ejb bean class you implement the method say
public class UserBean extends {
public int ejbHomeGetUserCount() {
... do your "select count(*)" sql
what do you mean?
John
- Original Message -
From: "Kar YEOW" <[EMAIL PROTECTED]>
To: "Jboss Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 16, 2001 2:54 PM
Subject: Re: [JBoss-user] Select COUNT? in Entity
> Try using Home Interface. Kar
> - Original Message -
> F
Try using Home Interface. Kar
- Original Message -
From: "John LYC" <[EMAIL PROTECTED]>
To: "Jboss Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 16, 2001 1:08 PM
Subject: [JBoss-user] Select COUNT? in Entity
Hi all,
I'm using Bean-managed Entity Beans..
and i wanna do a
Ok, I think I'm with you, and that its ok. So if the asynchronous service
only retains the client identity, and then lets the server assign the
context for the call based on that identity that would be acceptable you
think? That certainly satisfies my requirements.
thanks again,
dim
On Mon, 15
All a client can do is establish an authenticated identity. The server
assigns the security context based on the client identity. Perhaps this
will change in the future as I look more at the EJB 2.0 security
interoperability support.
> > The asynchronous service must behave as any other EJB clien
Hi all,
I'm using Bean-managed Entity Beans..
and i wanna do a sql "select count"..
the thing is the finder methods in entity can only return the beans remote
type or a collection of it.
meaning i cannot select count .
How do i do a sql "count"?
one way to do work around i guess is to do a sql "
You should have a look at EJBUtils:
http://sourceforge.net/projects/ejbutils/
Nguyen Thanh Phong Tel: 84-8-837 25 06/837 25 07
Saigon Software Development Company (SDC)Fax: 84-8-837 25 11
10 Co Giang Street, Dist I, HCMC Email:
[EMAIL PROTECTED]
Vietnam
hi guys.. how do i unsubscribe here?
cant find info on how to.
unsubscribe me!! thx :)
__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com
___
JBoss-user mailing l
Title: Example jsp and servlet not working JBoss-2.4.3_Tomcat-4.0 (win 2000)
You have to deploy the examples.war file
to the jboss/deploy directory. Kar
- Original Message -
From:
Patrick Munis
To: [EMAIL PROTECTED]
Sent: Tuesday, October 16, 2001 4:49
AM
Subje
I found the following on the Computer Associates
web site under a product called COOL:Joe (which I'm not interested in - I was
looking for something else and stumbled accross it:
Application Server Independence. COOL:Joe EJBs are deployed to any J2EE
compliant application server.
Title: Example jsp and servlet not working JBoss-2.4.3_Tomcat-4.0 (win 2000)
Does
anyone have information regarding any SNMP integration plan for the Rabbit Hole
project?
thanks,
Sheng
Title: Example jsp and servlet not working JBoss-2.4.3_Tomcat-4.0 (win 2000)
Just installed JBoss-2.4.3_Tomcat-4.0 and cannot get example jsp or servlets to work on win2000 prof. I was able to get jsp and servlet to work with Jboss-2.4.1-Tomcat3.2. I have set my system classpath to point to t
There should be no changes required and I am not able to reproduce this
exception. Post a bug report with the server.log output(not the console
output)
of the exception and the ear that causes this problem on sourceforge.
- Original Message -
From: "Keith Kee" <[EMAIL PROTECTED]>
To: <[EM
Title: RE: [JBoss-user] cmp primary key
In CMP, in the ejbCreate(), you must generate the key and assign it to the primary key field of your bean.
The strategy of generating the PK depends on your context.
1. If the PK is a string
You can use a UUID generator to generate a key of 32 characte
Hi:
I am trying to deploy 2 simple EJBs with these xmls, and I am get
javax.naming.NameAlreadyBoundException exception on JBoss 2.4.1 and JBoss
2.4.3. I looked at the Changelog, and one of the changes was that
subcontexts in the jndi tree will not be deleted and recreated. What do I
have to chan
I'm a newbie for sure, but I've been surfing around for
a solution to assigning unique primary key values with
CMPs. I have seen lots of vague descriptions of how
to do it and some specific ones that are all followed by
other comments from people why that solution doesn't
work.
Does anyone have a
> In terms of tools for developing with JBoss? XDoclet
> (http://sourceforge.net/projects/xdoclet) provides excellent support for
> JBoss - it generates interfaces and deployment descriptors based on
> comments in your code.
also check out the Together Deployer
http://jboss.org/jbossgroup/partn
On Mon, 15 Oct 2001, Mariano Kamp wrote:
>
> Last no least. Are there any special things to note about tools?
> Integration with JBOSS etc.?
>
In terms of tools for developing with JBoss? XDoclet
(http://sourceforge.net/projects/xdoclet) provides excellent support for
JBoss - it generates
Generally to solve this problem, I've used either a stateless session bean
that gets the integer value from the database (using either
Oracle/PostgreSQL sequence objects, or a table), or a CMP entity bean, where
there's one instance per logical key. Note that if you have only one logical
key, the
>Hermann RANGAMANA wrote:
> What you're talking about is singleton pattern ... i've read in a
discussion
> at theserverside.com that it's impossible to achieve singleton pattern
with
> ejb, and didn't do further on my research
What I'm trying to accomplish is a way to assign a unique integer
Hi there,
we are currently evaluating the options for building a multi-chanel product
(mobile, web, etc.). During the process we found JBOSS and toyed around with
it a bit. The key people in our company are used to WebSphere/DB2/Oracle, but
we are quiet impressed by what we've seen so far from
Hi,
we use JBoss 2.4.1 and Toplink O/R tool as our persistence engine.
With version 3.5.3 of Toplink it works quite well.
Now we are trying to upgrade to the latest version of Toplink (v3.6)
and we experience problem with JTS integration. During
TxCapsule.doAfterCompletion() we get 'java.lang.Ru
On Mon, 15 Oct 2001, Scott M Stark wrote:
> The problem with this approach is the the SecurityAssociation is not a
> supported access point for public consumption. The supported mechanism
> for establishing user identity is a JAAS login. For the case of an mbean
> this needs to invoke the ClientL
Hi,
If the data you're caching is common to all clients (e.g. no "state"
information)
you're better off using a stateless session bean.. Depending on the load
of your machine
you'll have one or more instances of this bean cached and ready to
server your clients..
Why would you want to have one in
What you're talking about is singleton pattern ... i've read in a discussion
at theserverside.com that it's impossible to achieve singleton pattern with
ejb, and didn't do further on my research
--Hermann
- Original Message -
From: "Frank Morton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTE
Hi all,
Can I access to an EJB running on Jboss with JDK1.3 from a client
which I need to be executing over JDK 1.2.2?
Now, I get the following message:
javax.naming.CommunicationException [Root exception is
java.io.StreamCorruptedException: Type code out of range, is 125]
java.l
Hi,
could someone tell me what could be the problem that JBoss hangs up in line
[DefaultDS] XA Connection pool DefaultDS bound to java:/DefaultDS?
I run JBoss in Visual Age 3.5. It all have worked REALY fine and I dont know
that I have changed anything within VA.
DefaultDS uses MySql.
PLEASE HEL
The problem with this approach is the the SecurityAssociation is not a
supported access point for public consumption. The supported mechanism
for establishing user identity is a JAAS login. For the case of an mbean
this
needs to invoke the ClientLoginModule. You can achieve the unsetting of the
id
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
Looking further at this it seems that the way to do this would be to have
the Principal and credentials stored in the MBean and then have the MBean
set them on the SecurityAssociation on the thread that is going to call
the ejb. Am I right in thinking that this now has nothing todo with using
JAA
Hi all,
I have a memory problem when I try to access my EJB (stateless) in
JBoss. I try to access from a servlet so I get the EJBHome and I cache
it.
Every time the servlet is accessed I do the .create() method to
access the EJB in the EJBHome interface.
When this servlet (executing in
32 matches
Mail list logo