Re: [JBoss-user] flushAuthenticationCache in JBoss 3.0.7

2003-06-25 Thread Scott M Stark
Previously I said there was no way short of performing an authentication 
to place an entry in the auth cache. This is true of the default cache, 
but you can install your own org.jboss.util.CachePolicy instance for use 
by the security manager and this would allow you to directly manipulate 
the cache entries. See the JaasSecurityManagerService documentation on 
how to install your own CachePolicy.

--

Scott Stark
Chief Technology Officer
JBoss Group, LLC

Spencer wrote:

Currently, my web app uses LDAP to authenticate.  When a user changes
their password in LDAP, it does not get updated in the Auth Cache
(which is expected behavior), so the old password is valid until the
user logs in with the new password.
I found the manual entry about flushing the authentication cache, but
doing so logs the user out of the app.  So if I do it upon the password
change, the user has to log right back in.  I would do it upon logout,
but there's no guarantee that the user will logout, as opposed to just
closing the browser.
So the question is whether or not there's a way to update a specific
user's credentials in the Auth Cache without having the user forcibly
logged off.
TIA,
Spencer


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] CMR Problem

2003-06-25 Thread Alexey Loubyansky
Hello Jason,

try to remove cascade-delete for one-to-one. By the spec, it is
allowed only for many side.

alex

Thursday, June 26, 2003, 8:33:08 AM, Jason Calabrese wrote:

JC> I'm having a weird CMR problem with 3.2.0.

JC> I have a bean that a has 2 CMR fields that both target the same bean with 
JC> different pk's.

JC> One of the CMR fields is a 1:1 relation and the other is the single side of a 
JC> 1:M relation.

JC> The CMR fields can be read fine, but cause problems for ejbCreate.

JC> This is the error I get:
JC> 2003-06-25 18:35:16,563 ERROR [org.jboss.ejb.plugins.LogInterceptor] 
JC> TransactionRolledbackLocalException, causedBy:
JC> javax.ejb.EJBException: Data contains multiple values, but this cmr field is 
JC> single valued
JC> ...
JC> 2003-06-25 18:35:16,597 ERROR [org.jboss.ejb.plugins.LogInterceptor] 
JC> TransactionRolledbackLocalException, causedBy:
JC> javax.ejb.EJBException: null; CausedByException is:
JC> A CMR collection may only be used within the transction in which it 
JC> ...

JC> If I get rid of the 1:1 CMR field (valueClass) the problem goes away. Here's 
JC> some of the code:
JC> ...
JC> /** 
JC>  *  @ejb.relation
JC>  *  name="class-has-properties"
JC>  *  role-name="property-role"
JC>  *  cascade-delete="true"
JC>  *  @jboss.relation
JC>  *  fk-column="class_id"
JC>  *  related-pk-field="id"
JC>  *  @ejb:interface-method
JC>  */
JC> public abstract ContentClassLocal getContentClass();

JC> public abstract void setContentClass(ContentClassLocal contentClass);

JC> /** 
JC>  *  @ejb.persistent-field
JC>  *  @ejb:interface-method
JC>  *  @jboss.column-name name="class_id"
JC>  */
JC> public abstract String getContentClassId();

JC> /** 
JC>  *  @ejb:interface-method
JC>  */
JC> public abstract void setContentClassId(String classId);
JC> ...
JC> /** 
JC>  *  @ejb.relation
JC>  *  name="object-has-valueClass"
JC>  *  role-name="object-role"
JC>  *  target-ejb="ContentClass"
JC>  *  target-role-name="class-role"
JC>  *  cascade-delete="true"
JC>  *  @jboss.relation
JC>  *  fk-column="value_class_id"
JC>  *  related-pk-field="id"
JC>  *  @ejb:interface-method
JC>  */
JC> public abstract ContentClassLocal getValueClass();

JC> public abstract void setValueClass(ContentClassLocal valueClass);

JC> /** 
JC>  *  @ejb.persistence
JC>  *  @ejb:interface-method
JC>  *  @jboss.column-name name="value_class_id"
JC>  */
JC> public abstract String getValueClassId();

JC> /** 
JC>  *  @ejb:interface-method
JC>  */
JC> public abstract void setValueClassId(String dataClassId);

JC> Any ideas?  If you need more code or more of the stack trace let me know.

JC> Thanks,

JC> Jason



---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Problems with EJB-QL in a finder method - 3.2.1

2003-06-25 Thread Alexey Loubyansky
If there is no exception, the query was executed successfully.

alex

Thursday, June 26, 2003, 2:24:11 AM, Marco Tedone wrote:

MT> Hi, I'm trying to use a finder method which I defined with EJB-QL:

MT> The signature is as follows:

MT> public java.util.Collection findByEmailPassword(java.lang.String email,
MT> java.lang.String password)
MT> throws javax.ejb.FinderException;

MT> in the ejb-jar.xml file I have the following:

MT> 
MT> >
MT> 
MT> findByEmailPassword
MT> 
MT> java.lang.String
MT> java.lang.String
MT> 
MT> 
MT> 
MT> 

MT> and in the server.log file I have the following (does it mean that the query
MT> has been executed succesfully?):

MT> 2003-06-26 00:09:34,703 DEBUG
MT> [org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.People.findByEmailPassword]
MT> Executing SQL: SELECT DISTINCT t0_o.peopleId FROM People t0_o WHERE
MT> t0_o.email = ? AND t0_o.password = ?

MT> The finder method is on a local entity bean and I'm executing it from a
MT> Session bean; I know the parameter's values are correct, but I still receive
MT> no records, even if the record is on the table.

MT> Here follows the client's signature:

MT> private PeopleLocal getUser(String entityName,
MT> String email,
MT> String password){
MT> PeopleLocal local = null;
MT> try {
MT> log.info("email: " + email + " password: " + password);
MT> local = (PeopleLocal) getHome(entityName).findByEmailPassword(email,
MT> password);
MT> } catch (FinderException e) {
MT> log.equals("Exception while getting user: " + e.getMessage());
MT> }
MT> finally{
MT> return local;
MT> }
MT> }

MT> Please help!

MT> Marco



---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Question about CMP entity

2003-06-25 Thread Alexey Loubyansky
Hello Marco,

if the problem really is a primary key generation you could consider
entity-commands in JBoss-3.2.
The options are:
- database key generation (sequences, etc);
- custom sql;
- you can supply your own key generator class that will be asked for
  the next key;
- JDBC3.0 PreparedStatement.getGeneratedKeys().

alex

Thursday, June 26, 2003, 1:06:43 AM, Marco Tedone wrote:

MT> Sorry guru for the [silly] question: I am having a discussion with people in
MT> my project regarding the container work with CMP entity beans. More
MT> specifically, we want to implement a Numerator table to assign numbers to
MT> several entities of our model.

MT> Suppose a client wants to assign a value to a peopleId field in a People
MT> table, then it will in order:

MT> 1) Access the Numerator table (behind a CMP entity bean)
MT> 2) Retrieve the value from the number field;
MT> 3) Assign that value to peopleId
MT> 4) Increment the value by 1

MT> What I am saying to the guys in the project is that the container (Jboss in
MT> our case) could ensure that, from the moment when the number is retrieved to
MT> the moment when the number is  incremented by 1 nobody else will be able to
MT> alter the value of the number field in the Numerator table. Someone is
MT> replying that we should implement a synchronized method. Is that really
MT> necessary? I'm quite sure that there is a way to instruct the container to
MT> 'lock' in a certain sense the value of the number field. One way could be a
MT> transaction (shall we use synchronization in this case?); is there anything
MT> simplier?

MT> Many thanks for your time,

MT> Marco



---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Re: @jboss-net: xdoclet module

2003-06-25 Thread Eric Jain
> Can/Should this module be added to the main JBoss download
> page on source forge? 

+1

--
Eric Jain



---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] flushAuthenticationCache in JBoss 3.0.7

2003-06-25 Thread Alexander Titov
Thursday, June 26, 2003 06:54:55

Hello Scott.

I am beginner at JBoss security, so sorry for my silly question. As
it is written in documentation, the client login module (during login
method call) simply binds the username and password to JBoss EJB
invocation layer for later authentication on the server. Does the
logout method has a remote call inside the realization, during which
the auth cache at the server is cleaned from correspondent
principal/credential information?

-- 
Best regards,
Alexander

On  Wed, 25 Jun 2003 13:29:54 -0700, you wrote:

SMS> There is no way to update the auth cache short of populating it with a 
SMS> valid authentication. The password change operation should be 
SMS> invalidating the session and then reestablishing it as part of the 
SMS> password change form to refresh the auth cache/session and update the 
SMS> ldap store.

SMS> --
SMS> 
SMS> Scott Stark
SMS> Chief Technology Officer
SMS> JBoss Group, LLC
SMS> 

SMS> Spencer wrote:

>> Currently, my web app uses LDAP to authenticate.  When a user changes
>> their password in LDAP, it does not get updated in the Auth Cache
>> (which is expected behavior), so the old password is valid until the
>> user logs in with the new password.
>>
>> I found the manual entry about flushing the authentication cache, but
>> doing so logs the user out of the app.  So if I do it upon the password
>> change, the user has to log right back in.  I would do it upon logout,
>> but there's no guarantee that the user will logout, as opposed to just
>> closing the browser.
>>
>> So the question is whether or not there's a way to update a specific
>> user's credentials in the Auth Cache without having the user forcibly
>> logged off.
>>
>> TIA,
>> Spencer
>>



---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] execute some command at end of deployment/startup

2003-06-25 Thread Jon Barnett
It seems you are waiting for the home interface to be bound to the JNDI.
This might be a naive question as I haven't tried creating a dependency on
an EJB, but can't you define the depend to be
jboss.j2ee:jndiName=...,service=...? I'm assuming that if the home
interface is bound that the EJB must be able to be manufactured at that
stage.

Otherwise, could you implement a simple polling in your MBean to keep
trying to locate the home interface in JNDI until it is available? Crude
but operational, I suppose.

JonB

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Ittay Dror
> Sent: Thursday, 26 June 2003 2:25 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] execute some command at end of
> deployment/startup
>
>
> why use the web side of things? what i want to initialize is my beans.
> ins't there a j2ee way of doing that?
>
> thanx,
> ittay


smime.p7s
Description: S/MIME cryptographic signature


[JBoss-user] CMR Problem

2003-06-25 Thread Jason Calabrese
I'm having a weird CMR problem with 3.2.0.

I have a bean that a has 2 CMR fields that both target the same bean with 
different pk's.

One of the CMR fields is a 1:1 relation and the other is the single side of a 
1:M relation.

The CMR fields can be read fine, but cause problems for ejbCreate.

This is the error I get:
2003-06-25 18:35:16,563 ERROR [org.jboss.ejb.plugins.LogInterceptor] 
TransactionRolledbackLocalException, causedBy:
javax.ejb.EJBException: Data contains multiple values, but this cmr field is 
single valued
...
2003-06-25 18:35:16,597 ERROR [org.jboss.ejb.plugins.LogInterceptor] 
TransactionRolledbackLocalException, causedBy:
javax.ejb.EJBException: null; CausedByException is:
A CMR collection may only be used within the transction in which it 
...

If I get rid of the 1:1 CMR field (valueClass) the problem goes away. Here's 
some of the code:
...
/** 
 *  @ejb.relation
 *  name="class-has-properties"
 *  role-name="property-role"
 *  cascade-delete="true"
 *  @jboss.relation
 *  fk-column="class_id"
 *  related-pk-field="id"
 *  @ejb:interface-method
 */
public abstract ContentClassLocal getContentClass();

public abstract void setContentClass(ContentClassLocal contentClass);

/** 
 *  @ejb.persistent-field
 *  @ejb:interface-method
 *  @jboss.column-name name="class_id"
 */
public abstract String getContentClassId();

/** 
 *  @ejb:interface-method
 */
public abstract void setContentClassId(String classId);
...
/** 
 *  @ejb.relation
 *  name="object-has-valueClass"
 *  role-name="object-role"
 *  target-ejb="ContentClass"
 *  target-role-name="class-role"
 *  cascade-delete="true"
 *  @jboss.relation
 *  fk-column="value_class_id"
 *  related-pk-field="id"
 *  @ejb:interface-method
 */
public abstract ContentClassLocal getValueClass();

public abstract void setValueClass(ContentClassLocal valueClass);

/** 
 *  @ejb.persistence
 *  @ejb:interface-method
 *  @jboss.column-name name="value_class_id"
 */
public abstract String getValueClassId();

/** 
 *  @ejb:interface-method
 */
public abstract void setValueClassId(String dataClassId);

Any ideas?  If you need more code or more of the stack trace let me know.

Thanks,

Jason



---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Dynamic MDB generation

2003-06-25 Thread Michael Klem
I am creating queues dynamically in my app. Is it possible to 
dynamically create an MDB for those queues?
--
 Michael Klem <[EMAIL PROTECTED]>626-296-3027

---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Message Driven Bean questions

2003-06-25 Thread Michael Klem
1. Is it possible to disable/enable an MDB from receiving messages 
from a queue via JMX?

2. Is it possible to dynamically change the pool size of a MDB via JMX?

--
 Michael Klem <[EMAIL PROTECTED]>626-296-3027
---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] execute some command at end of deployment/startup

2003-06-25 Thread Ittay Dror
why use the web side of things? what i want to initialize is my beans.
ins't there a j2ee way of doing that?

thanx,
ittay
On Wed, 2003-06-25 at 15:51, David Ward wrote:
> Ittay,
> 
> Implement a javax.servlet.ServletContextListener, add it to your web.xml of your
> war (if you have one, otherwise make one), and then you can put stuff in the
> contextInitialized(ServletContextEvent) and
> contextDestroyed(ServletContextEvent) methods.  It's a good appserver agnostic
> startup/shutdown hook mechanism.
> 
> David
> 
> 
> Mensaje citado por Ittay Dror <[EMAIL PROTECTED]>:
> 
> > Hello,
> > 
> > I want to be able to run some code that calls EJBs at the end of my ear
> > deployment. I've tried to do this by creating an MBean, and putting the
> > code in its start() method. My problem is that the MBean starts before
> > the EJBs are deployed. I've tried putting a  on the object
> > names JBoss gives to these beans (in domain jboss.j2ee), but then the
> > code is called before JBoss is able to create the beans. There is
> > another way, which is to  the MBean on the EJBModule. However,
> > JBoss recognizes this by the full path of the jars, which may change in
> > different computers.
> > 
> > Any help is appreciated,
> > Thank you,
> > Ittay
> 
> 
> ---
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
-- 
===
Ittay Dror ([EMAIL PROTECTED])
User Space, R&D
Qlusters Inc.
Tel: +972-3-6081956 Fax: +972-3-6081841



---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Web Services and Basic Authentication

2003-06-25 Thread Neal Sanche
Hi All,

I'm writing, or at least attempting to write, a .NET client that talks 
to a secured JBoss web service. I've followed the other threads in 
this list that state that I should set an acceptUnauthenticatedCalls 
flag to false, and that isn't working. It seems that Microsoft has 
followed the RFCs extremely closely, and not allowed their users to 
'force' the sending of basic auth information manually in a web 
service call. Instead, if the HTTP layer receives a 401 error from 
the HTTP server, it will resend the request with Authentication 
headers.

I'm still trying to figure out a way to replace or augment this 
functionality in the .NET world. But I'm wondering if it would be 
possible to have JBoss return a 401 error when an unauthenticated 
call arrives in the JBoss-net code? How would I go about forcing this 
situation instead of the current 'ErrorCode 500: Internal Server 
Error' whenever a security exception is thrown. Is that possible?

I'm currently running JBoss 3.2.1. Thanks for any insights.

Cheers.

-Neal



---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] jboss-3.2.1_tomcat-4.1.24 & jsp compilation errorson AIX

2003-06-25 Thread Scott M Stark
The classpath passed to the jsp compiler is every jar visible from the 
war classloader through its parent, and there is no way to override it. 
The jasper classpath element is not used.

You could precompile the jsps as one workaround. You could also move the 
tmp directory location by setting the jboss.server.temp.dir system 
property to point to the new location.

--

Scott Stark
Chief Technology Officer
JBoss Group, LLC

Sulik, Lori wrote:

Hiya folks,

  I've been searching for an answer to this problem, but have been unable to
find a solution -- I'm hoping someone here can point me at the right
direction..  My apologies if this has already been addressed, or if it's
considered a n00b question...  

  We're using jboss 3.2.1 with the integrated tomcat 4.1.24..  All works
hunky-dory on every platform except AIX.
  On AIX, we get back the error:
	19:33:56,141 INFO  [Engine] Error compiling file:
/some/path/loginbody_jsp.java [javac] Compiling 1 source file 

	[javac] Warning: UNIXProcess.forkAndExec native error: The
parameter or environment lists are too long. 

  It then proceeds to list a classpath, that as far as I can tell, contains
just about *every* file that exists
in the server/Name directory tree, *including* all of the deployed files in
the 'server/Name/tmp' tree.
(including *all* files..  xml files, jars, etc).  At last count, the CP
alone was over 50k chars -- no
wonder AIX is throwing a hissy fit, eh?
  Now, I *thought* that our jsp's would be compiled via jasper, so I edited:
server/Name/deploy/jbossweb-tomcat.sar/web.xml
  and added the 'classpath' param-value to the JSP page compiler section:

jsp
[...]

classpath
/my/fake/jarfile.jar

[...]
  
  I see lots of log messages in the server/*/log/server.log, that it's at
least *reading* that new classpath entry
that I added, however, our jsps *still* don't compile, nor does the
humongously long classpath that
it spews into the logfile reference my (obviously bogus)
/my/fake/jarfile.jar..
  So, the million dollar question(s):
1.  Is there a way to shorten/override that
auto-generated-but-humongously-long JSP classpath?
(if so, please share)
2.  Is that jbossweb-tomcat.sar/web.xml 'classpath' attribute supposed
to be how I override it?!?
(if so, why doesn't it seem to be using it?)
3.  Would moving that deploy 'tmp' directory to another location,
outside of the server/Name tree, shorten the
classpath being used when compiling the jsps?
(if so, please explain how to do so :)
Thank you for any guidance you can give.

Lori Sulik


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] JBoss-Net performance issues

2003-06-25 Thread Nicholas
I believe that one of the reasons .Net continues to do
so well in WebServices performance is that their XML
parser is reportedly anywhere from 4 to 20 times
faster than any Java based parsers. I had heard that
eBay has XML generated on the back end Java systems
translated on NT boxes using a JNI wrapped MS XML
parser. (Would be nice to find an equivalent on
Sourceforge !!)

In order to address this disparity, I hope we will
start to see lines of technology like HotSpot being
used to reach native parsing performance. IBM is
supposedly writing dynamic XLST down to native JITs.

On Microsoft's side, they still seem to be a little
disappointed with the XML parsing performance, so they
are payloading binary data in the SOAP envelopes in
heir high performance systems. Interesting approach,
but what's the point ? They seem to have gone full
circle and come back to IIOP.

//Nicholas

--- Jon Barnett <[EMAIL PROTECTED]> wrote:
> That is an interesting set of results, although not
> surprising. As Bill
> said, the greatest problem with Web services is that
> you take the hit for
> working with XML. There are many articles that
> discuss this, of which I
> include this one:
>
http://techupdate.zdnet.com/techupdate/stories/main/0,14179,2836041,00.htm
> l
> 
> One thing we haven't got round to doing is looking
> at the relative
> performance of the different service types. It would
> be interesting to see
> the cost of bean-wrapped data via the RPC-style
> service versus XML-like
> data injected directly using the message-style
> service.
> 
> One thing about the Microsoft sponsored study - it
> is not clear whether
> Microsoft applied any parsers for the receipt and
> interpretation of the
> request nor the generation of the response. The fact
> that they got a
> performance enhancement partially linked to better
> database access methods
> means that to some extent, they have an almost
> straight-to-stream data
> feed (the bottle neck is not the XML generation,
> which in turn indicates
> very optimized data to XML-wrapping).
> 
> Regards,
> 
> JonB
> 
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]
> Behalf Of Barlow,
> > Dustin
> > Sent: Thursday, 26 June 2003 6:41 AM
> > To: [EMAIL PROTECTED]
> > Subject: [JBoss-user] JBoss-Net performance issues
> >
> >
> > I've been playing with the simple Hello jboss-net
> code included in the
> > samples directory.  I did some performance testing
> and the
> > results are quite
> > stunning.
> >
> > The test was simple.  I used the included sample
> Axis test client to
> call
> > the hello(String name) method but instead of
> passing it a short string,
> I
> > decided to make things a little more interesting
> and pass it a
> > 75k and then
> > a 275k string of XML read from a file.  The EJB
> hello method did nothing
> > other then accept the data as a parameter, and
> echo back the size of the
> > data that was passed into the method.  I was very
> surprised at how long
> it
> > took run.
> 

> ATTACHMENT part 2 application/x-pkcs7-signature
name=smime.p7s



=
Nicholas Whitehead
Home: (973) 377 9335
Cell: (201) 615 2716
[EMAIL PROTECTED]
Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] JBoss-Net performance issues

2003-06-25 Thread Jon Barnett
That is an interesting set of results, although not surprising. As Bill
said, the greatest problem with Web services is that you take the hit for
working with XML. There are many articles that discuss this, of which I
include this one:
http://techupdate.zdnet.com/techupdate/stories/main/0,14179,2836041,00.htm
l

One thing we haven't got round to doing is looking at the relative
performance of the different service types. It would be interesting to see
the cost of bean-wrapped data via the RPC-style service versus XML-like
data injected directly using the message-style service.

One thing about the Microsoft sponsored study - it is not clear whether
Microsoft applied any parsers for the receipt and interpretation of the
request nor the generation of the response. The fact that they got a
performance enhancement partially linked to better database access methods
means that to some extent, they have an almost straight-to-stream data
feed (the bottle neck is not the XML generation, which in turn indicates
very optimized data to XML-wrapping).

Regards,

JonB

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Barlow,
> Dustin
> Sent: Thursday, 26 June 2003 6:41 AM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] JBoss-Net performance issues
>
>
> I've been playing with the simple Hello jboss-net code included in the
> samples directory.  I did some performance testing and the
> results are quite
> stunning.
>
> The test was simple.  I used the included sample Axis test client to
call
> the hello(String name) method but instead of passing it a short string,
I
> decided to make things a little more interesting and pass it a
> 75k and then
> a 275k string of XML read from a file.  The EJB hello method did nothing
> other then accept the data as a parameter, and echo back the size of the
> data that was passed into the method.  I was very surprised at how long
it
> took run.


smime.p7s
Description: S/MIME cryptographic signature


Re: [JBoss-user] Question about CMP entity

2003-06-25 Thread Marco Tedone



Thank you Marco, I'm sure it will 
help.
 
--Your omonimus

  - Original Message - 
  From: 
  Marco 
  Garbelini 
  To: [EMAIL PROTECTED] 
  
  Sent: Thursday, June 26, 2003 12:30 
  AM
  Subject: Re: [JBoss-user] Question about 
  CMP entity
  
  - Original Message - 
  
  From: "Marco Tedone" <[EMAIL PROTECTED]>
  To: <[EMAIL PROTECTED]>
  Sent: Wednesday, June 25, 2003 8:19 
  PM
  Subject: Re: [JBoss-user] Question about CMP 
  entity
  
  > Could you please forward some 
  example?
  You can use this same bean to create ids for any entity, or 
  create a sequence bean for each entity to get some performance boost.
   
  Observe the for (;;) loop and the TransactionRolledbackException catch, that´s the tricky 
  part.
   
  there you go:
  --
  package 
  com.ped.server.util.sequence;
   
  import javax.ejb.EntityBean;import 
  javax.ejb.EntityContext;import javax.ejb.CreateException;
   
  import org.jboss.logging.Logger;
   
  /** * Class to implement Sequence 
  entity * @ejb.bean *  
  cmp-version = "2.x" *  name = 
  "Sequence" *  local-jndi-name = 
  "ped/server/SequenceLocal" *  type = 
  "CMP" *  view-type = "local" * 
  @ejb.persistence *  
  table-name="tb_sequence" * 
  @ejb.pk *  class = 
  "com.ped.server.util.sequence.SequencePk"   */public 
  abstract class SequenceBean implements EntityBean {
   
      private EntityContext 
  context; //EJB context    private static final Logger 
  logger = Logger.getLogger(SequenceBean.class);
   
      // EJB Default Methods 
  -
   
      
  /** *  
  */        public void 
  setEntityContext(EntityContext context) 
  {    this.context = 
  context;    }
   
      
  /** *  
  */    public void ejbActivate() {    
  }
   
      
  /** *  
  */    public void ejbPassivate() {    
  }
   
      
  /** *  * @param 
  sequenceName * @return 
  * @throws CreateException * @ejb.create-method 
   */    public SequencePk 
  ejbCreate(String sequenceName) throws CreateException {
   
      
  setSequenceName(sequenceName);    
  setCurrentKeyValue(0); //Set initial 
  value    return null;
   
      }
   
      
  /** *  * @param 
  sequenceName * @throws 
  CreateException */    public 
  void ejbPostCreate(String sequenceName) throws CreateException 
  {    }
   
      
  /** *  
  */    public void ejbRemove() {    
  }
   
      
  /** *  
  */    public void unsetEntityContext() 
  {    context = 
  null;    }
   
      
  /** *  
  */    public void ejbLoad() {    
  }
   
      
  /** *  
  */    public void ejbStore() {
   
      }
   
      
  /** *  * @param 
  blockSize * @return * 
  @ejb.interface-method 
  *  view-type = 
  "local" */    public int 
  getNextBlockFirstKey(int blockSize) {
   
      int 
  nextCounter = 
  getCurrentKeyValue();    
  nextCounter += blockSize;    
  setCurrentKeyValue(nextCounter);
   
      
  return nextCounter;    }
   
      //CMP methods 
  --
   
      
  /** * Get sequene name 
   * 
  @ejb.persistent-field * 
  @ejb.pk-field * 
  @ejb.persistence *  
  column-name="sequencename" * 
  @ejb.interface-method 
  *  view-type = 
  "local" */    public abstract 
  String getSequenceName();        
  /** *  * @param 
  sequenceName */    public 
  abstract void setSequenceName(String sequenceName);
   
      
  /** * @ejb.persistent-field 
   * @ejb.persistence 
  *  
  column-name="currentkey" * 
  @ejb.interface-method 
  *  view-type = 
  "local" * @return 
  */    public abstract int 
  getCurrentKeyValue();        
  /** *  * @param 
  currentKeyValue * 
  @ejb.interface-method 
  *  view-type = 
  "local" */    public abstract 
  void setCurrentKeyValue(int currentKeyValue);
   
  }
   
  package 
  com.ped.server.util.sequence;
   
  import java.util.HashMap;
   
  import javax.ejb.CreateException;import 
  javax.ejb.FinderException;import javax.ejb.SessionBean;import 
  javax.ejb.SessionContext;import javax.naming.InitialContext;import 
  javax.naming.NamingException;import 
  javax.transaction.TransactionRolledbackException;
   
  import org.jboss.logging.Logger;
   
  /** * Implements a facade to obtain 
  primary keys * @ejb.bean * 
  name="SequenceTool" * 
  type="Stateless" * local-jndi-name = 
  "ped/server/SequenceToolLocal" * view-type = 
  "local" */public class SequenceToolBean implements SessionBean 
  {
   
      private static final Logger 
  logger =    
  Logger.getLogger(SequenceToolBean.class);    private 
  SessionContext sessionCtx;    private HashMap 
  blocks;    private SequenceLocalHome 
  s

[JBoss-user] jboss-3.2.1_tomcat-4.1.24 & jsp compilation errors on AIX

2003-06-25 Thread Sulik, Lori

Hiya folks,

  I've been searching for an answer to this problem, but have been unable to
find a solution -- I'm hoping someone here can point me at the right
direction..  My apologies if this has already been addressed, or if it's
considered a n00b question...  

  We're using jboss 3.2.1 with the integrated tomcat 4.1.24..  All works
hunky-dory on every platform except AIX.

  On AIX, we get back the error:
19:33:56,141 INFO  [Engine] Error compiling file:
/some/path/loginbody_jsp.java [javac] Compiling 1 source file 

[javac] Warning: UNIXProcess.forkAndExec native error: The
parameter or environment lists are too long. 

  It then proceeds to list a classpath, that as far as I can tell, contains
just about *every* file that exists
in the server/Name directory tree, *including* all of the deployed files in
the 'server/Name/tmp' tree.
(including *all* files..  xml files, jars, etc).  At last count, the CP
alone was over 50k chars -- no
wonder AIX is throwing a hissy fit, eh?

  Now, I *thought* that our jsp's would be compiled via jasper, so I edited:
server/Name/deploy/jbossweb-tomcat.sar/web.xml

  and added the 'classpath' param-value to the JSP page compiler section:

jsp
[...]

classpath
/my/fake/jarfile.jar

[...]
  

  I see lots of log messages in the server/*/log/server.log, that it's at
least *reading* that new classpath entry
that I added, however, our jsps *still* don't compile, nor does the
humongously long classpath that
it spews into the logfile reference my (obviously bogus)
/my/fake/jarfile.jar..

  So, the million dollar question(s):
1.  Is there a way to shorten/override that
auto-generated-but-humongously-long JSP classpath?
(if so, please share)
2.  Is that jbossweb-tomcat.sar/web.xml 'classpath' attribute supposed
to be how I override it?!?
(if so, why doesn't it seem to be using it?)
3.  Would moving that deploy 'tmp' directory to another location,
outside of the server/Name tree, shorten the
classpath being used when compiling the jsps?
(if so, please explain how to do so :)

Thank you for any guidance you can give.

Lori Sulik




---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Question about CMP entity

2003-06-25 Thread Marco Garbelini



- Original Message - 

From: "Marco Tedone" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 8:19 
PM
Subject: Re: [JBoss-user] Question about CMP 
entity

> Could you please forward some 
example?
You can use this same bean to create ids for any entity, or create 
a sequence bean for each entity to get some performance boost.
 
Observe the for (;;) loop and the TransactionRolledbackException catch, that´s the tricky 
part.
 
there you go:
--
package com.ped.server.util.sequence;
 
import javax.ejb.EntityBean;import 
javax.ejb.EntityContext;import javax.ejb.CreateException;
 
import org.jboss.logging.Logger;
 
/** * Class to implement Sequence 
entity * @ejb.bean *  cmp-version 
= "2.x" *  name = 
"Sequence" *  local-jndi-name = 
"ped/server/SequenceLocal" *  type = 
"CMP" *  view-type = "local" * 
@ejb.persistence *  
table-name="tb_sequence" * 
@ejb.pk *  class = 
"com.ped.server.util.sequence.SequencePk"   */public abstract 
class SequenceBean implements EntityBean {
 
    private EntityContext context; 
//EJB context    private static final Logger logger = 
Logger.getLogger(SequenceBean.class);
 
    // EJB Default Methods 
-
 
    /** 
*  */        
public void setEntityContext(EntityContext context) 
{    this.context = 
context;    }
 
    /** 
*  */    public void 
ejbActivate() {    }
 
    /** 
*  */    public void 
ejbPassivate() {    }
 
    /** 
*  * @param sequenceName 
* @return * @throws 
CreateException * @ejb.create-method 
 */    public SequencePk 
ejbCreate(String sequenceName) throws CreateException {
 
    
setSequenceName(sequenceName);    
setCurrentKeyValue(0); //Set initial 
value    return null;
 
    }
 
    /** 
*  * @param sequenceName 
* @throws CreateException */    
public void ejbPostCreate(String sequenceName) throws CreateException 
{    }
 
    /** 
*  */    public void ejbRemove() 
{    }
 
    /** 
*  */    public void 
unsetEntityContext() {    context = 
null;    }
 
    /** 
*  */    public void ejbLoad() 
{    }
 
    /** 
*  */    public void ejbStore() 
{
 
    }
 
    /** 
*  * @param blockSize * 
@return * 
@ejb.interface-method 
*  view-type = "local" 
*/    public int getNextBlockFirstKey(int blockSize) 
{
 
    int 
nextCounter = 
getCurrentKeyValue();    nextCounter 
+= blockSize;    
setCurrentKeyValue(nextCounter);
 
    return 
nextCounter;    }
 
    //CMP methods 
--
 
    /** 
* Get sequene name  * 
@ejb.persistent-field * 
@ejb.pk-field * 
@ejb.persistence *  
column-name="sequencename" * 
@ejb.interface-method 
*  view-type = "local" 
*/    public abstract String 
getSequenceName();        
/** *  * @param 
sequenceName */    public 
abstract void setSequenceName(String sequenceName);
 
    /** 
* @ejb.persistent-field  * 
@ejb.persistence *  
column-name="currentkey" * 
@ejb.interface-method 
*  view-type = "local" 
* @return */    public abstract 
int getCurrentKeyValue();        
/** *  * @param 
currentKeyValue * 
@ejb.interface-method 
*  view-type = "local" 
*/    public abstract void setCurrentKeyValue(int 
currentKeyValue);
 
}
 
package com.ped.server.util.sequence;
 
import java.util.HashMap;
 
import javax.ejb.CreateException;import 
javax.ejb.FinderException;import javax.ejb.SessionBean;import 
javax.ejb.SessionContext;import javax.naming.InitialContext;import 
javax.naming.NamingException;import 
javax.transaction.TransactionRolledbackException;
 
import org.jboss.logging.Logger;
 
/** * Implements a facade to obtain 
primary keys * @ejb.bean * 
name="SequenceTool" * 
type="Stateless" * local-jndi-name = 
"ped/server/SequenceToolLocal" * view-type = 
"local" */public class SequenceToolBean implements SessionBean 
{
 
    private static final Logger 
logger =    
Logger.getLogger(SequenceToolBean.class);    private 
SessionContext sessionCtx;    private HashMap 
blocks;    private SequenceLocalHome 
sequenceHome;
 
    private static final int 
BLOCK_SIZE = 10;    private static final int RETRY_MAX_COUNT 
= 5;    private int retryCount;    
    /** * 
Constructor */    public 
SequenceToolBean() {    }
 
    /** 
* @param aContext Context passed by container 
*/    public void setSessionContext(SessionContext 
sessionCtx) {    this.sessionCtx = 
sessionCtx;    }
 
    /**    * EJB 
Activation    */    public void 
ejbActivate() {    }
 
    /** 
* EJB Passivation */    public 
void ejbPassivate() {    }
 
    /** 
* EJB Creation * @ejb.create-method 
 */    public void ejbCreate() 
throws C

[JBoss-user] Problems with EJB-QL in a finder method - 3.2.1

2003-06-25 Thread Marco Tedone
Hi, I'm trying to use a finder method which I defined with EJB-QL:

The signature is as follows:

public java.util.Collection findByEmailPassword(java.lang.String email,
java.lang.String password)
throws javax.ejb.FinderException;

in the ejb-jar.xml file I have the following:




findByEmailPassword

java.lang.String
java.lang.String





and in the server.log file I have the following (does it mean that the query
has been executed succesfully?):

2003-06-26 00:09:34,703 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.People.findByEmailPassword]
Executing SQL: SELECT DISTINCT t0_o.peopleId FROM People t0_o WHERE
t0_o.email = ? AND t0_o.password = ?

The finder method is on a local entity bean and I'm executing it from a
Session bean; I know the parameter's values are correct, but I still receive
no records, even if the record is on the table.

Here follows the client's signature:

private PeopleLocal getUser(String entityName,
String email,
String password){
PeopleLocal local = null;
try {
log.info("email: " + email + " password: " + password);
local = (PeopleLocal) getHome(entityName).findByEmailPassword(email,
password);
} catch (FinderException e) {
log.equals("Exception while getting user: " + e.getMessage());
}
finally{
return local;
}
}

Please help!

Marco





---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Question about CMP entity

2003-06-25 Thread Marco Tedone
Could you please forward some example?

Thanks,

Marco
- Original Message - 
From: "Marco Garbelini" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 11:57 PM
Subject: Re: [JBoss-user] Question about CMP entity


The concurrency issue is not that simple. I never understood how the EJB
container deals with that completely. :-/

Anyway, I supose you are talking about PrimaryKey generation:

I use the Sequence Blocks strategy from Floyd Marinescu´s book EJB Design
Patterns.
It consists of a CMP(in my case) entity bean used just to persist the last
sequence used and a stateless session bean that caches blocks of sequences
(due to performance issues). I think its´s pretty nice.


Cheers,
Marco


- Original Message -
From: "Marco Tedone" <[EMAIL PROTECTED]>
To: "JBoss-user-list" <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 7:06 PM
Subject: [JBoss-user] Question about CMP entity


> Sorry guru for the [silly] question: I am having a discussion with people
in
> my project regarding the container work with CMP entity beans. More
> specifically, we want to implement a Numerator table to assign numbers to
> several entities of our model.
>
> Suppose a client wants to assign a value to a peopleId field in a People
> table, then it will in order:
>
> 1) Access the Numerator table (behind a CMP entity bean)
> 2) Retrieve the value from the number field;
> 3) Assign that value to peopleId
> 4) Increment the value by 1
>
> What I am saying to the guys in the project is that the container (Jboss
in
> our case) could ensure that, from the moment when the number is retrieved
to
> the moment when the number is  incremented by 1 nobody else will be able
to
> alter the value of the number field in the Numerator table. Someone is
> replying that we should implement a synchronized method. Is that really
> necessary? I'm quite sure that there is a way to instruct the container to
> 'lock' in a certain sense the value of the number field. One way could be
a
> transaction (shall we use synchronization in this case?); is there
anything
> simplier?
>
> Many thanks for your time,
>
> Marco
>
>
>
>
>
> ---
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>



