Weblogic and JBoss-like "automatic method calls"
As I understand, JBoss has a nice feature where you can tell the
container to call a class (or method?) just before a call to a bean
method is executed.
Example:
You have a bean called FooBean that you want to execute method bar()
on. Then you have a class Authenticate that handles, TADA,
authentication. You call fooBean.bar() (yes, I know you first lookup
the interfaces and so on but this is for simplicity... ;) ). In JBoss
you can tell the container to make a call to class Authenticate before
fooBean.bar() executes. This is really nice.
Does anyone know if Weblogic 6.1/7.0 has this feature?
Check the interceptor example at http://dima.dhs.org/misc/ejbproxy.jsp
"Weasel" <[email protected]> wrote in message
news:[email protected]..
As I understand, JBoss has a nice feature where you can tell the
container to call a class (or method?) just before a call to a bean
method is executed.
Similar Messages
-
Load balancing and bean-to-bean method calls
Hello!
Let's assume the following scenario: a clustered environment, and a
stateless session bean A accessible by clients. The session bean A then
makes further calls to other session/entity bean B. Does WebLogic 5.10 do
load balancing in here? Can we assume that B is always running in the same
cluster member as A? If not, I assume, that there is quite a bit of
performance penalty for making the RMI call from B to A?
Cheers,
petteri
Petteri Laamanen wrote:
> Hello!
>
> Let's assume the following scenario: a clustered environment, and a
> stateless session bean A accessible by clients. The session bean A then
> makes further calls to other session/entity bean B. Does WebLogic 5.10 do
> load balancing in here? Can we assume that B is always running in the same
> cluster member as A?
You mean same server. Yes.
> If not, I assume, that there is quite a bit of
> performance penalty for making the RMI call from B to A?
>
> Cheers,
>
> petteri
-
I'm trying to migrate an app to WEbsphere 6 from jboss 4. I can't get the MDB's to work. It seems like although there was only two blocks of XML to add in the jbossmq-destinations-service.xml, one for my topic and one for my queue, there is all sorts of things you must do in weblogic. all of the websphere documentation has you using the websphere GUI tools, however this app uses the maven directory structure and will continue to do so as the app needs to support both weblogic and jboss in the future. So i guess this is not truely a migration but a way to ensure compatibility.
anyone who has done this, any tips would be appreciated.Chris,
IBM changed the JTA/JTA packaging between 5.0 and 5.1. The source is provided for JTSExternalTransactionController_5_0 in the source.jar. You will need to create a custom 5.1 version of this class for your usage.
In the 5.0 class you will see:
protected final static String TX_MANAGER_FACTORY_CLASS =
"com.ibm.ejs.jts.jta.TransactionManagerFactory";It is this value that need to change for the new packages in 5.1 and 6.0. Here is the subclass we provided in 9.0.4 that you can use to solve your problem.
public class JTSExternalTransactionController_5_1 extends JTSExternalTransactionController_5_0 {
// Overwrite super value in the scope of this class, i.e JTSExternalTransactionController_5_1.TX_MANAGER_FACTORY_CLASS
// Reference to the same static attribute returns the value respected to the scope of the class that the calling method is in.
protected final static String TX_MANAGER_FACTORY_CLASS =
"com.ibm.ws.Transaction.TransactionManagerFactory";
* INTERNAL: overwrite super method to use different tx manager.
protected String getTxManagerFactoryClassName() {
return this.TX_MANAGER_FACTORY_CLASS;
}Doug -
Dear all,
I am writing a program for which I would like to enable parallel processing. As the programm is designed in classes and methods, I thought it would be nice and consistent to use methods calls instead of asynchronous function calls. I found a class for remote method calls but this does not appear asynchronous.
Any idea if it is possible?
Thanks
ChristianHi,
Perhaps a way to accomplish this is to create an OO transaction in SE93. Take a look at http://help.sap.com/saphelp_nw04/helpdata/en/a8/485d60cf4611d4b2e90050dadfb92b/frameset.htm for further details.
You can then issue the statement CALL TRANSACTION <tcode> UPDATE 'A' (for asynchronous), or as suggested in one of previous discussions, use
CALL FUNCTION 'ABAP4_CALL_TRANSACTION' STARTING NEW TASK 'TEST'
DESTINATION 'NONE'
EXPORTING
TCODE = <your_oo_tcode>
EXCEPTIONS
COMMUNICATION_FAILURE = 1 MESSAGE MSG_TEXT
SYSTEM_FAILURE = 2 MESSAGE MSG_TEXT.
You can also look at ABAP Object Services, especially Transaction Service, at http://help.sap.com/saphelp_nw04/helpdata/en/ab/9d0a3ad259cd58e10000000a11402f/frameset.htm.
Hope this helps. -
I have a 3GS and would like to know how to auomatically send a call to voicemail when it starts ringing in my old phone I could put them on the reject list but cannot located that here is it possible? If so how?
Press the on/off button once to silence the call and twice to reject it and send to voicemail.
-
Method calls in switch and for statements
I have 2 questions concerning method calls in switch and for statements. Consider these two chunks of code:
1)
switch (foo.getIntegerValue()){
case 1:
case 2:
}My question is, is getIntegerValue() being called for every case statement (since it has to compare with each case) or is the method called only once?
2)
for (Foo bla : xyz.compileFoos()) {
}Is compileFoos called once or on every iteration?
I assume it gets called only once but I would like to be sure. The reason I ask is of course to avoid multiple method calls.
any help is appreciatedsdb2 wrote:
I have 2 questions concerning method calls in switch and for statements. Consider these two chunks of code:
1)
switch (foo.getIntegerValue()){
case 1:
case 2:
}My question is, is getIntegerValue() being called for every case statement (since it has to compare with each case) or is the method called only once?
Once, and the value returned compared to each "case" in turn.
2)
for (Foo bla : xyz.compileFoos()) {
}Is compileFoos called once or on every iteration?
I assume it gets called only once but I would like to be sure. The reason I ask is of course to avoid multiple method calls.
any help is appreciatedAlso once, and the returned list/set/array is iterated over. -
Weblogic.jar 9.2 and jboss
why when i put weblogic.jar in the jboss classpath or in my .war classpath = web-inf/lib all of its classes are class not found exception
is there a problem with this jar being inside jboss
if i take the same jar and run my application on eclipse everything works fine
but when i debug this problem and try to loader classes, they are not found
its like it being ignored and not loaded like the rest of my jars in the classpath.
is this got anything to do with security?
Edited by: user8709596 on Sep 6, 2009 4:23 AMfound a fix to this problem
weblogic.jar is a standalone jar
remove all javax folder from this jar and this solves the problem
and jboss will load the jar successfuly -
My 4s Goes to speakerphone automatically while calling and does not go back to normal even after disabling speaker phone button
AlsO sometimes I. Cannot hear anything in normal speaker even though the call Is going through and has been re ieved on the other end, I have to enable speaker and then disable it to route audio to normal speakersI think that it is something wrong with kernel and graphic drivers but i'm not able to solve it from the beginning of using of Arch by me.
I'm not so sure this issue is software-related only because in my case it seems the laptop screen enters power-saving mode (10-min timeout) on its own without any events logged (as shown by dmesg) so my next thought was OK, I'm going to get rid of this issue disabling the screen power-saving timeout in the BIOS and set it to never power down or something like that and from then on managing power mode manually; ie: when I want to power down I will just use systemctl suspend/hibernate which work fine ... problem is: there are no related options in my BIOS for such timeout.
The only timeouts I have are in /etc/systemd/logind.conf set to 30min (#IdleActionSec) (commented) by default so these are not in effect because the screens goes blank after 10m which is less than the (default) 30m in logind. Maybe setting loggind to 9m (un-commented) to catch the event before the machine-default one ?
IdleActionSec=9min
IdleAction=suspend
Will check it and report back. -
I have 3 different apple devices (iPod Touch, iPad and MacBook Pro) using the same Apple ID and would like to use FaceTime to call from one device to the other. Do I need a different Apple ID for one of the devices in order to do that?
I found this on a related question in the Community:
Yes you can do it. I do it with 4 different devices all using the same Apple ID.
You need to associate different email addresses for each device in order to use those email addresses as the "contact at" email address. The reason the calls are dropping on you now is that what you are trying to do is like calling yourself on your own phone.
You can also create new iCloud accounts on each device simply to use for FaceTime, but I'm guessing that the users of the other two devices have their own email addresses which will make this work for you quite easily.
Take a look at this for more information.
The seems to go against what Gail said and the issue you raised about buying dup apps was my first concern. If this other post is correct, how to I set a different "contact at" in the iPod Touch?
Goose -
Hello, I have $15 credit on my itunes account and would like to send a gift (music) to my girlfriend, but everytime that I click on "send a gift" is asking me "a method of payment is required to buy an itunes gift". I want to use my credit, not my card. Please help
You cannot use iTunes Gift Card Credit for Gifting.
A Credit Card associated with your Account is required -
The backup files for my devices are saved to my internal hard drive. I have a small internal hard drive and would like them to be saved to an external drive. How can I change where iTunes automatically backs up to?
This has nothing to do with iTunes as iTunes provides no way to move or relocate the backup files.
A search of google or the fourms would reveal ways to create a folder link to relocate the physical location where the files are stored. -
Working with class based exception and dynamic method calls
Hi Gurus,
we just changed out ERP from EHP6 to EHP7.
Since we did so we are facing an issue with an Z-Report we are using quite often.
This reports looks up Workitems and executes the according methods so that we can go into debugging if we were facing any problems or errors.
since the EHP Upgrade this statement has problems:
data: lt_parmbind type abap_parmbind_tab, lt_excpbind type abap_excpbind_tab, lo_runtime type ref to object. call method lo_runtime->(iv_cls_method) parameter-table lt_parmbind exception-table lt_excpbind.this CALL METHOD Statement has Problem with the Exception Table. We are quite often getting DYN_CALL_METH_EXCP_NOT_FOUND short dumps with Exception "CX_SY_DYN_CALL_EXCP_NOT_FOUND".
The system has problems handling the content of lt_excpbind. if i clear this table the CALL METHOD statement works fine.
AS an example we are trying to call /IDXGC/CL_PD_PROCESS_STEPS-->CREATE_DATA. This method has 2 exceptions
/IDXGC/CX_PROCESS_ERROR
Process Layer Exception
CX_BO_TEMPORARY
Temporary Business Exception
The Content of LT_EXCPBIND is
INDEX
NAME
VALUE
2
/IDXGC/CX_PROCESS_ERROR
1
2
CX_BO_TEMPORARY
2
From my point of view the Problem ist, that they are marked as "class based". I think so because if you looked up the SAP Help for the EXCEPTION-TABLE Statement it is written that is statement only works for none-classbased exception.
I think that restriction is quiet clear. But what i am wondering about is.. that restriction also exists for EHP6. And in EHP6 it work. Does anyone know why? Or how i can change me CALL METHOD Statement that i will work again?
Best Regards
UdoClass-based exceptions must be caught using try/catch statement.
Calling dynamically a method catchable exceptions are:
CX_SY_DYN_CALL_EXCP_NOT_FOUND
CX_SY_DYN_CALL_ILLEGAL_CLASS
CX_SY_DYN_CALL_ILLEGAL_METHOD
CX_SY_DYN_CALL_PARAM_MISSING
CX_SY_DYN_CALL_PARAM_NOT_FOUND
CX_SY_REF_IS_INITIAL
Anyway catching cx_root (as shown by Matthias) will catch everything is catchable. -
Combine standard task (ABAP method call) and additional UWL Action Handlers
Hi, i have defined a task with an asynchronous ABAP method call and a terminating event which i want to use "as is" in the universal worklist, that means that the standard action has to be the ABAP method call defined for the task.
In addition to that i want to add an extra button to the workitem view in the worklist which opens a web dynpro application. The web dynpro needs a parameter from the workitem container. Opening the web dynpro is not required for completing the task, so i do not consider using secondary methods.
I created an UWLConfiguration for the task type without defining the defaultAction attribute, since defaultAction should not be overwritten. I wanted to use SAPWebDynproABAPLauncher to generate the button since i can easily include values from the workitem container in the call.
When executing a workitem from the worklist the ABAP method call is not performed, instead a window opens which just displays the workitem. The button to web dynpro is generated and works fine.
Does anyone have a clue how i can use UWL to define an additional button with SAPWebDynproABAPLauncher without overwriting the standard task definition?
My definition:
<ItemTypes>
<ItemType
name="uwl.task.webflow.TS95100103"
connector="WebFlowConnector"
defaultView="DefaultView">
<ItemTypeCriteria
systemId="ED1CLNT100"
externalType="TS95100103"
connector="WebFlowConnector"/>
<CustomAttributes>
<CustomAttributeSource
id="WEBFLOW_CONTAINER"
objectIdHolder="externalObjectId"
objectType="WebFlowContainer"
cacheValidity="final">
<Attribute
name="HROBJECT_OBJEKTID"
type="string"
displayName="HROBJECT_OBJEKTID"/>
</CustomAttributeSource>
</CustomAttributes>
<Actions>
<Action
name="launchWebDynPro"
groupAction=""
handler="SAPWebDynproABAPLauncher"
returnToDetailViewAllowed="yes"
launchInNewWindow="yes"
launchNewWindowFeatures="resizable=yes,scrollbars=yes,
status=yes,toolbar=no,menubar=no,
location=no,directories=no">
<Properties>
<Property
name="WebDynproApplication" value="hr01_app"/>
<Property
name="newWindowFeatures"
value="resizable=yes,scrollbars=yes,status=yes,
toolbar=no,menubar=no,location=no,directories=no"/>
<Property
name="DynamicParameter"
value="candidacy_id=${item.HROBJECT_OBJEKTID}
&from_workflow=X"/>
<Property
name="openInNewWindow" value="yes"/>
<Property
name="System" value="SYSTEM_ALIAS_ERP"/>
<Property
name="WebDynproNamespace" value="hr01"/>
</Properties>
<Descriptions default="Show"/>
</Action>
</Actions>
</ItemType>
</ItemTypes>
Thank you very much, best regards, Martin
Edited by: Martin Sommer on Dec 1, 2008 5:51 PMfound a solution with transaction launcher and custom transaction
-
Router based activity and method call issue
Hi All
Iam presently working of Router based task flow(Bounded task flow) and page fragments
here in above router based task flow i have used the method call.
In above method call i return status ,and on basis of that status i redirect it to success page or error page(the success and error page are page fragments i.e. .jsff page).
i have done the drag and drop of the above mentioned router based task flow in my jspx page in a facet as a region.
below is the code for the my jspx page
<af:region value="#{bindings.testtaskflowvalidations.regionModel}"
id="r1"/>but my problem is that the method call which i included in above router based ,that method is not called(method call is not being happened).
So what changes i need to make so that the method is being is called.
currently iam using jdevloper 11.1.1.4.0
Thanks and Regards
Bipin Patil.
Edited by: Bipin Patil on Jun 29, 2011 1:59 AMHi
iam not getting any kinds of server errors.
below is my router code
<?xml version="1.0" encoding="windows-1252" ?>
<adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
<task-flow-definition id="ValidationTaskFlow">
<default-activity id="__1">ValidationTask</default-activity>
<managed-bean id="__25">
<managed-bean-name id="__24">validationBean</managed-bean-name>
<managed-bean-class id="__27">com.test.Validate</managed-bean-class>
<managed-bean-scope id="__26">pageFlow</managed-bean-scope>
</managed-bean>
<router id="ValidationTask">
<case>
<expression>#{pageFlowScope.Validationstatus == 'true'}</expression>
<outcome id="__2">success</outcome>
</case>
<case>
<expression>#{pageFlowScope.Validationstatus == 'false'}</expression>
<outcome id="__3">fail</outcome>
</case>
<default-outcome>fail</default-outcome>
</router>
<view id="validationsuccess">
<page>/pages/main.jsff</page>
</view>
<view id="validationerror">
<page>/pages/hashkeyvalidationerror.jsff</page>
</view>
<method-call id="ValidationStatusSupplier">
<method>#{pageFlowScope.validationBean.onBeforePhase}</method>
<outcome id="__9">
<fixed-outcome>ValidateFlow</fixed-outcome>
</outcome>
</method-call>
<control-flow-rule id="__10">
<from-activity-id id="__11">ValidationTask</from-activity-id>
<control-flow-case id="__12">
<from-outcome id="__14">success</from-outcome>
<to-activity-id id="__13">validationsuccess</to-activity-id>
</control-flow-case>
<control-flow-case id="__16">
<from-outcome id="__15">fail</from-outcome>
<to-activity-id id="__17">validationerror</to-activity-id>
</control-flow-case>
</control-flow-rule>
<control-flow-rule id="__19">
<from-activity-id id="__20">ValidationStatusSupplier</from-activity-id>
<control-flow-case id="__23">
<from-outcome id="__21">ValidateFlow</from-outcome>
<to-activity-id id="__22">ValidationTask</to-activity-id>
</control-flow-case>
</control-flow-rule>
<use-page-fragments/>
<visibility id="__18">
<url-invoke-allowed/>
</visibility>
</task-flow-definition>
</adfc-config> -
Hey, i bought iPhone 5 and i installed an app called "Ab Workouts Free, Fit Club!", then i deleted it but it still charges me (4.99 pounds) by renewing itself authomatically. this app billed me 4 times since i deleted it. What should i do to stop it from doing this. Thanks.
If this app has an automatically renewing subscription, as it seems it does, you have to unsubscribe. Just deleting the app will not do it. See:
http://support.apple.com/kb/HT4098
Regards.
Maybe you are looking for
-
I am using private windows to browse since someone seems to know what sites I've visited. I've done my best wrt blocking cookies and deleting history on exit, but some data in the "Library" exists. Apparently my isp provider and employer can see my b
-
LV 8.20 crashes on opening non-existent window
With LV 8.20 and Mac OS X 10.4.8 Open LV, and by default it opens a blank window. (preferences IsFirstLaunch: False showNoNavDialog: True skipNavigatorDialog: True Close the blank window titled "Untitled 1 Front Panel" using the "close button" Note t
-
Export views and business areas from dev to prod.
Hi Gurus, I am using oracle database 10gR2 and Oracle BI Discoverer Administration 10gR2. I have an End User Layer disadmin1 with 10 business areas. This EUL also have folders for the views in its own schema. I used original import/export utility to
-
Clarification regarding 'Simple Repository Manager' by Thilo Brandt
Hi KM Gurus, Please Help!!! If I am not clear, please clarify with me and help me. I tried importing <b>simple repository manager</b> example authored by <b>Thilo</b> into NWDS and deployed it in the portal. I was able to see this repository manager
-
Inspection Method (Quality Configuration)
Hi, I have created a new Plant. Created the Material Specification Characteristics (T Code: QS21). While creating the Inspection Plan (T Code: QP01), the system throw an error saying 'METHOD INSDUMMY, VERSION, Plant 1100 is not available. When I cros