Interface code
Hi everybody
i have written a small piece of code but not sure why it does not work
here is the code
interface MyInterface {
public void someMethod();
interface MyInterface1 {
public void someMethod();
public class testint implements MyInterface,MyInterface1
public static void main(String args[])
public void someMethod() {
System.out.println("test successfull");
can anybody tell me what is the problem with this code.whether it will compile or not.if yes please let me know the specific reason
regards
vikramk
public class testint implements
MyInterface,MyInterface1
blic static void main(String args[])
public void someMethod() {
System.out.println("test successfull");
}Do not implement your method in the main method. It is not allowed to declare a method inside another method, maybe this is the reason for your problem.
Similar Messages
-
How can I test the log in state from in side the Operator Interface code.
From inside LabVIEW Full OI, I want to test if the operator logged in after the IApplicationMgr Start.
Right after the IApplicationMgr ‘Start’ I have a loop that tests the IApplicationMgr ‘LoginLogoutRunning’ state and waits until the LoginLogout call back is done.
I want to exit if the program if operator canceled the login and did not log in.
I have tried “GetEngine” ref. From there get the “CurrentUser” ref but seems not to contain any information about the Current User.
How can I test from my Operator Interface code logged in state of the application?
Thanks
Jim D.Try Engine.CurrentUserHasPrivilege
For the string parameter 'privilegeName' enter Priv_UserLoggedIn or the string value "*".
"Priv_UserLoggedIn–(Value: "*") Use this value with the Engine.CurrentUserHasPrivilege method to determine whether a user is logged in."
Option 2: You could also setup a callback on application manager for UserChanged Event. If the User is null then the login was canceled. (see a copy of the help further down)
From the teststand help for Engine.CurrentUserHasPrivilege method below...
CurrentUserHasPrivilege Method
Syntax
Engine.CurrentUserHasPrivilege ( privilegeName)
Return Value
Boolean
True if the current user has the privilege.
Purpose
Confirms whether the current user or any user group that the user is a member of has a specific privilege.
Remarks
Returns True when the privilege property is True, when the privilege property of any group that contains the privilege is True, or when privilege checking is disabled, StationOptions.EnableUserPrivilegeChecking is False. If privilege checking is disabled but StationOptions.RequireUserLogin is True, this function returns True only if there is a user currently logged on.
Parameters
privilegeName As String
[In] Specifies the name of the privilege to check. You can specify the name of any privilege property. You can specify the full privilege path in the user privileges property tree, for example, Debug.RunSelectedSteps, or you can specify the base privilege name, RunSelectedSteps. If you specify only the base privilege name and more than one instance of the base privilege name exists, then the method returns the value of the first base privilege it finds with that name. Refer to UserPrivileges for more information.
Teststand callback for UserChanged Event...
UserChanged Event
Syntax
ControlName_UserChanged ( user)
Applies To
ApplicationMgr
Purpose
Occurs when the current user logged in changes.
Remarks
Use this event to update the parts of your user interface that depend on user permissions when the current user logged in changes.
Parameters
user As User
[In] Current user. If this parameter is NULL, there is no user logged in. -
Dears
I am starting this discussion to get details about Code transport. We have built our Interfaces Codes (SLD, ESR, ID, etc) in a temporary Environment and we would like know to transport this code to the DEV server of the customer. Can you please suggest which best way facilitates this
Best regards
Mohamed CharguiHi Mohamed,
you can transport the object using file Transport. refer the below link
**************** - Transporting objects in PI
I would suggest to transport only ESR object and create SLD, configuration object again in Development system. As you can avoid the configuration of transport path etc.
regards,
Harish -
Looking for Web2Py or Python interfacing code to DI Server
Dear All,
I am looking for a Web2Py (python) code sample that can interface or talk with DI Server of SAP B1 say through win32 python API SOAP interface.
Some sample to get me started in the right path to connect to DI server, login and access simple SAOP service.
Thank you very much.I don't know if you'll find an exact sample here - you might be lucky of course, but I think it's a bit specific.
Instead, I would focus on learning the two separately; look on google for some examples of writing SOAP interfaces using Python and then also do some DI server examples.
The Python I can't help with, but for DI server you can check the SDK helpfile and go to Developers Guide -> DI Server and then under this you have lots of good sections:
System Messages: Shows how to login and get the session ID
Data Manipulation Messages: Shows how to add/update/remove objects in the DB
DI Server application gives instructions on how to set it up.
Hope it's useful, might be worth keeping thread open to see if anyone has done this before though -
Hi
Any body Help me to Gl_interface code.
ThanksPl be more specific :-) The interface for 11i is described at http://irep.oracle.com.
Srini -
I need some sample code so as how to update data using IDOC for inbound interface.
Step by step procedure willl be very helpful starting from very basic...........................................AS I AM VERY NEW TO IT.Hi,
Inbound IDOC Status Report for Sales Orders
Requirement:
Sales Orders are being created through inbound IDocs using FM 'EDI_DATA_INCOMING'. Now a Report is required to check the status of these Inbound IDocs along with Sales Orders generated against customer Purchase Orders.
Processing:
The report selects, 'ORDERS' IDoc numbers & status, generated between given time range, from table EDIDC. Further, it calls Function Module 'IDOC_READ_COMPLETELY' to get the IDoc details. Then required information is extracted by reading relevant field data of IDoc segments.
REPORT Z_EDI_FILE_LOAD_STATUS_REPORT .
Staus Report for Inbound IDOCs ( Sales Orders )
Program : Z_EDI_FILE_LOAD_STATUS_REPORT
Presented By : www.rmtiwari.com
TABLES : EDIDC.
ALV stuff
TYPE-POOLS: SLIS.
DATA: GT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
GS_LAYOUT TYPE SLIS_LAYOUT_ALV,
GT_SORT TYPE SLIS_T_SORTINFO_ALV,
GT_LIST_TOP_OF_PAGE TYPE SLIS_T_LISTHEADER.
DATA : BEGIN OF T_REPORT OCCURS 0,
IDOC_NO TYPE EDI_DOCNUM,
IDOC_DATE TYPE SY-DATUM,
IDOC_TIME TYPE SY-UZEIT,
SORDER_NO TYPE VBELN,
STP_NO TYPE KNA1-KUNNR,
STP_NAME(35) TYPE C,
STP_PHONE(12) TYPE C,
PO_NO(15) TYPE C,
STATUS TYPE C,
S_TEXT(70) TYPE C,
ERROR(70) TYPE C,
END OF T_REPORT.
--PARAMETER--
selection-screen begin of block date with frame title TEXT-S01.
select-options: UDATE for EDIDC-UPDDAT
default SY-datum obligatory, "Changed On
UTIME for EDIDC-UPDTIM . "Changed Time
selection-screen end of block date.
INITIALIZATION.
START-OF-SELECTION.
PERFORM SHOW_STATUS_REPORT.
*& Form alv_grid
text
--> p1 text
< -- p2 text
FORM ALV_GRID.
IF GT_FIELDCAT[] IS INITIAL.
PERFORM FIELDCAT_INIT.
PERFORM LAYOUT_INIT.
PERFORM SORT_INIT.
ENDIF.
PERFORM GRID_DISPLAY.
ENDFORM. "alv_grid
*& Form layout_init
FORM LAYOUT_INIT.
GS_LAYOUT-ZEBRA = 'X'.
GS_LAYOUT-CELL_MERGE = 'X'.
GS_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
GS_LAYOUT-NO_VLINE = ' '.
GS_LAYOUT-TOTALS_BEFORE_ITEMS = ' '.
ENDFORM. " layout_init
*& Form fieldcat_init
FORM FIELDCAT_INIT.
DATA: LS_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'IDOC_NO'.
LS_FIELDCAT-KEY = 'X'.
LS_FIELDCAT-REPTEXT_DDIC = 'IDOC'.
LS_FIELDCAT-OUTPUTLEN = 10.
Fix for ALV print bug, which puts 'N/A' over last digit
Set inttype to 'N' to stop corruption of printed ALV cell.
LS_FIELDCAT-INTTYPE = 'N'.
APPEND LS_FIELDCAT TO GT_FIELDCAT.
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'IDOC_DATE'.
LS_FIELDCAT-REPTEXT_DDIC = 'Creation Date'.
LS_FIELDCAT-OUTPUTLEN = 10.
APPEND LS_FIELDCAT TO GT_FIELDCAT.
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'IDOC_TIME'.
LS_FIELDCAT-REPTEXT_DDIC = 'Creation Time'.
LS_FIELDCAT-OUTPUTLEN = 8.
APPEND LS_FIELDCAT TO GT_FIELDCAT.
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'STATUS'.
LS_FIELDCAT-REPTEXT_DDIC = 'St'.
LS_FIELDCAT-OUTPUTLEN = 2.
APPEND LS_FIELDCAT TO GT_FIELDCAT.
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'ERROR'.
LS_FIELDCAT-REPTEXT_DDIC = 'Message'.
LS_FIELDCAT-OUTPUTLEN = 70.
APPEND LS_FIELDCAT TO GT_FIELDCAT.
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'STP_NO'.
LS_FIELDCAT-REPTEXT_DDIC = 'S.T.Party No'.
LS_FIELDCAT-OUTPUTLEN = 10.
APPEND LS_FIELDCAT TO GT_FIELDCAT.
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'STP_NAME'.
LS_FIELDCAT-REPTEXT_DDIC = 'Sold to Party Name'.
LS_FIELDCAT-OUTPUTLEN = 35.
APPEND LS_FIELDCAT TO GT_FIELDCAT.
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'PO_NO'.
LS_FIELDCAT-REPTEXT_DDIC = 'Purch Order'.
LS_FIELDCAT-OUTPUTLEN = 15.
APPEND LS_FIELDCAT TO GT_FIELDCAT.
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'STP_PHONE'.
LS_FIELDCAT-REPTEXT_DDIC = 'S.T.Party Phone'.
LS_FIELDCAT-OUTPUTLEN = 15.
APPEND LS_FIELDCAT TO GT_FIELDCAT.
ENDFORM. "fieldcat_init
*& Form sort_init
FORM SORT_INIT.
DATA: LS_SORT TYPE SLIS_SORTINFO_ALV.
CLEAR LS_SORT.
LS_SORT-FIELDNAME = 'IDOC_DATE'.
LS_SORT-SPOS = 1.
LS_SORT-UP = 'X'.
APPEND LS_SORT TO GT_SORT.
CLEAR LS_SORT.
LS_SORT-FIELDNAME = 'IDOC_TIME'.
LS_SORT-SPOS = 2.
LS_SORT-UP = 'X'.
APPEND LS_SORT TO GT_SORT.
CLEAR LS_SORT.
LS_SORT-FIELDNAME = 'STATUS'.
LS_SORT-SPOS = 3.
LS_SORT-UP = 'X'.
APPEND LS_SORT TO GT_SORT.
CLEAR LS_SORT.
LS_SORT-FIELDNAME = 'IDOC_NO'.
LS_SORT-SPOS = 4.
LS_SORT-UP = 'X'.
APPEND LS_SORT TO GT_SORT.
ENDFORM. "sort_init
*& Form grid_display
FORM GRID_DISPLAY.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
IS_LAYOUT = GS_LAYOUT
IT_FIELDCAT = GT_FIELDCAT
IT_SORT = GT_SORT
i_callback_program = SY-REPID
I_CALLBACK_TOP_OF_PAGE = 'TOP_OF_PAGE'
I_DEFAULT = ' '
I_SAVE = 'X'
TABLES
T_OUTTAB = T_REPORT
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
ENDFORM. "grid_display
*& Form COMMENT_BUILD
Processing of listheader
FORM COMMENT_BUILD USING P_FK_LIST_TOP_OF_PAGE TYPE SLIS_T_LISTHEADER.
DATA: LS_LINE TYPE SLIS_LISTHEADER.
REFRESH P_FK_LIST_TOP_OF_PAGE.
List Heading : Typ H
CLEAR LS_LINE.
LS_LINE-TYP = 'H'.
LS_LINE-INFO = 'Sales Order Interface: Z_EDI_FILE_LOAD'.
APPEND LS_LINE TO P_FK_LIST_TOP_OF_PAGE.
List : Typ S
clear LS_LINE.
LS_LINE-typ = 'S'.
LS_LINE-key = 'Date Range:'.
LS_LINE-info = UDATE-low.
if not UDATE-high is initial.
write ' To ' to LS_LINE-info+30.
LS_LINE-info+36 = UDATE-high.
endif.
APPEND LS_LINE TO P_FK_LIST_TOP_OF_PAGE.
ENDFORM. " COMMENT_BUILD
FORM TOP_OF_PAGE *
Ereigniss TOP_OF_PAGE *
event TOP_OF_PAGE
FORM TOP_OF_PAGE.
PERFORM COMMENT_BUILD USING gt_LIST_TOP_OF_PAGE[].
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE.
ENDFORM. "TOP_OF_PAGE
*& Form show_status_report
FORM SHOW_STATUS_REPORT .
Report to show status.
DATA: BEGIN OF T_TEDS2 OCCURS 0.
INCLUDE STRUCTURE TEDS2.
DATA: END OF T_TEDS2.
DATA: BEGIN OF T_IDOC_CONTROL_TMP OCCURS 0.
INCLUDE STRUCTURE EDIDC.
DATA: END OF T_IDOC_CONTROL_TMP.
CONSTANTS: C_STATUS_IN_IDOC_POSTED LIKE EDIDC-STATUS VALUE '53'.
DATA : T_EDIDS TYPE STANDARD TABLE OF EDIDS WITH HEADER LINE.
DATA : T_EDIDD TYPE STANDARD TABLE OF EDIDD WITH HEADER LINE.
DATA : GV_PARTNER_SEG TYPE E1EDKA1,
GV_PO_REF_SEG TYPE E2EDK02.
Get text for status values
SELECT * FROM TEDS2 INTO TABLE T_TEDS2 WHERE LANGUA = SY-LANGU.
Read the IDoc's status after processing
SELECT * FROM EDIDC
INTO TABLE T_IDOC_CONTROL_TMP
WHERE UPDDAT IN UDATE
AND UPDTIM IN UTIME
AND MESTYP = 'ORDERS'.
LOOP AT T_IDOC_CONTROL_TMP.
IDoc has been processed, since control record changed.
READ TABLE T_TEDS2 WITH KEY STATUS = T_IDOC_CONTROL_TMP-STATUS.
T_REPORT-IDOC_NO = T_IDOC_CONTROL_TMP-DOCNUM.
T_REPORT-IDOC_DATE = T_IDOC_CONTROL_TMP-CREDAT.
T_REPORT-IDOC_TIME = T_IDOC_CONTROL_TMP-CRETIM.
T_REPORT-S_TEXT = T_TEDS2-DESCRP.
IF T_IDOC_CONTROL_TMP-STATUS = C_STATUS_IN_IDOC_POSTED.
ok status
T_REPORT-STATUS = 'S'.
ELSE.
error status
T_REPORT-STATUS = 'E'.
ENDIF.
Get IDoc details.
CALL FUNCTION 'IDOC_READ_COMPLETELY'
EXPORTING
DOCUMENT_NUMBER = T_REPORT-IDOC_NO
TABLES
INT_EDIDS = T_EDIDS
INT_EDIDD = T_EDIDD
EXCEPTIONS
DOCUMENT_NOT_EXIST = 1
DOCUMENT_NUMBER_INVALID = 2
OTHERS = 3.
Get Error status
READ TABLE T_EDIDS WITH KEY STATUS = T_IDOC_CONTROL_TMP-STATUS.
IF SY-SUBRC EQ 0.
REPLACE FIRST OCCURRENCE OF '&1' IN T_EDIDS-STATXT
WITH T_EDIDS-STAPA1.
REPLACE FIRST OCCURRENCE OF '&2' IN T_EDIDS-STATXT
WITH T_EDIDS-STAPA2.
REPLACE FIRST OCCURRENCE OF '&3' IN T_EDIDS-STATXT
WITH T_EDIDS-STAPA3.
REPLACE FIRST OCCURRENCE OF '&4' IN T_EDIDS-STATXT
WITH T_EDIDS-STAPA4.
REPLACE FIRST OCCURRENCE OF '&' IN T_EDIDS-STATXT
WITH T_EDIDS-STAPA1.
REPLACE FIRST OCCURRENCE OF '&' IN T_EDIDS-STATXT
WITH T_EDIDS-STAPA2.
REPLACE FIRST OCCURRENCE OF '&' IN T_EDIDS-STATXT
WITH T_EDIDS-STAPA3.
REPLACE FIRST OCCURRENCE OF '&' IN T_EDIDS-STATXT
WITH T_EDIDS-STAPA4.
T_REPORT-ERROR = T_EDIDS-STATXT.
ENDIF.
LOOP AT T_EDIDD.
CASE T_EDIDD-SEGNAM.
WHEN 'E1EDKA1'.
GV_PARTNER_SEG = T_EDIDD-SDATA.
CLEAR : T_REPORT-STP_NAME.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = GV_PARTNER_SEG-PARTN
IMPORTING
OUTPUT = T_REPORT-STP_NO.
SELECT SINGLE NAME1 TELF1
INTO (T_REPORT-STP_NAME,T_REPORT-STP_PHONE)
FROM KNA1
WHERE KUNNR = T_REPORT-STP_NO.
WHEN 'E1EDK02'.
GV_PO_REF_SEG = T_EDIDD-SDATA.
T_REPORT-PO_NO = GV_PO_REF_SEG-BELNR.
ENDCASE.
ENDLOOP.
APPEND T_REPORT.
ENDLOOP .
SORT T_REPORT BY STATUS IDOC_NO.
Show Report
PERFORM ALV_GRID.
ENDFORM. " show_status_report
Pls reward all helpful points.
Regards,
Ameet -
Trouble starting Gpib interface(​code 10)
I am getting touble with the interface, in the measurment and automation tool, when i tried to scan for the instrument then it checks for the software and says ok and for the hardware it says ok but it says it failed because of the interface hadnt started (code10).. I really dont know how to solve the problem, i appriciate your help, and my phone number is 301 975 3789.
HI,
Microsoft describes the error as: "This code means that the device failed to start (for example, it is missing or is not working properly). To resolve this error code, make sure the device is attached to the computer correctly. For example, make sure all cables are plugged in fully and that all adapter cards are plugged into their slots fully."
What GPIB hardware are you using?. What OS? Make sure you are using the lastest driver for your Hardware/OS combination. Check the drivers at Gpib Driver updates.
Try installing the interface in another PC to determine if there is a hardware problem with the GPIB interface.
DiegoF
National Instruments -
Java inheritance and interface code help required
please help me I need your 30 mins only,,, working on assignment and I am trying to understand interface and inheritance might not need even 30 mins, please add me on skype *[deleted by moderator]*
Or add me on
yahoo msgr *[deleted by moderator]*
waiting for your help.
I have no single person friend or I can ask help from who knows java or programming. pretty much want to learn need a friend who can guide me in java.
unfortunately have to submit assignment tomorrow.
Thank you in advance for your time and consideration.
Akee
*Edited by moderator: EJP on 10/11/2012 10:38: removed your private contact details. This is a public forum, not a personal help desk. Ask your questions here or not at all.*Hi,
there are lot of thread alredy posted please serach
check following link
http://help.sap.com/saphelp_nw04/helpdata/en/ce/1d753cab14a909e10000000a11405a/frameset.htm
XSLT Mapping:
http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/content.htm
Java Mapping:
http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/content.htm
Links of blogs on java mapping...
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-iii
blog
/people/sap.user72/blog/2005/03/15/using-xslt-mapping-in-a-ccbpm-scenario
/people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping(file to xslt mapping)
/people/pooja.pandey/blog/2005/06/27/xslt-mapping-with-java-enhancement-for-beginners(xslt with java enhancement function)
Regards,
Amit -
Oracle Call Interface Code (OCI)
Does anyone know a good source of example code or tutorials for OCI (Oracle 8i)?
(Have already looked at the demo code and the docs, which aren't overly helpful.)
nullquit wasting your time with the oci
& check this out
http://home.sprynet.com/~skuchin/home.htm
c++ wrapper for the oci thats really easy
to use with excellent examples
null -
Any programming interface / code library available for the messaging server
iMS 5.1 - yes. The documenation is not out yet, but you could start with the SIMS doc and/or PMDF doc. PMDF doc can be found at http://www.pmdf.process.com/ SIMS doc can be found at http://docs.iplanet.com/
-
Adobe Form called from SAP Portal, not executing interface global init code
Hello!
I have an adobe form called from both R/3 and SAP Portal and I need to show long text dinamically calculated.
The deal is at the SAP Portal execution, as scenario characteristics don't allow string definitions, I'm using 255 characters tables (QISR_TAB_TYPE), that I'm trying to convert inside form interface (Global init code).
The problem is that the interface global init code is being executed when the form is called from R/3, but it is not at SAP Portal.
Does anybody know how to manage this? It's kind of a problem that the BAdi method int_service_request_init doesn't allow types over 255 characters... and if it is not possible to access the form interface code section (maybe there's any way)... i need to find some code section where i can convert tables before the form context is filled!!
Thanks a lot!!
Regards,
Diana.Hi,
have you searched on SCN? There are some threads with same problem such as [this one|/message/9270216#9270216 [original link is broken];. There is more threads. They may help you to solve your issue.
Cheers -
[JS/CS4/CS5] Catching a selection event in a ScriptUI interface.
I've got this ScriptUI interface (javascript based), and now I wonder if it would be possible to change one of its button captions depending on whether anything is selected or not, in the active document (would also have to be updated if the user selects or opens another document).
1. Is it possible to write event listeners for this?
2. Would it be possible to include this in the same script as the rest of the Script UI interface code (that is, I'd prefer avoiding a separate file in the startup folder).
3. What's the best source of information regarding events, which ones there are, and how to handle them in javascript?
Andreas1. Yes. The selection events work well in my experience.
2. Yes, you don't have to add them at startup. You can do something like:
app.addEventListener("afterSelectionChanged", selectionChangedFunction);
before you open your window. Remove the listener in the onClose event of the window. I think you'll have to have some error trapping in the selectionChangedFunction to deal with app.selection erroring after a document close or during a revert.
3. See this thread for an extension that lets you see events as they're happening.
Jeff -
Hi,
I am using the TestExec User Interface editor mode, in the SequenceFileLoad callback from my sequence an instance is made from a C# code module
(the code module is located in another dll) , this reference is stored into a station global variable.
Now I want to retrieve the reference from the station global variable in my TestExec User Interface code.
So, is it possible to get this reference back from the station global variable?
Best regardsReading the StationGlobal is not a problem. But the problem maybe that your reference contained in your StationGlobal is probably not valid once the SequenceFileLoad has completed its execution which it will have done once the SequenceFile has loaded.
Any references you wish to pickup are best down via one of the ProcessModel callbacks such as ProcessSetup.
Regards
Ray Farmer
Regards
Ray Farmer -
Deploying EJB with Local Interfaces.
HI everybody
I am trying example on EJB with LocalInterfaces with BMP.
My bean without Local interface is deployed and working fine.
Then i have changed Home & Remote interface code. Again i have deployed it . It is deployed but i am unable to Look Up.
I am using J2SDKEE1.3 server & JDK1.3.
I have changed both interface files as follow:-
I have made my Home interface as :
public interface RetrieveConditionHome extends javax.ejb.EJBLocalHome {
public RetrieveCondition create(String SQL_WHERE_ID, String SQL_WHERE_NAME,
String FROM_TABLE , String WHERE_CLAUSE , String LAST_UPD_USER_ID ,
Date LAST_UPD_TMSTMP, int ROW_VERSION)
throws CreateException;
I have made my Remote interface as :
public interface RetrieveCondition extends javax.ejb.EJBLocalObject {
public String getSQLWHERENAME() ;
-VirenIn JMS tutorial : They have stated ejbCreateLocal method.
I am not using this method in my Bean class. I am using general ejbCreate method as we normally do .
I am really confused about these methods : ejbCreate & ejbCreateLocal.
JMS Tutorial site (where they have used ejbCreateLocal):
A J2EETM Application that Uses the JMS API with an Entity Bean
java.sun.com/products/jms/tutorial/1_3-fcs/doc/j2eeapp3.html
Viren -
Can someone please tell me what can interface is?
On the question sheet I found in my brothers stuff there was a question about completing some interface code, but I've got no idea what an interface actually is, as near as I can tell its a list of methods that a class has. So is it like a contents page of methods that you can call?
Also, here is the question on the sheet.
5. Consider the following Java Library interface
public interface Comparable<T>
int compareTo(T rhs);
Complete the implementation of the class below that implements the above interface. The compareTo method should return -1 if value is less than rhs.value, 0 if both sides are equal and +1 if value is greater than rhs.value.
public class MyInt implements Comparable<MyInt>
private int value;
MyInt(int x) {...}
public String toString() {...}
public int intValue() {...}
public int compareTo(MyInt rhs){...}
public boolean equals(Object rhs) {...}
In the last 2 weeks I've learnt some much about java just from answering these questions on this work sheet. I'm starting to feel that I actually understand what to do and I'm enjoying it a lot more now, Before I was just throwing lines of code at the compiler and hoping for the best.http://java.sun.com/docs/books/tutorial/java/IandI/index.html
Maybe you are looking for
-
Imessage is working but sms is not
i bought an iphone today and my sms is not working. when i send a message it says 'not delivered' however my factime, imessage etc are all working. i can call but my number comes up as 'unknown'. I have plugged my iphone into my computer and have syn
-
Adobe Acrobat 8 unable to load plug-in in Window Vista
I have developed a plug in for Adobe Acrobat, but Abode Acrobat unable to load the plug in. I try to troubleshoot the problem by putting a messagebox in the PIHandshake function. Noticed that, the function is not being called by Adobe Acrobat when Ac
-
Transferring music from iPhone to iTunes
I absolutely HATE the new iTunes, so worthless confusing and just stupid. I preordered an album and it hasn't showed up in my purchased items on my computer. But it showed up in my purchased list on my iPhone, even though I bought the album while on
-
How do I get rid of a program that loads up with Firefox on the start page?
Firefox 10 was just installed. On the left side of the start page and MP3-Download page barged in. I tried everything I know, including windows restore, but it comes back. I suspect it is a flavicon but do not know.
-
No of user currently using a particular jsp file
hi i have two questions 1) i have a jsp page . i want to get the names of all users in the server who using that jsp currently. 2) I have a jsp page . i want to retrieve all the names of the jsp, bean files which have been used by that jsp page. Thx