Ques. about @CallbackListener in EJB 3.0
Hi,
I'm unable to compile the code using the CallbackListener annotation on a stateful Session Bean. I suppose it is defined in the package javax.ejb but am unable to find it. Is it deprecated? Any help will be appreciated.
Regards,
Abhijit
Edited by: abhijit.sarcar on Nov 12, 2007 3:21 PM
Hi,
I'm looking for session bean lifecycle callbacks. I guess Interceptors can suffice but the below links talk about @CallbackListeners.
http://today.java.net/pub/a/today/2005/08/18/ejb3.html
http://dev2dev.bea.com/pub/a/2006/01/ejb-3.html?page=2
Edited by: abhijit.sarcar on Nov 12, 2007 6:40 PM
Similar Messages
-
Que about Simple Query Dump.....
Hiiii ABAPers....
Here with i am come again with a que and my que is :
" While debugging a simple query with where clause i am getting dump...but when i set up a break point after 2 or 3 sentenses it is executed fine without any dump "
It has shocked me.... and i m thinking about it by my hand on my head that hows it possible.....
Anyone can help me to put my hand down from the head???
Warm regards,
Nirav Parekh....HI Nirav
I think you are placing break point in <b>select & end-select</b>
In between select and end-select , if you place any break point ,then there commit statement will trigger,
thats may be the reason ,
so mostly the Programmers are advised to not place any Break points in between Select & end-select.
In your case just place the breakpoint after End-select
or before select
Regards Rk
Message was edited by:
Rk Pasupuleti -
Que about Maintainance of screen no....
Hi.... sirs and dears...
I would like to ask one more question about maintainance screen and my que is
as follows :
How can any one come to know that how many screen will be required by any table maintainace ... i.e one screen or two screen...
Waiting for ur fast and explainable reply as always....
Warm regards,
Nirav ParekhDear Nirav,
When you run the table maintainence :
1) In two step, you would get a pop-up window when you click on a row of the table you mean to change. This helps keep things simple.
2) Otherwise, you would have to say , in a table of 1000 rows , edit somewhere in tht complex matrix .
If you dont want to go through filling in a pop-up window for every row , u may choose one step.
You can always revert back to any of these options , so go ahead and try any one of them.
Now , my rewards please
Regards,
Shweta -
New to Oracle - Ques. about globals.jsa
Hi,
I'm trying to put together a simple web application (JSPs only) to run under Oracle 9i. For this application, I need to maintain a persistent variable among all users and sessions (we would set the variable initially, once, via our app, and the variable would be available to all of our JSPs).
I guess with other containers, I would use ServletContext, but I understand this is not supported in Oracle, and I may need to use globals.jsa instead.
This is a simple requirement I think, and I think I actually have it working, but just want to check if I'm doing things correctly.
What I have so far is a globals.jsa in my apps home directory:
<%-----------------------------------------------------------
Copyright © 1999, Oracle Corporation. All rights reserved.
------------------------------------------------------------%>
<event:application_OnStart>
<jsp:useBean id="myvar" class="oracle.jsp.jml.JmlString" scope = "application" />
</event:application_OnStart>
<event:application_OnEnd>
<jsp:useBean id="myvar" class="oracle.jsp.jml.JmlString" scope = "application" />
</event:application_OnEnd>
<event:session_OnStart>
<%-- Acquire beans --%>
</event:session_OnStart>
<event:session_OnEnd>
<%-- Acquire beans --%>
</event:session_OnEnd>
And, in my JSPs, I add:
<jsp:useBean id="myvar" class="oracle.jsp.jml.JmlString" scope = "application" />
Then, I access the 'global' variable:
To retrieve: String s = myvar.getValue();
or
To update: myvar.setValue("whatever");
Like I said, this seems to be working, but I'm just checking. I'm kind of unclear about what I have in the globals.jsa itself. Is what I have above correct?
Thanks,
JimJim, I am not sure if I have ever used globals.jsa or not. However, if you got it working, then it is working. Please take a look at the documentation "chapter 9, Oracle JSP in Apache JServ" in
Oracle9i Support for JavaServer Pages Reference
Release 2 (9.2)
Part Number A96657-01
Current url is http://download-west.oracle.com/docs/cd/B10501_01/java.920/a96657/apjsvsup.htm#1015160
Any particular reason that you are trying to use globals.jsa as of now?! Please note the j2ee aspect in the Oracle java product has been moved forward enormously. For a minor example, globals.jsa is not longer supported in later releases. It was only a mechanism for implementing the JSP specification in a servlet 2.0 environment as Web applications and servlet contexts are not fully defined in the servlet 2.0 specification. Since we have passed year 2002, there is no reason to support globals.jsa.
Please have fun trying oc4j 10.1.2 production or oc4j 10.1.3 developer preview. -
Que about User made table....
Hiii ... Dear ABAPers
I have a que regarding table :
my question is
" i made a table called "yvinward" and also populated it with some data ... but with the some reason i needed to change the field name of my table ... i changed the
field using se14 trasction for "adjust database table and save data" option.....
when i came back to table i came to know that data that column was contained whose name i have changed now vanished....howwwww its possible???????/
and when i try to maintain the data by " create entries " or sm30 i got error?????
now how to solve this problem......
I m waiting for ur reply.....
Cool Regards,
Nirav Parekh . . .... but with the some reason i
> needed to change the field name of my table ... i
> changed the
> field using se14 trasction for "adjust database table
> and save data" option.....
>
> when i came back to table i came to know that data
> that column was contained whose name i have changed
> now vanished....howwwww its possible???????/
When you change the name of a column in SE14, what you are doing effectively is modifyin the table. That means, you deleted the old column from the table definition (along with the contents of course) and added a new column. That exlains why your data went missing.
You need to regenerate the table maintenance dialog. -
Query about reentrant in ejb-jar.xml file(in case of entity Bean)
Hi all friends,
I am new to EJB I couldn't understand in ejb-jar.xml file in case Entity Bean[<reentrant>False</reentrant>
&<reentrant>true</reentrant>]what is the function of this tag and what is the effect of value true and false of this tag.Can any one please explain it.
Regards
BikashHi,
Re-entrant tag is used in the ejb-jar.xml to notify the container if you would want your bean to call itself through another bean.
Most of the time you would want it to be set to FALSE because you would have to consider the multi-threading issues if you set it TRUE.
Regards
Meka Toka -
Que about smartform::::
Good Noon to my all ABAP Gurus And Gurumaiyas....
Here once again i came here to give some silly questions ( may be for u...)
" Could anyone tell me basics about smartforms executions i mean how does it execute??? How can i use two pages in smartforms??? What is need of loop in smart form??? and why, when and how can i use it??? "
I know basics about smartforms and i have also implemeneted it.... but i m not much aware of it.....i would be thankful to u if u take out 15 mins from ur busy schedule....
Waiting for ur reply.....
Warm Regards,
Nirav ParekhHi,
How to create a New smartfrom, it is having step by step procedure
http://sap.niraj.tripod.com/id67.html
Here is the procidure
1. Create a new smartforms
Transaction code SMARTFORMS
Create new smartforms call ZSMART
2. Define looping process for internal table
Pages and windows
First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
Here, you can specify your title and page numbering
&SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
Main windows -> TABLE -> DATA
In the Loop section, tick Internal table and fill in
ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
3. Define table in smartforms
Global settings :
Form interface
Variable name Type assignment Reference type
ITAB1 TYPE Table Structure
Global definitions
Variable name Type assignment Reference type
ITAB2 TYPE Table Structure
4. To display the data in the form
Make used of the Table Painter and declare the Line Type in Tabstrips Table
e.g. HD_GEN for printing header details,
IT_GEN for printing data details.
You have to specify the Line Type in your Text elements in the Tabstrips Output options.
Tick the New Line and specify the Line Type for outputting the data.
Declare your output fields in Text elements
Tabstrips - Output Options
For different fonts use this Style : IDWTCERTSTYLE
For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
5. Calling SMARTFORMS from your ABAP program
REPORT ZSMARTFORM.
Calling SMARTFORMS from your ABAP program.
Collecting all the table data in your program, and pass once to SMARTFORMS
SMARTFORMS
Declare your table type in :-
Global Settings -> Form Interface
Global Definintions -> Global Data
Main Window -> Table -> DATA
Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming
http://sapr3.tripod.com
TABLES: MKPF.
DATA: FM_NAME TYPE RS38L_FNAM.
DATA: BEGIN OF INT_MKPF OCCURS 0.
INCLUDE STRUCTURE MKPF.
DATA: END OF INT_MKPF.
SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
MOVE-CORRESPONDING MKPF TO INT_MKPF.
APPEND INT_MKPF.
ENDSELECT.
At the end of your program.
Passing data to SMARTFORMS
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZSMARTFORM'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = FM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
if sy-subrc <> 0.
WRITE: / 'ERROR 1'.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
call function FM_NAME
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
GS_MKPF = INT_MKPF
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
check this:
http://help.sap.com/saphelp_nw04s/helpdata/en/a5/de6838abce021ae10000009b38f842/content.htm
http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
http://www.sapbrain.com/TUTORIALS/TECHNICAL/SMARTFORMS_tutorial.html
check this linkls------>
https://www.sdn.sap.com/irj/sdn/collaboration
http://help.sap.com/saphelp_erp2004/helpdata/en/a9/de6838abce021ae10000009b38f842/frameset.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm
reward if useful
regards,
ANJI -
Ques about syncing selected apps and/or playlists with Touch 3g & iTunes 10
I will be getting an iPod Touch 3g next week. I have already downloaded a lot of apps into my iTunes to sync over when I get it. Previously only had a Nano and just did manual syncs so not familiar with doing both apps & playlists. I would like to sync all of my apps when connected, but only want to do certain playlists. Can I do this? Is there any way to grab all the apps, but only some of the playlists?
Thanks a bunch! I'm very excited to get a Touch finally and have found some very awesome apps (most of them were FREE) like online radio streaming for example, and ended up picking out only about 100 of them to start. Have my eye on about half dozen more between $.99 and $4.99. Then I should be done for awhile.
I did ask someone if it might take a 'few' minutes to sync & install that many apps and they looked at me funny and mumbled something indicating I might want to take a very long walk while everything copied over and installed.
I don't know what version of iOS will be on my 3g Touch, but will put 4.2.1 on it if not there already. -
Ques. about Activation w/ AT&T
Hello Everyone,
I may be in the market for an iPhone in the next few months and have three seperate questions about activation w/ AT&T and service w/ Apple.
- Since you pay full price for the iPhone and there is no subsidy, could you sign w/ AT&T and get a freebie phone (for backup) then buy an iPhone and convert the plan over to an iPhone account?
- If your iPhone needs warranty service, what is the turnaround time thru Apple?
- Can you call through a landline to check your VM on AT&T to avoid using your airtime?
Thanks!
JGWelcome! Here's a few answers to get ya started :
1. Yes, you can sign with ATT and get a free phone first then transfer the number to an iPhone.
2. Warranty service time will depend on how you exercise your warranty. If you go directly to an Apple store, they generally take care of it right then and there. If you choose to mail it into Apple, you'll need to account for shipping time and such things.
3. Yes, you can check your voicemail from a landline. Just call your number and then press the "*" key and you'll be able to enter your password and check your messages. Something to remember though, on the iPhone, you have visual voicemail, which is part of the unlimited iPhone data plan. So, you can check your voicemail without ever using airtime on the iPhone.
Hope that helps!
Message was edited by: Lauren L. -
Ques. about the 30" please
Good day to all.
I have a 30" display and no matter what type of image, and I'm talkiing about hi rez, I'm getting the "rainbow" effect around the top of the image.
I'm calabrated with the spyder 2 to no avail.
My card is a fairly new x800xt My settings are: 2560x1600 Colors: Millions
Can anyone give me some guidence please?
Thank you.
Tomyou mean like random colored pixels at the top, or stripes of colors? if it is pixelated, one possible reason could be memory or controller corruption on the display adapter itself. sounds like the x800 needs to be returned.
-
I have 2 questions to ask about mobile karaoke system:
1. How to play the multiple channels of midi for combining into a monotone for the usage of karaoke?
2. Synchronizing lyrics with the playing tone is another problem that i faced. Other than storing the time stamps for each word within the song, any other solutions to deal with it?I encounter problem while developing my mobile karaoke project. I had used "mmapi-1.0-fcs" to develop my project. When I used " mmapi-1.0-fcs " emulator , it can work well on it and can support the "com.sun.midi.lyrics " event. The problem is when I used the Wireless Tool Kit emulator version 2.1, it doesn't work and cannot support the " com.sun.midi.lyrics " event. I just want to enquiry why this problem encounter? May I know why " mmapi-1.0-fcs " emulator " support and Wireless tool Kit version 2,1 doesn't support? Anyone who can help me on this, kindly please inform me how to solve my problem on my project. Your cooperation are much appreciate. Thank you.
-
Help me! About look up EJB object.
I have deployed the ejb object on local PE 9(Sun Java System Application Server Platform Edition 9).
When I use the following code to have a test, I will get a correct result.
The classpath include (appserv-rt.jar) ect.
public static void main(String[] args) {
try{
Properties props = System.getProperties();
Context ctx = new InitialContext(props);
Hello h = (Hello) ctx.lookup("java:comp/env/ejb/test/Hello");
Hello h = (Hello) ctx.lookup("ejb/test/Hello");
System.out.println(h.sayHello());
}catch(Exception e){
e.printStackTrace();
The first question is that the real host ever is the localhost, whether I set the any host (props.put(Context.PROVIDER_URL,"iiop://192.46.57.78:3700");).
Why?
When I use the following code to have a test, I will get a incorrect result.
public static void main(String[] args) {
try{
Properties props = System.getProperties();
props.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.cosnaming.CNCtxFactory");
props.put(Context.PROVIDER_URL,"iiop://localhost:3700");
Context ctx = new InitialContext(props);
Hello h = (Hello) ctx.lookup("java:comp/env/ejb/test/Hello");
Hello h = (Hello) ctx.lookup("ejb/test/Hello");
System.out.println(h.sayHello());
}catch(Exception e){
e.printStackTrace();
The exception is :
javax.naming.NameNotFoundException [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0]
at com.sun.jndi.cosnaming.ExceptionMapper.mapException(ExceptionMapper.java:44)
at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:453)
at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:492)
at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:470)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at tests.HelloTest.main(HelloTest.java:30)
Caused by: org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(NotFoundHelper.java:72)
at org.omg.CosNaming._NamingContextExtStub.resolve(_NamingContextExtStub.java:406)
at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:440)
... 4 more
Why?
Please help me!
Thanks!Sorry!
Above:
Hello h = (Hello) ctx.lookup("java:comp/env/ejb/test/Hello");
The above (Hello h = (Hello) ctx.lookup("java:comp/env/ejb/test/Hello");) have deleted in right code. -
Hi there,
I have some questions about XSU User Guide. In Example 13a, when creating the procedure
'printClobOut', what does '10' mean in the following code,
line := substr( xmlstr, 1, instr( xmlstr, chr(10) ) - 1 );
Why is 10, not any other numbers?
Second question is that this program sounds like can only print out the XML doc when
the doc is less than 32767 bytes. If my doc is more than that, how can I print it out?
Thanks,
Louie1/ ch(10) is the line return character;
2/ Yes, you are right. For file with larger size in CLOB, please use:
clob_len := dbms_lob.getlength(result);
to get the size of lob and then using a loop
to read all the content out because for varchar2 variable the max size is 32767.
Hope this will help. -
Que about "build on ant" ?
can i get a describtion about what "ant" is for building stuff?
i read about polish and ant - is ant a gui who convert to xml or what?
i dont understand
help
thanxAnt is a tool to automate the build process. It's like a makefile, where the build scripts are written in an XML format.
For MIDP development Antenna is often used. It's a bunch of Ant tasks (processes you can run with Ant) that includes building jads and jars, preverifying, obfuscating, etc.
shmoove -
where does a stateful session bean holds its state between method calls? I have read it in book as application variables. stateless session beans also have application variables then why dont they maintain state?
Hi
Stateful session beans store the bean status into persistent files. and retrive them back into the bean whenever required,.
In of of the ejb-jar.xml files we mention the pstoredirectory name .
The data willl get stored into this folder
mahesh
Maybe you are looking for
-
LDAP Configuration - Multiple domains
I have a domain called SA and I have subdomains called IL,NY,TX with corresponding users in the subdomain.It is a deep hierarchy.I want to bring all the users from all these subdomains. Below is my environment, User path: ou=users,ou=test,dc=IL,dc=SA
-
I click on a photo in events and keeping the mouse button depressed I drag the photo to the folder of the left, but a new folder opens with the photo. It doesn't place the photo into the folder that I have already created. What am I doing wrong? I se
-
Mac OS X (10.7.5) how to upgrade to newer OS X
Hi, I have a Mac Book Pro Rretina with OS 10.7.5 (Lion) and I need to Upgrade the OS becouse I have to install one new application that needs at list the OS 10.8 or 10.9. What I need to know is; what I have to do before doing the upgrade beside doi
-
Using Javascript in a report region
I have a text box that I need to populate with an amount for billing. There is also a field that shows the amount due. If the amount due is equal to the amount being paid, I want my user to click on the amount due, and it automatically populates the
-
How to Get user profile properties in provider -cloud hosted app in sharepoint online - office 365 using REST API? any idea?