---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] CMR exception (bug?)

2003-06-25 Thread Louis Leung
I'm trying to run PurchaseOrder with 2 Local Enitities PurchaseOrder & LineItems, with 
a 1:N relationship between them. LineItem
Entity has a CMP field (masterOrder_orderId) which is part of primary key and is also 
maps the masterOrder relationship with
PurchaseOrder.



Alexey Loubyansky wrote:

> Hello Louis,
>
> you mean foreign key field mapped to primary key? yes, it is
> supported. Make sure the database schema and mapping in
> jbosscmp-jdbc.xml are congruent.
>
> alex
>
> Wednesday, June 25, 2003, 8:48:42 PM, Louis Leung wrote:
>
> LL> Thanks Alex for your help.  The tables are not created by JBossCMP.  The strange 
> thing is this exception only occurs when
> LL> the primary key is composed of a foreign key.  Would you know if this is 
> supported in JBoss ?
>
> LL> Alexey Loubyansky wrote:
>
> >> Hello Louis,
> >>
> >> the exception is thrown from create method. It is the result of
> >> checking whether the instance already exists. It selects primary key
> >> columns. Not foreign key.
> >> Does JBossCMP create tables in the db? Check the primary key
> >> configuration.
> >>
> >> alex
> >>
> >> Wednesday, June 25, 2003, 2:26:32 AM, Louis Leung wrote:
> >>
> >> LL> Hi all,
> >>
> >> LL> My application has a 1 to many CMR  (i.e. one being a purchase order ,
> >> LL> and many being line items).  I don't think i've specified the column
> >> LL> mapping for this relationship wrong.  JBoss should be firing "Select
> >> LL> MASTERORDER ..." sql when retreiving info about this relation.  But
> >> LL> instead, it fired "Select MASTERORDER_ORDERID ...".  I have no idea why
> >> LL> did it appended the _ORDERID at the end.  Here is a snippet of the
> >> LL> relation mapping xml in jbosscmp-jdbc.xml:
> >>
> >> LL> 
> >> LL> 
> >> LL> 
> >>
> >> LL> 
> >> PurchaseOrderBean-lineItems-masterOrder-LineItemBean
> >>
> >> LL> 
> >> LL> 
> >>
> >> LL> 
> >> PurchaseOrderBean-lineItems-LineItemBean
> >>
> >> LL> 
> >> LL> 
> >> LL> orderId
> >> LL> MASTERORDER
> >> LL> 
> >> LL> 
> >> LL> 
> >> LL> 
> >>
> >> LL> 
> >> LineItemBean-masterOrder-PurchaseOrderBean
> >>
> >> LL> 
> >> LL> 
> >> LL> 
> >>
> >> LL> Anyone has any idea ?  I've included the exception that JBoss throws as
> >> LL> well.  Thanks.
> >>
> >> LL> Louis
> >>
> >> LL> 16:15:48,645 ERROR [LineItemBean] Error checking if entity exists
> >> LL> java.sql.SQLException: Column "MASTERORDER_ORDERID" not found in table
> >> LL> at position 36.
> >> LL> at
> >> LL> com.pointbase.net.netJDBCPrimitives.handleResponse(DashOB3242)
> >> LL> at
> >> LL> com.pointbase.net.netJDBCPrimitives.handleJDBCObjectResponse(DashOB3242)
> >>
> >> LL> at
> >> LL> com.pointbase.net.netJDBCConnection.prepareStatement(DashOB3242)
> >> LL> at
> >> LL> 
> >> org.jboss.resource.adapter.jdbc.WrappedConnection.prepareStatement(WrappedConnection.java:221)
> >>
> >> LL> at
> >> LL> 
> >> org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.entityExists(JDBCCreateEntityCommand.java:230)
> >>
> >> LL> at
> >> LL> 
> >> org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.execute(JDBCCreateEntityCommand.java:204)
> >>
> >> LL> at
> >> LL> 
> >> org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createEntity(JDBCStoreManager.java:569)
> >>
> >> LL> at
> >> LL> 
> >> org.jboss.ejb.plugins.CMPPersistenceManager.createEntity(CMPPersistenceManager.java:225)
> >>
> >> LL> at
> >> LL> 
> >> org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createEntity(CachedConnectionInterceptor.java:270)
> >>
> >> LL> at
> >> LL> org.jboss.ejb.EntityContainer.createLocalHome(EntityContainer.java:571)
> >> LL> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >> LL> at
> >> LL> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >>
> >> LL> at
> >> LL> 
> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >>
> >> LL> at java.lang.reflect.Method.invoke(Method.java:324)
> >> LL> at
> >> LL> 
> >> org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:998)
> >>
> >> LL> at
> >> LL> 
> >> org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:88)
> >>
> >> LL> at
> >> LL> 
> >> org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:188)
> >>
> >> LL> at
> >> LL> 
> >> org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:215)
> >>
> >> LL> at
> >> LL> 
> >> org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:88)
> >>
> >> LL> at
> >> LL> 
> >> org.jboss.ejb.plugins.EntityInstanceInt

Re: [JBoss-user] Question about CMP entity

2003-06-25 Thread Marco Garbelini
The concurrency issue is not that simple. I never understood how the EJB
container deals with that completely. :-/

Anyway, I supose you are talking about PrimaryKey generation:

I use the Sequence Blocks strategy from Floyd Marinescu´s book EJB Design
Patterns.
It consists of a CMP(in my case) entity bean used just to persist the last
sequence used and a stateless session bean that caches blocks of sequences
(due to performance issues). I think its´s pretty nice.


Cheers,
Marco


- Original Message -
From: "Marco Tedone" <[EMAIL PROTECTED]>
To: "JBoss-user-list" <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 7:06 PM
Subject: [JBoss-user] Question about CMP entity


> Sorry guru for the [silly] question: I am having a discussion with people
in
> my project regarding the container work with CMP entity beans. More
> specifically, we want to implement a Numerator table to assign numbers to
> several entities of our model.
>
> Suppose a client wants to assign a value to a peopleId field in a People
> table, then it will in order:
>
> 1) Access the Numerator table (behind a CMP entity bean)
> 2) Retrieve the value from the number field;
> 3) Assign that value to peopleId
> 4) Increment the value by 1
>
> What I am saying to the guys in the project is that the container (Jboss
in
> our case) could ensure that, from the moment when the number is retrieved
to
> the moment when the number is  incremented by 1 nobody else will be able
to
> alter the value of the number field in the Numerator table. Someone is
> replying that we should implement a synchronized method. Is that really
> necessary? I'm quite sure that there is a way to instruct the container to
> 'lock' in a certain sense the value of the number field. One way could be
a
> transaction (shall we use synchronization in this case?); is there
anything
> simplier?
>
> Many thanks for your time,
>
> Marco
>
>
>
>
>
> ---
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>



---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] JBoss-Net performance issues

2003-06-25 Thread Bill Burke
I recent study put JBoss.net ahead of other J2EE vendors in performance.
http://www.formsite.com/doculabs/atbench/index.html

You're always going to get crappy performance.  You're doing XML parsing
don't forget instead of putting the bytes right on the stream.

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Barlow,
> Dustin
> Sent: Wednesday, June 25, 2003 4:41 PM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] JBoss-Net performance issues
>
>
> I've been playing with the simple Hello jboss-net code included in the
> samples directory.  I did some performance testing and the
> results are quite
> stunning.
>
> The test was simple.  I used the included sample Axis test client to call
> the hello(String name) method but instead of passing it a short string, I
> decided to make things a little more interesting and pass it a
> 75k and then
> a 275k string of XML read from a file.  The EJB hello method did nothing
> other then accept the data as a parameter, and echo back the size of the
> data that was passed into the method.  I was very surprised at how long it
> took run.
>
> I then decided to side step Axis and invoke the EJB directly
> passing it the
> 75k and 275k data chunks.  The difference in performance was quite large.
>
> The stats below were gathered by running the hello(String name) method 10
> times in a row.  One test using the Axis client, and one using a
> RMI client
> directly to the EJB.  BTW, the test only included the "invoke"
> method in the
> loop, not the lookups of the Axis service or EJB.  The lookups and binding
> in both tests were only done once at the beginning.
>
> 10 interations | 75k  | 275k
> ---|--|
> JBoss-NET: | 16 secs  | 68 secs
> RMI->EJB:  |  3 secs  |  8 secs
>
> The overall duration of each test run would certainly vary on faster iron,
> but the ratio between the two sets of test numbers would likely
> be the same.
> I do realize that the remote method invocation via Axis is going to be
> slower because of the extra layer and marshalling that needs to
> be done, but
> I did not expect such a large difference.
>
> It also seems that the larger the data is that performance does
> not decline
> linearly, but seems to be more exponential in its lose compared
> to RMI->EJB.
>
> Is there anything that can be done to improve JBoss-Net performance?  Is
> this just systemic to Axis/SOAP?  I did notice that the performance gap
> between the two was smaller with less then 10k data files.  This tends to
> make me think that the performance degredation is less due to the actual
> invocation of the method and more to do with the marshalling of data.
>
> Dustin
>
>
>
> ---
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] CMP and DataSource with Security Domain

2003-06-25 Thread David Jencks
Does it work if you use the jboss ConfiguredIdentityLoginModule instead of
yours?

david jencks

On 2003.06.24 15:00 Mauricio De Diana wrote:
> Hi all,
> 
> I have a datasource under a security domain. It is
> referenced from a CMP entity bean. When the bean is
> deployed, I get the following exception:
> 
> java.lang.SecurityException: Invalid authentication
> attempt, principal=null
> at
> org.jboss.resource.connectionmanager.BaseConnectionManager2.getSubject(BaseConnectionManager2.java:709)
> at
> org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:531)
> at
> org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:822)
> at
> org.jboss.resource.adapter.jdbc.local.LocalDataSource.getConnection(LocalDataSource.java:102)
> at
> org.jboss.ejb.plugins.cmp.jdbc.SQLUtil.fixTableName(SQLUtil.java:38)
> at
> org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.(JDBCEntityBridge.java:103)
> at
> org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreManager.java:397)
> at
> org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:339)
> at
> org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:198)
> at
> org.jboss.ejb.EntityContainer.start(EntityContainer.java:376)
> at
> org.jboss.ejb.Container.invoke(Container.java:756)
> at
> org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1058)
> at
> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
> at
> org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:1003)
> at $Proxy4.start(Unknown Source)
> ...
> 
> My datasource configuration is:
> 
> ...
>  code="org.jboss.resource.connectionmanager.LocalTxConnectionManager"
> name="jboss.jca:service=LocalTxCM,name=dedianaDS">
>name="SecurityDomainJndiName">dedianaDSRealm
>optional-attribute-name="ManagedConnectionFactoryName">
>  code="org.jboss.resource.connectionmanager.RARDeployment"
> name="jboss.jca:service=LocalTxDS,name=dedianaDS">
>name="JndiName">jdbc/dedianaDS
>name="ManagedConnectionFactoryProperties">
> 
>type="java.lang.String">MYSQL_URL/DB_NAME?autoReconnect=true
>type="java.lang.String">org.gjt.mm.mysql.Driver
> 
> (Username and password are not here because I´m using
> JAAS)
> ...
> 
> And the login-config.xml:
> 
> 
>   
>  code="br.com.locaweb.resource.security.ConfiguredIdentityLoginModule"
> flag="required">
>name="principal">dediana
>name="userName">dediana
>name="password">MY_PASSWORD
>name="managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=dedianaDS
> 
>   
> 
> 
> Any help will be much appreciated.
> 
> Thanks in advance.
> 
> De Diana
> 
> ___
> Yahoo! Mail
> Mais espaço, mais segurança e gratuito: caixa postal de 6MB, antivírus,
> proteção contra spam.
> http://br.mail.yahoo.com/
> 
> 
> ---
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] jboss 3.2 datasource lookup error

2003-06-25 Thread David Jencks
On 2003.06.24 13:04 _/^ _/^ wrote:
> Hello:
> 
> That syntax is not working.

Are you at least getting a different error?
> 
> Other than sybase-ds.xml and login-config.xml , I think there is more to 
> edit/update in the setup files.

not unless there are some errors somewhere.

david jencks


 I am missing the steps.
> 
> any comments.
> 
> thank you.
> kay vee
> 
> 
> >From: David Jencks <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: [EMAIL PROTECTED]
> >Subject: Re: [JBoss-user] jboss 3.2 datasource lookup error
> >Date: Tue, 24 Jun 2003 10:18:55 -0400
> >
> >try java:/sybaseds
> >
> >david jencks
> >
> >On 2003.06.24 08:25 _/^ _/^ wrote:
> > > Hello:
> > >
> > > I downloaded 3.2.1. To do the datasource I updated the
> > > config/login-config.xml and put a modified copy of sysbase-ds.xml
> into
> > > default/deploy folder. In the program I called
> lookup("java/sybaseds"). 
> >I
> > > am
> > > getting the unable to retrieve error.
> > >
> > > I have only web.xml attached to the war file. No resource name file
> > > 'jboss-web.xml'. I was getting error , If I put jboss-web.xml with
> jndi
> > > values into the war file.
> > >
> > > In the jboss startup, I don't see any error related to the
> datasource. 
> >In
> > >
> > > the jmx console I see the datasource shows up.
> > >
> > > Is there an example to follow to the 'datasource' in jboss 3.x .
> > >
> > > Errors:
> > >
> > > javax.servlet.UnavailableException: javax.servlet.ServletException:
> > > Cannot
> > > retrieve java/sybaseDS
> > >
> > > getRootCause():javax.naming.NameNotFoundException: java not bound
> > >
> > >
> > > thank you.
> > > kay vee
> > >
> > > _
> > > 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: INetU
> > > Attention Web Developers & Consultants: Become An INetU Hosting
> Partner.
> > > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly
> Commission!
> > > INetU Dedicated Managed Hosting
http://www.inetu.net/partner/index.php
> > > ___
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > > https://lists.sourceforge.net/lists/listinfo/jboss-user
> > >
> > >
> >
> >
> >---
> >This SF.Net email is sponsored by: INetU
> >Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> >Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> >INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> >___
> >JBoss-user mailing list
> >[EMAIL PROTECTED]
> >https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> _
> 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: INetU
> Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Question about CMP entity

2003-06-25 Thread Marco Tedone
Sorry guru for the [silly] question: I am having a discussion with people in
my project regarding the container work with CMP entity beans. More
specifically, we want to implement a Numerator table to assign numbers to
several entities of our model.

Suppose a client wants to assign a value to a peopleId field in a People
table, then it will in order:

1) Access the Numerator table (behind a CMP entity bean)
2) Retrieve the value from the number field;
3) Assign that value to peopleId
4) Increment the value by 1

What I am saying to the guys in the project is that the container (Jboss in
our case) could ensure that, from the moment when the number is retrieved to
the moment when the number is  incremented by 1 nobody else will be able to
alter the value of the number field in the Numerator table. Someone is
replying that we should implement a synchronized method. Is that really
necessary? I'm quite sure that there is a way to instruct the container to
'lock' in a certain sense the value of the number field. One way could be a
transaction (shall we use synchronization in this case?); is there anything
simplier?

Many thanks for your time,

Marco





---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] JBoss.org, strange links...

2003-06-25 Thread wondersonic
Hello,
I think the links:
- JBoss IDE
- XDoclet
in the webpage:
http://jboss.org/index.html?module=html&op=userdisplay&id=developers/project
s/jboss
point to the wrong webpages:
-
http://jboss.org/index.html?module=html&op=userdisplay&id=developers/project
s/jboss/jetty
-
http://jboss.org/index.html?module=html&op=userdisplay&id=developers/project
s/jboss/jetty.jsp (page not found!)

WS



---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] How can I restrict access from .jspp page extensions?

2003-06-25 Thread Scott M Stark
Use a web.xml security-constraint like the following:

  

  Whatever I'm securing
  *.jspp
  GET
  POST
  ...


  Role1
  ...

  
--

Scott Stark
Chief Technology Officer
JBoss Group, LLC

Greg Roll wrote:

I hope I have the right mailing list... please let me know if I 
don't  but I'm looking for a way to configure the Jboss3.2/Tomcat 
bundle so as not to allow a user direct access any pages I mark with a 
.jspp extension.
 
I'm new to JBoss so I'm not sure if this can be done   In past, we 
used an apache web server and used mod_jk to forward requests to 
tomcat...  Now that we have switched to JBoss (and are looking to 
eliminate Apache), I can no longer just tell Apache to deny all .jspp 
requests  As we use struts, the controller knows how to handle the 
.jspp extension (treating them as regular .jsp's)...  I don't want to 
have to put protected .jsp pages in the /WEB-INF directory
 
If anyone has an Idea how I could get a similar effect from jboss I 
would appreciate it.  
 
Thanks,
Greg Roll




---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] JBoss-Net performance issues

2003-06-25 Thread Barlow, Dustin
I've been playing with the simple Hello jboss-net code included in the
samples directory.  I did some performance testing and the results are quite
stunning.

The test was simple.  I used the included sample Axis test client to call
the hello(String name) method but instead of passing it a short string, I
decided to make things a little more interesting and pass it a 75k and then
a 275k string of XML read from a file.  The EJB hello method did nothing
other then accept the data as a parameter, and echo back the size of the
data that was passed into the method.  I was very surprised at how long it
took run.  

I then decided to side step Axis and invoke the EJB directly passing it the
75k and 275k data chunks.  The difference in performance was quite large.

The stats below were gathered by running the hello(String name) method 10
times in a row.  One test using the Axis client, and one using a RMI client
directly to the EJB.  BTW, the test only included the "invoke" method in the
loop, not the lookups of the Axis service or EJB.  The lookups and binding
in both tests were only done once at the beginning.

10 interations | 75k  | 275k 
---|--|
JBoss-NET: | 16 secs  | 68 secs 
RMI->EJB:  |  3 secs  |  8 secs

The overall duration of each test run would certainly vary on faster iron,
but the ratio between the two sets of test numbers would likely be the same.
I do realize that the remote method invocation via Axis is going to be
slower because of the extra layer and marshalling that needs to be done, but
I did not expect such a large difference.

It also seems that the larger the data is that performance does not decline
linearly, but seems to be more exponential in its lose compared to RMI->EJB.

Is there anything that can be done to improve JBoss-Net performance?  Is
this just systemic to Axis/SOAP?  I did notice that the performance gap
between the two was smaller with less then 10k data files.  This tends to
make me think that the performance degredation is less due to the actual
invocation of the method and more to do with the marshalling of data.

Dustin



---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] flushAuthenticationCache in JBoss 3.0.7

2003-06-25 Thread Scott M Stark
There is no way to update the auth cache short of populating it with a 
valid authentication. The password change operation should be 
invalidating the session and then reestablishing it as part of the 
password change form to refresh the auth cache/session and update the 
ldap store.

--

Scott Stark
Chief Technology Officer
JBoss Group, LLC

Spencer wrote:

Currently, my web app uses LDAP to authenticate.  When a user changes
their password in LDAP, it does not get updated in the Auth Cache
(which is expected behavior), so the old password is valid until the
user logs in with the new password.
I found the manual entry about flushing the authentication cache, but
doing so logs the user out of the app.  So if I do it upon the password
change, the user has to log right back in.  I would do it upon logout,
but there's no guarantee that the user will logout, as opposed to just
closing the browser.
So the question is whether or not there's a way to update a specific
user's credentials in the Auth Cache without having the user forcibly
logged off.
TIA,
Spencer


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] HttpSession access from LoginModule JBoss 3.0.7

2003-06-25 Thread Scott M Stark
No, as the login modules are not context sensitive. You could pass this 
information using a thread local and a filter to valve. If you could 
specify an extension or replacement for the default JAAS callback 
handler to allow your login module to propagate info via text callbacks 
how you would use this?

--

Scott Stark
Chief Technology Officer
JBoss Group, LLC

Spencer wrote:

Is there anyway to access the HttpSession (in order to store something)
from the LoginModule used in JBoss's authentication scheme?  I have a
servlet driving the login-try and login-page elements of the form-login
of my web app.  I'd like to be able to send messages to the user when a
login failure occurs.  Since JBoss doesn't support text callbacks this
is the only way I can see this being accomplished.
 
Any help or suggestions is much appreciated.
 
TIA,
Spence


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] How can I restrict access from .jspp page extensions?

2003-06-25 Thread Greg Roll



I hope I have the 
right mailing list... please let me know if I don't  but I'm looking 
for a way to configure the Jboss3.2/Tomcat bundle so as not to allow a user 
direct access any pages I mark with a .jspp 
extension.
 
I'm new to JBoss so 
I'm not sure if this can be done   In past, we used an apache web 
server and used mod_jk to forward requests to tomcat...  Now that we have 
switched to JBoss (and are looking to eliminate Apache), I can no longer just 
tell Apache to deny all .jspp requests  As we use struts, the 
controller knows how to handle the .jspp extension (treating them as regular 
.jsp's)...  I don't want to have to put protected .jsp pages in the 
/WEB-INF directory
 
If anyone has an 
Idea how I could get a similar effect from jboss I would appreciate 
it.   
 
Thanks,
Greg 
Roll


RE: [JBoss-user] JBoss 3.2 and MQSeries trouble

2003-06-25 Thread Adrian Brock
Hi,

This guy got MDBs working with MQSeries
after he found a bug in our server session pool.
http://www.jboss.org/thread.jsp?forum=48&thread=32405

Perhaps you can tell whether this is XA?

JCA1.5 does make the interface cleaner.

Regards,
Adrian


Adrian Brock
Director of Support
Back Office
JBoss Group, LLC

  
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: 25 June 2003 18:30
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] JBoss 3.2 and MQSeries trouble


I did not debug myself, but I got an answer from Hiram (Core Developers
Network). Here is the quote from his answer. I did not get the time to
investigate further or try some of Hiram suggestions.
The JMS ASF spec is a little weak in describing who/how the inbound XA
transaction gets started. 
The only way JBossMQ was able to implement the ASF spec was by starting
the transaction without an associated XID. Once the message gets
delivered to the container, JBossMQ allows the container to associate an
XID with the session. The session then assigns the XID to the TX that
delivered the message. JBossMQ had to kind of jump through hoops to get
this to work. 
It would have been much easier to allow JBossMQ to assign an XID to the
transaction to begin with. WebSphere MQ might be trying to do something
like that. But since it's not in the JMS ASF spec, IBM would need to
tell us what MQ is expecting (outside the spec) to get the asynch
message delivery to work.


Other ways to skin this cat: 
Don't use the current MDB container invoker (which uses the ASF to do
asynch message delivery). Write a new MDB container invoker that does
synchronous Receiver.receive() calls to get messages. The problem with
this approach is that you need to start a JTA TX before you do the
receive() and our current TM will timeout the TXs that take too long. A
solution my be to use receiveNoWait() instead. 
Implement a MDB container invoker using the new JCA TX inflow stuff. I
have not had time to look into this yet or if MQ has a JCA resource
adapter but this would be the best solution.


