Re: [jboss-user] [jBPM] - Variables types / String too large for column
by Charles Aznavour
Charles Aznavour [http://community.jboss.org/people/charles_a] replied to the discussion
"Variables types / String too large for column"
To view the discussion, visit: http://community.jboss.org/message/556473#556473
--------------------------------------------------------------
Hi Huisheng,
looks even better. But with this (and Michaels) way, we´re unable to use the String value of the variable in expression language. For example, if we store a lot of users comma separated in this variable and want them to receive a mail, we get a ClassCastException as char[] is not a subclass of String.
Probably we´ll stick with our container object, because here we can simple use the getter to receive the String in expression language, i. e. ${myvar.value}. Not nice, but works.
Huisheng, any ideas how to tweak jbpm to get the char[] working in EL like a regular String variable?
Cheers,
Charles
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/556473#556473]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 8 months
[EJB 3.0 Development] - Looking up an HASingletonSupport from EJB Session Bean
by akhil achuthan
akhil achuthan [http://community.jboss.org/people/akhilachuthan] created the discussion
"Looking up an HASingletonSupport from EJB Session Bean"
To view the discussion, visit: http://community.jboss.org/message/556440#556440
--------------------------------------------------------------
I have a class that extends HASingletonSupport. I use the startSingleton() to initiate some services as part of my application. But I am in need of calling some other apis within my HASingletonSupport class on the run from my session bean classes. How do i lookup for my HASingleton...
My bean class just extends HASingletonSupport. I havnt implelement any interface.
My HASingleton class is named InitBean and it has a method myMBeanMethod() with no arguments and no return value, that has to be invoked from my session bean.
I actually tied the following piece of code, but did not succeed...
ObjectName mBeanObject = new ObjectName("InitBean:class=com.test.akhil.init.ejb.InitBean");
Object[] valObj = {};
String[] typeObj = {};
MBeanServer server = MBeanServerLocator.locateJBoss();
server.invoke(mBeanObject, "myMBeanMethod", valObj, typeObj);
even tried
ObjectName mBeanObject = new ObjectName("jboss.management.local:J2EEServer=Local,j2eeType=ServiceModule,name=system.sar,class=com.test.akhil.init.ejb.InitBean");
but no use..
Any help.
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/556440#556440]
Start a new discussion in EJB 3.0 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 8 months