[jboss-user] [EJB/JBoss] - Re: Problem accessing ear services from war

2006-10-23 Thread jaikiran
Have a look at: http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassCastExceptions specifically, the jmx-console approach mentioned over there View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980244#3980244 Reply to the post : http://www.jboss.com/index.html?module

[jboss-user] [EJB/JBoss] - Re: Problem accessing ear services from war

2006-10-24 Thread feric
Thanks! You were right, by following the link in that thread I solved my problem. I needed to modify the following config files like so: - default/deploy/ear-deployer.xml - Isolated => true - CallByValue => true - default/conf/jboss-service.xml - NamingService: CallByValue

[jboss-user] [EJB/JBoss] - Re: How to completely undeploy an EJB?

2007-08-01 Thread Dalzhim
I am looking for a solution for the same exact problem. It would be very appreciated if anyone could point us to some documentation on the subject or provide any insightful information. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069699#4069699 Reply to

[jboss-user] [EJB/JBoss] - Re: ejbTimeout called when Timer.cancel is called

2007-08-03 Thread icruz
Hello, I have the same problem with JBoss 4.2.1GA. I have a @Service EJB, in start() method I create a EJB timer, and it works. The first problem is when I shutdown jboss, in the stop() method of the Service EJB I call the method timer.cancel(), and it throws an exception with the message "tim

[jboss-user] [EJB/JBoss] - Re: schedule timer with hour, without date

2008-06-05 Thread beherenow
sorry, the examples are on attribute name ="DateFormat" and attribute name ="InitialStartDate" respectly thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4155929#4155929 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply

[jboss-user] [EJB/JBoss] - Re: schedule timer with hour, without date

2008-06-06 Thread beherenow
Well, I solved the problem. The solution was easy; simply add the dateformat: dd/MM/ HH:mm and a past date with the our that you want on initialstartdate 04/06/2008 11:30 When the server (Jboss) restarts, it starts to shodule at the next hour of the next day automatically View the original

[jboss-user] [EJB/JBoss] - Re: required remove method functionality and code

2008-06-08 Thread mallikarjun_nbsg
Hi, My scenario is to delete a record from the table. I am using client and calling session facade, from session facade calling CMP Home Interface remove method by passing "primary key" value. Bean ejbRemove method is also having the same "primary key" parameter. In the method body, do I nee

[jboss-user] [EJB/JBoss] - Re: required remove method functionality and code

2008-06-08 Thread mallikarjun_nbsg
when trying to remove a record from the DB. I am using findByPrimaryKey(id) method and then calling home.remove method, but while deployment I am getting the following error. Please help me out to remove the record from DB. 10:01:14,271 WARN [verifier] EJB spec violation: Bean : RCVlanHome

[jboss-user] [EJB/JBoss] - Re: EJB3 Error: java.rmi.MarshalException: Failed to commun

2008-06-26 Thread davidnez
When I throw the swing client from eclipse IDE it runs correctly, but when I throw the application from a jsp with the next call it fails: http://java.sun.com/products/autodl/j2se"; java-vm-args="-esa -Xnoclassgc -client" initial-heap-size="256m" max-heap-size="512m"/> View th

[jboss-user] [EJB/JBoss] - Re: EJB3 Error: java.rmi.MarshalException: Failed to commun

2008-06-26 Thread davidnez
Could anybody help me? It's very urgently. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4160815#4160815 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4160815 ___ jboss-user

[jboss-user] [EJB/JBoss] - Re: send jms message after tx commit

2008-06-26 Thread jaikiran
anonymous wrote : Perhaps the jms-sender code needs to be transaction-aware, and postpone the send until the tx commits? Is this possible? If you include the message sending functionality as part of the same transaction which saves the Person, then the "send" will only happen on a successful c

[jboss-user] [EJB/JBoss] - Re: send jms message after tx commit

2008-06-26 Thread justkeys
http://www.odi.ch/prog/jms-tx.php explains transactional jms quite well. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4160862#4160862 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4160862 _

[jboss-user] [EJB/JBoss] - Re: EJB3 Error: java.rmi.MarshalException: Failed to commun

2008-06-27 Thread davidnez
Now it's working correcty. I change the version of server to use, from jboss 5.0.0.Beta4 to jboss 4.2.2.GA. It feel that was a motify of configuration of the jboss. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161093#4161093 Reply to the post : http://www