-Original Message- 
From: Adrian Brock [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 25, 2003 10:26 AM 
To: [EMAIL PROTECTED] 
Subject: RE: [JBoss-user] JBoss 3.2 and MQSeries trouble 
I missed this post. 
What is the issue with the MDB not getting 
any messages from an XAConnection? 
Did you have time to debug it? 
 
Adrian Brock 
Director of Support 
Back Office 
JBoss Group, LLC 
 
  
> -Original Message- 
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> [EMAIL PROTECTED] 
> Sent: 25 June 2003 14:28 
> To: [EMAIL PROTECTED] 
> Subject: RE: [JBoss-user] JBoss 3.2 and MQSeries trouble 
> 
> 
> 
> I am wondering if the error you get is not because the 
> connection mode used 
> to connect to MQ is "binding" and JBoss will need to be on 
> the same machine 
> as the MQ queue manager as well as a lot of MQ dlls that must 
> be in the 
> path. 
> 
> Take a look at the following patch (753022) submitted to JBoss: 
> http://sourceforge.net/tracker/index.php?func=detail&aid=75302 
> 2&group_id=228 
> 66&atid=376687 
> You will get a lot of extra details as well as a better way 
> to register 
> factories/queues in JBoss. 
> Feedback on the patch is more than welcome. 
> 
> Thomas 
> 
> -Original Message- 
> From: Stefano Maestri [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, June 25, 2003 8:47 AM 
> To: [EMAIL PROTECTED] 
> Subject: [JBoss-user] JBoss 3.2 and MQSeries trouble 
> 
> I'm trying to configure JBoss to use websphere MQ 5.3 (alias 
> MQSeries 5.3). 
> I 
> read the thread on Jboss group abou and I configured JBoss 
> addin this row in 
> 
> jboss file: 
> jms-ds.xml: 
> 
>   
>name="jboss.mq:service=JMSProviderLoader,name=JMSMQSeriesProvider"> 
>  MQSeriesProvider 
>   
>  org.jboss.jms.jndi.JBossMQProvider 
>   
>  QueueConnectionFactory 
>   name="TopicFactoryRef">java:/XAConnectionFactory 
>   
> 
> standardjboss.xml: 
> 
>  
>  MQmessage-driven-bean 
>  default 
>  
> org.jboss.ejb.plugins.jms.JMSContainerInvoker 
>   
>  MQSeriesProvider 
>  
> StdJMSPool toryJNDI> 
>  15 
>  1 
>  True 
>   
>  10 
>   
>  queue/DLQ 
>  10 
>  0 
>   
>   
>   
>  
> . 
> . 
>  
>  MQSeries Message Driven Bean 
>  false 
>  
> MQmessage-driven-bean xy-binding-nam 
> e> 
>   
>  
> org.jboss.ejb.plugins.ProxyFactoryFinderIntercept 
> or r> 
>  org.jboss.ejb.plugins.LogInterceptor 
>  
> org.jboss.ejb.plugins.RunAsSecurityInterceptor nterceptor> 
>   
>   transaction="Container">org.jboss.ejb.plugins.TxInterceptorCMT 
>  
>   metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor 
>  
>   transaction="Container">org.jboss.ejb.plugins.MessageDrivenIns 
> tanceIntercept 
> or 
>   
>   transaction="Bean">org.jboss.ejb.plugins.MessageDrivenInstance 
> Interceptor nterceptor> 
>   tran

[JBoss-user] HttpSession access from LoginModule JBoss 3.0.7

2003-06-25 Thread Spencer
Is there anyway to access the HttpSession (in order to store something)
from the LoginModule used in JBoss's authentication scheme?  I have a
servlet driving the login-try and login-page elements of the form-login
of my web app.  I'd like to be able to send messages to the user when a
login failure occurs.  Since JBoss doesn't support text callbacks this
is the only way I can see this being accomplished.
 
Any help or suggestions is much appreciated.
 
TIA,
Spence


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re[2]: [JBoss-user] CMR exception (bug?)

2003-06-25 Thread Alexey Loubyansky
Hello Louis,

you mean foreign key field mapped to primary key? yes, it is
supported. Make sure the database schema and mapping in
jbosscmp-jdbc.xml are congruent.

alex

Wednesday, June 25, 2003, 8:48:42 PM, Louis Leung wrote:

LL> Thanks Alex for your help.  The tables are not created by JBossCMP.  The strange 
thing is this exception only occurs when
LL> the primary key is composed of a foreign key.  Would you know if this is supported 
in JBoss ?



LL> Alexey Loubyansky wrote:

>> Hello Louis,
>>
>> the exception is thrown from create method. It is the result of
>> checking whether the instance already exists. It selects primary key
>> columns. Not foreign key.
>> Does JBossCMP create tables in the db? Check the primary key
>> configuration.
>>
>> alex
>>
>> Wednesday, June 25, 2003, 2:26:32 AM, Louis Leung wrote:
>>
>> LL> Hi all,
>>
>> LL> My application has a 1 to many CMR  (i.e. one being a purchase order ,
>> LL> and many being line items).  I don't think i've specified the column
>> LL> mapping for this relationship wrong.  JBoss should be firing "Select
>> LL> MASTERORDER ..." sql when retreiving info about this relation.  But
>> LL> instead, it fired "Select MASTERORDER_ORDERID ...".  I have no idea why
>> LL> did it appended the _ORDERID at the end.  Here is a snippet of the
>> LL> relation mapping xml in jbosscmp-jdbc.xml:
>>
>> LL> 
>> LL> 
>> LL> 
>>
>> LL> 
>> PurchaseOrderBean-lineItems-masterOrder-LineItemBean
>>
>> LL> 
>> LL> 
>>
>> LL> 
>> PurchaseOrderBean-lineItems-LineItemBean
>>
>> LL> 
>> LL> 
>> LL> orderId
>> LL> MASTERORDER
>> LL> 
>> LL> 
>> LL> 
>> LL> 
>>
>> LL> 
>> LineItemBean-masterOrder-PurchaseOrderBean
>>
>> LL> 
>> LL> 
>> LL> 
>>
>> LL> Anyone has any idea ?  I've included the exception that JBoss throws as
>> LL> well.  Thanks.
>>
>> LL> Louis
>>
>> LL> 16:15:48,645 ERROR [LineItemBean] Error checking if entity exists
>> LL> java.sql.SQLException: Column "MASTERORDER_ORDERID" not found in table
>> LL> at position 36.
>> LL> at
>> LL> com.pointbase.net.netJDBCPrimitives.handleResponse(DashOB3242)
>> LL> at
>> LL> com.pointbase.net.netJDBCPrimitives.handleJDBCObjectResponse(DashOB3242)
>>
>> LL> at
>> LL> com.pointbase.net.netJDBCConnection.prepareStatement(DashOB3242)
>> LL> at
>> LL> 
>> org.jboss.resource.adapter.jdbc.WrappedConnection.prepareStatement(WrappedConnection.java:221)
>>
>> LL> at
>> LL> 
>> org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.entityExists(JDBCCreateEntityCommand.java:230)
>>
>> LL> at
>> LL> 
>> org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.execute(JDBCCreateEntityCommand.java:204)
>>
>> LL> at
>> LL> 
>> org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createEntity(JDBCStoreManager.java:569)
>>
>> LL> at
>> LL> 
>> org.jboss.ejb.plugins.CMPPersistenceManager.createEntity(CMPPersistenceManager.java:225)
>>
>> LL> at
>> LL> 
>> org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createEntity(CachedConnectionInterceptor.java:270)
>>
>> LL> at
>> LL> org.jboss.ejb.EntityContainer.createLocalHome(EntityContainer.java:571)
>> LL> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> LL> at
>> LL> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>
>> LL> at
>> LL> 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>
>> LL> at java.lang.reflect.Method.invoke(Method.java:324)
>> LL> at
>> LL> 
>> org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:998)
>>
>> LL> at
>> LL> 
>> org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:88)
>>
>> LL> at
>> LL> 
>> org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:188)
>>
>> LL> at
>> LL> 
>> org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:215)
>>
>> LL> at
>> LL> 
>> org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:88)
>>
>> LL> at
>> LL> 
>> org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:91)
>>
>> LL> at
>> LL> 
>> org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:61)
>>
>> LL> at
>> LL> 
>> org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:28)
>>
>> LL> at
>> LL> 
>> org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:88)
>>
>> LL> at
>> LL> 
>> org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:243)
>>
>> LL> at
>> LL> org.jboss.e

[JBoss-user] Setting up the source in Eclipse..

2003-06-25 Thread Mark.Gargan
Title: Message



Hi 
folks,
   A while back 
I checked out the head and got it integrated with Eclipse so that 

I could remotely 
debug the version of jboss that was built from my checkout. Since 

then I've decided 
upon using jboss-3.2.1 with Tomcat-4.1.24. So I downloaded a the binary 

and also the src for 
jboss-3.2.1 (as I'm especially looking at jboss.net). The problem 

is that there were 
no .classpath or .project files associated with the various sub-projects which 
is fair 
enough since 
everyone's not going to develop using the same IDE. I was wondering if there 

was anywhere I could 
get my hands on these files or would I be better of to just re-check 

out the 
head?
 
Thanks,
Mark.
 
 
 


[JBoss-user] HttpSession access from LoginModule JBoss 3.0.7

2003-06-25 Thread Spencer
Is there anyway to access the HttpSession (in order to store something)
from the LoginModule used in JBoss's authentication scheme?  I have a
servlet driving the login-try and login-page elements of the form-login
of my web app.  I'd like to be able to send messages to the user when a
login failure occurs.  Since JBoss doesn't support text callbacks this
is the only way I can see this being accomplished.

Any help or suggestions is much appreciated.

TIA,
Spence


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] CMR exception (bug?)

2003-06-25 Thread Louis Leung
Thanks Alex for your help.  The tables are not created by JBossCMP.  The strange thing 
is this exception only occurs when
the primary key is composed of a foreign key.  Would you know if this is supported in 
JBoss ?



Alexey Loubyansky wrote:

> Hello Louis,
>
> the exception is thrown from create method. It is the result of
> checking whether the instance already exists. It selects primary key
> columns. Not foreign key.
> Does JBossCMP create tables in the db? Check the primary key
> configuration.
>
> alex
>
> Wednesday, June 25, 2003, 2:26:32 AM, Louis Leung wrote:
>
> LL> Hi all,
>
> LL> My application has a 1 to many CMR  (i.e. one being a purchase order ,
> LL> and many being line items).  I don't think i've specified the column
> LL> mapping for this relationship wrong.  JBoss should be firing "Select
> LL> MASTERORDER ..." sql when retreiving info about this relation.  But
> LL> instead, it fired "Select MASTERORDER_ORDERID ...".  I have no idea why
> LL> did it appended the _ORDERID at the end.  Here is a snippet of the
> LL> relation mapping xml in jbosscmp-jdbc.xml:
>
> LL> 
> LL> 
> LL> 
>
> LL> 
> PurchaseOrderBean-lineItems-masterOrder-LineItemBean
>
> LL> 
> LL> 
>
> LL> 
> PurchaseOrderBean-lineItems-LineItemBean
>
> LL> 
> LL> 
> LL> orderId
> LL> MASTERORDER
> LL> 
> LL> 
> LL> 
> LL> 
>
> LL> 
> LineItemBean-masterOrder-PurchaseOrderBean
>
> LL> 
> LL> 
> LL> 
>
> LL> Anyone has any idea ?  I've included the exception that JBoss throws as
> LL> well.  Thanks.
>
> LL> Louis
>
> LL> 16:15:48,645 ERROR [LineItemBean] Error checking if entity exists
> LL> java.sql.SQLException: Column "MASTERORDER_ORDERID" not found in table
> LL> at position 36.
> LL> at
> LL> com.pointbase.net.netJDBCPrimitives.handleResponse(DashOB3242)
> LL> at
> LL> com.pointbase.net.netJDBCPrimitives.handleJDBCObjectResponse(DashOB3242)
>
> LL> at
> LL> com.pointbase.net.netJDBCConnection.prepareStatement(DashOB3242)
> LL> at
> LL> 
> org.jboss.resource.adapter.jdbc.WrappedConnection.prepareStatement(WrappedConnection.java:221)
>
> LL> at
> LL> 
> org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.entityExists(JDBCCreateEntityCommand.java:230)
>
> LL> at
> LL> 
> org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.execute(JDBCCreateEntityCommand.java:204)
>
> LL> at
> LL> 
> org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createEntity(JDBCStoreManager.java:569)
>
> LL> at
> LL> 
> org.jboss.ejb.plugins.CMPPersistenceManager.createEntity(CMPPersistenceManager.java:225)
>
> LL> at
> LL> 
> org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createEntity(CachedConnectionInterceptor.java:270)
>
> LL> at
> LL> org.jboss.ejb.EntityContainer.createLocalHome(EntityContainer.java:571)
> LL> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> LL> at
> LL> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
> LL> at
> LL> 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>
> LL> at java.lang.reflect.Method.invoke(Method.java:324)
> LL> at
> LL> 
> org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:998)
>
> LL> at
> LL> org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:88)
>
> LL> at
> LL> 
> org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:188)
>
> LL> at
> LL> 
> org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:215)
>
> LL> at
> LL> org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:88)
>
> LL> at
> LL> 
> org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:91)
>
> LL> at
> LL> 
> org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:61)
>
> LL> at
> LL> 
> org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:28)
>
> LL> at
> LL> 
> org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:88)
>
> LL> at
> LL> 
> org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:243)
>
> LL> at
> LL> org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:74)
>
> LL> at
> LL> org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:92)
>
> LL> at
> LL> org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:120)
>
> LL> at
> LL> 
> org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor

[JBoss-user] flushAuthenticationCache in JBoss 3.0.7

2003-06-25 Thread Spencer
Currently, my web app uses LDAP to authenticate.  When a user changes
their password in LDAP, it does not get updated in the Auth Cache
(which is expected behavior), so the old password is valid until the
user logs in with the new password.

I found the manual entry about flushing the authentication cache, but
doing so logs the user out of the app.  So if I do it upon the password
change, the user has to log right back in.  I would do it upon logout,
but there's no guarantee that the user will logout, as opposed to just
closing the browser.

So the question is whether or not there's a way to update a specific
user's credentials in the Auth Cache without having the user forcibly
logged off.

TIA,
Spencer


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] @jboss-net: xdoclet module

2003-06-25 Thread David Ward
I think it would be a *great* idea to have this downloadable at jboss'
sourceforge page.  The jar could be available either:

1) As part of the jboss download (maybe in ${jboss.home}/lib or
${jboss.home}/docs/xdoclet/ or...)

2) As a separate download, but still contextual to each jboss release (just in
case it changes due to a change in jboss for that version).

I'm guessing #1 is easier, and it's the one I would vote for!

Thanks for bringing this up!
David


Mensaje citado por "Barlow, Dustin" <[EMAIL PROTECTED]>:

> Is there any plan to distribute the xdoclet-module-jboss-net.jar XDoclet
> ejbdoclet subtask module outside of the main jboss source tree?  
> 
> The module wasn't built on the main jboss build and it took me some time to
> find this module and to figure out that I could manually build it in the
> jboss-net subdirectory of the main jboss source tree.  
> 
> It may just be me, but this seems to be a less then optimal place to find
> and create this module for use in XDoclet.  I'm sure there are those who
> don't happen to have the jboss source tree, or don't want to download the
> entire jboss code base just to compile this xdoclet module.  Can/Should
> this
> module be added to the main JBoss download page on source forge?
> 
> Or have I missed something obvious?
> 
> Dustin
> 
> 
> ---
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 


-
David Ward
[EMAIL PROTECTED]
http://www.dotech.com


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] JBoss 3.2 and MQSeries trouble

2003-06-25 Thread thomas . cherel
Even on Linux, the default MQ connection mode is "binding" which is using
some JNI code. You will need some MQ shared libraries in your
path/ld__library_path to make it work.
Check the readme of the patch for more details.

Thomas

-Original Message-
From: Stefano Maestri [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 25, 2003 10:25 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] JBoss 3.2 and MQSeries trouble

On Wednesday 25 June 2003 15:28, [EMAIL PROTECTED] wrote:
> I am wondering if the error you get is not because the connection mode
used
> to connect to MQ is "binding" and JBoss will need to be on the same
machine
> as the MQ queue manager as well as a lot of MQ dlls that must be in the
> path.

ehmm I didn't say that I'm working on Linux. Mq and jboss are on the same 
machine. At the moment. Isn't possible in any way?


>
> Take a look at the following patch (753022) submitted to JBoss:
>
http://sourceforge.net/tracker/index.php?func=detail&aid=753022&group_id=22
>8 66&atid=376687
> You will get a lot of extra details as well as a better way to register
> factories/queues in JBoss.
> Feedback on the patch is more than welcome.
>

I'll take a look thanks a lot.

> Thomas
>
> -Original Message-
> From: Stefano Maestri [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 25, 2003 8:47 AM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] JBoss 3.2 and MQSeries trouble
>
> I'm trying to configure JBoss to use websphere MQ 5.3 (alias MQSeries
5.3).
> I
> read the thread on Jboss group abou and I configured JBoss addin this row
> in
>
> jboss file:
> jms-ds.xml:
>
>  
>name="jboss.mq:service=JMSProviderLoader,name=JMSMQSeriesProvider">
>  MQSeriesProvider
>  
>  org.jboss.jms.jndi.JBossMQProvider
>  
>  QueueConnectionFactory
>  java:/XAConnectionFactory
>  
>
> standardjboss.xml:
>
> 
>  MQmessage-driven-bean
>  default
>
>
org.jboss.ejb.plugins.jms.JMSContainerInvoker> 
>  MQSeriesProvider
>  StdJMSPool
>  15
>  1
>  True
>  
>  10
>  
>  queue/DLQ
>  10
>  0
>  
>  
>  
> 
> .
> .
> 
>  MQSeries Message Driven Bean
>  false
>
>
MQmessage-driven-beanm e>
>  
>
>
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptoro r>
>  org.jboss.ejb.plugins.LogInterceptor
>  org.jboss.ejb.plugins.RunAsSecurityInterceptor
>  
>  
transaction="Container">org.jboss.ejb.plugins.TxInterceptorCMT> 
metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor> 
transaction="Container">org.jboss.ejb.plugins.MessageDrivenInstanceIntercep
>t or
>  
>  
transaction="Bean">org.jboss.ejb.plugins.MessageDrivenInstanceInterceptori nterceptor>
>  
transaction="Bean">org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMTe rceptor>
>  
metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor>
>
>
org.jboss.resource.connectionmanager.CachedConnectionIntercept
>o r
>  
>
>
org.jboss.ejb.plugins.MessageDrivenInstancePoolo l>
>  
>  
>  org.jboss.tm.TxManager
>  
>  100
>  
> 
>
> And into jboss.xml:
>
> 
>
>  
>
>  
>  enlaceMQBean
>  MQSeries Message Driven Bean
>  queue/MQqueue
>  
> 
>
> I added this jar to jboss lib dir:
> com.ibm.mq.jar
> com.ibm.mqjms.jar
> com.ibm.mqbind.jar
> fscontext.jar
> providerutil.jar
>
> then in MQSeries I edited JMSAdmin.config with this value
> INITIAL_CONTEXT_FACTORY=org.jnp.interfaces.NamingContextFactory
> PROVIDER_URL=jnp://localhost:1099
>
> And then I used  to register in jndi the mq queues:
>
> def qcf(MQQueueConnectionFactory) qmanager(venus.queue.manager)
> change ctx(queue)
> def q(RequestQueue) qmanager(venus.queue.manager) queue(orange.queue)
>
> But when I deploy my bean I get this error
> 2:52:04,804 INFO [DLQHandler] Creating
> 12:52:04,812 ERROR [DLQHandler] Initialization failed
> javax.jms.JMSException: Error creating the dlq connection: null
>  at
org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:152)
>  at
> org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:158)
>  at
>
org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvok
>e r.java:394)
>  at
>
org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvo
>k er.java:579)
>  at
> org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
at
>
org.jboss.ejb.MessageDrivenContainer.startService(MessageDrivenContainer.ja
>v a:220)
>  at
> org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
at
> sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
>  at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
>l .java:25)
>  at java.lang.reflect.Method.invoke(Method.java:324)
>  at
>
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispa
>t cher.java:284)
>  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
>  at
>
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.ja
>v a:966)
>  at $Proxy11.start(Unknown Source)
> [...]
>
> Please help me.
> Thanks in advance.

-- 
--- all work and no play makes Ja

RE: [JBoss-user] JBoss 3.2 and MQSeries trouble

2003-06-25 Thread thomas . cherel
Title: RE: [JBoss-user] JBoss 3.2 and MQSeries trouble





I did not debug myself, but I got an answer from Hiram (Core Developers Network). Here is the quote from his answer. I did not get the time to investigate further or try some of Hiram suggestions.

The JMS ASF spec is a little weak in describing who/how the inbound XA transaction gets started.
The only way JBossMQ was able to implement the ASF spec was by starting the transaction without an associated XID. Once the message gets delivered to the container, JBossMQ allows the container to associate an XID with the session. The session then assigns the XID to the TX that delivered the message. JBossMQ had to kind of jump through hoops to get this to work. 

It would have been much easier to allow JBossMQ to assign an XID to the transaction to begin with. WebSphere MQ might be trying to do something like that. But since it's not in the JMS ASF spec, IBM would need to tell us what MQ is expecting (outside the spec) to get the asynch message delivery to work.


Other ways to skin this cat: 


Don't use the current MDB container invoker (which uses the ASF to do asynch message delivery). Write a new MDB container invoker that does synchronous Receiver.receive() calls to get messages. The problem with this approach is that you need to start a JTA TX before you do the receive() and our current TM will timeout the TXs that take too long. A solution my be to use receiveNoWait() instead. 

Implement a MDB container invoker using the new JCA TX inflow stuff. I have not had time to look into this yet or if MQ has a JCA resource adapter but this would be the best solution.


-Original Message-
From: Adrian Brock [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, June 25, 2003 10:26 AM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] JBoss 3.2 and MQSeries trouble


I missed this post.


What is the issue with the MDB not getting
any messages from an XAConnection?
Did you have time to debug it?


 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 
 


> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]] On Behalf Of 
> [EMAIL PROTECTED]
> Sent: 25 June 2003 14:28
> To: [EMAIL PROTECTED]
> Subject: RE: [JBoss-user] JBoss 3.2 and MQSeries trouble
> 
> 
> 
> I am wondering if the error you get is not because the 
> connection mode used
> to connect to MQ is "binding" and JBoss will need to be on 
> the same machine
> as the MQ queue manager as well as a lot of MQ dlls that must 
> be in the
> path.
> 
> Take a look at the following patch (753022) submitted to JBoss:
> http://sourceforge.net/tracker/index.php?func=detail&aid=75302
> 2&group_id=228
> 66&atid=376687
> You will get a lot of extra details as well as a better way 
> to register
> factories/queues in JBoss.
> Feedback on the patch is more than welcome.
> 
> Thomas
> 
> -Original Message-
> From: Stefano Maestri [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, June 25, 2003 8:47 AM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] JBoss 3.2 and MQSeries trouble
> 
> I'm trying to configure JBoss to use websphere MQ 5.3 (alias 
> MQSeries 5.3).
> I 
> read the thread on Jboss group abou and I configured JBoss 
> addin this row in
> 
> jboss file:
> jms-ds.xml:
> 
>  
>  
>  name="jboss.mq:service=JMSProviderLoader,name=JMSMQSeriesProvider">
>  MQSeriesProvider
>  
>  org.jboss.jms.jndi.JBossMQProvider
>  
>  QueueConnectionFactory
>  
> name="TopicFactoryRef">java:/XAConnectionFactory
>  
> 
> standardjboss.xml:
> 
> 
>  MQmessage-driven-bean
>  default
>  
> org.jboss.ejb.plugins.jms.JMSContainerInvoker
proxy-factory>
>  
>  MQSeriesProvider
>  
> StdJMSPool
> toryJNDI>
>  15
>  1
>  True
>  
>  10
>  
>  queue/DLQ
>  10
>  0
>  
>  
>  
>  
> .
> .
> 
>  MQSeries Message Driven Bean
>  false
>  
> MQmessage-driven-bean
> xy-binding-nam
> e>
>  
>  
> org.jboss.ejb.plugins.ProxyFactoryFinderIntercept
> or
> r>
>  org.jboss.ejb.plugins.LogInterceptor
>  
> org.jboss.ejb.plugins.RunAsSecurityInterceptor
> nterceptor>
>  
>  
> transaction="Container">org.jboss.ejb.plugins.TxInterceptorCMT
> 
>  
> metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor
> 
>  
> transaction="Container">org.jboss.ejb.plugins.MessageDrivenIns
> tanceIntercept
> or
>  
>  
> transaction="Bean">org.jboss.ejb.plugins.MessageDrivenInstance
> Interceptor
> nterceptor>
>  
> transaction="Bean">org.jboss.ejb.plugins.MessageDrivenTxInterc
> eptorBMT
> rceptor>
>  
> metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor
> 
>  
> org.jboss.resource.connectionmanager.CachedConnec
> tionIntercepto
> r
>  
>  
> org.jboss.ejb.plugins.MessageDrivenInstancePool
> 
> l>
>  
>  
>  org.jboss.tm.TxManager
>  
>  100
>  
> 
> 
> And into jboss.xml:
> 
> 
> 
>  
> 
>  
>  enlaceMQBean
>  MQSeries Message Driven Bean
>  queue/MQqueue
>  
> 
> 
> I added this jar to jboss lib dir:
> com.ibm.mq.jar
> com.ibm.mqjms.jar
> com.ibm.m

Re[2]: [JBoss-user] Unable to passivate due to ctx lock

2003-06-25 Thread Alexey Loubyansky
Magesh,

I think, it is a bug in JBoss.

alex

Wednesday, June 25, 2003, 3:08:45 PM, Magesh Prabhu wrote:

MP> Alex, I'm using BMP's.

MP> The id's displayed in the warn message is valid. The record definitely exist in 
database.

MP> Cheers,
MP> Magesh

MP> On 6/25/03 12:01 PM, Alexey Loubyansky <[EMAIL PROTECTED]> wrote:
>>Hello Magesh,
>>
>>Wednesday, June 25, 2003, 1:33:27 PM, Magesh Prabhu wrote:
>>
>>MP> I'm getting this following warning. I went in to all my entity 
>>beans to check if I'm doing any naughtly stuff with entity context. 
>>Everything looks fine. Could anybody suggest me what could be
>>MP> the possible reason for this warning.. 
>>
>>For example, a bug in JBoss. Could you provide more info?
>>Are there foreign key fields mapped to CMP fields?
>>Are the id's in WARN's valid? meaning really exist in the database?
>>
>>Thanks,
>>alex
>>
>>MP> Thanks in advance,
>>MP> Magesh
>>
>>MP> WARN  [AbstractInstanceCache] Unable to passivate due to ctx 
>>lock, id=PROOFING
>>MP> WARN  [AbstractInstanceCache] Unable to passivate due to ctx 
>>lock, id=PROOFING
>>MP> WARN  [AbstractInstanceCache] Unable to passivate due to ctx 
>>lock, id=1878testRequest001
>>
>>
>>
>>MP> **
>>MP> This email and its attachments are intended for the above 
>>MP> named only and may be confidential.  If they have come to 
>>MP> you in error, you must take no action based on them, nor 
>>MP> must you copy or show them to anyone; please reply to this 
>>MP> email and highlight the error.
>>MP> Security Warning: Please note that this email has been 
>>MP> created in the knowledge that the internet email is not a 
>>MP> 100% secure communications medium.  We advise that you 
>>MP> understand and observe this lack of security when emailing us.
>>MP> Viruses:  Although we have taken steps to ensure that this 
>>MP> email and attachments are free from any virus, we advise 
>>MP> that in keeping with good computing practice the recipient 
>>MP> should ensure they are actually virus free.
>>MP> If you have received this email in error please notify:
>>MP> [EMAIL PROTECTED]
>>MP> **



---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] @jboss-net: xdoclet module

2003-06-25 Thread Barlow, Dustin
Is there any plan to distribute the xdoclet-module-jboss-net.jar XDoclet
ejbdoclet subtask module outside of the main jboss source tree?  

The module wasn't built on the main jboss build and it took me some time to
find this module and to figure out that I could manually build it in the
jboss-net subdirectory of the main jboss source tree.  

It may just be me, but this seems to be a less then optimal place to find
and create this module for use in XDoclet.  I'm sure there are those who
don't happen to have the jboss source tree, or don't want to download the
entire jboss code base just to compile this xdoclet module.  Can/Should this
module be added to the main JBoss download page on source forge?

Or have I missed something obvious?

Dustin


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] WSDL Part names within messages.

2003-06-25 Thread Mark.Gargan
Title: Message



Sure 
thing I'll keep you posted with anything I come up with if I manage to get 
anything together. 
 
Thanks,
Mark.
 

  
  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of Jung , Dr. 
  ChristophSent: 25 June 2003 14:24To: 
  '[EMAIL PROTECTED]'Subject: AW: [JBoss-user] WSDL 
  Part names within messages.
  I 
  would be quite interested in the results of your experiments given that we 
  will rewrite EJBProvider for a more tight
  integration with the jboss invocation stack.
   
   
  CGJ
   
  

-Ursprüngliche Nachricht-Von: 
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: 
Mittwoch, 25. Juni 2003 14:43An: 
[EMAIL PROTECTED]Betreff: RE: [JBoss-user] WSDL 
Part names within messages.
Hi 
Dr. Jung,
    I 
was hoping you'd get back to me. Thanks again. I think I'll have a look at 
the BCEL and XJavadoc option. 
 
Thanks very much for your help,
Mark.

  
  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of Jung , 
  Dr. ChristophSent: 25 June 2003 07:36To: 
  '[EMAIL PROTECTED]'Subject: AW: [JBoss-user] 
  WSDL Part names within messages.
  Mark,
   
  Axis has several ways of annotating such meta-data to be used by 
  the WSDL Emitter (which uses reflection and builtin naming 
  rules
  to build its default meta-data thats why the parameter names are so 
  ugly).
   
  First the deployment descriptor itself, but in this case it does 
  not leave you much options except giving a service 
  name.
   
  You could also subclass the provider implementation (EJBProvider in 
  this case) for preparing the WSDL emitter with
  additional information, .e.g, doing the reflection via a different 
  bytecode analyzer, such as BCEL or xjavadoc or 
   
  What Ive also seen is the possibilty for some target beans (Im not 
  sure for EJBProvider, but you should look in the Axis docu) 
  to
  implement a static method that will return the already prepared 
  meta-data to the emitter. 
   
  CGJ
   
  

-Ursprüngliche Nachricht-Von: 
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 24. Juni 2003 13:51An: 
[EMAIL PROTECTED]Betreff: [JBoss-user] WSDL 
Part names within messages.
Hi 
folks,
   I'm 
exposing a few session beans as web services. In the generated WSDL the 
part names are given automatic names i.e. in0,in1 etc. I was wondering 
if there was anyway to be able to set these to the argument name 
presented in the session bean? 
 
i.e. I have 
a bean called FPGbean which has the following method 
signature
public 
double orderFPGTest(String mrn){
    :
    :
}
 
The wsdl for 
this is described as 
 






- 


   
  wsdl:message>

- 


   
  wsdl:message>
