[JBoss ESB Development] - Re: Should i Choose JBOSSESB?????
by Raghav VIswanathan
Raghav VIswanathan [https://community.jboss.org/people/raghav.vis] created the discussion
"Re: Should i Choose JBOSSESB?????"
To view the discussion, visit: https://community.jboss.org/message/725282#725282
--------------------------------------------------------------
Hello Rajesh, Hello Marq,
Appologies if I have got the name wrong.
If you want a general suggestion about a better EAI or a tool for creating good components for realizing SOA, JBOSS ESB is a good choice. I personally feel JBOSS ESB to be really flexible. I have just finished replacing an exisiting EAI(VITRIA) with JBOSS ESB for one of our client. We have used JBOSS ESB. excepting for one Issue , the development and the deploiyment was smooth.
1. Runs on an amazing spplication server platform JBOSS: Why ? If you dont need any of their services just remove them off or unplug them . Causes a relatively low memory foot print.
2. I also found that there was a decrease in the overall time taken for data processing by atleast 20-30% (in terms of time taken) (Data from Production) (Financial Transaction where data loss is considered next to Sin)
- considering the fact that every day our Batch jobs creates atleast a million + transactions within few hours. JBOSS handled this like charm.
- Very High Concurrent Transaction rate : Sorry - Dont have the numbers here.
3. It of course is scalable. scalable by infrastructure and scalable by data capacity.
4. Data Intensiveness depends on how well you can handle the design. Probably Jai, Tom or Mark would be able to answer your question more precisely.
Hope this Helps
Best Regards,
Raghav.V
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/725282#725282]
Start a new discussion in JBoss ESB Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 6 months
[JBoss AS 7 Development] - EJB lookup during server shutdown
by Maycon Oliveira
Maycon Oliveira [https://community.jboss.org/people/FuinhaAzul] created the discussion
"EJB lookup during server shutdown"
To view the discussion, visit: https://community.jboss.org/message/723832#723832
--------------------------------------------------------------
Guys,
I´m needing call a EJB on AS7 server shutdown, but when I try, I get the exception "No EJB client context is available" .
The resumed code :
@Stateless
@LocalBean
public class FirstSessionBean {
@EJB
private AnySession anySession;
public void testMethod() throws Exception {
//wait a little to execute server shutdown (CTRL + C on the console)
Thread.sleep(10000);
// if i try to shutdown the server, here i get "No EJB client context is available" ;
anySession.callSomething();
System.out.println("PARTE 2 ");
}
}
The full Stack (of the real code):
16:09:42,350 ERROR [stderr] java.lang.IllegalStateException: No EJB client context is available
16:09:42,353 ERROR [stderr] at org.jboss.ejb.client.EJBClientContext.requireCurrent(EJBClientContext.java:235)
16:09:42,355 ERROR [stderr] at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:120)
16:09:42,358 ERROR [stderr] at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:104)
16:09:42,360 ERROR [stderr] at $Proxy59.carregaCce(Unknown Source)
16:09:42,363 ERROR [stderr] at com.ed.ejb.timers.nfe.TesteAssync.a(TesteAssync.java:32)
16:09:42,364 ERROR [stderr] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
16:09:42,366 ERROR [stderr] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
16:09:42,368 ERROR [stderr] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
16:09:42,369 ERROR [stderr] at java.lang.reflect.Method.invoke(Method.java:597)
16:09:42,371 ERROR [stderr] at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72)
16:09:42,372 ERROR [stderr] at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
16:09:42,374 ERROR [stderr] at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
16:09:42,375 ERROR [stderr] at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)
16:09:42,377 ERROR [stderr] at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
16:09:42,378 ERROR [stderr] at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)
16:09:42,379 ERROR [stderr] at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
16:09:42,381 ERROR [stderr] at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)
16:09:42,382 ERROR [stderr] at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
16:09:42,383 ERROR [stderr] at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
16:09:42,385 ERROR [stderr] at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)
16:09:42,386 ERROR [stderr] at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
16:09:42,389 ERROR [stderr] at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)
16:09:42,391 ERROR [stderr] at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
16:09:42,392 ERROR [stderr] at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:228)
16:09:42,394 ERROR [stderr] at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:304)
16:09:42,395 ERROR [stderr] at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:190)
16:09:42,396 ERROR [stderr] at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
16:09:42,397 ERROR [stderr] at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
16:09:42,399 ERROR [stderr] at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
16:09:42,400 ERROR [stderr] at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)
16:09:42,402 ERROR [stderr] at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
16:09:42,403 ERROR [stderr] at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
16:09:42,405 ERROR [stderr] at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
16:09:42,406 ERROR [stderr] at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:43)
16:09:42,408 ERROR [stderr] at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
16:09:42,409 ERROR [stderr] at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
16:09:42,411 ERROR [stderr] at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
16:09:42,412 ERROR [stderr] at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
16:09:42,413 ERROR [stderr] at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)
16:09:42,415 ERROR [stderr] at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:173)
16:09:42,416 ERROR [stderr] at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
16:09:42,418 ERROR [stderr] at org.jboss.as.ejb3.component.interceptors.AsyncVoidInterceptorFactory$Task.run(AsyncVoidInterceptorFactory.java:75)
16:09:42,419 ERROR [stderr] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
16:09:42,420 ERROR [stderr] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
16:09:42,422 ERROR [stderr] at java.lang.Thread.run(Thread.java:662)
16:09:42,423 ERROR [stderr] at org.jboss.threads.JBossThread.run(JBossThread.java:122)
Manual lookup and lookup on the @PreDestroy method doesnt work either.
Any Ideias? How can I do something like this?
Thanks!
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/723832#723832]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 6 months
[EJB3 Development] - Ejb3 MBeans External Configuration ?
by Christian Leclerc
Christian Leclerc [https://community.jboss.org/people/christian.leclerc] created the discussion
"Ejb3 MBeans External Configuration ?"
To view the discussion, visit: https://community.jboss.org/message/647985#647985
--------------------------------------------------------------
Hello guy's, im kind of new here so first of all I want to thank you for the any support that you will give to me.
Here is my question now, iv'e bean searching since 2 day's on and off ..
I am an Jboss as 6 guy's and now im migrate to Jboss as 7.
I've got a MBeans that is called
something-service.xml
Here is the detail :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE server PUBLIC "-//JBoss//DTD MBean Service 4.0//EN"
"http://www.jboss.org/j2ee/dtd/jboss-service_4_0.dtd">
<server>
<mbean code="org.jboss.naming.JNDIBindingServiceMgr" name="ca.s3s.identitygardens.config:service=identitygardens-config">
<attribute name="BindingsConfig" serialDataType="jbxb">
<jndi:bindings xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jndi="urn:jboss:jndi-binding-service:1.0"
xs:schemaLocation="urn:jboss:jndi-binding-service:1.0 resource:jndi-binding-service_1_0.xsd">
<jndi:binding name="conf/x500Properties">
<java:properties xmlns:java="urn:jboss:java-properties"
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
xs:schemaLocation="urn:jboss:java-properties resource:java-properties_1_0.xsd">
<java:property><java:key>Item A</java:key> <java:value>value A</java:value></java:property>
<java:property><java:key>Item b</java:key><java:value>Value b</java:value></java:property>
<java:property><java:key>Item C</java:key><java:value>Value C</java:value></java:property>
</java:properties>
</jndi:binding>
</jndi:bindings>
</attribute>
<depends>jboss:service=Naming</depends>
</mbean>
</server>
And in my ejb I inject the value with :
@Resource(mappedName = "conf/x500Properties")
Everything work's great and now I wonder how to do this in JBoss AS 7
It was very great because this way I was able to make the configuration out of my ear file.
The value is put in jndi at startup and the ejb go fetch this value by injection ..
I know that I can possibly put a string in JNDI this way :
https://community.jboss.org/message/615368#615368 https://community.jboss.org/message/615368
But did I can make a complete properties file object on this way ?
Thanks for any reply.
Christian Leclerc.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/647985#647985]
Start a new discussion in EJB3 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 6 months