[jboss-user] [EJB/JBoss] - Re: Can't replace container configuration for MDB

2008-07-16 Thread potdl
Hi All, Has anyone solved this problem. I`m having the exact same issue. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4164706#4164706 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4164706 _

[jboss-user] [EJB/JBoss] - Re: RMI invoke fail, ConcurrentModificationException was thr

2008-08-04 Thread funnyone
Sorry . the configeration in scheduler-service.xml is: true datang:name=SvrMon check NOW 5000 -1 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4168613#4168613 Reply to the post : http://www.jboss.com/index.html?module=bb&op

[jboss-user] [EJB/JBoss] - Re: RMI invoke fail, ConcurrentModificationException was thr

2008-08-04 Thread funnyone
Sorry again. the configeration in scheduler-service.xml is: | | | | true | datang:name=SvrMon | check | NOW | 3000 | -1 | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4168616#4168616 Reply to the post

[jboss-user] [EJB/JBoss] - Re: RMI invoke fail, ConcurrentModificationException was thr

2008-08-04 Thread funnyone
Something must be reminded of is: it's just happened incidentally, not always. I have already seen JBAS-1823 in the following url: https://jira.jboss.org/jira/browse/JBAS-1823 But the stack trace is not the same with mine. So i don't know is there any relations between them. Please help, Thank

[jboss-user] [EJB/JBoss] - Re: RMI invoke fail, ConcurrentModificationException was thr

2008-08-06 Thread funnyone
Anyone help me? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4168895#4168895 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4168895 ___ jboss-user mailing list jboss-user@list

[jboss-user] [EJB/JBoss] - Re: Are Stateless Session EJB Thread-safe

2007-12-10 Thread [EMAIL PROTECTED]
Stateless session beans do no have identity so every concurrent request will actually be directed to a different instance from the stateless session bean pool. The server dynamically manages the pool size to deal with the request load. View the original post : http://www.jboss.com/index.html?m

[jboss-user] [EJB/JBoss] - Re: Are Stateless Session EJB Thread-safe

2007-12-11 Thread mjrother
Ok...What about the case where I have retrieved a handle to a single instance of a StatelessSessionEJB up front. Then multiple client threads try to invoke methods on the bean. Do they go to multiple EJB's as you suggest? If I look at the MBean for the EJB I only see 2 beans created. View the

[jboss-user] [EJB/JBoss] - Re: Are Stateless Session EJB Thread-safe

2007-12-12 Thread [EMAIL PROTECTED]
I believe the multithreaded calls on the same handle will go to different bean instances. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112410#4112410 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112410

[jboss-user] [EJB/JBoss] - Re: Are Stateless Session EJB Thread-safe

2007-12-13 Thread trunikov
I think that it depends on internal implementation of an application server. As I understand a SLSB should not has internal state. In this case, in theory, one instance of the SLSB enough to serve all client's call. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic

[jboss-user] [EJB/JBoss] - Re: Are Stateless Session EJB Thread-safe

2007-12-14 Thread [EMAIL PROTECTED]
No. A bean is always guaranteed to be called by one thread at any given point. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112828#4112828 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112828

[jboss-user] [EJB/JBoss] - Re: How to deploy EJB in JBoss?

2007-12-16 Thread jaikiran
Create a jar file containing your EJBs and the ejb-jar.xml and place it in the deploy folder of JBoss. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113268#4113268 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113268

[jboss-user] [EJB/JBoss] - Re: Are Stateless Session EJB Thread-safe

2007-12-17 Thread trunikov
"[EMAIL PROTECTED]" wrote : No. A bean is always guaranteed to be called by one thread at any given point. May be I'm wrong about SLSB because I'm not strong with EJB, but I really don't see any sense in this guarantee. If code hasn't internal state it is thread safe, so any constraints are exce

[jboss-user] [EJB/JBoss] - Re: Are Stateless Session EJB Thread-safe

2007-12-17 Thread [EMAIL PROTECTED]
What you miss is that SLSBs *can* have internal state, e.g. a cached datasource handle that they re-use to serve incoming requests. Stateless is the interpretation from a client's point of view, so if a SLSB has 3 methods, a client should be able to call those methods on different bean instance

[jboss-user] [EJB/JBoss] - Re: Are Stateless Session EJB Thread-safe

2007-12-19 Thread khanna111
If there are more than one threads from a single client, can they access the same SLSB simultaneously? If so, what exception would be thrown? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114405#4114405 Reply to the post : http://www.jboss.com/index.

[jboss-user] [EJB/JBoss] - Re: Are Stateless Session EJB Thread-safe

2007-12-19 Thread [EMAIL PROTECTED]
The best thing to do is to make a testcase and see what happens. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114409#4114409 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114409 __

[jboss-user] [EJB/JBoss] - Re: Bug with whitespace in jboss-web.xml

2008-01-25 Thread javidjamae
I created JIRA issue JBAS-5173 (http://jira.jboss.org/jira/browse/JBAS-5173) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123511#4123511 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123511 __

[jboss-user] [EJB/JBoss] - Re: Anyone got EJBs deployed with Sybase ?

2008-01-29 Thread suresh.don
Hi For having the SybaseDS to be available in your Application server you need to deploy the sybase-ds.xml in the deploy folder of the JBoss. The sample sybase-ds.xml file will be available in the examples of jboss. examples/jca/sybase-ds.xml Regards, Suresh.A View the original post : http:/

[jboss-user] [EJB/JBoss] - Re: Can't replace container configuration for MDB

2008-02-06 Thread Legga
I found that it is possible to specify a dead-letter queue using annotations. For those wondering, they can be found here: org.jboss.resource.adapter.jms.inflow.JmsActivationSpec But the question of using deployment descriptors is still valid. Can someone help me figure out what's wrong with my

[jboss-user] [EJB/JBoss] - Re: Can't replace container configuration for MDB

2008-02-18 Thread Legga
It would be great if someone from the Team had a look at this. Could this be a bug? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130265#4130265 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130265 __

[jboss-user] [EJB/JBoss] - Re: glbal JNDI namespace confused. please help

2008-02-25 Thread jaikiran
anonymous wrote : +- [EMAIL PROTECTED] First, you need to fix the random number that is appended to the jndi-name of your EJB's local home. See this http://wiki.jboss.org/wiki/Wiki.jsp?page=WhyDoesTheLocalNameContainARandomNumber for details. Once you fix that, your JNDI tree might look like (

[jboss-user] [EJB/JBoss] - Re: glbal JNDI namespace confused. please help

2008-02-25 Thread gcameo
thank you that was very very helpful View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131886#4131886 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131886 ___ jboss-user mailing

[jboss-user] [EJB/JBoss] - Re: Can't replace container configuration for MDB

2008-02-27 Thread MarcoDavids
Hi Legga, Have you managed to get your MDB to listen to the remote queue? I am trying to do exactly the same thing but i get stuck when i deploy my MDB. It fails to connect to the remote queue. Any suggestions? Tx Marco View the original post : http://www.jboss.com/index.html?module=bb&op=v

[jboss-user] [EJB/JBoss] - Re: ejbTimeout called when Timer.cancel is called

2007-10-19 Thread axismundi
"icruz" wrote : Hello, | | ... and when I try to create the timer it fails with a "duplicate key" exception from MySQL driver | | Thanks in advance, | Isaac I wonder where in the JMX-console could you cancel the timer?? I was unable to find it. View the original post : http://www.j

[jboss-user] [EJB/JBoss] - Re: ConnectionManager is not releasing connections properly.

2007-11-15 Thread objviv
First of all, its poor design to do your SQL manipulations in a JSP. Second, are you calling commit() or rollback() on the transaction you are starting before trying to close resources? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105053#4105053 Reply to t

[jboss-user] [EJB/JBoss] - Re: Issues with EJB 3.0/ JBoss 4.0.5

2007-09-10 Thread jaikiran
Lets continue the discussion in your other post at http://www.jboss.com/index.html?module=bb&op=viewtopic&t=118240 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082611#4082611 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=r

[jboss-user] [EJB/JBoss] - Re: create and finder in one transaction

2007-09-14 Thread [EMAIL PROTECTED]
I located the problem. Probably, it is a JBoss Bug, but I was able to bypass it in our code. The problem was the following. Within one transaction we created a new entity in the OrderService: ... | orderEntity = EntityHomeHelper.getOrderHome().create(); // it is important that the madator

[jboss-user] [EJB/JBoss] - Re: Noob query problem :/ simple select clause.

2007-09-27 Thread [EMAIL PROTECTED]
http://java.sun.com/javaee/5/docs/api/ As per the API specification, the getSingleResult() method should throw a NoResultException if an entity cannot be found. You are simply seeing the original exception chained. To execute without throwing an exception you will need to use the anonymous wr

[jboss-user] [EJB/JBoss] - Re: Noob query problem :/ simple select clause.

2007-09-28 Thread Yacho
Yes - i figured that out after posting on Seam's forum. One more thing. Basically Seam always get's me chainded exceptions and its hard to know what's what. - is there a way to print only part of a stack trace wich is directly responsible for exception (all i know i can use is getMesage and get

[jboss-user] [EJB/JBoss] - Re: How to make ClassLoader find CharsetProvider

2007-10-10 Thread kouiskas
4 years later, this problem still exists. I had to proceed with the same very ugly hack. Will I spend time to file a bug request? Well, given that the JBoss team had 4 years to read this forum post that points to an obvious bug, I think I'll pass. Maybe I'll file it next year, it's not like any

[jboss-user] [EJB/JBoss] - Re: What ´s this? ->

2008-04-11 Thread FrankTheTank
Are the classes used by both still the same? The naming of the ear should not be an issue. The contents are important. The error looks to happen here: | at $Proxy120.notifyPaymentFailed(Unknown Source) | Did anything change here? And by that I do not only mean the method but the classes u

[jboss-user] [EJB/JBoss] - Re: Socket keep alive with client EJB

2008-04-29 Thread slimamar
The problem has been resolved : http://www.jboss.com/index.html?module=bb&op=viewtopic&t=134089 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147436#4147436 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147436 ___

[jboss-user] [EJB/JBoss] - Re: error accessing an EJB via JNDI

2008-05-02 Thread jaikiran
You did not post the actual exception stacktrace, which might give us an idea what the problem is. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4148367#4148367 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4148367 ___

[jboss-user] [EJB/JBoss] - Re: error accessing an EJB via JNDI

2008-05-02 Thread jaikiran
Ok, i read that other post of your's and looks like a classloading issue. anonymous wrote : i think it migth be caused by the fact my local or remote interfaces are in a jar in the libdir of portal, and also in my ear. Have you enabled classloading scoping for your EAR? You can do so by addin

[jboss-user] [EJB/JBoss] - Re: error accessing an EJB via JNDI

2008-05-03 Thread loucs
thanks a lot for the hint. I'm using reflection for now (getMethod, methode.Invoke) on the object i lookup but i will continue to investigate this cast exception, and so i'll look at your link and try this. thx again, -- Lucas Montes View the original post : http://www.jboss.com/index.html?

[jboss-user] [EJB/JBoss] - Re: error accessing an EJB via JNDI

2008-05-03 Thread loucs
i finally found where this strange acting comes from. it's actually the contrary of your suggestion. defining a loader repository is the cause of the problem, and when i don't define any, the cast of the object accessed by jndi in the local interface of my EJB is going perfectly well. the unifi

[jboss-user] [EJB/JBoss] - Re: error accessing an EJB via JNDI

2008-05-04 Thread loucs
so the problem is caused by the isolation of classloading in my ear. I tested by putting the attribute calledByValue in default/deploy/conf/jboss-service.xml and it worked, but it's not an acceptable solution as it has repercutions on all jndi lookups, and it increase a lot the ressource usage

[jboss-user] [EJB/JBoss] - Re: error accessing an EJB via JNDI

2008-05-06 Thread loucs
problem solved :) i've done a lookup forcing the marshalling for method invocation (called-by-value) by putting the full scheme in the lookup : | new InitialContext("jnp://localhost:1099/EJBJndiName"); | (my project manager wanted to keep the scoping of classloading for my ear so that was

[jboss-user] [EJB/JBoss] - Re: Atomic process in Local SSB -Urgent !!!!!!!

2008-05-19 Thread kahzoo
Can you switch to stateful session bean? If yes, you can try the following: 1. Have the stateful sesion bean class implements javax.ejb.SessionSynchronization interface. 2. Make the database operation transactional, so that in the case of JTA rollback the data is not updated in the DB. 2. With

[jboss-user] [EJB/JBoss] - Re: Atomic process in Local SSB -Urgent !!!!!!!

2008-05-19 Thread sankul123
"kahzoo" wrote : Can you switch to stateful session bean? | Yes I can , but after assessing there is not much hit on performance. One thing that worries me with Synchronization is that Synch is on whole bean and not the methods :). Now I need to have more than one Stateful session bean. Thi

[jboss-user] [EJB/JBoss] - Re: Atomic process in Local SSB -Urgent !!!!!!!

2008-05-19 Thread kahzoo
anonymous wrote : One thing that worries me with Synchronization is that Synch is on whole bean and not the methods :). | | Now I need to have more than one Stateful session bean. | I'm sorry, but I'm failing to understand what your concern is. Are you saying that you have to split the l

[jboss-user] [EJB/JBoss] - Re: Atomic process in Local SSB -Urgent !!!!!!!

2008-05-21 Thread sankul123
Thank you Khazoo , for your support. "kahzoo" wrote : | | With BMT, you need to do the transaction demarcation (begin, commit, rolback) yourself, but since your bean will know the outcome of the transaction, it can decide to write/do-not-write data in the file accordingly. | This is

[jboss-user] [EJB/JBoss] - Re: Doing persistence operations in worker threads

2008-05-25 Thread jaikiran
Please do not post the same question in multiple forums http://www.jboss.com/index.html?module=bb&op=viewtopic&t=136149 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4153215#4153215 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mod

[jboss-user] [EJB/JBoss] - Re: Doing persistence operations in worker threads

2008-05-25 Thread rituraj_tiwari
"jaikiran" wrote : Please do not post the same question in multiple forums http://www.jboss.com/index.html?module=bb&op=viewtopic&t=136149 Please do not post a response if you cannot be helpful. Given my problem, its unclear which camp it belongs in: Seam, Hibernate, JTA, Jboss EJB. Given that

[jboss-user] [EJB/JBoss] - Re: Doing persistence operations in worker threads

2008-05-25 Thread rituraj_tiwari
Folks, Here is a resolution to my problem: What fixed this for me was doing UserTransaction.begin() before creating the entity manager from the entity manager factory. If I create my entity manager and then start the user transaction, the entity manager is never able to associate with the start

[jboss-user] [EJB/JBoss] - Re: Doing persistence operations in worker threads

2008-05-25 Thread jaikiran
"rituraj_tiwari" wrote : | Please do not post a response if you cannot be helpful. | | Given my problem, its unclear which camp it belongs in: Seam, Hibernate, JTA, Jboss EJB. Given that there is a forum called EJB3.0 and another one called JBoss/EJB, I think my cross-posting to EJB3.0 i

[jboss-user] [EJB/JBoss] - Re: RMI EJB - Latency and the Atlantic...

2007-07-05 Thread [EMAIL PROTECTED]
You need to test for yourself. A simple thing to do is to use different invokers to access the same EJB and measure the time: - classic rmi invoker - pooled invoker - iiop invoker - http invoker My guess would be that the pooled and iiop invokers would be a bit faster because they can keep the

[jboss-user] [EJB/JBoss] - Re: ConnectionManager is not releasing connections properly.

2007-07-06 Thread relgames
Hi! Do you have news about this issue? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061404#4061404 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061404 ___ jboss-user maili

[jboss-user] [EJB/JBoss] - Re: Seam 2: EL and anonymous classes

2007-07-07 Thread thatrichard
Apologies. I've posted this to the wrong forum. Is there a way I can move it to JBoss Seam Users? Thanks Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061573#4061573 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=r

[jboss-user] [EJB/JBoss] - Re: Accessing data (variables) through XML descriptor?

2007-07-16 Thread waynebaylor
Perhaps you can use environment settings in your ejb-jar.xml? the tag is "" View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064686#4064686 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064686 _

[jboss-user] [EJB/JBoss] - Re: Accessing data (variables) through XML descriptor?

2007-07-16 Thread BogusException
Perfect! Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064785#4064785 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064785 ___ jboss-user mailing list jboss-user@lis

[jboss-user] [EJB/JBoss] - Re: EJB2.1:UserTransaction with CMT- possible bug?

2007-05-21 Thread waynebaylor
Why the call to tm.suspend()? By marking the method with TransactionAttributeType.NEVER you're stating that there will not be a transaction in progress when the method is called. Maybe try using TransactionAttributeType.NOT_SUPPORTED instead of NEVER. That way, if the caller has an associated

[jboss-user] [EJB/JBoss] - Re: EJB2.1:UserTransaction with CMT- possible bug?

2007-05-21 Thread mskonda
Thanks for your answer Wayne. Irrespective of the attrubute type, the use of UT is prohibited. So my point is - the use of UT in CMT is not allowed according to EJB Spec but looks like we have a way to get around this restriction (if I am not missing something obvious :) ) Whenever my method o

[jboss-user] [EJB/JBoss] - Re: EJB2.1:UserTransaction with CMT- possible bug?

2007-05-21 Thread waynebaylor
I just checked out the EJB3 Spec and found the following: Section 13.6.5 Handling of Methods that Run with "an unspecified transaction context" anonymous wrote : | The term ?an unspecified transaction context? is used in the EJB specification to refer to the cases in | which the EJB archit

[jboss-user] [EJB/JBoss] - Re: EJB2.1:UserTransaction with CMT- possible bug?

2007-05-22 Thread mskonda
anonymous wrote : The execution of a method of an enterprise bean with container-managed transaction demarcation | for which the value of the transaction attribute is NOT_SUPPORTED, NEVER, or SUPPORTS. However Wayne, I am able to use UT from a REQUIRED method too, which I think the above qu

[jboss-user] [EJB/JBoss] - Re: how change reploy Jar in Ear

2007-05-31 Thread jaikiran
I am not sure whether its possible to just redeploy the jar which belongs to the ear. You can however redeploy the entire ear. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050355#4050355 Reply to the post : http://www.jboss.com/index.html?module=bb&op=post

[jboss-user] [EJB/JBoss] - Re: Way to implement a removeAll() method?

2007-06-07 Thread khkachn
Can't you do something like: int deletedEntities = entityManager.createQuery("delete from Customer"); if you want to remove all records from a customer table? I have not tried this yet, but it works in Hibernate based on their documentation: http://www.hibernate.org/hib_docs/entitymanager/refer

[jboss-user] [EJB/JBoss] - Re: Way to implement a removeAll() method?

2007-06-08 Thread seansawyer
Except, unfortunately, that the project in question does not use Hibernate. It seems that there is no way to accomplish this through EJB: http://forum.java.sun.com/thread.jspa?threadID=5174100&messageID=9671593 The impetus for this post was that, with a sufficiently large number of entities, I e

[jboss-user] [EJB/JBoss] - Re: Stateless Session Bean pool MaximumSize with strictMaxim

2008-08-21 Thread rmurugs
in jboss.xml , add this and try out. ejbName org.jboss.ejb3.StrictMaxPool 5 6 View the original post :

[jboss-user] [EJB/JBoss] - Re: Stateless Session Bean pool MaximumSize with strictMaxim

2008-08-21 Thread ashley_betts70
Thanks for the response rmurugs. Unfortunately what you've suggested doesn't comply with the dtd: http://www.jboss.org/j2ee/dtd/jboss_4_2.dtd and won't build. Is there any other way I can enforce StrictMaxPool? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4

[jboss-user] [EJB/JBoss] - Re: Jboss hangs after running for a while

2008-09-17 Thread jaikiran
"imranpariyani" wrote : My application runs fine for a while but after that it just hangs | Follow the steps mentioned in http://wiki.jboss.org/wiki/StackTrace or http://wiki.jboss.org/wiki/GenerateAThreadDumpWithTheJMXConsole to get the thread dump. That will help you figure out what the

[jboss-user] [EJB/JBoss] - Re: Jboss hangs after running for a while

2008-09-18 Thread sciascia
hello, I had the same problem, for a "long" ejb method the transaction timed out after 5 minute. I fixed it changing the transaction timeout in the jboss-service.xml file | | 300 | ${jboss.server.data.dir}/tx-object-store | | I hope this helps francesco Vie

[jboss-user] [EJB/JBoss] - Re: Need help in naming the datasource files?

2008-09-23 Thread muddu_shafi
Please help me.It's urgent View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4178322#4178322 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4178322 ___ jboss-user mailing list

[jboss-user] [EJB/JBoss] - Re: Need help in naming the datasource files?

2008-09-23 Thread jaikiran
"muddu_shafi" wrote : Please help me, I am a newbie….. | | I have a class which is looking for JNDI in Jboss, I have deployed the jar file for this project in Jboss deploy directory. | Can any one explain me, where should I place my datasource xml file, i.e should I place it in

[jboss-user] [EJB/JBoss] - Re: Stateless Session Bean pool MaximumSize with strictMaxim

2008-09-23 Thread shreyasshinde
For EJB 3.0 you can edit the ejb3-interceptors-aop.xml file under /jboss_home/server/all/deploy directory. Edit the element for "Stateless Bean" with something like this @org.jboss.annotation.ejb.PoolClass (value=org.jboss.ejb3.StrictMaxPool.class, maxSize=1, timeout=1) I h

[jboss-user] [EJB/JBoss] - Re: Jboss hangs after running for a while

2008-10-01 Thread imranpariyani
thanks for the replies ... @jaikiran .. after analyzing the tread dump i was able to figure out where the problem was .. so thanks for the clue :) Regards Imran View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179870#4179870 Reply to the post : http://www.

[jboss-user] [EJB/JBoss] - Re: Specifying pool size for message driven beans

2008-10-14 Thread jaikiran
See if this helps https://www.jboss.org/jbossejb3/docs/reference/build/reference/en/html/session-bean-config.html View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4182158#4182158 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=repl

[jboss-user] [EJB/JBoss] - Re: Specifying pool size for message driven beans

2008-10-14 Thread JReifsnyder
Forgot to mention: we are posting messages on queues and we have the connection set for "slow consumer" by necessity. This is why we need more than 15 beans in play. Thanks, J View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4182131#4182131 Reply to the post :

[jboss-user] [EJB/JBoss] - Re: Composite Primary Key In a single table

2008-10-22 Thread prasanths
Hi, I have a table which is having composite primary key(id,name), Can anyone tell me how to provide composite primary key in ejb-jar.xml. For primary key we can give like this:-- http://java.sun.com/dtd/ejb-jar_2_0.dtd";> ProductEJB com.javasrc.licenseserver.ejb.product

[jboss-user] [EJB/JBoss] - Re: EJB Client hangs while performing context lookup

2009-02-19 Thread Anupkg4jboss
Hey Grim, Even am getting the same problem.But am xecuting in windows env. u got the real reason for this View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211412#4211412 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=

[jboss-user] [EJB/JBoss] - Re: SessionContext Not Injected in Scoped Class Loader

2009-02-27 Thread fljmayer
I have the same problem. Is there any solution? I debugged a little an saw that org.jboss.ejb3.AbstractPool#injectors.length == 0 means that InfinitePool(AbstractPool).create(line: 111) will not inject anything. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=

[jboss-user] [EJB/JBoss] - Re: how to turn on ejb transaction demarcation?

2009-03-04 Thread mcandelo
I know little (nothing) about seam, but with stateless beans I've had very little success annotating private methods with @TransactionAttribute. I believe those annotations only work when the method is called from outside the EJB. In this case, it's probably just best for you to inject the Us

[jboss-user] [EJB/JBoss] - Re: how to turn on ejb transaction demarcation?

2009-03-05 Thread kannattaa
thank you! i've tried @TransactionAttribute outside the bean and it's helped. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4215260#4215260 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4215260

[jboss-user] [EJB/JBoss] - Re: how to turn on ejb transaction demarcation?

2009-03-05 Thread mcandelo
One other thing I forgot was the @TransactionManagement and @TransactionAttribute, when injecting the UserTransaction for the thread, I set these items on the bean like so: | @TransactionManagement(TransactionManagementType.BEAN) | @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTE

[jboss-user] [EJB/JBoss] - Re: EJB Timer Service issue - Executes multiple times

2009-03-05 Thread kanag_k
Also this is what get printed in the logs continuously 2009-03-05 10:29:16,162 DEBUG [org.jboss.ejb.txtimer.TimerImpl] Timer was not registered with Tx, resetting state: [id=1236266846001,target=[target=jboss.j2ee:service=EJB3,ear=InventoryServices.ear,jar=InventoryOperationsEJB.jar,name=HealthC

[jboss-user] [EJB/JBoss] - Re: EJB Timer Service issue - Executes multiple times

2009-03-05 Thread jaikiran
anonymous wrote : the timer is created but the timeout method is executed multiple times. It waits for the specified duration(1 min) and again executes multiple times. is there any specific reason. That's because, you configured the timer to do so :) anonymous wrote : ctx.getTimerService().cr

[jboss-user] [EJB/JBoss] - Re: Socket Timeout with EJB2 on JBoss v4.0.5GA?

2009-03-11 Thread klester
My previous post may have been a little confusing, so a quick clarification: We are using JBoss 4.0.5GA. Using EJB3 with JBoss 4.0.5GA, you can indeed time out long ejb method calls using the connector as described in my previous post. We would like to implement the same timeout mechanism for

[jboss-user] [EJB/JBoss] - Re: Jboss modifies sql.date object in serialisation process

2009-03-12 Thread jaikiran
Very very wild guess - was there any Day Light Saving time in 1968? If yes, then is the JDK on the server patched with the DST changes? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217538#4217538 Reply to the post : http://www.jboss.org/index.html?module=b

[jboss-user] [EJB/JBoss] - Re: Jboss modifies sql.date object in serialisation process

2009-03-12 Thread heinrich
Hmm, nearly. I fixed it. The jdk which is used by the jboss is missing the file jre/lib/tzmapping Normally this should have been installed by the java installer. Happens only on windows. Hrmpf View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217564#4217564 Repl

[jboss-user] [EJB/JBoss] - Re: IllegalAccessError when trying to implement custom log4j

2008-11-06 Thread tomstrummer
-- Bump I'm seeing this same problem; albeit for a slightly different reason. I'm using SLF4J-log4j, which seems like it's attempting to set the priority. Here's the relevant stacktrace bits: | java.lang.IllegalAccessError: tried to access field org.apache.log4j.Priority.level from |

[jboss-user] [EJB/JBoss] - Re: Problems in CMP Deployment with JBoss 3.2.6

2009-01-12 Thread sachin1506
Hello Sir... I am facing the same issue ... and even i m porting my code from weblogic to jboss can you tell me that what changes i need to make in ejb-jar.xml ThnQ sir ... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4200963#4200963 Reply to the post

[jboss-user] [EJB/JBoss] - Re: Problems in CMP Deployment with JBoss 3.2.6

2009-01-12 Thread dheerya
Hello... Have a look at the below URL- http://www.onjava.com/pub/a/onjava/2005/03/09/ejb-migration.html This has all the details to create/modify the required xml (ejb-jar.xml, jboss.xml etc) files for weblogic to jboss migration. View the original post : http://www.jboss.com/index.html?modul

[jboss-user] [EJB/JBoss] - Re: Problems in CMP Deployment with JBoss 3.2.6

2009-01-12 Thread sachin1506
Hey but this link doesn't talk about any changes in ejb-jar.xml and i have problem with element here i m writing my ejb-ql element | | i got the error saying that ... encountered select while xpecting abs sqrt ... View the original post : http://www.jboss.com/index.html?module

[jboss-user] [EJB/JBoss] - Re: Error compiling EJB-QL statement -- Jboss 4.0.0

2009-01-12 Thread sachin1506
Hello Sir ... May i know the solution as i am also stuck on the same problem View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4201205#4201205 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4201205

[jboss-user] [EJB/JBoss] - Re: Too many open files exception JBOSS 4.2

2009-01-15 Thread asazhin
Georges, Could you explain me how you solved "CLOSE_WAIT" problem by jbossnative? We're using Apache(front-end)+JBoss(RedHat) too and we have "CLOSE_WAIT" problem on AJP connector too. As result "CLOSE_WAIT" problem causes "too many open files". Andrew View the original post : http://www.jb

[jboss-user] [EJB/JBoss] - Re: Business Interface Pattern + Generics == EJB Spec Violat

2009-07-05 Thread jaikiran
Consider this: public interface AddressBeanBusinessInterface | { | ... | public void delete( final Long key ) throws E, UnknownIdDeviation; | | public interface AddressBeanRemote extends EJBObject, AddressBeanBusinessInterface | { | // empty - see the business interface f

[jboss-user] [EJB/JBoss] - Re: Socket Timeout with EJB2 on JBoss v4.0.5GA?

2009-08-19 Thread klester
Sure did [sorry for the late response]. I posted a similar question in the JBoss Remoting Forum, and someone pointed me toward using the JBoss Unified Invoker to accomplish this. The thread in the JBoss Remoting Forum is http://www.jboss.org/index.html?module=bb&op=viewtopic&t=152317. At a hi

[jboss-user] [EJB/JBoss] - Re: Socket Timeout with EJB2 on JBoss v4.0.5GA?

2009-08-21 Thread cdsanchez
Hello klester, I am newbie at jboss forums and am trying to use your guide to configure the timeout in my Jboss server. I've modified jboss-service.xml including the Mbeans UnifiedInvoker and Connector; I've applied changes too in the standardjboss.xml adding the invoker-proxy-binding and repl

<    3   4   5   6   7   8   9   10   11   12   >