and as you 
can see the part name attribute for the Request is in0.
I'm hoping 
eventually to use a UDDIBrowser and some sort of DragNDrop functionality 
into an open source UML 
suite from which I will generate 
clients. I don't exactly need the names I suppose it would just mean I 
wouldn't have to worry about the parameters being in order as I added 
them to the call.
 
Thanks,
Mark.
  ###This message has 
  been scanned by F-Secure Anti-Virus for Microsoft Exchange.For more 
  information, connect to 
  http://www.F-Secure.com/
  ###This message has 
  been scanned by F-Secure Anti-Virus for Microsoft Exchange.For more 
  information, connect to 
http://www.F-Secure.com/


RE: [JBoss-user] JBoss 3.2 and MQSeries trouble

2003-06-25 Thread Adrian Brock
I was expecting to see a Caused By: stacktrace, but I release
now this a JMSException which doesn't show it.

I guess you need to figure out how to bind MQSeries's jndi
into jboss's jndi. 
Have you tried the external context mbean?
There's an example of using the fscontext on this thread
in the forums
http://www.jboss.org/thread.jsp?forum=48&thread=1070

I don't have MQSeries so I can't help you on this part.

 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 
 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Stefano Maestri
> Sent: 25 June 2003 15:39
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] JBoss 3.2 and MQSeries trouble
> 
> 
> On Wednesday 25 June 2003 15:47, Adrian Brock wrote:
> > You don't show the full stacktrace, so
> > I can't see the linked exception that is the cause.
> 
> Here is the full stack trace. At the end of messagle
> >
> > Have you confirmed the MQSeries objects
> > are bound into jboss's jndi? Are they bound where
> > you would expect?
> 
> No I think it's the trouble, but my steps it seems to be 
> correct. I take alook 
> with web-console and I didn't see my MQ object binded.
> 
> 
> > Does MQSeries actually have queue/DLQ?
> No, I'm using MQSeries and JBossMQ togheter so queue/DLQ is 
> already here as 
> JBossMQ queue. I already tryid to configure a queue/MQDLQ 
> (MQSeires queue) 
> and change config in standardjboss.xml to point to that queue 
> in DLQConfig, 
> but nothing changed.
> 
> >
> > When you get this working can you post the
> > full solution. I keep asking people who
> > have been successful to post
> > the info so that it can be included in the
> > jboss distribution as an example.
> >
> 
> Sure! I'm going to make a wiki to have all the solution I get 
> in one place and 
> make them public.
> I wrote and use in production a LoginModule that take Role 
> from oracle and use 
> it as j2ee Role that I want to make public; we use in production 
> LinuxVirtualServer with Jboss Cluster;  we use 
> OracleStoredProcedure to call 
> bean deployed in jboss; and now MQSeries. I think some people 
> could be 
> interested in these stuffs. ;-)
> 
> > 
> > Adrian Brock
> > Director of Support
> > Back Office
> > JBoss Group, LLC
> > 
> >
> 
> Thanks for your answer.
> The complete exception:
> 
> 16:28:18,703 INFO  [DLQHandler] Creating
> 16:28:18,723 ERROR [DLQHandler] Initialization failed
> javax.jms.JMSException: Error creating the dlq connection: null
> at 
> org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.
> java:152)
> at 
> org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSuppor
> t.java:158)
> at 
> org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSC
> ontainerInvoker.java:394)
> at 
> org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMS
> ContainerInvoker.java:579)
> at 
> org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport
> .java:192)
> at 
> org.jboss.ejb.MessageDrivenContainer.startService(MessageDrive
> nContainer.java:220)
> at 
> org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport
> .java:192)
> at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at 
> org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(Reflec
> tedMBeanDispatcher.java:284)
> at 
> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
> at 
> org.jboss.system.ServiceController$ServiceProxy.invoke(Service
> Controller.java:966)
> at $Proxy11.start(Unknown Source)
> at 
> org.jboss.system.ServiceController.start(ServiceController.java:392)
> at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at 
> org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(Reflec
> tedMBeanDispatcher.java:284)
> at 
> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
> at 
> org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
> at $Proxy467.start(Unknown Source)
> at org.jboss.ejb.EjbModule.startService(EjbModule.java:329)
> at 
> org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport
> .java:192)
> at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at 
> org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(Reflec
> ted

[JBoss-user] What do these warnings mean.

2003-06-25 Thread Magesh Prabhu
1) I'm getting the Following warning in the console.
I've checked all my beans unsetEntityContext method to set the value to null.

public void unsetEntityContext() {
this.entityContext = null;
}

still I'm getting the following warning..
WARN  [AbstractInstanceCache] Unable to passivate due to ctx lock, id=PROOFING
WARN  [AbstractInstanceCache] Unable to passivate due to ctx lock, id=PROOFING
WARN  [AbstractInstanceCache] Unable to passivate due to ctx lock, 
id=1878testRequest001


2) The following warning is also confusing me.
WARN  [TxConnectionManager$LocalXAResource] Prepare called on a local tx. Use of local
transactions on a jta transaction with more than one branch may result in inconsistent 
data in some
cases of failure.

I'm running on jboss-3.2.1_tomcat-4.1.24 on jdk1.4.1 and I use BeanManagerPersistence.

Could anybody help me.
Thanks,
Magesh



**
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: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] JBoss 3.2 and MQSeries trouble

2003-06-25 Thread Stefano Maestri
On Wednesday 25 June 2003 16:25, Adrian Brock wrote:
> I missed this post.
>
> What is the issue with the MDB not getting
> any messages from an XAConnection?
> Did you have time to debug it?
Is this question for me? If yes, my answer is : yes I have time tomorrow 
tomorrow (GMT time). But the problem is that the mdb is not deploying, so I 
haven't anything to test. :(

bye


>
> 
> Adrian Brock
> Director of Support
> Back Office
> JBoss Group, LLC
> 
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of
> > [EMAIL PROTECTED]
> > Sent: 25 June 2003 14:28
> > To: [EMAIL PROTECTED]
> > Subject: RE: [JBoss-user] JBoss 3.2 and MQSeries trouble
> >
> >
> >
> > I am wondering if the error you get is not because the
> > connection mode used
> > to connect to MQ is "binding" and JBoss will need to be on
> > the same machine
> > as the MQ queue manager as well as a lot of MQ dlls that must
> > be in the
> > path.
> >
> > Take a look at the following patch (753022) submitted to JBoss:
> > http://sourceforge.net/tracker/index.php?func=detail&aid=75302
> > 2&group_id=228
> > 66&atid=376687
> > You will get a lot of extra details as well as a better way
> > to register
> > factories/queues in JBoss.
> > Feedback on the patch is more than welcome.
> >
> > Thomas
> >
> > -Original Message-
> > From: Stefano Maestri [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, June 25, 2003 8:47 AM
> > To: [EMAIL PROTECTED]
> > Subject: [JBoss-user] JBoss 3.2 and MQSeries trouble
> >
> > I'm trying to configure JBoss to use websphere MQ 5.3 (alias
> > MQSeries 5.3).
> > I
> > read the thread on Jboss group abou and I configured JBoss
> > addin this row in
> >
> > jboss file:
> > jms-ds.xml:
> >
> >  
> >   >  name="jboss.mq:service=JMSProviderLoader,name=JMSMQSeriesProvider">
> >  MQSeriesProvider
> >  
> >  org.jboss.jms.jndi.JBossMQProvider
> >  
> >  QueueConnectionFactory
> >   > name="TopicFactoryRef">java:/XAConnectionFactory
> >  
> >
> > standardjboss.xml:
> >
> > 
> >  MQmessage-driven-bean
> >  default
> >
> > org.jboss.ejb.plugins.jms.JMSContainerInvoker
> proxy-factory>
>
> >  
> >  MQSeriesProvider
> >
> > StdJMSPool > toryJNDI>
> >  15
> >  1
> >  True
> >  
> >  10
> >  
> >  queue/DLQ
> >  10
> >  0
> >  
> >  
> >  
> > 
> > .
> > .
> > 
> >  MQSeries Message Driven Bean
> >  false
> >
> > MQmessage-driven-bean > xy-binding-nam
> > e>
> >  
> >
> > org.jboss.ejb.plugins.ProxyFactoryFinderIntercept
> > or > r>
> >  org.jboss.ejb.plugins.LogInterceptor
> >
> > org.jboss.ejb.plugins.RunAsSecurityInterceptor > nterceptor>
> >  
> >   > transaction="Container">org.jboss.ejb.plugins.TxInterceptorCMT
> > 
> >   > metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor
> > 
> >   > transaction="Container">org.jboss.ejb.plugins.MessageDrivenIns
> > tanceIntercept
> > or
> >  
> >   > transaction="Bean">org.jboss.ejb.plugins.MessageDrivenInstance
> > Interceptor > nterceptor>
> >   > transaction="Bean">org.jboss.ejb.plugins.MessageDrivenTxInterc
> > eptorBMT > rceptor>
> >   > metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor
> > 
> >
> > org.jboss.resource.connectionmanager.CachedConnec
> > tionIntercepto
> > r
> >  
> >
> > org.jboss.ejb.plugins.MessageDrivenInstancePool
> >  > l>
> >  
> >  
> >  org.jboss.tm.TxManager
> >  
> >  100
> >  
> > 
> >
> > And into jboss.xml:
> >
> > 
> >
> >  
> >
> >  
> >  enlaceMQBean
> >  MQSeries Message Driven Bean
> >  queue/MQqueue
> >  
> > 
> >
> > I added this jar to jboss lib dir:
> > com.ibm.mq.jar
> > com.ibm.mqjms.jar
> > com.ibm.mqbind.jar
> > fscontext.jar
> > providerutil.jar
> >
> > then in MQSeries I edited JMSAdmin.config with this value
> > INITIAL_CONTEXT_FACTORY=org.jnp.interfaces.NamingContextFactory
> > PROVIDER_URL=jnp://localhost:1099
> >
> > And then I used  to register in jndi the mq queues:
> >
> > def qcf(MQQueueConnectionFactory) qmanager(venus.queue.manager)
> > change ctx(queue)
> > def q(RequestQueue) qmanager(venus.queue.manager) queue(orange.queue)
> >
> > But when I deploy my bean I get this error
> > 2:52:04,804 INFO [DLQHandler] Creating
> > 12:52:04,812 ERROR [DLQHandler] Initialization failed
> > javax.jms.JMSException: Error creating the dlq connection: null
> >  at
> > org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.
> > java:152)
> >  at
> > org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSuppor
> > t.java:158)
> >  at
> > org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSC
> > ontainerInvoke
> > r.java:394)
> >  at
> > org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMS
> > ContainerInvok
> > er.java:579)
> >  at
> > org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport
> > .java:192)
> >  at
> > org.jboss.ejb.MessageDrivenContainer.startService(MessageDrive
> > nContainer.jav
> > a:220)
> >  at
> > org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport
> > 

RE: [JBoss-user] creating virtual host on the fly

2003-06-25 Thread Brian Topping
> -Original Message-
> From: Ionel Gardais [mailto:[EMAIL PROTECTED]
> Subject: Re: [JBoss-user] creating virtual host on the fly
> 
> Does creating a virtual host is as simple as adding a second Host 
> element in the 
> jbossweb-tomcat.sar/META-INF/jboss-service.xml's server 
> element ?

Yes, that's right.  Then the jboss-web.xml will have something to attach to.
You need to have the correct syntax for the jboss-service.xml, that's what
the ConfigHandler.java file shows.  FWIW, now that SF CVS is back up, I can't
find it either.  But that's the path to the source if you download the
sources from the downloads area.  

HTH,

-b


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] JBoss QL - Order By Boolean

2003-06-25 Thread Jason Calabrese
Hi everyone,

I sent this yesterday, but I think it may have been missed.

I have a bean that I need to create a finder for that orders by a boolean 
field, the db column is a MySQL TINYINT.  It seems like JBoss does not support 
this.  Is that true?

Thanks,

Jason



---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] RE: problem with file lookup from session bean

2003-06-25 Thread Arun
Hi Dan,
Thanks for the mail.
I added the PROVIDER_URL.
We are using  jboss-3.2.1_tomcat-4.1.24.
When we cast to the  connectionFactory for lookup,
We getting casting error as below,

=
9:28:40,257 INFO  [Server] JBoss (MX MicroKernel) [3.2.1 (build:
CVSTag=JBoss_3_2_1 date=200305041533)] Started in 2m:30s:529ms

  19:29:24,373 INFO  [STDOUT] into PUT ... 
  19:29:25,454 INFO  [STDOUT] entering lookup ... 
  19:29:25,538 INFO  [STDOUT] execption 
  19:29:25,541 ERROR [STDERR] java.lang.ClassCastException:
com.sun.jndi.fscontext.FSContext$FSFile 
  19:29:25,587 ERROR [STDERR] at
AcctManageEJB.getAcctAmt(AcctManageEJB.java:36) 
  19:29:25,590 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
  19:29:25,592 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
) 
  19:29:25,595 ERROR [STDERR] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)

  19:29:25,597 ERROR [STDERR] at
java.lang.reflect.Method.invoke(Method.java:324) 
  19:29:25,600 ERROR [STDERR] at
 
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(Stateles
sSessionContainer.java:629)

  19:29:25,602 ERROR [STDERR] at
 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(Cach
edConnectionInterceptor.java:186)

  19:29:25,605 ERROR [STDERR] at
 
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSe
ssionInstanceInterceptor.java:72)

  19:29:25,607 ERROR [STDERR] at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor
.java:84)

  19:29:25,610 ERROR [STDERR] at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:243)

==
Please let me know what could be the problem.
Do we need to configure any XML file in JBOSS?

Thanks & Regards.




Hi,
  
Since you're using the Sun FS JNDI implementation, you should
provide a PROVIDER_URL which points to the root of the disk-based
JNDI tree. Also, there's unlikely to be a java:comp/env environment
in this tree - you should just reference things using their file
path relative to the PROVIDER_URL you specified.
  
Is there a reason you are trying to load the class file from the
disk like this? You should really be using the ClassLoader, I would
guess.
  
Hope that helps,
  
Dan.
  
-- 
Danny Yates



---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Cocoon and Jbos3.0.6 configuration

2003-06-25 Thread Ryan Hoegg
Hi,

I got Cocoon 2.1 pre-M1 working on JBoss 3.0.7 with nothing like this 
kind of complication.  You have to get accustomed to the new Cocoon 
build process (since we don't have a binary distribution anymore) but 
once its built I simply put my cocoon app into the cocoon WAR and drop 
it in $JBOSS_HOME/server/$MY_SERVER/deploy .  Works like a charm.

The build process questions are best addressed to 
[EMAIL PROTECTED]

--
Ryan Hoegg
ISIS Networks
http://www.isisnetworks.net
Mitchell, Lincoln L. wrote:

I am trying to get cocoon (any version) working with Jbos-3.0.6 and have tried following the instruction mentioned on the apache site but to no avail as only Jboss 2 is mentioned.  I also browsed the cocoon mailing list and it seems others have had this problem but I don't understand the solutions offered to some of these postings. I am new to XSLT and Java so need a simple guide. So far this is the best I have found and it might as well be French to me, 

1.	fix the jndi url protocol handler problem
1.1	get jboss3.0.0RC3 sources via cvs
1.2	patch the source
1.3	compile it described on jboss.org-->developers
1.4	compile catalina stuff inside jboss3 (look at jboss forums for some tips if you are not familiar with ant)
1.5	get the resulting jboss dist running and test it. 

2.	get cocoon2.0.2 or later
2.1	put WEB-INF/lib/batik-libs*.jar in /lib dir (there's an 
	classloader issue in batik1.1 libs)
2.2	deploy cocoon.war as a test

Does anyone have any direction on this?

Best Regards
Linc
 



---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] Weird problems with Timer service in jboss 3.2.1

2003-06-25 Thread Adrian Brock
AllNotificationIDs is an attribute.
Use MBeanServer.getAttribute();

You need to move the timer service before the URLDeploymentScanner to
avoid the warning.

 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 
 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> [EMAIL PROTECTED]
> Sent: 25 June 2003 14:58
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] Weird problems with Timer service in jboss 3.2.1
> 
> 
> hi all,
>   i am following a jboss example for using the Timer 
> service, but i got
> strange behaviour.
> the examples assumes that u declare first hte following mbean 
> in the jboss.jcl (i guess
> for jboss 3.2.1 is server\conf\jboss-service.xml)
> 
> but for this declaration  (in server\conf\jboss-service.xml)
>  name="DefaultDomain:service=timer"/>
> 
> when jboss starts, it gives me following 'warning'
> 
> 16:44:37,707 ERROR [URLDeploymentScanner] MBeanException: 
> Exception in MBean ope
> ration 'checkIncompleteDeployments()'
> Cause: Incomplete Deployment listing:
> Packages waiting for a deployer:
>   
> Incompletely deployed packages:
>   
> MBeans waiting for classes:
>   
> MBeans waiting for other MBeans:
> [ObjectName: DefaultDomain:service=timer
>  state: CREATED
>  I Depend On:
>  Depends On Me: ]
> 
> 
> However, i am successfully able to add notifications and receive them.
> however, when i want to see the notifications that i have added
> 
> Problems arise when i try to get all notifications id   
> (timer.getAllNotificationsIDs()
> 
> because i have a reference to an objectname, i am calling the 
> following code
> 
> Vector notifs = (Vector)server.invoke(timer, "getAllNotificationIDs",
>   
>new Object[] {},
>   
>new String[]  {});
> and i got back following exception
> 
> 16:49:55,316 ERROR [STDERR] Exception in MyTimer.listNotifications()..
> ReflectionException: null
> Cause: java.lang.NoSuchMethodException: Unable to locate 
> method for: getAllNotif
> icationIDs()
> 
> 
> anyone can tell me why??
> 
> thanx and regards
>   marco
> 
> 
> 
> 
> 
> but it's in javadocs
> 
> Now, when i tried to remove a Notification i got instead 
> following exceptions
> 
> the type is a string parameter that is submitted via the jmx-console.
> 
> 
> 
> 
> Cause: java.lang.NoSuchMethodException: Unable to locate 
> method for: getAllNotif
> icationIDs()
> 
> 16:39:16,833 ERROR [STDERR] MBeanException: Exception in 
> MBean operation 'remove
> Notification(java.lang.Integer)'
> Cause: javax.management.InstanceNotFoundException: No 
> notification id : 2
> 16:39:16,833 ERROR [STDERR] at 
> org.jboss.mx.capability.ReflectedMBeanDispatc
> her.invoke(ReflectedMBeanDispatcher.java:303)
> 16:39:16,833 ERROR [STDERR] at 
> org.jboss.mx.server.MBeanServerImpl.invoke(MB
> eanServerImpl.java:549)
> 16:39:16,843 ERROR [STDERR] at 
> com.marco.config.MyTimer.removeNotification(U
> nknown Source)
> 16:39:16,843 ERROR [STDERR] at 
> java.lang.reflect.Method.invoke(Native Method
> )
> 16:39:16,843 ERROR [STDERR] at 
> org.jboss.mx.capability.ReflectedMBeanDispatc
> her.invoke(ReflectedMBeanDispatcher.java:284)
> 16:39:16,853 ERROR [STDERR] at 
> org.jboss.mx.server.MBeanServerImpl.invoke(MB
> eanServerImpl.java:549)
> 16:39:16,853 ERROR [STDERR] at 
> org.jboss.jmx.adaptor.control.Server.invokeOp
> ByName(Server.java:235)
> 16:39:16,863 ERROR [STDERR] at 
> org.jboss.jmx.adaptor.control.Server.invokeOp
> (Server.java:201)
> 16:39:16,863 ERROR [STDERR] at 
> org.jboss.jmx.adaptor.html.HtmlAdaptorServlet
> .invokeOp(HtmlAdaptorServlet.java:172)
> 16:39:16,863 ERROR [STDERR] at 
> org.jboss.jmx.adaptor.html.HtmlAdaptorServlet
> .processRequest(HtmlAdaptorServlet.java:78)
> 16:39:16,873 ERROR [STDERR] at 
> org.jboss.jmx.adaptor.html.HtmlAdaptorServlet
> .doPost(HtmlAdaptorServlet.java:60)
> 16:39:16,873 ERROR [STDERR] at 
> javax.servlet.http.HttpServlet.service(HttpSe
> rvlet.java:760)
> 16:39:16,883 ERROR [STDERR] at 
> javax.servlet.http.HttpServlet.service(HttpSe
> rvlet.java:853)
> 16:39:16,883 ERROR [STDERR] at 
> org.apache.catalina.core.ApplicationFilterCha
> in.internalDoFilter(ApplicationFilterChain.java:247)
> 16:39:16,883 ERROR [STDERR] at 
> org.apache.catalina.core.ApplicationFilterCha
> in.doFilter(ApplicationFilterChain.java:193)
> 16:39:16,893 ERROR [STDERR] at 
> org.apache.catalina.core.StandardWrapperValve
> .invoke(StandardWrapperValve.java:256)
> 16:39:16,893 ERROR [STDERR] at 
> org.apache.catalina.core.StandardPipeline$Sta
> ndardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> 16:39:16,893 ERROR [STDERR] at 
> org.apache.catalina.core.StandardPipeline.inv
> oke(StandardPipeline.java:480)
> 16:39:16

Re: [JBoss-user] JBoss 3.2 and MQSeries trouble

2003-06-25 Thread Stefano Maestri
On Wednesday 25 June 2003 15:47, Adrian Brock wrote:
> You don't show the full stacktrace, so
> I can't see the linked exception that is the cause.

Here is the full stack trace. At the end of messagle
>
> Have you confirmed the MQSeries objects
> are bound into jboss's jndi? Are they bound where
> you would expect?

No I think it's the trouble, but my steps it seems to be correct. I take alook 
with web-console and I didn't see my MQ object binded.


> Does MQSeries actually have queue/DLQ?
No, I'm using MQSeries and JBossMQ togheter so queue/DLQ is already here as 
JBossMQ queue. I already tryid to configure a queue/MQDLQ (MQSeires queue) 
and change config in standardjboss.xml to point to that queue in DLQConfig, 
but nothing changed.

>
> When you get this working can you post the
> full solution. I keep asking people who
> have been successful to post
> the info so that it can be included in the
> jboss distribution as an example.
>

Sure! I'm going to make a wiki to have all the solution I get in one place and 
make them public.
I wrote and use in production a LoginModule that take Role from oracle and use 
it as j2ee Role that I want to make public; we use in production 
LinuxVirtualServer with Jboss Cluster;  we use OracleStoredProcedure to call 
bean deployed in jboss; and now MQSeries. I think some people could be 
interested in these stuffs. ;-)

> 
> Adrian Brock
> Director of Support
> Back Office
> JBoss Group, LLC
> 
>

Thanks for your answer.
The complete exception:

16:28:18,703 INFO  [DLQHandler] Creating
16:28:18,723 ERROR [DLQHandler] Initialization failed
javax.jms.JMSException: Error creating the dlq connection: null
at 
org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:152)
at 
org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:158)
at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoker.java:394)
at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvoker.java:579)
at 
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
at 
org.jboss.ejb.MessageDrivenContainer.startService(MessageDrivenContainer.java:220)
at 
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966)
at $Proxy11.start(Unknown Source)
at 
org.jboss.system.ServiceController.start(ServiceController.java:392)
at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy467.start(Unknown Source)
at org.jboss.ejb.EjbModule.startService(EjbModule.java:329)
at 
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966)
at $Proxy11.start(Unknown Source)
at 
org.jboss.system.ServiceController.start(ServiceController.java:392)
at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy19.start(Unknown Source)
at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:540)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
at org.jboss.deployment.Mai

Re: [JBoss-user] JBoss 3.2 and MQSeries trouble

2003-06-25 Thread Stefano Maestri
On Wednesday 25 June 2003 15:28, [EMAIL PROTECTED] wrote:
> I am wondering if the error you get is not because the connection mode used
> to connect to MQ is "binding" and JBoss will need to be on the same machine
> as the MQ queue manager as well as a lot of MQ dlls that must be in the
> path.

ehmm I didn't say that I'm working on Linux. Mq and jboss are on the same 
machine. At the moment. Isn't possible in any way?


>
> Take a look at the following patch (753022) submitted to JBoss:
> http://sourceforge.net/tracker/index.php?func=detail&aid=753022&group_id=22
>8 66&atid=376687
> You will get a lot of extra details as well as a better way to register
> factories/queues in JBoss.
> Feedback on the patch is more than welcome.
>

I'll take a look thanks a lot.

> Thomas
>
> -Original Message-
> From: Stefano Maestri [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 25, 2003 8:47 AM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] JBoss 3.2 and MQSeries trouble
>
> I'm trying to configure JBoss to use websphere MQ 5.3 (alias MQSeries 5.3).
> I
> read the thread on Jboss group abou and I configured JBoss addin this row
> in
>
> jboss file:
> jms-ds.xml:
>
>  
>name="jboss.mq:service=JMSProviderLoader,name=JMSMQSeriesProvider">
>  MQSeriesProvider
>  
>  org.jboss.jms.jndi.JBossMQProvider
>  
>  QueueConnectionFactory
>  java:/XAConnectionFactory
>  
>
> standardjboss.xml:
>
> 
>  MQmessage-driven-bean
>  default
>
> org.jboss.ejb.plugins.jms.JMSContainerInvoker> 
>  MQSeriesProvider
>  StdJMSPool
>  15
>  1
>  True
>  
>  10
>  
>  queue/DLQ
>  10
>  0
>  
>  
>  
> 
> .
> .
> 
>  MQSeries Message Driven Bean
>  false
>
> MQmessage-driven-beanm e>
>  
>
> org.jboss.ejb.plugins.ProxyFactoryFinderInterceptoro r>
>  org.jboss.ejb.plugins.LogInterceptor
>  org.jboss.ejb.plugins.RunAsSecurityInterceptor
>  
>   transaction="Container">org.jboss.ejb.plugins.TxInterceptorCMT>  metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor>  transaction="Container">org.jboss.ejb.plugins.MessageDrivenInstanceIntercep
>t or
>  
>   transaction="Bean">org.jboss.ejb.plugins.MessageDrivenInstanceInterceptori nterceptor>
>   transaction="Bean">org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMTe rceptor>
>   metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor>
>
> org.jboss.resource.connectionmanager.CachedConnectionIntercept
>o r
>  
>
> org.jboss.ejb.plugins.MessageDrivenInstancePoolo l>
>  
>  
>  org.jboss.tm.TxManager
>  
>  100
>  
> 
>
> And into jboss.xml:
>
> 
>
>  
>
>  
>  enlaceMQBean
>  MQSeries Message Driven Bean
>  queue/MQqueue
>  
> 
>
> I added this jar to jboss lib dir:
> com.ibm.mq.jar
> com.ibm.mqjms.jar
> com.ibm.mqbind.jar
> fscontext.jar
> providerutil.jar
>
> then in MQSeries I edited JMSAdmin.config with this value
> INITIAL_CONTEXT_FACTORY=org.jnp.interfaces.NamingContextFactory
> PROVIDER_URL=jnp://localhost:1099
>
> And then I used  to register in jndi the mq queues:
>
> def qcf(MQQueueConnectionFactory) qmanager(venus.queue.manager)
> change ctx(queue)
> def q(RequestQueue) qmanager(venus.queue.manager) queue(orange.queue)
>
> But when I deploy my bean I get this error
> 2:52:04,804 INFO [DLQHandler] Creating
> 12:52:04,812 ERROR [DLQHandler] Initialization failed
> javax.jms.JMSException: Error creating the dlq connection: null
>  at org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:152)
>  at
> org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:158)
>  at
> org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvok
>e r.java:394)
>  at
> org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvo
>k er.java:579)
>  at
> org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192) at
> org.jboss.ejb.MessageDrivenContainer.startService(MessageDrivenContainer.ja
>v a:220)
>  at
> org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192) at
> sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
>  at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
>l .java:25)
>  at java.lang.reflect.Method.invoke(Method.java:324)
>  at
> org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispa
>t cher.java:284)
>  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
>  at
> org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.ja
>v a:966)
>  at $Proxy11.start(Unknown Source)
> [...]
>
> Please help me.
> Thanks in advance.

-- 
--- all work and no play makes Jack a dull boy --- 
bye Stefano 
[EMAIL PROTECTED]
www.javalinux.it
MSN messanger: [EMAIL PROTECTED] 
ICQ uin: 122192578
Jabber: canezen
Yahoo MSN: canezen
#jedit IRC channel as  


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Ded

RE: [JBoss-user] JBoss 3.2 and MQSeries trouble

2003-06-25 Thread Adrian Brock
I missed this post.

What is the issue with the MDB not getting
any messages from an XAConnection?
Did you have time to debug it?

 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 
 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> [EMAIL PROTECTED]
