[Beginners Corner] - JBoss 5.1 j2ee client jars and classloader
by ms-suxx
Hi, guys!
The thing is that with my app i cannot rely on EJB3 client container because of two issues:
1. AFAIK, the @EJB annotation fails to inject EJB proxies into dynamic context. It works only with static one(@EJB private static MyServiceBean ...).
2. The container is too-much-clever for my app, since the app should connect to server not before but after it is started, UI is shown and user made choice which server to connect to.
I have a j2ee standalone client, developed under JBoss 5.0.1. It was successfully used without any client containers (through SecurityClientFactory.getSecurityClient().login(), InitialContext().lookup(...), etc).
When migrated from Jboss 5.0.1 to 5.1.0 i've discovered, that now the client, even re-compiled against v5.1.0, fails to start with the same set of jars(taken from 5.1.0, of course) with meaningless error "ClassCastException: javax.naming.Reference cannot be cast to cool.ib.service.UserService".
But the client starts successfully when i include the whole set of server jars into it's classpath. It seems, some more jars need to be added into classpath.
So, the question is: what are the jars i need to include into the JBoss 5.1 j2ee client classpath to start it without using the EJB3 client container?
Or even better... as i understand, EJB3 client container loads client app and all the required classes directly from server. So, how to utilize the JBoss client classloader(which provides server classes to the client container) in my app?
Thanks!
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4246157#4246157
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4246157
16 years, 11 months
[JBoss jBPM] - Re: JTA transaction error inside jboss portal
by lpiccoli
i have tried he following with true then false and there is no difference.
|
| <service name="persistence">
| <factory>
| <bean class="org.jbpm.persistence.jta.JtaDbPersistenceServiceFactory">
| <field name="isTransactionEnabled"><false /></field>
| </bean>
| </factory>
| </service>
|
|
Both are producing the same transaction error.
| Cause: org.jboss.portal.portlet.PortletInvokerException: java.lang.IllegalStateException: BaseTransaction.checkTransactionState - [com.arjuna.ats.internal.jta.transaction.arjunacore.alreadyassociated] [com.arjuna.ats.internal.jta.transaction.arjunacore.alreadyassociated] thread is already associated with a transaction!
| Message: java.lang.IllegalStateException: BaseTransaction.checkTransactionState - [com.arjuna.ats.internal.jta.transaction.arjunacore.alreadyassociated] [com.arjuna.ats.internal.jta.transaction.arjunacore.alreadyassociated] thread is already associated with a transaction!
| StackTrace:
|
any ideas with what i have stuffed up would be most appreciated.
-lp
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4246156#4246156
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4246156
16 years, 11 months
[JBoss Messaging] - Re: Making Cluster jBoss Messaging Scalable
by sjunejo
Thanks very much.
So it means the jBoss messaging is by-default scalable???
We don't need to apply different settings to reroute messages to other nodes if local queue is not present and jboss messaging will do it auto matically for us.
I have two servers in a cluster both have their own distributed queues. Let say If I delete my request and response queue from one of the node message will be redirected automatically to other node?... I dont have to set any clustered PostOffice or anything???
By the way how to delete a queue once deployed??....Lately I was jut playing around and try to change the 'Clustered' attribute of a deployed and started queue to true and it gives me exception that (something like that)
'Queue property Cluster = true can not be applied as the same queue has already been deployed as Cluster = false. Delete the queue first and then create again.'
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4246152#4246152
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4246152
16 years, 11 months