> Sent: 25 June 2003 14:28
> To: [EMAIL PROTECTED]
> Subject: RE: [JBoss-user] JBoss 3.2 and MQSeries trouble
> 
> 
> 
> I am wondering if the error you get is not because the 
> connection mode used
> to connect to MQ is "binding" and JBoss will need to be on 
> the same machine
> as the MQ queue manager as well as a lot of MQ dlls that must 
> be in the
> path.
> 
> Take a look at the following patch (753022) submitted to JBoss:
> http://sourceforge.net/tracker/index.php?func=detail&aid=75302
> 2&group_id=228
> 66&atid=376687
> You will get a lot of extra details as well as a better way 
> to register
> factories/queues in JBoss.
> Feedback on the patch is more than welcome.
> 
> Thomas
> 
> -Original Message-
> From: Stefano Maestri [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, June 25, 2003 8:47 AM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] JBoss 3.2 and MQSeries trouble
> 
> I'm trying to configure JBoss to use websphere MQ 5.3 (alias 
> MQSeries 5.3).
> I 
> read the thread on Jboss group abou and I configured JBoss 
> addin this row in
> 
> jboss file:
> jms-ds.xml:
> 
>  
>name="jboss.mq:service=JMSProviderLoader,name=JMSMQSeriesProvider">
>  MQSeriesProvider
>  
>  org.jboss.jms.jndi.JBossMQProvider
>  
>  QueueConnectionFactory
>   name="TopicFactoryRef">java:/XAConnectionFactory
>  
> 
> standardjboss.xml:
> 
> 
>  MQmessage-driven-bean
>  default
>  
> org.jboss.ejb.plugins.jms.JMSContainerInvoker
>  
>  MQSeriesProvider
>  
> StdJMSPool toryJNDI>
>  15
>  1
>  True
>  
>  10
>  
>  queue/DLQ
>  10
>  0
>  
>  
>  
>  
> .
> .
> 
>  MQSeries Message Driven Bean
>  false
>  
> MQmessage-driven-bean xy-binding-nam
> e>
>  
>  
> org.jboss.ejb.plugins.ProxyFactoryFinderIntercept
> or r>
>  org.jboss.ejb.plugins.LogInterceptor
>  
> org.jboss.ejb.plugins.RunAsSecurityInterceptor nterceptor>
>  
>   transaction="Container">org.jboss.ejb.plugins.TxInterceptorCMT
> 
>   metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor
> 
>   transaction="Container">org.jboss.ejb.plugins.MessageDrivenIns
> tanceIntercept
> or
>  
>   transaction="Bean">org.jboss.ejb.plugins.MessageDrivenInstance
> Interceptor nterceptor>
>   transaction="Bean">org.jboss.ejb.plugins.MessageDrivenTxInterc
> eptorBMT rceptor>
>   metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor
> 
>  
> org.jboss.resource.connectionmanager.CachedConnec
> tionIntercepto
> r
>  
>  
> org.jboss.ejb.plugins.MessageDrivenInstancePool
>  l>
>  
>  
>  org.jboss.tm.TxManager
>  
>  100
>  
> 
> 
> And into jboss.xml:
> 
> 
> 
>  
> 
>  
>  enlaceMQBean
>  MQSeries Message Driven Bean
>  queue/MQqueue
>  
> 
> 
> I added this jar to jboss lib dir:
> com.ibm.mq.jar
> com.ibm.mqjms.jar
> com.ibm.mqbind.jar
> fscontext.jar
> providerutil.jar
> 
> then in MQSeries I edited JMSAdmin.config with this value
> INITIAL_CONTEXT_FACTORY=org.jnp.interfaces.NamingContextFactory
> PROVIDER_URL=jnp://localhost:1099
> 
> And then I used  to register in jndi the mq queues:
> 
> def qcf(MQQueueConnectionFactory) qmanager(venus.queue.manager)
> change ctx(queue)
> def q(RequestQueue) qmanager(venus.queue.manager) queue(orange.queue)
> 
> But when I deploy my bean I get this error
> 2:52:04,804 INFO [DLQHandler] Creating
> 12:52:04,812 ERROR [DLQHandler] Initialization failed
> javax.jms.JMSException: Error creating the dlq connection: null
>  at 
> org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.
> java:152)
>  at
> org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSuppor
> t.java:158)
>  at 
> org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSC
> ontainerInvoke
> r.java:394)
>  at 
> org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMS
> ContainerInvok
> er.java:579)
>  at 
> org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport
> .java:192)
>  at 
> org.jboss.ejb.MessageDrivenContainer.startService(MessageDrive
> nContainer.jav
> a:220)
>  at 
> org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport
> .java:192)
>  at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
>  at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessorImpl
> .java:25)
>  at java.lang.reflect.Method.invoke(Method.java:324)
>  at 
> org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(Reflec
> tedMBeanDispat
> cher.java:284)
>  at 
> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
>  at 
> org.jboss.system.ServiceController$ServiceProxy.invoke(Service
> Controller.jav
> a:966)
>  at $Proxy11.start(Unknown Source)
> [...]
> 
> Please help me.
> Thanks in advance.
> 
> -- 
> ---

[JBoss-user] Weird problems with Timer service in jboss 3.2.1

2003-06-25 Thread Marco.Mistroni
hi all,
i am following a jboss example for using the Timer service, but i got
strange behaviour.
the examples assumes that u declare first hte following mbean in the jboss.jcl (i guess
for jboss 3.2.1 is server\conf\jboss-service.xml)

but for this declaration  (in server\conf\jboss-service.xml)


when jboss starts, it gives me following 'warning'

16:44:37,707 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean ope
ration 'checkIncompleteDeployments()'
Cause: Incomplete Deployment listing:
Packages waiting for a deployer:
  
Incompletely deployed packages:
  
MBeans waiting for classes:
  
MBeans waiting for other MBeans:
[ObjectName: DefaultDomain:service=timer
 state: CREATED
 I Depend On:
 Depends On Me: ]


However, i am successfully able to add notifications and receive them.
however, when i want to see the notifications that i have added

Problems arise when i try to get all notifications id   (timer.getAllNotificationsIDs()

because i have a reference to an objectname, i am calling the following code

Vector notifs = (Vector)server.invoke(timer, "getAllNotificationIDs",
   
  new Object[] {},
   
  new String[]  {});
and i got back following exception

16:49:55,316 ERROR [STDERR] Exception in MyTimer.listNotifications()..
ReflectionException: null
Cause: java.lang.NoSuchMethodException: Unable to locate method for: getAllNotif
icationIDs()


anyone can tell me why??

thanx and regards
marco





but it's in javadocs

Now, when i tried to remove a Notification i got instead following exceptions

the type is a string parameter that is submitted via the jmx-console.




Cause: java.lang.NoSuchMethodException: Unable to locate method for: getAllNotif
icationIDs()

16:39:16,833 ERROR [STDERR] MBeanException: Exception in MBean operation 'remove
Notification(java.lang.Integer)'
Cause: javax.management.InstanceNotFoundException: No notification id : 2
16:39:16,833 ERROR [STDERR] at org.jboss.mx.capability.ReflectedMBeanDispatc
her.invoke(ReflectedMBeanDispatcher.java:303)
16:39:16,833 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MB
eanServerImpl.java:549)
16:39:16,843 ERROR [STDERR] at com.marco.config.MyTimer.removeNotification(U
nknown Source)
16:39:16,843 ERROR [STDERR] at java.lang.reflect.Method.invoke(Native Method
)
16:39:16,843 ERROR [STDERR] at org.jboss.mx.capability.ReflectedMBeanDispatc
her.invoke(ReflectedMBeanDispatcher.java:284)
16:39:16,853 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MB
eanServerImpl.java:549)
16:39:16,853 ERROR [STDERR] at org.jboss.jmx.adaptor.control.Server.invokeOp
ByName(Server.java:235)
16:39:16,863 ERROR [STDERR] at org.jboss.jmx.adaptor.control.Server.invokeOp
(Server.java:201)
16:39:16,863 ERROR [STDERR] at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet
.invokeOp(HtmlAdaptorServlet.java:172)
16:39:16,863 ERROR [STDERR] at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet
.processRequest(HtmlAdaptorServlet.java:78)
16:39:16,873 ERROR [STDERR] at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet
.doPost(HtmlAdaptorServlet.java:60)
16:39:16,873 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpSe
rvlet.java:760)
16:39:16,883 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpSe
rvlet.java:853)
16:39:16,883 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha
in.internalDoFilter(ApplicationFilterChain.java:247)
16:39:16,883 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha
in.doFilter(ApplicationFilterChain.java:193)
16:39:16,893 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve
.invoke(StandardWrapperValve.java:256)
16:39:16,893 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$Sta
ndardPipelineValveContext.invokeNext(StandardPipeline.java:643)
16:39:16,893 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.inv
oke(StandardPipeline.java:480)
16:39:16,903 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke
(ContainerBase.java:995)
16:39:16,903 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve
.invoke(StandardContextValve.java:191)
16:39:16,903 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$Sta
ndardPipelineValveContext.invokeNext(StandardPipeline.java:643)
16:39:16,913 ERROR [STDERR] at org.apache.catalina.valves.CertificatesValve.
invoke(CertificatesValve.java:246)
16:39:16,913 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$Sta


> -Original Message-
> From: ext [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: 25 June, 2003 16:03
> To: [EMAIL PROTECTED]
> Subject: RE: [JBoss-user] EJBQL >= for dates
> 
> 
> Another option would be to reverse the sense of your comparison:
> 
>(x >= y)  ==>  (y < x

AW: [JBoss-user] EJBQL >= for dates

2003-06-25 Thread Scheidl, Dietmar
Hi,

just rewrite it like:

SELECT OBJECT(o) 
FROM MDSKeyVector o 
WHERE o.className = ?1
AND o.currency = ?2 
AND o.instance = ?3 
AND o.process = ?4 
AND o.location = ?5 
AND o.businessArea = ?6 
AND o.name = ?7 
AND ( o.asOfDate > ?8 OR o.asOfDate = ?8 ) 
AND ( o.asOfDate < ?9 OR o.asOfDate = ?9 )

This would do the same as you expected and is compliant to ejb-ql.

Dietmar

-Ursprüngliche Nachricht-
Von: Ingo Bruell [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 25. Juni 2003 15:01
An: [EMAIL PROTECTED]
Betreff: AW: [JBoss-user] EJBQL >= for dates


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Simone,

no, i think not.

best regards

Ingo Bruell

- - ---
<[EMAIL PROTECTED]>

Oldenburg  PGP-Fingerprint: CB01 AE12 B359 87C4 BF1C  953C 8FE7 C648 169E E5FC
GermanyPGP-Public-Key available at pgpkeys.mit.edu

-BEGIN PGP SIGNATURE-
Version: PGPfreeware 6.5.8 for non-commercial use 

iQA/AwUBPvmPCI/nxkgWnuX8EQKnDgCghyodA0k2Xu51PDnNcNN+hGpTLiIAoILH
J5iMrqXxSVIi8J0tj4K9PFDD
=xn06
-END PGP SIGNATURE-




---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer 
Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated 
Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] JBoss 3.2 and MQSeries trouble

2003-06-25 Thread Adrian Brock
You don't show the full stacktrace, so
I can't see the linked exception that is the cause.

Have you confirmed the MQSeries objects
are bound into jboss's jndi? Are they bound where
you would expect?
Does MQSeries actually have queue/DLQ?

When you get this working can you post the
full solution. I keep asking people who
have been successful to post
the info so that it can be included in the
jboss distribution as an example.

 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 
 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Stefano Maestri
> Sent: 25 June 2003 13:47
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] JBoss 3.2 and MQSeries trouble
> 
> 
> I'm trying to configure JBoss to use websphere MQ 5.3 (alias 
> MQSeries 5.3). I 
> read the thread on Jboss group abou and I configured JBoss 
> addin this row in 
> jboss file:
> jms-ds.xml:
> 
>  
>name="jboss.mq:service=JMSProviderLoader,name=JMSMQSeriesProvider">
>  MQSeriesProvider
>  
>  org.jboss.jms.jndi.JBossMQProvider
>  
>  QueueConnectionFactory
>   name="TopicFactoryRef">java:/XAConnectionFactory
>  
> 
> standardjboss.xml:
> 
> 
>  MQmessage-driven-bean
>  default
>  
> org.jboss.ejb.plugins.jms.JMSContainerInvoker
>  
>  MQSeriesProvider
>  
> StdJMSPool toryJNDI>
>  15
>  1
>  True
>  
>  10
>  
>  queue/DLQ
>  10
>  0
>  
>  
>  
>  
> .
> .
> 
>  MQSeries Message Driven Bean
>  false
>  
> MQmessage-driven-bean xy-binding-name>
>  
>  
> org.jboss.ejb.plugins.ProxyFactoryFinderIntercept
> or
>  org.jboss.ejb.plugins.LogInterceptor
>  
> org.jboss.ejb.plugins.RunAsSecurityInterceptor nterceptor>
>  
>   transaction="Container">org.jboss.ejb.plugins.TxInterceptorCMT
> 
>   metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor
> 
>   transaction="Container">org.jboss.ejb.plugins.MessageDrivenIns
> tanceInterceptor
>  
>   transaction="Bean">org.jboss.ejb.plugins.MessageDrivenInstance
> Interceptor
>   transaction="Bean">org.jboss.ejb.plugins.MessageDrivenTxInterc
> eptorBMT
>   metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor
> 
>  
> org.jboss.resource.connectionmanager.CachedConnec
> tionInterceptor
>  
>  
> org.jboss.ejb.plugins.MessageDrivenInstancePool
> 
>  
>  
>  org.jboss.tm.TxManager
>  
>  100
>  
> 
> 
> And into jboss.xml:
> 
> 
> 
>  
> 
>  
>  enlaceMQBean
>  MQSeries Message Driven Bean
>  queue/MQqueue
>  
> 
> 
> I added this jar to jboss lib dir:
> com.ibm.mq.jar
> com.ibm.mqjms.jar
> com.ibm.mqbind.jar
> fscontext.jar
> providerutil.jar
> 
> then in MQSeries I edited JMSAdmin.config with this value
> INITIAL_CONTEXT_FACTORY=org.jnp.interfaces.NamingContextFactory
> PROVIDER_URL=jnp://localhost:1099
> 
> And then I used  to register in jndi the mq queues:
> 
> def qcf(MQQueueConnectionFactory) qmanager(venus.queue.manager)
> change ctx(queue)
> def q(RequestQueue) qmanager(venus.queue.manager) queue(orange.queue)
> 
> But when I deploy my bean I get this error
> 2:52:04,804 INFO [DLQHandler] Creating
> 12:52:04,812 ERROR [DLQHandler] Initialization failed
> javax.jms.JMSException: Error creating the dlq connection: null
>  at 
> org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.
> java:152)
>  at 
> org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSuppor
> t.java:158)
>  at 
> org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSC
> ontainerInvoker.java:394)
>  at 
> org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMS
> ContainerInvoker.java:579)
>  at 
> org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport
> .java:192)
>  at 
> org.jboss.ejb.MessageDrivenContainer.startService(MessageDrive
> nContainer.java:220)
>  at 
> org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport
> .java:192)
>  at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
>  at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessorImpl.java:25)
>  at java.lang.reflect.Method.invoke(Method.java:324)
>  at 
> org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(Reflec
> tedMBeanDispatcher.java:284)
>  at 
> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
>  at 
> org.jboss.system.ServiceController$ServiceProxy.invoke(Service
> Controller.java:966)
>  at $Proxy11.start(Unknown Source)
> [...]
> 
> Please help me.
> Thanks in advance.
> 
> -- 
> --- all work and no play makes Jack a dull boy 
> --- 
> bye Stefano 
>   [EMAIL PROTECTED]
>   www.javalinux.it
>   MSN messanger: [EMAIL PROTECTED] 
>   ICQ uin: 122192578
>   Jabber: canezen
>   Yahoo MSN: canezen
>   #jedit IRC channel as  
> 
> 
> ---
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU 
> Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly 
> Commission!

[JBoss-user] Cocoon and Jbos3.0.6 configuration

2003-06-25 Thread Mitchell, Lincoln L.
I am trying to get cocoon (any version) working with Jbos-3.0.6 and have tried 
following the instruction mentioned on the apache site but to no avail as only Jboss 2 
is mentioned.  I also browsed the cocoon mailing list and it seems others have had 
this problem but I don't understand the solutions offered to some of these postings. I 
am new to XSLT and Java so need a simple guide. So far this is the best I have found 
and it might as well be French to me, 

1.  fix the jndi url protocol handler problem
1.1 get jboss3.0.0RC3 sources via cvs
1.2 patch the source
1.3 compile it described on jboss.org-->developers
1.4 compile catalina stuff inside jboss3 (look at jboss forums for some tips if 
you are not familiar with ant)
1.5 get the resulting jboss dist running and test it. 

2.  get cocoon2.0.2 or later
2.1 put WEB-INF/lib/batik-libs*.jar in /lib dir (there's an 
classloader issue in batik1.1 libs)
2.2 deploy cocoon.war as a test


Does anyone have any direction on this?

Best Regards
Linc


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] JBoss 3.2 and MQSeries trouble

2003-06-25 Thread thomas . cherel

I am wondering if the error you get is not because the connection mode used
to connect to MQ is "binding" and JBoss will need to be on the same machine
as the MQ queue manager as well as a lot of MQ dlls that must be in the
path.

Take a look at the following patch (753022) submitted to JBoss:
http://sourceforge.net/tracker/index.php?func=detail&aid=753022&group_id=228
66&atid=376687
You will get a lot of extra details as well as a better way to register
factories/queues in JBoss.
Feedback on the patch is more than welcome.

Thomas

-Original Message-
From: Stefano Maestri [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 25, 2003 8:47 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] JBoss 3.2 and MQSeries trouble

I'm trying to configure JBoss to use websphere MQ 5.3 (alias MQSeries 5.3).
I 
read the thread on Jboss group abou and I configured JBoss addin this row in

jboss file:
jms-ds.xml:

 
 
 MQSeriesProvider
 
 org.jboss.jms.jndi.JBossMQProvider
 
 QueueConnectionFactory
 java:/XAConnectionFactory
 

standardjboss.xml:


 MQmessage-driven-bean
 default
 
org.jboss.ejb.plugins.jms.JMSContainerInvoker
 
 MQSeriesProvider
 StdJMSPool
 15
 1
 True
 
 10
 
 queue/DLQ
 10
 0
 
 
 
 
.
.

 MQSeries Message Driven Bean
 false
 
MQmessage-driven-bean
 
 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor
 org.jboss.ejb.plugins.LogInterceptor
 org.jboss.ejb.plugins.RunAsSecurityInterceptor
 
 org.jboss.ejb.plugins.TxInterceptorCMT
 org.jboss.ejb.plugins.MetricsInterceptor
 org.jboss.ejb.plugins.MessageDrivenInstanceIntercept
or
 
 org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor
 org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT
 org.jboss.ejb.plugins.MetricsInterceptor
 
org.jboss.resource.connectionmanager.CachedConnectionIntercepto
r
 
 
org.jboss.ejb.plugins.MessageDrivenInstancePool
 
 
 org.jboss.tm.TxManager
 
 100
 


And into jboss.xml:



 

 
 enlaceMQBean
 MQSeries Message Driven Bean
 queue/MQqueue
 


I added this jar to jboss lib dir:
com.ibm.mq.jar
com.ibm.mqjms.jar
com.ibm.mqbind.jar
fscontext.jar
providerutil.jar

then in MQSeries I edited JMSAdmin.config with this value
INITIAL_CONTEXT_FACTORY=org.jnp.interfaces.NamingContextFactory
PROVIDER_URL=jnp://localhost:1099

And then I used  to register in jndi the mq queues:

def qcf(MQQueueConnectionFactory) qmanager(venus.queue.manager)
change ctx(queue)
def q(RequestQueue) qmanager(venus.queue.manager) queue(orange.queue)

But when I deploy my bean I get this error
2:52:04,804 INFO [DLQHandler] Creating
12:52:04,812 ERROR [DLQHandler] Initialization failed
javax.jms.JMSException: Error creating the dlq connection: null
 at org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:152)
 at
org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:158)
 at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoke
r.java:394)
 at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvok
er.java:579)
 at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
 at 
org.jboss.ejb.MessageDrivenContainer.startService(MessageDrivenContainer.jav
a:220)
 at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
 at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
 at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispat
cher.java:284)
 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
 at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.jav
a:966)
 at $Proxy11.start(Unknown Source)
[...]

Please help me.
Thanks in advance.

-- 
--- all work and no play makes Jack a dull boy --- 
bye Stefano 
[EMAIL PROTECTED]
www.javalinux.it
MSN messanger: [EMAIL PROTECTED] 
ICQ uin: 122192578
Jabber: canezen
Yahoo MSN: canezen
#jedit IRC channel as  


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-u

AW: [JBoss-user] WSDL Part names within messages.

2003-06-25 Thread Jung , Dr. Christoph
Title: Nachricht



I 
would be quite interested in the results of your experiments given that we will 
rewrite EJBProvider for a more tight
integration with the jboss invocation stack.
 
 
CGJ
 

  
  -Ursprüngliche Nachricht-Von: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 25. Juni 2003 
  14:43An: [EMAIL PROTECTED]Betreff: RE: 
  [JBoss-user] WSDL Part names within messages.
  Hi 
  Dr. Jung,
      I 
  was hoping you'd get back to me. Thanks again. I think I'll have a look at the 
  BCEL and XJavadoc option. 
   
  Thanks very much for your help,
  Mark.
  

-Original Message-From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Jung , 
Dr. ChristophSent: 25 June 2003 07:36To: 
'[EMAIL PROTECTED]'Subject: AW: [JBoss-user] WSDL 
Part names within messages.
Mark,
 
Axis has several ways of annotating such meta-data to be used by the 
WSDL Emitter (which uses reflection and builtin naming 
rules
to 
build its default meta-data thats why the parameter names are so 
ugly).
 
First the deployment descriptor itself, but in this case it does not 
leave you much options except giving a service name.
 
You could also subclass the provider implementation (EJBProvider in 
this case) for preparing the WSDL emitter with
additional information, .e.g, doing the reflection via a different 
bytecode analyzer, such as BCEL or xjavadoc or 
 
What Ive also seen is the possibilty for some target beans (Im not 
sure for EJBProvider, but you should look in the Axis docu) 
to
implement a static method that will return the already prepared 
meta-data to the emitter. 
 
CGJ
 

  
  -Ursprüngliche Nachricht-Von: 
  [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: 
  Dienstag, 24. Juni 2003 13:51An: 
  [EMAIL PROTECTED]Betreff: [JBoss-user] WSDL Part 
  names within messages.
  Hi 
  folks,
     I'm 
  exposing a few session beans as web services. In the generated WSDL the 
  part names are given automatic names i.e. in0,in1 etc. I was wondering if 
  there was anyway to be able to set these to the argument name presented in 
  the session bean? 
   
  i.e. I have a 
  bean called FPGbean which has the following method 
  signature
  public double 
  orderFPGTest(String mrn){
      :
      :
  }
   
  The wsdl for 
  this is described as 
   
  
  
  
  
  
  
  - 
  
  
     
    wsdl:message>
  
  - 
  
  
     
    wsdl:message>
  and as you can 
  see the part name attribute for the Request is in0.
  I'm hoping 
  eventually to use a UDDIBrowser and some sort of DragNDrop functionality 
  into an open source UML 
  suite from which I will generate 
  clients. I don't exactly need the names I suppose it would just mean I 
  wouldn't have to worry about the parameters being in order as I added them 
  to the call.
   
  Thanks,
  Mark.
###This message has 
been scanned by F-Secure Anti-Virus for Microsoft Exchange.For more 
information, connect to 
http://www.F-Secure.com/

###

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.F-Secure.com/


Re: [JBoss-user] execute some command at end of deployment/startup

2003-06-25 Thread Magesh Prabhu
Why dont you try a Startup Servlet which can have  which will fire 
the init() method of the servlet after your ear deployment is complete.

Cheers,
Magesh

On 6/25/03 1:00 PM, Ittay Dror <[EMAIL PROTECTED]> wrote:
>Hello,
>
>I want to be able to run some code that calls EJBs at the end of 
>my ear
>deployment. I've tried to do this by creating an MBean, and putting 
>the
>code in its start() method. My problem is that the MBean starts before
>the EJBs are deployed. I've tried putting a  on the object
>names JBoss gives to these beans (in domain jboss.j2ee), but then 
>the
>code is called before JBoss is able to create the beans. There is
>another way, which is to  the MBean on the EJBModule. However,
>JBoss recognizes this by the full path of the jars, which may change 
>in
>different computers.
>
>Any help is appreciated,
>Thank you,
>Ittay
>
>
>-- 
>===
>Ittay Dror ([EMAIL PROTECTED])
>User Space, R&D
>Qlusters Inc.
>Tel: +972-3-6081956 Fax: +972-3-6081841
>
>
>
>---
>This SF.Net email is sponsored by: INetU
>Attention Web Developers & Consultants: Become An INetU Hosting Partner.
>Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
>INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>



**
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: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] EJBQL >= for dates

2003-06-25 Thread Danny . Yates
Another option would be to reverse the sense of your comparison:

   (x >= y)  ==>  (y < x)

Then you can use the standard < operator.

Dan.

-- 
Danny Yates
 


-Original Message-
From: Simone Milani [mailto:[EMAIL PROTECTED] 
Sent: 25 June 2003 13:42
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] EJBQL >= for dates


Thanks,

I guess another option would be to use JBoss-QL.  Am I correct?

Thanks

Simone
- Original Message - 
From: "Ingo Bruell" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 11:08 AM
Subject: AW: [JBoss-user] EJBQL >= for dates


> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Hi,
>
> you can not use '>=' or '<=' with attributes of type date only '=', '<',
'>'
> and
> '<>' are allowed like the message said. If you need such behavior, you
could
> combine them with an 'or' or 'and' operator.
>
> > I am trying to use >= and <= in my EJB-QL and I get the following
error:
> > org.jboss.deployment.DeploymentException: Error compiling EJB-QL
statement
> > 'SELECT OBJECT(o) FROM MDSKeyVector o WHERE o.className = ?1
> >  AND o.currency = ?2 AND o.instance = ?3 AND o.process = ?4 AND
o.location =
> > ?5 AND o.businessArea = ?6 AND o.name = ?7 AND o.asOfDate
> > >= ?8 AND o.asOfDate <= ?9'; - nested throwable:
> > (org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered ">=" at
line 1,
> > column 19
> > 5.
> > Was expecting one of:
> > ">" ...
> > "<" ...
> > "=" ...
> > "<>" ...
> > )
> >
> > Is it not leagl EJB-QL?  Also note that the above works with just < and
>
>
>
> best regards
>
> Ingo Bruell
>
> - - - ---
> <[EMAIL PROTECTED]>
> 
> Oldenburg  PGP-Fingerprint: CB01 AE12 B359 87C4 BF1C  953C 8FE7 C648 169E
E5FC
> GermanyPGP-Public-Key available at pgpkeys.mit.edu
>
> -BEGIN PGP SIGNATURE-
> Version: PGPfreeware 6.5.8 for non-commercial use 
>
> iQA/AwUBPvlmbI/nxkgWnuX8EQLWNACbBcdIbEFtnuotkm0H43NyfgLK2wAAoPjJ
> Nui6g8t+gdvS1cnYC6kCNBa5
> =yI/E
> -END PGP SIGNATURE-
>
>
>
>
> ---
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
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: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


AW: [JBoss-user] EJBQL >= for dates

2003-06-25 Thread Ingo Bruell
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Simone,

no, i think not.

best regards

Ingo Bruell

- - ---
<[EMAIL PROTECTED]>

Oldenburg  PGP-Fingerprint: CB01 AE12 B359 87C4 BF1C  953C 8FE7 C648 169E E5FC
GermanyPGP-Public-Key available at pgpkeys.mit.edu

-BEGIN PGP SIGNATURE-
Version: PGPfreeware 6.5.8 for non-commercial use 

iQA/AwUBPvmPCI/nxkgWnuX8EQKnDgCghyodA0k2Xu51PDnNcNN+hGpTLiIAoILH
J5iMrqXxSVIi8J0tj4K9PFDD
=xn06
-END PGP SIGNATURE-




---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] Tricky problem with Transaction type Required and RequiresNew

2003-06-25 Thread Adrian Brock
The example you show shouldn't block,
but RequiresNew can block if you already hold a lock
on the same thread.

A simple example would be:

Start Tx1
bean1.doSomething(); Required (locked to Tx1)
bean1.doSomethingElse(); RequiresNew 
tries to lock in the new Tx but the lock is already held by Tx1
which hasn't completed yet.

We did detect this deadlock at one point, but it resulted in
incorrect detection when two user transactions from different
clients used the same thread from the RMI threadpool.

If you are stuck, try enabling TRACE for the following
categories which will tell you which threads
are associated with which transactions and what locks
are scheduled. Adding {%t} to the appender logging pattern
will show the thread.

org.jboss.ejb.BeanLock
org.jboss.ejb.plugins.TxInterceptorCMT

Regards,
Adrian

 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 
 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Jonathan.O'[EMAIL PROTECTED]
> Sent: 25 June 2003 13:01
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] Tricky problem with Transaction type 
> Required and RequiresNew
> 
> 
> Hi,
> I have a stateless session bean marked as transaction 
> required that was 
> locking. Here's what it did:
> /**
>  * @ejb.transaction type="Required"
> */
> public void runAuditedTask() {
> try {
> auditor.doStart(); // Transaction RequiresNew
> slsb1.doSomething(); // Transaction Required
> slsb2.doSomethingElse(); // Transaction Required
> auditor.doEnd(); // Transaction RequiresNew
> } catch (Exception e) {
> auditor.doAbort(e); // Transaction RequiresNew
> }
> }
> 
> The idea is that even if slsbx.doSomething is rolled back, we 
> still can 
> record this action in the database.
> 
> Sadly, my method comes to an abrupt halt when it tries to run 
> auditor.doEnd(). The slightly altered Stack Trace follows at 
> the end of 
> the message.
> My workaround is to mark runAuditedTask with transaction type 
> = "Never". 
> But is there a better solution, and why should this block?
> 
> 2003-06-25 11:30:40,391 WARN  [org.jboss.tm.TxCapsule] 
> Transaction XidImpl 
> [FormatId=257, GlobalId=XCOM-IRL-JONATHAN//22, BranchQual=] 
> timed out. 
> status=STATUS_ACTIVE
> 2003-06-25 11:30:41,703 WARN  [org.jboss.tm.TxCapsule] 
> Transaction XidImpl 
> [FormatId=257, GlobalId=XCOM-IRL-JONATHAN//24, BranchQual=] 
> timed out. 
> status=STATUS_ACTIVE
> 2003-06-25 11:30:41,703 WARN  [org.jboss.ejb.BeanLock] wait() 
> interrupted 
> in txLock, possibly a timeout
> 2003-06-25 11:30:41,713 ERROR [org.jboss.ejb.BeanLock] Thread[RMI TCP 
> Connection(2)-10.100.1.22,5,RMI Runtime]Saw rolled back 
> tx=TransactionImpl:XidImpl [FormatId=257, 
> GlobalId=XCOM-IRL-JONATHAN//24, 
> BranchQual=] waiting for txLock
> 2003-06-25 11:30:41,723 ERROR [org.jboss.ejb.plugins.LogInterceptor] 
> TransactionRolledbackLocalException, causedBy:
> java.lang.RuntimeException: Transaction marked for rollback, 
> possibly a 
> timeout
> at 
> org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.waitForTx(
QueuedPessimisticEJBLock.java:339)
> at 
> org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.doSchedule
> (QueuedPessimisticEJBLock.java:211)
> at 
> org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.schedule(Q
ueuedPessimisticEJBLock.java:159)
> at 
> org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockI
> nterceptor.java:103)
> at 
> org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityC
> reationInterceptor.java:69)
> at 
> org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(Abstrac
> tTxInterceptor.java:107)
> at 
> org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxI
> nterceptorCMT.java:228)
> at 
> org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT
> .java:92)
> at 
> org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInter
> ceptor.java:130)
> 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(B
aseLocalContainerInvoker.java:301)
> at 
> org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38)
> at $Proxy224.setToCompleted(Unknown Source)
> at 
> xcom.traxbahn.bproc.ejb.AuditorBean.doEnd(AuditorBean.java:121)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> orImpl.java:39)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at 
> org.jboss.ejb.StatelessSessionContainer$Conta

[JBoss-user] JBoss 3.2 and MQSeries trouble

2003-06-25 Thread Stefano Maestri
I'm trying to configure JBoss to use websphere MQ 5.3 (alias MQSeries 5.3). I 
read the thread on Jboss group abou and I configured JBoss addin this row in 
jboss file:
jms-ds.xml:

 
 
 MQSeriesProvider
 
 org.jboss.jms.jndi.JBossMQProvider
 
 QueueConnectionFactory
 java:/XAConnectionFactory
 

standardjboss.xml:


 MQmessage-driven-bean
 default
 org.jboss.ejb.plugins.jms.JMSContainerInvoker
 
 MQSeriesProvider
 StdJMSPool
 15
 1
 True
 
 10
 
 queue/DLQ
 10
 0
 
 
 
 
.
.

 MQSeries Message Driven Bean
 false
 
MQmessage-driven-bean
 
 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor
 org.jboss.ejb.plugins.LogInterceptor
 org.jboss.ejb.plugins.RunAsSecurityInterceptor
 
 org.jboss.ejb.plugins.TxInterceptorCMT
 org.jboss.ejb.plugins.MetricsInterceptor
 org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor
 
 org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor
 org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT
 org.jboss.ejb.plugins.MetricsInterceptor
 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor
 
 
org.jboss.ejb.plugins.MessageDrivenInstancePool
 
 
 org.jboss.tm.TxManager
 
 100
 


And into jboss.xml:



 

 
 enlaceMQBean
 MQSeries Message Driven Bean
 queue/MQqueue
 


I added this jar to jboss lib dir:
com.ibm.mq.jar
com.ibm.mqjms.jar
com.ibm.mqbind.jar
fscontext.jar
providerutil.jar

then in MQSeries I edited JMSAdmin.config with this value
INITIAL_CONTEXT_FACTORY=org.jnp.interfaces.NamingContextFactory
PROVIDER_URL=jnp://localhost:1099

And then I used  to register in jndi the mq queues:

def qcf(MQQueueConnectionFactory) qmanager(venus.queue.manager)
change ctx(queue)
def q(RequestQueue) qmanager(venus.queue.manager) queue(orange.queue)

But when I deploy my bean I get this error
2:52:04,804 INFO [DLQHandler] Creating
12:52:04,812 ERROR [DLQHandler] Initialization failed
javax.jms.JMSException: Error creating the dlq connection: null
 at org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:152)
 at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:158)
 at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoker.java:394)
 at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvoker.java:579)
 at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
 at 
org.jboss.ejb.MessageDrivenContainer.startService(MessageDrivenContainer.java:220)
 at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
 at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
 at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
 at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966)
 at $Proxy11.start(Unknown Source)
[...]

Please help me.
Thanks in advance.

-- 
--- all work and no play makes Jack a dull boy --- 
bye Stefano 
[EMAIL PROTECTED]
www.javalinux.it
MSN messanger: [EMAIL PROTECTED] 
ICQ uin: 122192578
Jabber: canezen
Yahoo MSN: canezen
#jedit IRC channel as  


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] execute some command at end of deployment/startup

2003-06-25 Thread David Ward
Ittay,

Implement a javax.servlet.ServletContextListener, add it to your web.xml of your
war (if you have one, otherwise make one), and then you can put stuff in the
contextInitialized(ServletContextEvent) and
contextDestroyed(ServletContextEvent) methods.  It's a good appserver agnostic
startup/shutdown hook mechanism.

David


Mensaje citado por Ittay Dror <[EMAIL PROTECTED]>:

> Hello,
> 
> I want to be able to run some code that calls EJBs at the end of my ear
> deployment. I've tried to do this by creating an MBean, and putting the
> code in its start() method. My problem is that the MBean starts before
> the EJBs are deployed. I've tried putting a  on the object
> names JBoss gives to these beans (in domain jboss.j2ee), but then the
> code is called before JBoss is able to create the beans. There is
> another way, which is to  the MBean on the EJBModule. However,
> JBoss recognizes this by the full path of the jars, which may change in
> different computers.
> 
> Any help is appreciated,
> Thank you,
> Ittay


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] EJBQL >= for dates

2003-06-25 Thread Simone Milani
Thanks,

I guess another option would be to use JBoss-QL.  Am I correct?

Thanks

Simone
- Original Message - 
From: "Ingo Bruell" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 11:08 AM
Subject: AW: [JBoss-user] EJBQL >= for dates


> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Hi,
>
> you can not use '>=' or '<=' with attributes of type date only '=', '<',
'>'
> and
> '<>' are allowed like the message said. If you need such behavior, you
could
> combine them with an 'or' or 'and' operator.
>
> > I am trying to use >= and <= in my EJB-QL and I get the following
error:
> > org.jboss.deployment.DeploymentException: Error compiling EJB-QL
statement
> > 'SELECT OBJECT(o) FROM MDSKeyVector o WHERE o.className = ?1
> >  AND o.currency = ?2 AND o.instance = ?3 AND o.process = ?4 AND
o.location =
> > ?5 AND o.businessArea = ?6 AND o.name = ?7 AND o.asOfDate
> > >= ?8 AND o.asOfDate <= ?9'; - nested throwable:
> > (org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered ">=" at
line 1,
> > column 19
> > 5.
> > Was expecting one of:
> > ">" ...
> > "<" ...
> > "=" ...
> > "<>" ...
> > )
> >
> > Is it not leagl EJB-QL?  Also note that the above works with just < and
>
>
>
> best regards
>
> Ingo Bruell
>
> - - - ---
> <[EMAIL PROTECTED]>
> 
> Oldenburg  PGP-Fingerprint: CB01 AE12 B359 87C4 BF1C  953C 8FE7 C648 169E
E5FC
> GermanyPGP-Public-Key available at pgpkeys.mit.edu
>
> -BEGIN PGP SIGNATURE-
> Version: PGPfreeware 6.5.8 for non-commercial use 
>
> iQA/AwUBPvlmbI/nxkgWnuX8EQLWNACbBcdIbEFtnuotkm0H43NyfgLK2wAAoPjJ
> Nui6g8t+gdvS1cnYC6kCNBa5
> =yI/E
> -END PGP SIGNATURE-
>
>
>
>
> ---
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] j_security_check & JBoss/Jetty

2003-06-25 Thread Alastair Rodgers
Hello Brian, 

You don't need to write any special Action or Form classes to use JAAS with Struts. 
The steps you need are: 

1) Configure a login policy ('application-policy') in 
/conf/login-config.xml, and set up your users & roles appropriately (I 
suggest using UsersRolesLoginModule initially, just to get it working - you will need 
to include users.properties and roles.properties in WEB-INF/classes - see jmx-console 
for an example); 

2) Add a 'security-constraint' element to your web.xml - use this to define which URL 
patterns you want to be secured by which user roles (check the DTD for details);

3) Add a 'login-config' element to web.xml. Use this to specify FORM as the 
auth-method and use 'form-login-config' to specify the paths of your login & login 
error JSPs; 

4) Add 'security-role' elements to web.xml for each role referenced in step 2; 

5) Create login & login error JSPs. Your login JSP must contain a form with 
action="j_security_check", a text input field with name="j_username" and a password 
input field with name="j_password". Your login error JSP doesn't need to contain 
anything special. 

That's it for the web tier. Now when a user tries to access a URL which matches a 
pattern defined in step 2, they'll see the login JSP. When this is submitted, JAAS 
will use the policy defined in step 1 to login the user and check that they have the 
appropriate role required for the URL requested. If so, they'll then see the 
appropriate protected page. 

As for the EJB tier, I don't really know as I haven't used JAAS with EJBs (the only 
access to my EJBs is through the web tier), but basically, I think it mainly involves 
associating security roles with EJB methods via your deployment descriptor. 

Hope this helps, 
Al.


> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Brian Wallis
> Sent: 25 June 2003 01:11
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] j_security_check & JBoss/Jetty
> 
> 
> 
> I'm running 3.0.7 JBoss with the default Jetty integration 
> and am writing a 
> struts based web app front end to an EJB application.
> 
> I have been trying to find out how form based authentication 
> works and have 
> read a lot of articles and mail items from various lists and 
> am confused 
> about a couple of things.
> 
> Do I have to provide an action class and a form class for the 
> login form or 
> does the web container handle this, ie: do I have to point 
> j_security_check 
> to an action that I write? If not, why do I keep getting 
> "Cannot retrieve 
> mapping for action /j_security_check" errors?
> 
> Do I have to provide the form with the j_username and 
> j_password fields for 
> the login or does the web container handle this as well.
> 
> I believe that I have to provide some code to pass the 
> authentication details 
> onto an EJB container when I call into a bean. I'm not sure 
> what this code 
> is. Any examples? I thought I saw one once during my 
> searching but cannot 
> find it again.
> 
> thanks,
> 
> brian wallis...
> 
> 
> 
> 


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] WSDL Part names within messages.

2003-06-25 Thread Mark.Gargan
Title: Message



Hi Dr. 
Jung,
    I was 
hoping you'd get back to me. Thanks again. I think I'll have a look at the BCEL 
and XJavadoc option. 
 
Thanks 
very much for your help,
Mark.

  
  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of Jung , Dr. 
  ChristophSent: 25 June 2003 07:36To: 
  '[EMAIL PROTECTED]'Subject: AW: [JBoss-user] WSDL 
  Part names within messages.
  Mark,
   
  Axis 
  has several ways of annotating such meta-data to be used by the WSDL Emitter 
  (which uses reflection and builtin naming rules
  to 
  build its default meta-data thats why the parameter names are so 
  ugly).
   
  First the deployment descriptor itself, but in this case it does not 
  leave you much options except giving a service name.
   
  You 
  could also subclass the provider implementation (EJBProvider in this case) for 
  preparing the WSDL emitter with
  additional information, .e.g, doing the reflection via a different 
  bytecode analyzer, such as BCEL or xjavadoc or ...
   
  What 
  Ive also seen is the possibilty for some target beans (Im not sure for 
  EJBProvider, but you should look in the Axis docu) to
  implement a static method that will return the already prepared 
  meta-data to the emitter. 
   
  CGJ
   
  

-Ursprüngliche Nachricht-Von: 
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: 
Dienstag, 24. Juni 2003 13:51An: 
[EMAIL PROTECTED]Betreff: [JBoss-user] WSDL Part 
names within messages.
Hi 
folks,
   I'm 
exposing a few session beans as web services. In the generated WSDL the part 
names are given automatic names i.e. in0,in1 etc. I was wondering if there 
was anyway to be able to set these to the argument name presented in the 
session bean? 
 
i.e. I have a 
bean called FPGbean which has the following method 
signature
public double 
orderFPGTest(String mrn){
    :
    :
}
 
The wsdl for 
this is described as 
 






- 


   
  
wsdl:message>

- 


   
  
wsdl:message>
and as you can 
see the part name attribute for the Request is in0.
I'm hoping 
eventually to use a UDDIBrowser and some sort of DragNDrop functionality 
into an open source UML 
suite from which I will generate 
clients. I don't exactly need the names I suppose it would just mean I 
wouldn't have to worry about the parameters being in order as I added them 
to the call.
 
Thanks,
Mark.
  ###This message has 
  been scanned by F-Secure Anti-Virus for Microsoft Exchange.For more 
  information, connect to 
http://www.F-Secure.com/


Re: [JBoss-user] problem accessing an inner class from an MBean

2003-06-25 Thread George Icriverzi




The CService class is actually named CRLFactory (and the inner class is named
CertScanner, though this is irrelevant)

Scott M Stark wrote:
Run the attached
ListJar on the ear in question.
  
  

import java.io.FileInputStream;
import java.util.Enumeration;
import java.util.Iterator;
import java.util.jar.Attributes;
import java.util.jar.JarFile;
import java.util.jar.Manifest;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;
import java.util.zip.ZipInputStream;

/** A little utility that displays the contents of composite jars
 *
 * @author [EMAIL PROTECTED]
 * @version $Revision: 1.2 $
 */
public class ListJar
{
   static String[] jarSuffixes = {
  ".jar", ".zip", ".ear", ".war", ".sar"
   };
   static String jarPrefix = "+- ";
   static String entryPrefix = "|  ";
   static byte[] buffer = new byte[65535];
   static boolean showOnlyArchives = false;

   static
   {
  for(int i = 0; i < 10; i ++)
  {
 jarPrefix += "+- ";
 entryPrefix += "|  ";
  }
   }

   static boolean isJar(String name)
   {
  boolean isJar = false;
  for(int s = 0; isJar == false && s < jarSuffixes.length; s ++)
  {
 String suffix = jarSuffixes[s];
 isJar |= name.endsWith(suffix);
  }
  return isJar;
   }

   static void processEntry(ZipInputStream zis, ZipEntry entry, int level) throws Exception
   {
  String name = entry.getName();
  boolean isDirectory = entry.isDirectory();
  if( isDirectory == true )
 return;

  // See if this is a jar archive
  if( isJar(name) )
  {
 System.out.print(jarPrefix.substring(0, 3*level));
 System.out.println(name+" (archive)");
 try
 {
ZipInputStream entryZIS = new ZipInputStream(zis);
processJar(entryZIS, ++ level);
 }
 catch(Exception e)
 {
e.printStackTrace();
 }
  }
  else if( name.endsWith("MANIFEST.MF") )
  {
 System.out.print(entryPrefix.substring(0, 3*(level-1)));
 System.out.print("+- ");
 System.out.print(name);
 Manifest mf = new Manifest(zis);
 Attributes main = mf.getMainAttributes();

 String cp = main.getValue(Attributes.Name.CLASS_PATH);
 if( cp != null )
 {
System.out.print(" Class-Path: ");
System.out.print(cp);
System.out.print(' ');
 }
 System.out.println();
  }
  else if( showOnlyArchives == false )
  {
 System.out.print(entryPrefix.substring(0, 3*(level-1)));
 System.out.print("+- ");
 System.out.println(name);
  }
   }

   static void processJar(ZipInputStream zis, int level) throws Exception
   {
  ZipEntry entry;
  while( (entry = zis.getNextEntry()) != null )
  {
 processEntry(zis, entry, level);
  }
   }

   /** List the jar contents
* @param args the command line arguments
*/
   public static void main(String[] args) throws Exception
   {
  String name = args[0];
  JarFile jarFile = new JarFile(name);
  Manifest mf = jarFile.getManifest();
  FileInputStream fis = new FileInputStream(name);
  ZipInputStream zis = new ZipInputStream(fis);
  System.out.println(name);
  processJar(zis, 1);
  System.out.println("Done");
   }

}
  





results
Description: application/java-vm


Re: [JBoss-user] Unable to passivate due to ctx lock

2003-06-25 Thread Magesh Prabhu
Alex, I'm using BMP's.

The id's displayed in the warn message is valid. The record definitely exist in 
database.

Cheers,
Magesh

On 6/25/03 12:01 PM, Alexey Loubyansky <[EMAIL PROTECTED]> wrote:
>Hello Magesh,
>
>Wednesday, June 25, 2003, 1:33:27 PM, Magesh Prabhu wrote:
>
>MP> I'm getting this following warning. I went in to all my entity 
>beans to check if I'm doing any naughtly stuff with entity context. 
>Everything looks fine. Could anybody suggest me what could be
>MP> the possible reason for this warning.. 
>
>For example, a bug in JBoss. Could you provide more info?
>Are there foreign key fields mapped to CMP fields?
>Are the id's in WARN's valid? meaning really exist in the database?
>
>Thanks,
>alex
>
>MP> Thanks in advance,
>MP> Magesh
>
>MP> WARN  [AbstractInstanceCache] Unable to passivate due to ctx 
>lock, id=PROOFING
>MP> WARN  [AbstractInstanceCache] Unable to passivate due to ctx 
>lock, id=PROOFING
>MP> WARN  [AbstractInstanceCache] Unable to passivate due to ctx 
>lock, id=1878testRequest001
>
>
>
>MP> **
>MP> This email and its attachments are intended for the above 
>MP> named only and may be confidential.  If they have come to 
>MP> you in error, you must take no action based on them, nor 
>MP> must you copy or show them to anyone; please reply to this 
>MP> email and highlight the error.
>MP> Security Warning: Please note that this email has been 
>MP> created in the knowledge that the internet email is not a 
>MP> 100% secure communications medium.  We advise that you 
>MP> understand and observe this lack of security when emailing us.
>MP> Viruses:  Although we have taken steps to ensure that this 
>MP> email and attachments are free from any virus, we advise 
>MP> that in keeping with good computing practice the recipient 
>MP> should ensure they are actually virus free.
>MP> If you have received this email in error please notify:
>MP> [EMAIL PROTECTED]
>MP> **
>
>
>
>---
>This SF.Net email is sponsored by: INetU
>Attention Web Developers & Consultants: Become An INetU Hosting Partner.
>Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
>INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>



---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] execute some command at end of deployment/startup

2003-06-25 Thread Ittay Dror
Hello,

I want to be able to run some code that calls EJBs at the end of my ear
deployment. I've tried to do this by creating an MBean, and putting the
code in its start() method. My problem is that the MBean starts before
the EJBs are deployed. I've tried putting a  on the object
names JBoss gives to these beans (in domain jboss.j2ee), but then the
code is called before JBoss is able to create the beans. There is
another way, which is to  the MBean on the EJBModule. However,
JBoss recognizes this by the full path of the jars, which may change in
different computers.

Any help is appreciated,
Thank you,
Ittay


-- 
===
Ittay Dror ([EMAIL PROTECTED])
User Space, R&D
Qlusters Inc.
Tel: +972-3-6081956 Fax: +972-3-6081841



---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Tricky problem with Transaction type Required and RequiresNew

2003-06-25 Thread Jonathan . O'Connor
Hi,
I have a stateless session bean marked as transaction required that was 
locking. Here's what it did:
/**
 * @ejb.transaction type="Required"
*/
public void runAuditedTask() {
try {
auditor.doStart(); // Transaction RequiresNew
slsb1.doSomething(); // Transaction Required
slsb2.doSomethingElse(); // Transaction Required
auditor.doEnd(); // Transaction RequiresNew
} catch (Exception e) {
auditor.doAbort(e); // Transaction RequiresNew
}
}

The idea is that even if slsbx.doSomething is rolled back, we still can 
record this action in the database.

Sadly, my method comes to an abrupt halt when it tries to run 
auditor.doEnd(). The slightly altered Stack Trace follows at the end of 
the message.
My workaround is to mark runAuditedTask with transaction type = "Never". 
But is there a better solution, and why should this block?

2003-06-25 11:30:40,391 WARN  [org.jboss.tm.TxCapsule] Transaction XidImpl 
[FormatId=257, GlobalId=XCOM-IRL-JONATHAN//22, BranchQual=] timed out. 
status=STATUS_ACTIVE
2003-06-25 11:30:41,703 WARN  [org.jboss.tm.TxCapsule] Transaction XidImpl 
[FormatId=257, GlobalId=XCOM-IRL-JONATHAN//24, BranchQual=] timed out. 
status=STATUS_ACTIVE
2003-06-25 11:30:41,703 WARN  [org.jboss.ejb.BeanLock] wait() interrupted 
in txLock, possibly a timeout
2003-06-25 11:30:41,713 ERROR [org.jboss.ejb.BeanLock] Thread[RMI TCP 
Connection(2)-10.100.1.22,5,RMI Runtime]Saw rolled back 
tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=XCOM-IRL-JONATHAN//24, 
BranchQual=] waiting for txLock
2003-06-25 11:30:41,723 ERROR [org.jboss.ejb.plugins.LogInterceptor] 
TransactionRolledbackLocalException, causedBy:
java.lang.RuntimeException: Transaction marked for rollback, possibly a 
timeout
at 
org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.waitForTx(QueuedPessimisticEJBLock.java:339)
at 
org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.doSchedule(QueuedPessimisticEJBLock.java:211)
at 
org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.schedule(QueuedPessimisticEJBLock.java:159)
at 
org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:103)
at 
org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.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:130)
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(BaseLocalContainerInvoker.java:301)
at 
org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38)
at $Proxy224.setToCompleted(Unknown Source)
at xcom.traxbahn.bproc.ejb.AuditorBean.doEnd(AuditorBean.java:121)
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.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:660)
at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
at 
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:77)
at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107)
at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:305)
at 
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:92)
at 
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:130)
at 
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204)
at 
org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:313)
at 
org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalContainerInvoker.java:301)
at 
org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:81)
at $Proxy223.setToCompleted(Unknown Source)
at 
de.xcom.tips.xcombs.ejb.BsToTipsBean.runAuditedTask(BsToTipsBean.java:188)
Ciao,
Jonathan O'Connor
XCOM Dublin


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Ma

RE: [JBoss-user] Run a class onStartup

2003-06-25 Thread Marco.Mistroni
HI,
at http://www.theserverside.com there are free chapters
available of the book 'JMX in Action'..
u can check 'em out..
i have read almost all, and they are very useful...

regards
marco

> -Original Message-
> From: ext Astie, Sebastien [mailto:[EMAIL PROTECTED]
> Sent: 25 June, 2003 01:58
> To: [EMAIL PROTECTED]
> Subject: RE: [JBoss-user] Run a class onStartup
> 
> 
> Edgar,
> 
> If you want to learn more about JMX, I really suggest the JMX 
> book from PEARSON EDUCATION.
> 
> It helped me a lot understanding JBOSS.
> 
> Sebastien
> 
> -Original Message-
> From: Edgar Silva [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 24, 2003 3:34 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Run a class onStartup
> 
> 
> Danny...
> 
> I am talking about JBoss integration with JMX,
> I just solve my trouble after some emails in the list,
> And nothing in the sites or other source of documentations
> available for me
> 
> However, everybody thanks by link
> 
> Great...
> 
> Edgar
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 24, 2003 11:57 AM
> Subject: RE: [JBoss-user] Run a class onStartup
> 
> 
> I guessed at:
> 
> http://java.sun.com/jmx
> 
> How much more public would you like?! ;-)
> 
> Rgds,
> 
> Dan.
> 
> --
> Danny Yates
> 
> 
> 
> -Original Message-
> From: Edgar Silva [mailto:[EMAIL PROTECTED]
> Sent: 24 June 2003 15:36
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Run a class onStartup
> 
> 
> Thanks Sebastien
> 
> You're right
> 
> The big problem is I don´t have documentation about
> this Specification
> 
> I think that this subjects can be more public, more easy to find.
> 
> Regards...
> 
> Edgar
> - Original Message -
> From: "Astie, Sebastien" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, June 23, 2003 8:35 PM
> Subject: RE: [JBoss-user] Run a class onStartup
> 
> 
> Edgar,
> 
> When you create an MBean (Standard MBean), It must follow a naming
> convention :
> 
> Let's call the implementation class Foo, its interface must be called
> FooMBean.
> It is part of the JMX spec.
> 
> I guess that your Mbean is not implemented with this convention.
> 
> Sebastien
> 
> 
> 
> -Original Message-
> From: Edgar Silva [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 23, 2003 4:15 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Run a class onStartup
> 
> 
> Astie...
> 
> I just created this class following theses steps:
> 
> 1) I created a Interface with init(),start(), stop(),detroy() methods.
> 2) I created a Class called Ebony , which implements the 
> interface above.
> 3) I made all implementations nested to this class works fine.
> 4) I made an special file called my_mbean.xml describing my 
> special MBean
> this way:
> 
> 
> 
> 
> 
>name="DefaultDomain:service=ebony"/>
> 
> 
> 
> Where Ebony is my Class where the implementation was made.
> 
> 5) I Deploy it
> 
> 6) I get this error:
> 
> 19:53:17,272 ERROR [URLDeploymentScanner] MBeanException: 
> Exception in MBean
> ope
> ration 'checkIncompleteDeployments()'
> Cause: Incomplete Deployment listing:
> Packages waiting for a deployer:
>   
> Incompletely deployed packages:
> [EMAIL PROTECTED] {
> url=file:/C:/jboss/server/defaul
> t/deploy/ebony_service.xml }
>   deployer: [EMAIL PROTECTED]
>   status: Deployment FAILED reason: Class does not expose a management
> interface
> : com.argos.util.jmx.Ebony; - nested throwable:
> (javax.management.NotCompliantMB
> eanException: Class does not expose a management interface:
> com.argos.util.jmx.E
> bony)
>   state: FAILED
>   watch: file:/C:/jboss/server/default/deploy/ebony_service.xml
>   lastDeployed: 1056408707513
>   lastModified: 1056408708000
>   mbeans:
> ]MBeans waiting for classes:
>   
> MBeans waiting for other MBeans:
>   
> 
> 
> 7) I made the copy of Jar file to de Lib directory of my default
> configuration Server...
> 
> 
> Have other more simpler way that this above?
> 
> Any Idea?
> 
> If possible can you send a example of this declaration inside jboss
> configuration file?
> 
> 
> Regards
> 
> Edgar
> 
> - Original Message -
> From: "Astie, Sebastien" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, June 23, 2003 6:30 PM
> Subject: RE: [JBoss-user] Run a class onStartup
> 
> 
> Hello Edgar,
> 
> The obvious way to start a process at startup is to wrap your 
> class in an
> MBean and declare the MBean in user-service.xml
> 
> 
> 
> -Original Message-
> From: Edgar Silva [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 23, 2003 2:07 PM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] Run a class onStartup
> 
> 
> Hi Folks...
> 
> Can I put a simple .class to run in JBoss Startup?
> 
> For example, to start a SessionBean automaticlly...
> 
> Any Idea?
> 
> Regards
> 
> Edgar
> 
> 
> 
> ---
> This SF.Net email is sponsored by: INetU
> Attenti

Re: [JBoss-user] Unable to passivate due to ctx lock

2003-06-25 Thread Alexey Loubyansky
Hello Magesh,

Wednesday, June 25, 2003, 1:33:27 PM, Magesh Prabhu wrote:

MP> I'm getting this following warning. I went in to all my entity beans to check if 
I'm doing any naughtly stuff with entity context. Everything looks fine. Could anybody 
suggest me what could be
MP> the possible reason for this warning.. 

For example, a bug in JBoss. Could you provide more info?
Are there foreign key fields mapped to CMP fields?
Are the id's in WARN's valid? meaning really exist in the database?

Thanks,
alex

MP> Thanks in advance,
MP> Magesh

MP> WARN  [AbstractInstanceCache] Unable to passivate due to ctx lock, id=PROOFING
MP> WARN  [AbstractInstanceCache] Unable to passivate due to ctx lock, id=PROOFING
MP> WARN  [AbstractInstanceCache] Unable to passivate due to ctx lock, 
id=1878testRequest001



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



---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] JMS Singleton - DLQ

2003-06-25 Thread Magesh Prabhu
yoh.. JBoss is just wonderful.. Its awesome..Thanks Adrian.

On 6/25/03 10:42 AM, Adrian Brock <[EMAIL PROTECTED]> wrote:
>This works for me with the following jboss.xml (Branch_3_2 CVS rather
>than 3.2.1)
>
>
>"http://www.jboss.org/j2ee/dtd/jboss.dtd";>
>
>
>
>   
>  
> message-bean
> default
> 
>org.jboss.ejb.plugins.jms.JMSContainerInvokerory>
> 
> 
>DefaultJMSProvider
> 
>StdJMSPool
>1
>1
>
>   10
>   
>  queue/A
>  0
>  0
>   
>
> 
>   
>   
>
>   
>  
> test/mdb
> queue/testQueue
> 
>
> 
>message-bean
>
> 
>  
>   
>
>
>
> 
>Adrian Brock
>Director of Support
>Back Office
>JBoss Group, LLC 
> 
> 
>
>> -Original Message-
>> From: [EMAIL PROTECTED] 
>> [mailto:[EMAIL PROTECTED] On Behalf Of 
>> Magesh Prabhu
>> Sent: 25 June 2003 09:34
>> To: [EMAIL PROTECTED]
>> Subject: Re: [JBoss-user] JMS Singleton - DLQ
>> 
>> 
>> Thanks a lot Scott. It just works the way it is configured..
>> 
>> I have another requirement:
>> When I rollback the transaction in MessageDrivenBean using 
>> messageDrivenContext.setRollbackOnly();  JBoss tries to 
>> resend it 10 more times and after it has exhausted 10 times, 
>> it sends it to the DeadLetterQueue.
>> 
>> My Requirement is:
>> 1) Instead of retrying 10 times, it should directly go to the 
>> DeadLetterQueue
>> 2) Can I have my own DLQ and use mine instead of default DLQ. 
>> Is there a way to configure it.
>> 
>> I tried the following but I guess I'm missing out on 
>> something. JBoss retries it 10 times and sends it to DLQ by 
>> default. Have I configured it in a wrong sense.
>> 
>> with kind regards,
>> Magesh
>> 
>> Environment: jboss-3.2.1_tomcat-4.1.24 on JDK1.4.1
>> The configuration I tried in standardjboss.xml:
>> 1) 0 to enforce to 
>> go to DLQ instead of retrying 10 times.
>> 2) queue/customDLQ set 
>> to my custom Queue.
>> I created this customDLQ in jbossmq-service.xml
>> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
>> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
>> 
>>  
>>  message-driven-bean
>>  default
>>  
>> org.jboss.ejb.plugins.jms.JMSContainerInvokerproxy-factory>
>> 
>>  
>> DefaultJMSProvider
>>  
>> StdJMSPool> toryJNDI>
>>  1
>>  1
>>  True
>> 
>> 10
>> 
>> queue/DLQ
>> 0
>> 0
>> 
>> 
>>  
>>  
>> 
>> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
>> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
>> 
>> On 6/24/03 10:54 PM, Scott M Stark <[EMAIL PROTECTED]> wrote:
>> >You need to specify a strictMaximumSize element to enforce the
>> >MaximumSize constraint:
>> >
>> >  
>> > 1
>> > 1
>> > true
>> >  
>> >
>> >-- 
>> >
>> >Scott Stark
>> >Chief Technology Officer
>> >JBoss Group, LLC
>> >
>> >
>> >Magesh Prabhu wrote:
>> >
>> >> Hi Guys,
>> >> 
>> >> My requirement is to get (onMessage) notification one by one. 
>
>> >> Next notification should wait until I finish my onMessage method.
>> >> 
>> >> So I created my own type of MessageDrivenBean and named it 
>> "Singleton 
>> >Message Driven Bean" and configured the following in 
>> standardjboss.xml
>> >> 
>> >>   
>> >>  Singleton Message Driven 
>> Bean
>> >>  false
>> >>  
>> 
>> >>  
>> >> 
>> org.jboss.ejb.plugins.ProxyFactoryFinderIntercept
>> or
>> >> 
>> org.jboss.ejb.plugins.LogInterceptor
>> >> 
>> org.jboss.ejb.plugins.RunAsSecurityInterceptor> nterceptor>
>> >> 
>> >> > transaction="Container">org.jboss.ejb.plugins.TxInterceptorCMT
>> 
>> >> > metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor
>> 
>> >> > transaction="Container">org.jboss.ejb.plugins.MessageDrivenIns
>> tanceInterceptor
>> >> 
>> >> > transaction="Bean">org.jboss.ejb.plugins.MessageDrivenInstance
>> Interceptor
>> >> > transaction="Bean">org.jboss.ejb.plugins.MessageDrivenTxInterc
>> eptorBMT
>> >> > metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor
>> 
>> >> 
>> org.jboss.resource.connectionmanager.CachedConnec
>> tionInterceptor
>> >>  
>> >>  
>> org.jboss.ejb.plugins.MessageDrivenInstancePool
>> 
>> >>  
>> >>  
>> >>  
>> >> 100
>> >>  
>> >>  
>> >>   message-driven-bean
>> >>   default
>> >>   
>> org.jboss.ejb.plu

RE: [JBoss-user] how to get TopicConnectionFactory in jboss 3.2.1 ?

2003-06-25 Thread Marco.Mistroni
thanx adrian!
it worked just fine.

regards
marco

> -Original Message-
> From: ext Adrian Brock [mailto:[EMAIL PROTECTED]
> Sent: 25 June, 2003 13:14
> To: [EMAIL PROTECTED]
> Subject: RE: [JBoss-user] how to get TopicConnectionFactory in jboss
> 3.2.1 ?
> 
> 
> Set RecursiveSearch to True in server/default/conf/jboss-service.xml
> 
>  
> Adrian Brock
> Director of Support
> Back Office
> JBoss Group, LLC 
>  
>  
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] 
> > [mailto:[EMAIL PROTECTED] On Behalf Of 
> > [EMAIL PROTECTED]
> > Sent: 25 June 2003 10:37
> > To: [EMAIL PROTECTED]
> > Subject: [JBoss-user] how to get TopicConnectionFactory in 
> > jboss 3.2.1 ?
> > 
> > 
> > hi all,
> > i am receiving an exception while running following 
> > code for retrieving
> > a topic connection factory
> > 
> > TopicConnectionFactory tcf = 
> > (TopicConnectionFactory)ctx.lookup("ConnectionFactory");
> > 
> > 
> > any reason why?
> > i got above code from one JMS example in jboss on the net
> > 
> > the object that is trying to get a connection is an MBean, 
> and i have
> > instantiated the context like this (since it is running 
> inside JBOSS)
> > 
> > InitialContext ctx = new InitialContext();
> > 
> > 
> > regards
> > marco
> > 
> > 
> > 
> > > -Original Message-
> > > From: ext Magesh Prabhu [mailto:[EMAIL PROTECTED]
> > > Sent: 25 June, 2003 11:34
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: [JBoss-user] JMS Singleton - DLQ
> > > 
> > > 
> > > Thanks a lot Scott. It just works the way it is configured..
> > > 
> > > I have another requirement:
> > > When I rollback the transaction in MessageDrivenBean using 
> > > messageDrivenContext.setRollbackOnly();  JBoss tries to 
> > > resend it 10 more times and after it has exhausted 10 times, 
> > > it sends it to the DeadLetterQueue.
> > > 
> > > My Requirement is:
> > > 1) Instead of retrying 10 times, it should directly go to the 
> > > DeadLetterQueue
> > > 2) Can I have my own DLQ and use mine instead of default DLQ. 
> > > Is there a way to configure it.
> > > 
> > > I tried the following but I guess I'm missing out on 
> > > something. JBoss retries it 10 times and sends it to DLQ by 
> > > default. Have I configured it in a wrong sense.
> > > 
> > > with kind regards,
> > > Magesh
> > > 
> > > Environment: jboss-3.2.1_tomcat-4.1.24 on JDK1.4.1
> > > The configuration I tried in standardjboss.xml:
> > > 1) 0 to enforce to 
> > > go to DLQ instead of retrying 10 times.
> > > 2) queue/customDLQ set 
> > > to my custom Queue.
> > > I created this customDLQ in jbossmq-service.xml
> > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> > > 
> > >   
> > >   message-driven-bean
> > >   default
> > >   
> > > org.jboss.ejb.plugins.jms.JMSContainerInvoker > proxy-factory>
> > > 
> > >   
> > > 
> DefaultJMSProvider
> > >   
> > > StdJMSPool > > toryJNDI>
> > >   1
> > >   1
> > >   True
> > > 
> > > 
> 10
> > > 
> > > queue/DLQ
> > > 0
> > > 0
> > > 
> > > 
> > >   
> > >   
> > > 
> > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> > > 
> > > On 6/24/03 10:54 PM, Scott M Stark <[EMAIL PROTECTED]> wrote:
> > > >You need to specify a strictMaximumSize element to enforce the
> > > >MaximumSize constraint:
> > > >
> > > >  
> > > > 1
> > > > 1
> > > > true
> > > >  
> > > >
> > > >-- 
> > > >
> > > >Scott Stark
> > > >Chief Technology Officer
> > > >JBoss Group, LLC
> > > >
> > > >
> > > >Magesh Prabhu wrote:
> > > >
> > > >> Hi Guys,
> > > >> 
> > > >> My requirement is to get (onMessage) notification one by one. 
> > > >> Next notification should wait until I finish my 
> onMessage method.
> > > >> 
> > > >> So I created my own type of MessageDrivenBean and named it 
> > > "Singleton 
> > > >Message Driven Bean" and configured the following in 
> > > standardjboss.xml
> > > >> 
> > > >>   
> > > >>  Singleton Message Driven 
> > > Bean
> > > >>  false
> > > >>  
> > > 
> > > >>  
> > > >> 
> > > org.jboss.ejb.plugins.ProxyFactoryFinderIntercept
> > > or
> > > >> 
> > > org.jboss.ejb.plugins.LogInterceptor
> > > >> 
> > > org.jboss.ejb.plugins.RunAsSecurityInterceptor > nterceptor>
> > > >> 
> > > >>  > > transaction="Container">org.jboss.ejb.plugins.TxInterceptorCMT
> > > 
> > > >>  > > metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor
> > 

[JBoss-user] Unable to passivate due to ctx lock

2003-06-25 Thread Magesh Prabhu
I'm getting this following warning. I went in to all my entity beans to check if I'm 
doing any naughtly stuff with entity context. Everything looks fine. Could anybody 
suggest me what could be the possible reason for this warning.. 

Thanks in advance,
Magesh

WARN  [AbstractInstanceCache] Unable to passivate due to ctx lock, id=PROOFING
WARN  [AbstractInstanceCache] Unable to passivate due to ctx lock, id=PROOFING
WARN  [AbstractInstanceCache] Unable to passivate due to ctx lock, 
id=1878testRequest001



**
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: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] how to get TopicConnectionFactory in jboss 3.2.1 ?

2003-06-25 Thread Adrian Brock
Set RecursiveSearch to True in server/default/conf/jboss-service.xml

 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 
 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> [EMAIL PROTECTED]
> Sent: 25 June 2003 10:37
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] how to get TopicConnectionFactory in 
> jboss 3.2.1 ?
> 
> 
> hi all,
>   i am receiving an exception while running following 
> code for retrieving
> a topic connection factory
> 
> TopicConnectionFactory tcf = 
> (TopicConnectionFactory)ctx.lookup("ConnectionFactory");
>   
> 
> any reason why?
> i got above code from one JMS example in jboss on the net
> 
> the object that is trying to get a connection is an MBean, and i have
> instantiated the context like this (since it is running inside JBOSS)
> 
> InitialContext ctx = new InitialContext();
> 
> 
> regards
>   marco
> 
> 
> 
> > -Original Message-
> > From: ext Magesh Prabhu [mailto:[EMAIL PROTECTED]
> > Sent: 25 June, 2003 11:34
> > To: [EMAIL PROTECTED]
> > Subject: Re: [JBoss-user] JMS Singleton - DLQ
> > 
> > 
> > Thanks a lot Scott. It just works the way it is configured..
> > 
> > I have another requirement:
> > When I rollback the transaction in MessageDrivenBean using 
> > messageDrivenContext.setRollbackOnly();  JBoss tries to 
> > resend it 10 more times and after it has exhausted 10 times, 
> > it sends it to the DeadLetterQueue.
> > 
> > My Requirement is:
> > 1) Instead of retrying 10 times, it should directly go to the 
> > DeadLetterQueue
> > 2) Can I have my own DLQ and use mine instead of default DLQ. 
> > Is there a way to configure it.
> > 
> > I tried the following but I guess I'm missing out on 
> > something. JBoss retries it 10 times and sends it to DLQ by 
> > default. Have I configured it in a wrong sense.
> > 
> > with kind regards,
> > Magesh
> > 
> > Environment: jboss-3.2.1_tomcat-4.1.24 on JDK1.4.1
> > The configuration I tried in standardjboss.xml:
> > 1) 0 to enforce to 
> > go to DLQ instead of retrying 10 times.
> > 2) queue/customDLQ set 
> > to my custom Queue.
> > I created this customDLQ in jbossmq-service.xml
> > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> > 
> > 
> > message-driven-bean
> > default
> > 
> > org.jboss.ejb.plugins.jms.JMSContainerInvoker proxy-factory>
> > 
> > 
> > DefaultJMSProvider
> > 
> > StdJMSPool > toryJNDI>
> > 1
> > 1
> > True
> > 
> > 10
> > 
> > queue/DLQ
> > 0
> > 0
> > 
> > 
> > 
> > 
> > 
> > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> > 
> > On 6/24/03 10:54 PM, Scott M Stark <[EMAIL PROTECTED]> wrote:
> > >You need to specify a strictMaximumSize element to enforce the
> > >MaximumSize constraint:
> > >
> > >  
> > > 1
> > > 1
> > > true
> > >  
> > >
> > >-- 
> > >
> > >Scott Stark
> > >Chief Technology Officer
> > >JBoss Group, LLC
> > >
> > >
> > >Magesh Prabhu wrote:
> > >
> > >> Hi Guys,
> > >> 
> > >> My requirement is to get (onMessage) notification one by one. 
> > >> Next notification should wait until I finish my onMessage method.
> > >> 
> > >> So I created my own type of MessageDrivenBean and named it 
> > "Singleton 
> > >Message Driven Bean" and configured the following in 
> > standardjboss.xml
> > >> 
> > >>   
> > >>  Singleton Message Driven 
> > Bean
> > >>  false
> > >>  
> > 
> > >>  
> > >> 
> > org.jboss.ejb.plugins.ProxyFactoryFinderIntercept
> > or
> > >> 
> > org.jboss.ejb.plugins.LogInterceptor
> > >> 
> > org.jboss.ejb.plugins.RunAsSecurityInterceptor nterceptor>
> > >> 
> > >>  > transaction="Container">org.jboss.ejb.plugins.TxInterceptorCMT
> > 
> > >>  > metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor
> > 
> > >>  > transaction="Container">org.jboss.ejb.plugins.MessageDrivenIns
> > tanceInterceptor
> > >> 
> > >>  > transaction="Bean">org.jboss.ejb.plugins.MessageDrivenInstance
> > Interceptor
> > >>  > transaction="Bean">org.jboss.ejb.plugins.MessageDrivenTxInterc
> > eptorBMT
> > >>  > metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor
> > 
> > >> 
> > org.jboss.resource.connectionmanager.CachedConnec
> > tionInterceptor
> > >>  
> > >>  
> > org.jboss.ejb.plugins.MessageDrivenIn

AW: [JBoss-user] EJBQL >= for dates

2003-06-25 Thread Ingo Bruell
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

you can not use '>=' or '<=' with attributes of type date only '=', '<', '>'
and
'<>' are allowed like the message said. If you need such behavior, you could
combine them with an 'or' or 'and' operator.

> I am trying to use >= and <= in my EJB-QL and I get the following error:
> org.jboss.deployment.DeploymentException: Error compiling EJB-QL statement
> 'SELECT OBJECT(o) FROM MDSKeyVector o WHERE o.className = ?1
>  AND o.currency = ?2 AND o.instance = ?3 AND o.process = ?4 AND o.location =
> ?5 AND o.businessArea = ?6 AND o.name = ?7 AND o.asOfDate
> >= ?8 AND o.asOfDate <= ?9'; - nested throwable:
> (org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered ">=" at line 1,
> column 19
> 5.
> Was expecting one of:
> ">" ...
> "<" ...
> "=" ...
> "<>" ...
> )
> 
> Is it not leagl EJB-QL?  Also note that the above works with just < and >

 
best regards

Ingo Bruell

- - - ---
<[EMAIL PROTECTED]>

Oldenburg  PGP-Fingerprint: CB01 AE12 B359 87C4 BF1C  953C 8FE7 C648 169E E5FC
GermanyPGP-Public-Key available at pgpkeys.mit.edu

-BEGIN PGP SIGNATURE-
Version: PGPfreeware 6.5.8 for non-commercial use 

iQA/AwUBPvlmbI/nxkgWnuX8EQLWNACbBcdIbEFtnuotkm0H43NyfgLK2wAAoPjJ
Nui6g8t+gdvS1cnYC6kCNBa5
=yI/E
-END PGP SIGNATURE-




---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] StandardWrapperValve[default]: Servlet.service()for servlet default threw exception

2003-06-25 Thread Janardhan Burugupalli
HI All,

I am getting the above exception which doent block anything but there 
should be some reason for this 

i am using jBoss3.2.1-tomcat4.1.24..

the error occurs when i click on a jnlp file which is deployed in the 
WorkClient.war file ..and starts downloading the jar files .

the detial exception looks like this
2003-06-25 11:20:23,456 ERROR [org.jboss.web.localhost.Engine] 
StandardWrapperValve[default]: Servlet.service() for servlet default 
threw exception
java.net.SocketException: Software caused connection abort: socket write 
error
   at java.net.SocketOutputStream.socketWrite0(Native Method)
   at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
   at java.net.SocketOutputStream.write(SocketOutputStream.java:126)
   at 
org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:668)
   at 
org.apache.coyote.http11.filters.IdentityOutputFilter.doWrite(IdentityOutputFilter.java:160)
   at 
org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:523)
   at org.apache.coyote.Response.doWrite(Response.java:524)
   at 
org.apache.coyote.tomcat4.OutputBuffer.realWriteBytes(OutputBuffer.java:384)
   at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:439)
   at 
org.apache.coyote.tomcat4.OutputBuffer.writeBytes(OutputBuffer.java:417)
   at org.apache.coyote.tomcat4.OutputBuffer.write(OutputBuffer.java:398)
   at 
org.apache.coyote.tomcat4.CoyoteOutputStream.write(CoyoteOutputStream.java:110)
   at 
org.apache.catalina.servlets.DefaultServlet.copyRange(DefaultServlet.java:1996)
   at 
org.apache.catalina.servlets.DefaultServlet.copy(DefaultServlet.java:1745)
   at 
org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:1073)
   at 
org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:506)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
   at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
   at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
   at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
   at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Thread

RE: [JBoss-user] JMS Singleton - DLQ

2003-06-25 Thread Adrian Brock
This works for me with the following jboss.xml (Branch_3_2 CVS rather
than 3.2.1)


http://www.jboss.org/j2ee/dtd/jboss.dtd";>



   
  
 message-bean
 default
 
org.jboss.ejb.plugins.jms.JMSContainerInvoker
 
 
DefaultJMSProvider
 
StdJMSPool
1
1

   10
   
  queue/A
  0
  0
   

 

   

   
  
 test/mdb
 queue/testQueue
 

 
message-bean

 
  
   



 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 
 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Magesh Prabhu
> Sent: 25 June 2003 09:34
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] JMS Singleton - DLQ
> 
> 
> Thanks a lot Scott. It just works the way it is configured..
> 
> I have another requirement:
> When I rollback the transaction in MessageDrivenBean using 
> messageDrivenContext.setRollbackOnly();  JBoss tries to 
> resend it 10 more times and after it has exhausted 10 times, 
> it sends it to the DeadLetterQueue.
> 
> My Requirement is:
> 1) Instead of retrying 10 times, it should directly go to the 
> DeadLetterQueue
> 2) Can I have my own DLQ and use mine instead of default DLQ. 
> Is there a way to configure it.
> 
> I tried the following but I guess I'm missing out on 
> something. JBoss retries it 10 times and sends it to DLQ by 
> default. Have I configured it in a wrong sense.
> 
> with kind regards,
> Magesh
> 
> Environment: jboss-3.2.1_tomcat-4.1.24 on JDK1.4.1
> The configuration I tried in standardjboss.xml:
> 1) 0 to enforce to 
> go to DLQ instead of retrying 10 times.
> 2) queue/customDLQ set 
> to my custom Queue.
> I created this customDLQ in jbossmq-service.xml
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> 
>   
>   message-driven-bean
>   default
>   
> org.jboss.ejb.plugins.jms.JMSContainerInvoker
> 
>   
> DefaultJMSProvider
>   
> StdJMSPool toryJNDI>
>   1
>   1
>   True
> 
> 10
> 
> queue/DLQ
> 0
> 0
> 
> 
>   
>   
> 
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> 
> On 6/24/03 10:54 PM, Scott M Stark <[EMAIL PROTECTED]> wrote:
> >You need to specify a strictMaximumSize element to enforce the
> >MaximumSize constraint:
> >
> >  
> > 1
> > 1
> > true
> >  
> >
> >-- 
> >
> >Scott Stark
> >Chief Technology Officer
> >JBoss Group, LLC
> >
> >
> >Magesh Prabhu wrote:
> >
> >> Hi Guys,
> >> 
> >> My requirement is to get (onMessage) notification one by one. 
> >> Next notification should wait until I finish my onMessage method.
> >> 
> >> So I created my own type of MessageDrivenBean and named it 
> "Singleton 
> >Message Driven Bean" and configured the following in 
> standardjboss.xml
> >> 
> >>   
> >>  Singleton Message Driven 
> Bean
> >>  false
> >>  
> 
> >>  
> >> 
> org.jboss.ejb.plugins.ProxyFactoryFinderIntercept
> or
> >> 
> org.jboss.ejb.plugins.LogInterceptor
> >> 
> org.jboss.ejb.plugins.RunAsSecurityInterceptor nterceptor>
> >> 
> >>  transaction="Container">org.jboss.ejb.plugins.TxInterceptorCMT
> 
> >>  metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor
> 
> >>  transaction="Container">org.jboss.ejb.plugins.MessageDrivenIns
> tanceInterceptor
> >> 
> >>  transaction="Bean">org.jboss.ejb.plugins.MessageDrivenInstance
> Interceptor
> >>  transaction="Bean">org.jboss.ejb.plugins.MessageDrivenTxInterc
> eptorBMT
> >>  metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor
> 
> >> 
> org.jboss.resource.connectionmanager.CachedConnec
> tionInterceptor
> >>  
> >>  
> org.jboss.ejb.plugins.MessageDrivenInstancePool
> 
> >>  
> >>  
> >>  
> >> 100
> >>  
> >>  
> >>message-driven-bean
> >>default
> >>
> org.jboss.ejb.plugins.jms.JMSContainerInvoker
> >>
> >>
> DefaultJMSProvider
> >>
> StdJMSPool toryJNDI>
> >>
> >>1
> >>1
> >>
> >>10
> >>
> >>queue/DLQ
> >>10
> >>0
> >>
> >>
> >>
> >> 
> >>
> >> 
> >> When I used this configuration in my MessageDrivenbean, 
> even though 
> >I limited the JM

[JBoss-user] how to get TopicConnectionFactory in jboss 3.2.1 ?

2003-06-25 Thread Marco.Mistroni
hi all,
i am receiving an exception while running following code for retrieving
a topic connection factory

TopicConnectionFactory tcf = (TopicConnectionFactory)ctx.lookup("ConnectionFactory");


any reason why?
i got above code from one JMS example in jboss on the net

the object that is trying to get a connection is an MBean, and i have
instantiated the context like this (since it is running inside JBOSS)

InitialContext ctx = new InitialContext();


regards
marco



> -Original Message-
> From: ext Magesh Prabhu [mailto:[EMAIL PROTECTED]
> Sent: 25 June, 2003 11:34
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] JMS Singleton - DLQ
> 
> 
> Thanks a lot Scott. It just works the way it is configured..
> 
> I have another requirement:
> When I rollback the transaction in MessageDrivenBean using 
> messageDrivenContext.setRollbackOnly();  JBoss tries to 
> resend it 10 more times and after it has exhausted 10 times, 
> it sends it to the DeadLetterQueue.
> 
> My Requirement is:
> 1) Instead of retrying 10 times, it should directly go to the 
> DeadLetterQueue
> 2) Can I have my own DLQ and use mine instead of default DLQ. 
> Is there a way to configure it.
> 
> I tried the following but I guess I'm missing out on 
> something. JBoss retries it 10 times and sends it to DLQ by 
> default. Have I configured it in a wrong sense.
> 
> with kind regards,
> Magesh
> 
> Environment: jboss-3.2.1_tomcat-4.1.24 on JDK1.4.1
> The configuration I tried in standardjboss.xml:
> 1) 0 to enforce to 
> go to DLQ instead of retrying 10 times.
> 2) queue/customDLQ set 
> to my custom Queue.
> I created this customDLQ in jbossmq-service.xml
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> 
>   
>   message-driven-bean
>   default
>   
> org.jboss.ejb.plugins.jms.JMSContainerInvoker
> 
>   
> DefaultJMSProvider
>   
> StdJMSPool toryJNDI>
>   1
>   1
>   True
> 
> 10
> 
> queue/DLQ
> 0
> 0
> 
> 
>   
>   
> 
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> 
> On 6/24/03 10:54 PM, Scott M Stark <[EMAIL PROTECTED]> wrote:
> >You need to specify a strictMaximumSize element to enforce the
> >MaximumSize constraint:
> >
> >  
> > 1
> > 1
> > true
> >  
> >
> >-- 
> >
> >Scott Stark
> >Chief Technology Officer
> >JBoss Group, LLC
> >
> >
> >Magesh Prabhu wrote:
> >
> >> Hi Guys,
> >> 
> >> My requirement is to get (onMessage) notification one by one. 
> >> Next notification should wait until I finish my onMessage method.
> >> 
> >> So I created my own type of MessageDrivenBean and named it 
> "Singleton 
> >Message Driven Bean" and configured the following in 
> standardjboss.xml
> >> 
> >>   
> >>  Singleton Message Driven 
> Bean
> >>  false
> >>  
> 
> >>  
> >> 
> org.jboss.ejb.plugins.ProxyFactoryFinderIntercept
> or
> >> 
> org.jboss.ejb.plugins.LogInterceptor
> >> 
> org.jboss.ejb.plugins.RunAsSecurityInterceptor
> >> 
> >>  transaction="Container">org.jboss.ejb.plugins.TxInterceptorCMT
> 
> >>  metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor
> 
> >>  transaction="Container">org.jboss.ejb.plugins.MessageDrivenIns
> tanceInterceptor
> >> 
> >>  transaction="Bean">org.jboss.ejb.plugins.MessageDrivenInstance
> Interceptor
> >>  transaction="Bean">org.jboss.ejb.plugins.MessageDrivenTxInterc
> eptorBMT
> >>  metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor
> 
> >> 
> org.jboss.resource.connectionmanager.CachedConnec
> tionInterceptor
> >>  
> >>  
> org.jboss.ejb.plugins.MessageDrivenInstancePool
> 
> >>  
> >>  
> >>  
> >> 100
> >>  
> >>  
> >>message-driven-bean
> >>default
> >>
> org.jboss.ejb.plugins.jms.JMSContainerInvoker
> >>
> >>
> DefaultJMSProvider
> >>
> StdJMSPool toryJNDI>
> >>
> >>1
> >>1
> >>
> >>10
> >>
> >>queue/DLQ
> >>10
> >>0
> >>
> >>
> >>
> >> 
> >>
> >> 
> >> When I used this configuration in my MessageDrivenbean, 
> even though 
> >I limited the JMSPool to be 1, it is not behaving the way I want. 
> >It just flushes the onMessage call before my method ends. Am I doing 
> >anything wrong. Could anybody suggest me please.
> >> 
> >> I'm running on jboss-3.2.1_tomcat-4.1.24, and JDK1.4

Re: [JBoss-user] problem accessing an inner class from an MBean

2003-06-25 Thread Scott M Stark
Run the attached ListJar on the ear in question.

--

Scott Stark
Chief Technology Officer
JBoss Group, LLC

George Icriverzi wrote:

The CService is packaged in a sar archive along with the 
jboss-service.xml descriptor.
The sar is put in a jar, and in the jar I have also other classes and 
descriptors.
The jar, application.xml and jboss-app.xml are packaged in an ear. 
Anyway the jboss-app.xml is empty, and application.xml mentions the jar :

   
   ca.jar
   
Why was this working with jboss-3.0.7 ?
import java.io.FileInputStream;
import java.util.Enumeration;
import java.util.Iterator;
import java.util.jar.Attributes;
import java.util.jar.JarFile;
import java.util.jar.Manifest;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;
import java.util.zip.ZipInputStream;

/** A little utility that displays the contents of composite jars
 *
 * @author [EMAIL PROTECTED]
 * @version $Revision: 1.2 $
 */
public class ListJar
{
   static String[] jarSuffixes = {
  ".jar", ".zip", ".ear", ".war", ".sar"
   };
   static String jarPrefix = "+- ";
   static String entryPrefix = "|  ";
   static byte[] buffer = new byte[65535];
   static boolean showOnlyArchives = false;

   static
   {
  for(int i = 0; i < 10; i ++)
  {
 jarPrefix += "+- ";
 entryPrefix += "|  ";
  }
   }

   static boolean isJar(String name)
   {
  boolean isJar = false;
  for(int s = 0; isJar == false && s < jarSuffixes.length; s ++)
  {
 String suffix = jarSuffixes[s];
 isJar |= name.endsWith(suffix);
  }
  return isJar;
   }

   static void processEntry(ZipInputStream zis, ZipEntry entry, int level) throws 
Exception
   {
  String name = entry.getName();
  boolean isDirectory = entry.isDirectory();
  if( isDirectory == true )
 return;

  // See if this is a jar archive
  if( isJar(name) )
  {
 System.out.print(jarPrefix.substring(0, 3*level));
 System.out.println(name+" (archive)");
 try
 {
ZipInputStream entryZIS = new ZipInputStream(zis);
processJar(entryZIS, ++ level);
 }
 catch(Exception e)
 {
e.printStackTrace();
 }
  }
  else if( name.endsWith("MANIFEST.MF") )
  {
 System.out.print(entryPrefix.substring(0, 3*(level-1)));
 System.out.print("+- ");
 System.out.print(name);
 Manifest mf = new Manifest(zis);
 Attributes main = mf.getMainAttributes();

 String cp = main.getValue(Attributes.Name.CLASS_PATH);
 if( cp != null )
 {
System.out.print(" Class-Path: ");
System.out.print(cp);
System.out.print(' ');
 }
 System.out.println();
  }
  else if( showOnlyArchives == false )
  {
 System.out.print(entryPrefix.substring(0, 3*(level-1)));
 System.out.print("+- ");
 System.out.println(name);
  }
   }

   static void processJar(ZipInputStream zis, int level) throws Exception
   {
  ZipEntry entry;
  while( (entry = zis.getNextEntry()) != null )
  {
 processEntry(zis, entry, level);
  }
   }

   /** List the jar contents
* @param args the command line arguments
*/
   public static void main(String[] args) throws Exception
   {
  String name = args[0];
  JarFile jarFile = new JarFile(name);
  Manifest mf = jarFile.getManifest();
  FileInputStream fis = new FileInputStream(name);
  ZipInputStream zis = new ZipInputStream(fis);
  System.out.println(name);
  processJar(zis, 1);
  System.out.println("Done");
   }

}


[JBoss-user] EJBQL >= for dates

2003-06-25 Thread Simone Milani
Hi,

I am trying to use >= and <= in my EJB-QL and I get the following error:
org.jboss.deployment.DeploymentException: Error compiling EJB-QL statement
'SELECT OBJECT(o) FROM MDSKeyVector o WHERE o.className = ?1
 AND o.currency = ?2 AND o.instance = ?3 AND o.process = ?4 AND o.location =
?5 AND o.businessArea = ?6 AND o.name = ?7 AND o.asOfDate
>= ?8 AND o.asOfDate <= ?9'; - nested throwable:
(org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered ">=" at line 1,
column 19
5.
Was expecting one of:
">" ...
"<" ...
"=" ...
"<>" ...
)

Is it not leagl EJB-QL?  Also note that the above works with just < and >

Thanks

Simone


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] M$ Soap 3.0 toolkit and JBoss.net interop

2003-06-25 Thread Simone Milani
Hi,

I add a look at the sources for 3.2.1 and looks like there is no tag for
that.

Simone
- Original Message - 
From: "Neal Sanche" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 12:53 AM
Subject: Re: [JBoss-user] M$ Soap 3.0 toolkit and JBoss.net interop


I am also very interested in testing this functionality. I am
currently writing an application for PocketPC using the new .NET
Compact Framework, and nothing I have tried so far causes basic
authentication to kick in.

Is there an XDoclet module that includes the new
validateUnauthenticatedCalls? What version of JBoss is this feature
included in? 3.2.1?

Thanks,

-Neal

On June 11, 2003 06:37 am, Simone Milani wrote:
> Thanks for your reply.  I added the parameter and the first time I
> make the request I get the Authentication error and after that I
> get an Authorization error.  Still looks like M$ is not sending
> anything after getting the 500 error.  Did you managed to get it
> working?
> Is it possible that to trigger the sending of data M$ expect the
> 500 when getting the wsdl on the init call and not on the actual
> web service call?
>
> Thanks
>
> Simone
> - Original Message -
> From: "Jung , Dr. Christoph" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 10, 2003 4:43 PM
> Subject: AW: [JBoss-user] M$ Soap 3.0 toolkit and JBoss.net interop
>
>
> There was a bug-report on that issue stating that M$ would not send
> authentication data
> until faced with a server error (50x or something similar, I
> think).
>
> The JBoss Authentication Handler has been extended with the
> parameter "validateUnauthenticatedCalls"
>
> 
>type="java:org.jboss.net.axis.server.JBossAuthenticationHandler">
>  value="java:/jaas/other"/>
>  name="validateUnauthenticatedCalls" value="false"/>
> 
>
> This will block any unauthenticated calls from trying to get routed
> (this is what M$ could first try to do before going the "right"
> way).
>
> Best,
> CGJ
>
> > -Ursprüngliche Nachricht-
> > Von: Simone Milani [mailto:[EMAIL PROTECTED]
> > Gesendet: Dienstag, 10. Juni 2003 16:29
> > An: [EMAIL PROTECTED]
> > Betreff: [JBoss-user] M$ Soap 3.0 toolkit and JBoss.net interop
> >
> >
> > Hi,
> >
> > I am happily using the M$ Soap 3.0 toolkit as a client
> > for JBoss.net.  I am now having trouble having the Basic
> > Authentication to work.  Has anyone managed to use it?
> >
> > Thanks
> >
> >
> > Simone
> >
> >
> >
> > ---
> > This SF.net email is sponsored by:  Etnus, makers of
> > TotalView, The best thread debugger on the planet. Designed
> > with thread debugging features you've never dreamed of, try
> > TotalView 6 free at www.etnus.com.
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/j> boss-user
>
> ###
>
> This message has been scanned by F-Secure Anti-Virus for Microsoft
> Exchange. For more information, connect to http://www.F-Secure.com/
>
>
> ---
> This SF.net email is sponsored by:  Etnus, makers of TotalView, The
> best thread debugger on the planet. Designed with thread debugging
> features you've never dreamed of, try TotalView 6 free at
> www.etnus.com. ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
> ---
> This SF.net email is sponsored by:  Etnus, makers of TotalView, The
> best thread debugger on the planet. Designed with thread debugging
> features you've never dreamed of, try TotalView 6 free at
> www.etnus.com. ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] M$ Soap 3.0 toolkit and JBoss.net interop

2003-06-25 Thread Simone Milani
I add a look at the sources for 3.2.1 and looks like there is no Xdoclet tag
for that.

Simone
- Original Message - 
From: "Neal Sanche" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 12:53 AM
Subject: Re: [JBoss-user] M$ Soap 3.0 toolkit and JBoss.net interop


I am also very interested in testing this functionality. I am
currently writing an application for PocketPC using the new .NET
Compact Framework, and nothing I have tried so far causes basic
authentication to kick in.

Is there an XDoclet module that includes the new
validateUnauthenticatedCalls? What version of JBoss is this feature
included in? 3.2.1?

Thanks,

-Neal

On June 11, 2003 06:37 am, Simone Milani wrote:
> Thanks for your reply.  I added the parameter and the first time I
> make the request I get the Authentication error and after that I
> get an Authorization error.  Still looks like M$ is not sending
> anything after getting the 500 error.  Did you managed to get it
> working?
> Is it possible that to trigger the sending of data M$ expect the
> 500 when getting the wsdl on the init call and not on the actual
> web service call?
>
> Thanks
>
> Simone
> - Original Message -
> From: "Jung , Dr. Christoph" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 10, 2003 4:43 PM
> Subject: AW: [JBoss-user] M$ Soap 3.0 toolkit and JBoss.net interop
>
>
> There was a bug-report on that issue stating that M$ would not send
> authentication data
> until faced with a server error (50x or something similar, I
> think).
>
> The JBoss Authentication Handler has been extended with the
> parameter "validateUnauthenticatedCalls"
>
> 
>type="java:org.jboss.net.axis.server.JBossAuthenticationHandler">
>  value="java:/jaas/other"/>
>  name="validateUnauthenticatedCalls" value="false"/>
> 
>
> This will block any unauthenticated calls from trying to get routed
> (this is what M$ could first try to do before going the "right"
> way).
>
> Best,
> CGJ
>
> > -Ursprüngliche Nachricht-
> > Von: Simone Milani [mailto:[EMAIL PROTECTED]
> > Gesendet: Dienstag, 10. Juni 2003 16:29
> > An: [EMAIL PROTECTED]
> > Betreff: [JBoss-user] M$ Soap 3.0 toolkit and JBoss.net interop
> >
> >
> > Hi,
> >
> > I am happily using the M$ Soap 3.0 toolkit as a client
> > for JBoss.net.  I am now having trouble having the Basic
> > Authentication to work.  Has anyone managed to use it?
> >
> > Thanks
> >
> >
> > Simone
> >
> >
> >
> > ---
> > This SF.net email is sponsored by:  Etnus, makers of
> > TotalView, The best thread debugger on the planet. Designed
> > with thread debugging features you've never dreamed of, try
> > TotalView 6 free at www.etnus.com.
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/j> boss-user
>
> ###
>
> This message has been scanned by F-Secure Anti-Virus for Microsoft
> Exchange. For more information, connect to http://www.F-Secure.com/
>
>
> ---
> This SF.net email is sponsored by:  Etnus, makers of TotalView, The
> best thread debugger on the planet. Designed with thread debugging
> features you've never dreamed of, try TotalView 6 free at
> www.etnus.com. ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
> ---
> This SF.net email is sponsored by:  Etnus, makers of TotalView, The
> best thread debugger on the planet. Designed with thread debugging
> features you've never dreamed of, try TotalView 6 free at
> www.etnus.com. ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Limiting the number of beans returned in the home interfaces multi-entity find methods

2003-06-25 Thread Alexey Loubyansky
Hello Allan,

in JBoss-3.2 you can use
SELECT OBJECT(o) FROM MyBean o OFFSET ?1 LIMIT ?2

alex

Wednesday, June 25, 2003, 8:46:04 AM, Allan Kamau wrote:

AK> I would like to limit the number of EJB object
AK> references returned by an entity's home interface's
AK> finder method(s) through the corresponding finder
AK> method(s) ejb-ql statement.
AK> This is my situation. I am developing a module that
AK> would process a user defined number of entity EJB that
AK> satisfy a specific criterion. This module is in fact
AK> an independent client application running outside the
AK> EJB container, this means that I will obtain the
AK> corresponding EJB objects from the returned EJB object
AK> references and package each into a serializable data
AK> object. This client application should process the
AK> serializable data objects in batches. Example: if the
AK> batch size specified by the user during deployment is
AK> 5, the client application will obtain the first five
AK> qualifying objects, then after processing the batch,
AK> it would obtain the next five and process the same and
AK> so on.
AK> The client application along with the resources used
AK> by it (in the EJB container) should have small memory
AK> footprint.

AK> How can I write this size restrictive ejb-ql query.
AK> Is there any other way of achieving the same keeping
AK> in mind the size unrestricted ejb-ql query may return
AK> a large number (count) of object references.

AK> Allan.



---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] CMR exception (bug?)

2003-06-25 Thread Alexey Loubyansky
Hello Louis,

the exception is thrown from create method. It is the result of
checking whether the instance already exists. It selects primary key
columns. Not foreign key.
Does JBossCMP create tables in the db? Check the primary key
configuration.

alex

Wednesday, June 25, 2003, 2:26:32 AM, Louis Leung wrote:

LL> Hi all,

LL> My application has a 1 to many CMR  (i.e. one being a purchase order ,
LL> and many being line items).  I don't think i've specified the column
LL> mapping for this relationship wrong.  JBoss should be firing "Select
LL> MASTERORDER ..." sql when retreiving info about this relation.  But
LL> instead, it fired "Select MASTERORDER_ORDERID ...".  I have no idea why
LL> did it appended the _ORDERID at the end.  Here is a snippet of the
LL> relation mapping xml in jbosscmp-jdbc.xml:

LL> 
LL> 
LL> 

LL> 
PurchaseOrderBean-lineItems-masterOrder-LineItemBean

LL> 
LL> 

LL> 
PurchaseOrderBean-lineItems-LineItemBean

LL> 
LL> 
LL> orderId
LL> MASTERORDER
LL> 
LL> 
LL> 
LL> 

LL> 
LineItemBean-masterOrder-PurchaseOrderBean

LL> 
LL> 
LL> 


LL> Anyone has any idea ?  I've included the exception that JBoss throws as
LL> well.  Thanks.


LL> Louis






LL> 16:15:48,645 ERROR [LineItemBean] Error checking if entity exists
LL> java.sql.SQLException: Column "MASTERORDER_ORDERID" not found in table
LL> at position 36.
LL> at
LL> com.pointbase.net.netJDBCPrimitives.handleResponse(DashOB3242)
LL> at
LL> com.pointbase.net.netJDBCPrimitives.handleJDBCObjectResponse(DashOB3242)

LL> at
LL> com.pointbase.net.netJDBCConnection.prepareStatement(DashOB3242)
LL> at
LL> 
org.jboss.resource.adapter.jdbc.WrappedConnection.prepareStatement(WrappedConnection.java:221)

LL> at
LL> 
org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.entityExists(JDBCCreateEntityCommand.java:230)

LL> at
LL> 
org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.execute(JDBCCreateEntityCommand.java:204)

LL> at
LL> 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createEntity(JDBCStoreManager.java:569)

LL> at
LL> 
org.jboss.ejb.plugins.CMPPersistenceManager.createEntity(CMPPersistenceManager.java:225)

LL> at
LL> 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createEntity(CachedConnectionInterceptor.java:270)

LL> at
LL> org.jboss.ejb.EntityContainer.createLocalHome(EntityContainer.java:571)
LL> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
LL> at
LL> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

LL> at
LL> 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

LL> at java.lang.reflect.Method.invoke(Method.java:324)
LL> at
LL> 
org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:998)

LL> at
LL> org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:88)

LL> at
LL> 
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:188)

LL> at
LL> 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:215)

LL> at
LL> org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:88)

LL> at
LL> 
org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:91)

LL> at
LL> 
org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:61)

LL> at
LL> 
org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:28)

LL> at
LL> 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:88)

LL> at
LL> 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:243)

LL> at
LL> org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:74)

LL> at
LL> org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:92)

LL> at
LL> org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:120)

LL> at
LL> 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)

LL> at
LL> org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:477)

LL> at org.jboss.ejb.Container.invoke(Container.java:694)
LL> at
LL> 
org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:272)

LL> at
LL> org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:110)

LL> at $Proxy34.create(Unknown Source)
LL> at
LL> com.sun.purchaseorder.entity.LineItemFactory.create(LineIt

[JBoss-user] Get your software done

2003-06-25 Thread nfs_ nfs
Having trouble completing a project or want to get a complete project done 
at a short notice. We have lot of professional coders who are available to 
work for you. All you have to do is post the description of the project; 
price your willing to pay and the deadline date. You'll be amazed at the 
numerous numbers of responses you receive. Simple select the coder you want 
to work with.

You can review each bidder's resume and reputation online, and when you're 
ready to make your decision, you can rent your personal, expert, coder with 
just a few clicks! Its that simple!

Posting a bid request is free, and you are under no obligation to accept any 
bids sent to you unless you choose to. Once you accept a bid, you will place 
your payment into escrow. The money is not released to the coder, till they 
complete the work according to your original specification. There are no 
service charges or finders fees for buyers.

http://www.thesoftwareobjects.com

_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail



---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] JMS Singleton - DLQ

2003-06-25 Thread Magesh Prabhu
Thanks a lot Scott. It just works the way it is configured..

I have another requirement:
When I rollback the transaction in MessageDrivenBean using 
messageDrivenContext.setRollbackOnly();  JBoss tries to resend it 10 more times and 
after it has exhausted 10 times, it sends it to the DeadLetterQueue.

My Requirement is:
1) Instead of retrying 10 times, it should directly go to the DeadLetterQueue
2) Can I have my own DLQ and use mine instead of default DLQ. Is there a way to 
configure it.

I tried the following but I guess I'm missing out on something. JBoss retries it 10 
times and sends it to DLQ by default. Have I configured it in a wrong sense.

with kind regards,
Magesh

Environment: jboss-3.2.1_tomcat-4.1.24 on JDK1.4.1
The configuration I tried in standardjboss.xml:
1) 0 to enforce to go to DLQ instead of 
retrying 10 times.
2) queue/customDLQ set to my custom Queue.
I created this customDLQ in jbossmq-service.xml
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - - - - - - - - - - - - - - - 


message-driven-bean
default
org.jboss.ejb.plugins.jms.JMSContainerInvoker

DefaultJMSProvider
StdJMSPool
1
1
True

10

queue/DLQ
0
0





- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - - - - - - - - - - - - - - - 

On 6/24/03 10:54 PM, Scott M Stark <[EMAIL PROTECTED]> wrote:
>You need to specify a strictMaximumSize element to enforce the
>MaximumSize constraint:
>
>  
> 1
> 1
> true
>  
>
>-- 
>
>Scott Stark
>Chief Technology Officer
>JBoss Group, LLC
>
>
>Magesh Prabhu wrote:
>
>> Hi Guys,
>> 
>> My requirement is to get (onMessage) notification one by one. 
>> Next notification should wait until I finish my onMessage method.
>> 
>> So I created my own type of MessageDrivenBean and named it "Singleton 
>Message Driven Bean" and configured the following in standardjboss.xml
>> 
>>   
>>  Singleton Message Driven Bean
>>  false
>>  
>> 
>>  
>> 
>> org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor
>> org.jboss.ejb.plugins.LogInterceptor
>> 
>> org.jboss.ejb.plugins.RunAsSecurityInterceptor
>> 
>> > transaction="Container">org.jboss.ejb.plugins.TxInterceptorCMT
>> > metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor
>> > transaction="Container">org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor
>> 
>> > transaction="Bean">org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor
>> > transaction="Bean">org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT
>> > metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor
>> 
>> org.jboss.resource.connectionmanager.CachedConnectionInterceptor
>>  
>>  
>> org.jboss.ejb.plugins.MessageDrivenInstancePool
>>  
>>  
>>  
>> 100
>>  
>>  
>>  message-driven-bean
>>  default
>>  org.jboss.ejb.plugins.jms.JMSContainerInvoker
>>  
>>  DefaultJMSProvider
>>  StdJMSPool
>>  
>>  1
>>  1
>>  
>>  10
>>  
>>  queue/DLQ
>>  10
>>  0
>>  
>>  
>>  
>> 
>>
>> 
>> When I used this configuration in my MessageDrivenbean, even though 
>I limited the JMSPool to be 1, it is not behaving the way I want. 
>It just flushes the onMessage call before my method ends. Am I doing 
>anything wrong. Could anybody suggest me please.
>> 
>> I'm running on jboss-3.2.1_tomcat-4.1.24, and JDK1.4.1 on windows 
>platform.
>> 
>> Thanks in advance,
>> Magesh
>
>
>
>---
>This SF.Net email is sponsored by: INetU
>Attention Web Developers & Consultants: Become An INetU Hosting Partner.
>Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
>INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>



**
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 com

RE: [JBoss-user] problem with Timer service in Jboss 3.2.1_tomcat4.1.24

2003-06-25 Thread Adrian Brock
Put it before the URLDeploymentScanner MBean and
this message will go away.

 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 
 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> [EMAIL PROTECTED]
> Sent: 25 June 2003 08:57
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] problem with Timer service in Jboss 
> 3.2.1_tomcat4.1.24
> 
> 
> hi all,
>   i am trying to use the Timer service in Jboss, but i am 
> encountering problems.
> 
> i have added following line
> 
>  name="DefaultDomain:service=timer"/>
> 
> in the server\default\conf\jboss-service.xml
> 
> when i start jboss, i got following exception at the end of 
> starting process
> 
> 10:45:44,733 ERROR [URLDeploymentScanner] MBeanException: 
> Exception in MBean ope
> ration 'checkIncompleteDeployments()'
> Cause: Incomplete Deployment listing:
> Packages waiting for a deployer:
>   
> Incompletely deployed packages:
>   
> MBeans waiting for classes:
>   
> MBeans waiting for other MBeans:
> [ObjectName: DefaultDomain:service=timer
>  state: CREATED
>  I Depend On:
>  Depends On Me: ]
> 
> 
> anyone can help me?
> 
> thanx in advance and regards
>   marco
> 
> 
> ---
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU 
> Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly 
> Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 





---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] creating virtual host on the fly

2003-06-25 Thread Scott M Stark
The May subscription update included a 3.2.1 draft of the book. The 
initial standalone version of the 3.2.1 book will be put out this week 
and will include the updated cmp2 docs.

--

Scott Stark
Chief Technology Officer
JBoss Group, LLC

Bavo De Ridder wrote:

Regarding the documentation. On the online store site, they mention
3.0.7 as the documented version. Is that correct? 

I am running 3.2 and am not really interested in buying something meant
for 3.0.7, no matter how low the price is.
B.


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] problem accessing an inner class from an MBean

2003-06-25 Thread George Icriverzi
The CService is packaged in a sar archive along with the 
jboss-service.xml descriptor.
The sar is put in a jar, and in the jar I have also other classes and 
descriptors.
The jar, application.xml and jboss-app.xml are packaged in an ear. 
Anyway the jboss-app.xml is empty, and application.xml mentions the jar :

   
   ca.jar
   
Why was this working with jboss-3.0.7 ?

Scott M Stark wrote:

Two class loaders are attempting to load the 
org.ca.ejb.services.CService class in the same application context. 
How is this service packaged and deployed?



---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] problem with Timer service in Jboss 3.2.1_tomcat4.1.24

2003-06-25 Thread Marco.Mistroni
hi all,
i am trying to use the Timer service in Jboss, but i am encountering problems.

i have added following line



in the server\default\conf\jboss-service.xml

when i start jboss, i got following exception at the end of starting process

10:45:44,733 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean ope
ration 'checkIncompleteDeployments()'
Cause: Incomplete Deployment listing:
Packages waiting for a deployer:
  
Incompletely deployed packages:
  
MBeans waiting for classes:
  
MBeans waiting for other MBeans:
[ObjectName: DefaultDomain:service=timer
 state: CREATED
 I Depend On:
 Depends On Me: ]


anyone can help me?

thanx in advance and regards
marco


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] problem with file lookup from session bean

2003-06-25 Thread Danny . Yates
Hi,

Since you're using the Sun FS JNDI implementation, you should
provide a PROVIDER_URL which points to the root of the disk-based
JNDI tree. Also, there's unlikely to be a java:comp/env environment
in this tree - you should just reference things using their file
path relative to the PROVIDER_URL you specified.

Is there a reason you are trying to load the class file from the
disk like this? You should really be using the ClassLoader, I would
guess.

Hope that helps,

Dan.

-- 
Danny Yates
 


-Original Message-
From: Arun [mailto:[EMAIL PROTECTED] 
Sent: 25 June 2003 08:26
To: '[EMAIL PROTECTED]'
Subject: [JBoss-user] problem with file lookup from session bean


Hi,
We are using jboss-3.2.1_tomcat-4.1.24 for deploying stateless
session bean(AcctManageEJB.java, home,interface and impl).From the 
session bean we are trying to lookup for a class file(myEIS.class,not a
datasource) 
using jndi lookup and later call a function within the class from the
session bean.

But we are getting error in the jboss server log,

=
 2003-06-25 12:24:24,529 INFO  [STDOUT] lookup failed
2003-06-25 12:24:24,530 ERROR [STDERR] javax.naming.NameNotFoundException:
home not bound
==

Please let me know what could be the problem.
The AcctManageEJB.java , ejb-jar.xml, jboss.xml , server.log files are given
below,

==
AcctmanageEJB.java

import java.math.BigDecimal;
import java.util.*;
import javax.ejb.*;
import javax.resource.cci.*;
import javax.resource.ResourceException;
import javax.naming.*;
import com.sun.connector.cciblackbox.*;

public class AcctManageEJB implements SessionBean {

private SessionContext sc;
private ConnectionFactory cf;


public void ejbCreate() throws CreateException {
}
 public void setSessionContext(SessionContext sc) {
this.sc = sc;
}

 public int getAcctAmt() {
int amount = -1;
try {
Hashtable env = new Hashtable(11);

env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.sun.jndi.fscontext.RefFSContextFactory");
Context ic = new InitialContext(env);
cf = (ConnectionFactory)
ic.lookup("java:comp/env/home/santosh/MyJCA
/zip/MyEIS.class");

} catch (NamingException ex) {

ex.printStackTrace();
}

 try {
Connection con = getCCIConnection();
Interaction ix = con.createInteraction();
CciInteractionSpec iSpec = new CciInteractionSpec();
iSpec.setSchema(null);
iSpec.setCatalog(null);
iSpec.setFunctionName("GETAMT");
RecordFactory rf = cf.getRecordFactory();
IndexedRecord iRec = rf.createIndexedRecord("InputRecord");
Record oRec = ix.execute(iSpec, iRec);
Iterator iterator = ((IndexedRecord)oRec).iterator();
while(iterator.hasNext()) {
Object obj = iterator.next();
if(obj instanceof Integer) {
amount = ((Integer)obj).intValue();
 }
 closeCCIConnection(con);
 }

  .
  .

===

===
ejb-jar.xml 



http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd";>


  AcctManageEJB
  
 
   A  connector  bean
   AcctManageEJB
   AcctManageHome
   AcctManage
   AcctManageEJB
   Stateless
   Container
 

  

  

  
AcctManageEJB
*
  
   
  AcctManageEJB
 *
  

  Required

  


===

===
jboss.xml



  

  AcctManageEJB
  AcctManage

  


=

==
server.log 

2003-06-25 12:23:48,331 INFO  [org.jboss.ejb.EJBDeployer] Deployed:
file:/home/santosh/Jboss/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/Myc
onnector.jar
2003-06-25 12:23:48,335 DEBUG
[org.jboss.management.j2ee.LocalJBossServerDomain] handleNotification:
javax.management.Notification[source=jboss.ejb:service=EJBDeployer,type=org.
jboss.deployment.SubDeployer.start,sequenceNumber=18,timeStamp=1056524028334
,message=null,[EMAIL PROTECTED] {
url=file:/home/santosh/Jboss/jboss-3.2.1_tomcat-4.1.24/server/default/deploy
/Myconnector.jar }
  deployer: [EMAIL PROTECTED]
  status: Starting
  state: START_DEPLOYER
  watch:
file:/home/santosh/Jboss/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/Myc
onnector.jar
  lastDeployed: 1056524024331
  lastModified: 1056524022000
  mbeans:
jboss.j2ee:jndiName=AcctManage,service=EJB state: Started
]
2003-06-25 12:23:48,522 DEBUG [org.jboss.management.j2ee.J2EEDeployedObject]
File:
file:/home/santosh/Jboss/jboss-3.2.1_tomcat-4.1.24/server/default/tmp/deploy
/server/default/deploy/Myconnector.jar/46.Myconnector.jar, descriptor:
META-INF/ejb-jar.xml

RE: [JBoss-user] Run a class onStartup

2003-06-25 Thread Danny . Yates
Sorry! You said that you didn't have "documentation about this
specification", so I figured that was what you were after...

-- 
Danny Yates
 


-Original Message-
From: Edgar Silva [mailto:[EMAIL PROTECTED] 
Sent: 24 June 2003 23:34
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Run a class onStartup


Danny...

I am talking about JBoss integration with JMX,
I just solve my trouble after some emails in the list,
And nothing in the sites or other source of documentations
available for me

However, everybody thanks by link

Great...

Edgar
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 24, 2003 11:57 AM
Subject: RE: [JBoss-user] Run a class onStartup


I guessed at:

http://java.sun.com/jmx

How much more public would you like?! ;-)

Rgds,

Dan.

--
Danny Yates



-Original Message-
From: Edgar Silva [mailto:[EMAIL PROTECTED]
Sent: 24 June 2003 15:36
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Run a class onStartup


Thanks Sebastien

You're right

The big problem is I don´t have documentation about
this Specification

I think that this subjects can be more public, more easy to find.

Regards...

Edgar
- Original Message -
From: "Astie, Sebastien" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 23, 2003 8:35 PM
Subject: RE: [JBoss-user] Run a class onStartup


Edgar,

When you create an MBean (Standard MBean), It must follow a naming
convention :

Let's call the implementation class Foo, its interface must be called
FooMBean.
It is part of the JMX spec.

I guess that your Mbean is not implemented with this convention.

Sebastien



-Original Message-
From: Edgar Silva [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 4:15 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Run a class onStartup


Astie...

I just created this class following theses steps:

1) I created a Interface with init(),start(), stop(),detroy() methods.
2) I created a Class called Ebony , which implements the interface above.
3) I made all implementations nested to this class works fine.
4) I made an special file called my_mbean.xml describing my special MBean
this way:





  



Where Ebony is my Class where the implementation was made.

5) I Deploy it

6) I get this error:

19:53:17,272 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean
ope
ration 'checkIncompleteDeployments()'
Cause: Incomplete Deployment listing:
Packages waiting for a deployer:
  
Incompletely deployed packages:
[EMAIL PROTECTED] {
url=file:/C:/jboss/server/defaul
t/deploy/ebony_service.xml }
  deployer: [EMAIL PROTECTED]
  status: Deployment FAILED reason: Class does not expose a management
interface
: com.argos.util.jmx.Ebony; - nested throwable:
(javax.management.NotCompliantMB
eanException: Class does not expose a management interface:
com.argos.util.jmx.E
bony)
  state: FAILED
  watch: file:/C:/jboss/server/default/deploy/ebony_service.xml
  lastDeployed: 1056408707513
  lastModified: 1056408708000
  mbeans:
]MBeans waiting for classes:
  
MBeans waiting for other MBeans:
  


7) I made the copy of Jar file to de Lib directory of my default
configuration Server...


Have other more simpler way that this above?

Any Idea?

If possible can you send a example of this declaration inside jboss
configuration file?


Regards

Edgar

- Original Message -
From: "Astie, Sebastien" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 23, 2003 6:30 PM
Subject: RE: [JBoss-user] Run a class onStartup


Hello Edgar,

The obvious way to start a process at startup is to wrap your class in an
MBean and declare the MBean in user-service.xml



-Original Message-
From: Edgar Silva [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 2:07 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Run a class onStartup


Hi Folks...

Can I put a simple .class to run in JBoss Startup?

For example, to start a SessionBean automaticlly...

Any Idea?

Regards

Edgar



---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




--

[JBoss-user] problem with file lookup from session bean

2003-06-25 Thread Arun
Hi,
We are using jboss-3.2.1_tomcat-4.1.24 for deploying stateless
session bean(AcctManageEJB.java, home,interface and impl).From the 
session bean we are trying to lookup for a class file(myEIS.class,not a
datasource) 
using jndi lookup and later call a function within the class from the
session bean.

But we are getting error in the jboss server log,

=
 2003-06-25 12:24:24,529 INFO  [STDOUT] lookup failed
2003-06-25 12:24:24,530 ERROR [STDERR] javax.naming.NameNotFoundException:
home not bound
==

Please let me know what could be the problem.
The AcctManageEJB.java , ejb-jar.xml, jboss.xml , server.log files are given
below,

==
AcctmanageEJB.java

import java.math.BigDecimal;
import java.util.*;
import javax.ejb.*;
import javax.resource.cci.*;
import javax.resource.ResourceException;
import javax.naming.*;
import com.sun.connector.cciblackbox.*;

public class AcctManageEJB implements SessionBean {

private SessionContext sc;
private ConnectionFactory cf;


public void ejbCreate() throws CreateException {
}
 public void setSessionContext(SessionContext sc) {
this.sc = sc;
}

 public int getAcctAmt() {
int amount = -1;
try {
Hashtable env = new Hashtable(11);

env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.sun.jndi.fscontext.RefFSContextFactory");
Context ic = new InitialContext(env);
cf = (ConnectionFactory)
ic.lookup("java:comp/env/home/santosh/MyJCA
/zip/MyEIS.class");

} catch (NamingException ex) {

ex.printStackTrace();
}

 try {
Connection con = getCCIConnection();
Interaction ix = con.createInteraction();
CciInteractionSpec iSpec = new CciInteractionSpec();
iSpec.setSchema(null);
iSpec.setCatalog(null);
iSpec.setFunctionName("GETAMT");
RecordFactory rf = cf.getRecordFactory();
IndexedRecord iRec = rf.createIndexedRecord("InputRecord");
Record oRec = ix.execute(iSpec, iRec);
Iterator iterator = ((IndexedRecord)oRec).iterator();
while(iterator.hasNext()) {
Object obj = iterator.next();
if(obj instanceof Integer) {
amount = ((Integer)obj).intValue();
 }
 closeCCIConnection(con);
 }

  .
  .

===

===
ejb-jar.xml 



http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd";>


  AcctManageEJB
  
 
   A  connector  bean
   AcctManageEJB
   AcctManageHome
   AcctManage
   AcctManageEJB
   Stateless
   Container
 

  

  

  
AcctManageEJB
*
  
   
  AcctManageEJB
 *
  

  Required

  


===

===
jboss.xml



  

  AcctManageEJB
  AcctManage

  


=

==
server.log 

2003-06-25 12:23:48,331 INFO  [org.jboss.ejb.EJBDeployer] Deployed:
file:/home/santosh/Jboss/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/Myc
onnector.jar
2003-06-25 12:23:48,335 DEBUG
[org.jboss.management.j2ee.LocalJBossServerDomain] handleNotification:
javax.management.Notification[source=jboss.ejb:service=EJBDeployer,type=org.
jboss.deployment.SubDeployer.start,sequenceNumber=18,timeStamp=1056524028334
,message=null,[EMAIL PROTECTED] {
url=file:/home/santosh/Jboss/jboss-3.2.1_tomcat-4.1.24/server/default/deploy
/Myconnector.jar }
  deployer: [EMAIL PROTECTED]
  status: Starting
  state: START_DEPLOYER
  watch:
file:/home/santosh/Jboss/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/Myc
onnector.jar
  lastDeployed: 1056524024331
  lastModified: 1056524022000
  mbeans:
jboss.j2ee:jndiName=AcctManage,service=EJB state: Started
]
2003-06-25 12:23:48,522 DEBUG [org.jboss.management.j2ee.J2EEDeployedObject]
File:
file:/home/santosh/Jboss/jboss-3.2.1_tomcat-4.1.24/server/default/tmp/deploy
/server/default/deploy/Myconnector.jar/46.Myconnector.jar, descriptor:
META-INF/ejb-jar.xml
2003-06-25 12:23:48,528 DEBUG [org.jboss.management.j2ee.J2EEDeployedObject]
File:
file:/home/santosh/Jboss/jboss-3.2.1_tomcat-4.1.24/server/default/tmp/deploy
/server/default/deploy/Myconnector.jar/46.Myconnector.jar, descriptor:
META-INF/jboss.xml
2003-06-25 12:23:48,533 DEBUG [org.jboss.management.j2ee.J2EEDeployedObject]
File:
file:/home/santosh/Jboss/jboss-3.2.1_tomcat-4.1.24/server/default/tmp/deploy
/server/default/deploy/Myconnector.jar/46.Myconnector.jar, descriptor:
META-INF/jaws.xml
2003-06-25 12:23:48,647 DEBUG [org.jboss.management.j2ee.J2EEDeployedObject]
File:
file:/home/santosh/Jboss/jboss-3.2.1_tomcat-4.1.24/server/default/tmp/deploy
/server/default/deploy

  1   2   >